Page 2 of 2

Re: help for a new configutarion...

Posted: Fri 06 Nov 2020 5:40 pm
by HansR
krash wrote: Fri 06 Nov 2020 4:25 pm i see now that in my page, reports and graphs works.......
Interesting that for you it changes by using 127.0.0.1 It surprises me it makes a difference.
But for me nothing has changed and I don't see the realtime values on your page.
If you choose the FTPS protocol in CumulusMX , would that change things?

The problem we see now have to do with CumulusMX, not with CumulusUtils as far as I can see.

Anyway: I will implement FTPS in CumulusUtils. Don't know when though.

Re: help for a new configutarion...

Posted: Sun 08 Nov 2020 2:27 pm
by krash
Hi again...i reinstalled CumulusMX, because i was thinking the problem perhaps was of that...but..now i get other error when i run cumulusutils with Website parameter....

Thank you..

Re: help for a new configutarion...

Posted: Sun 08 Nov 2020 2:44 pm
by HansR
OK. That is very clear: cumulusutils MUST run in the CumulusMX directory.
That is being checked by looking for the Cumulus.ini file which MUST be present.

In your case you are running cumulusutils somewhere else OR you did not run Cumulus first and you don't have a Cumulus.ini file.

Re: help for a new configutarion...

Posted: Sun 08 Nov 2020 3:14 pm
by krash
Ok, thank you...i saw that in log that Newtonsoft.json could not load..etc..and i saw that this file was not in cumulus directory. Now i copy it and it works ok...
But...error is same...and it dont appear in http://cuatrotorres.ddns.net/

Re: help for a new configutarion...

Posted: Sun 08 Nov 2020 4:01 pm
by HansR
True, Newtonsoft.json is the old dll used by CMX and has recently been replaced. I am lagging behind a bit but copying the file to the CMX directory is fine.

OK, so we're back to FTP error 553.
cutils uses plain FTP, the credentials are taken from the Cumulus.ini file. I can see that the realtimefiles are not transferred by CMX to the website (F12 brings you to the console where you can see the realtime files do not exist on http://cuatrotorres.ddns.net/home/pi/Cu ... gauges.txt.

This means we are not going to look at CumulusUtils now because most likely it is the FTP server configuration. In CumulusMX you can configure the protocols. You can also activate FTP logging (in the settings).

So we need to check and experiment.

Earlier you said:
krash wrote: Fri 06 Nov 2020 11:21 am I have managed to get the web, I was missing two files, gauges.js and cumulusutils.js. I have copied them directly as you told me and I can already see the gauges ...
Now what happens to me is that I have verified that it does not update me realtime if I put the FTP in old plain. If I use SSH it does update the realtime.txt .... I don't know what might be happening, maybe I have some permission problem with my FTP. a clue may be that I have vsftpd installed on the raspberry ...
Can you
  • Tell me which protocol you have now configured in CumulusMX
  • Can you activate the FTP logging and let CumulusMX run with it for 10 minutes and post it.
  • Can you post the vsftpd.conf
At the moment cumulusutils does not handle SSH. So if that works for the realtime, I would use that setting and copy the cutils report files manually once a day or less.
I am working on the FTPS and the SFTP protocols but it is not yet available.

It really surprises me that you can't use plain FTP within the RPi. It is local net, even on the same machine. I don't see a security issue here. You seem knowledgable. Could look into use of plain FTP on the RPi? Once it is working you can change things one by one.

The problem is not in the installation of CMX or cutils, it is in the configuration of the FTP parameters and maybe the FTP server. So we'll take it one step at a time.

Re: help for a new configutarion...

Posted: Mon 09 Nov 2020 9:10 am
by HansR
@krash: Because you have it all internal in the Raspberry Pi you may consider to NOT use FTP but create a linux procedure which is called by crontab to fysically copy the files to your website directory (the webroot).

The files are:
  1. The realtime.txt and realtimegauges.txt created by CumulusMX;
  2. all files in the utils directory: *.css to the ../css web directory and *.js to the ../lib web directory
  3. All *.txt files to the web directory
That would definitely relieve you of the issue of internal FTP transfer which apparently poses some problems.