Page 5 of 26

Re: For New Users

Posted: Sun 08 Nov 2020 5:17 pm
by rogerthn
:D
And assuming you are still is the same raspberry session

Code: Select all

lftp -c "set ftp:list-options -a;
open '$FTPURL';
cd RCD;
ls"

Shoud get you all cumulusutils files, if yes try

Code: Select all

lftp -c "set ftp:list-options -a;
open '$FTPURL';
cd RCD;
ln -s ../CumulusMX/dailyrain.json dailyrain.json"

If you get something like ln: Fatal error: 500 Unknown SITE command.
:( :( :(
else :clap: and we can add the remaining links :D

Re: For New Users

Posted: Sun 08 Nov 2020 5:24 pm
by stef942
i have an error on first command :

cd: access failed :550 RCD: no such file or directory (/RCD)

i dont have any RCD directory

Re: For New Users

Posted: Sun 08 Nov 2020 5:26 pm
by rogerthn
Sorry

Code: Select all

RCD="CMX"
lftp -c "set ftp:list-options -a;
open '$FTPURL';
cd RCD;
ls"

Does this work?
Maybe CMX is in a subfolder?

Re: For New Users

Posted: Sun 08 Nov 2020 5:28 pm
by stef942
no same error
no CMX is a directory as CumulusMX

Re: For New Users

Posted: Sun 08 Nov 2020 5:32 pm
by rogerthn
Sorry again ;-)
cd $RCD;
If OK now

Code: Select all

lftp -c "set ftp:list-options -a;
open '$FTPURL';
cd $RCD;
ln -s ../CumulusMX/dailyrain.json dailyrain.json"


Re: For New Users

Posted: Sun 08 Nov 2020 7:42 pm
by stef942
error on the last command :

Code: Select all

> ln stef942.free.fr/CumulusMX/dailyrain.json=>dailyrain.json [Waiting for response...]
> ln: Access failed: 500 SITE not understood (stef942.free.fr/CumulusMX/dailyrain.json)
:|

i give up, thank you for your great help :clap:

Re: For New Users

Posted: Sun 08 Nov 2020 9:06 pm
by rogerthn
OK
Your ftp server seems to have the limitations as mine!
I do get
ln: Fatal error: 500 Unknown SITE command.
when trying to create sym links via ftp

Re: For New Users

Posted: Sun 08 Nov 2020 9:40 pm
by rogerthn
If you are interested I could try to create a script to be run as Realtime program (A program or command to be run at each realtime interval) on internetsettings.html?

Re: For New Users

Posted: Mon 09 Nov 2020 3:48 am
by HansR
Now, before we go and get ourselves a spaghetti monster of little scripts and programs, i would like to say that that is really against the design goal of cumulusutils. I believe the issue is still to get the location of the realtime files known to cutils isn't it?

Those links are a nice idea, but not the goal if you can't create them. So back to the basic question I think: the realtime files.

Re: For New Users

Posted: Mon 09 Nov 2020 8:17 am
by rogerthn
Hans, I do agree!
If you can't create symlinks maybe create those entries on the Extra web files if you like to have CU on a page different than CumulusMX?

Code: Select all

LOCAL FILENAME
/home/pi/CumulusMX/web/dailyrain.json
/home/pi/CumulusMX/web/dailytemp.json
/home/pi/CumulusMX/web/graphconfig.json
/home/pi/CumulusMX/web/humdata.json
/home/pi/CumulusMX/web/pressdata.json
/home/pi/CumulusMX/web/raindata.json
/home/pi/CumulusMX/realtime.txt
/home/pi/CumulusMX/web/realtimegauges.txt
/home/pi/CumulusMX/web/solardata.json
/home/pi/CumulusMX/web/sunhours.json
/home/pi/CumulusMX/web/tempdata.json
/home/pi/CumulusMX/web/wdirdata.json
/home/pi/CumulusMX/web/winddata.json

Code: Select all

REMOTE FILENAME
CMX/dailyrain.json
CMX/dailytemp.json
CMX/graphconfig.json
CMX/humdata.json
CMX/pressdata.json
CMX/raindata.json
CMX/realtime.txt
CMX/realtimegauges.txt
CMX/solardata.json
CMX/sunhours.json
CMX/tempdata.json
CMX/wdirdata.json
CMX/winddata.json
With REALTIME and FTP ticked?

Re: For New Users

Posted: Mon 09 Nov 2020 8:56 am
by HansR
I am beginning to miss the point here.

Will the website be on free.fr or on the raspberry?
If I understand it well, it will be on free.fr. That means the files are already there namely in the

Code: Select all

/CumulusMX
directory (see for yourself). In my view you have the following options:
  1. You keep the old site and place cutils' website beside it on the /CMX directory. As it is the same domain you just have to set

    Code: Select all

    CumulusRealTimeLocation=../CMX/
    and you are done.
  2. If you do not want to keep the old site, just change the location in CMX for the realtime files and everything will be copied to the right place. You then have to set nothing because the default for the website is to find the realtime files in the website root.
I think the confusion here is that @stef492 is not creating his site on the same machine as CMX, but on a real free.fr outside domain.
Or am I missing something?

Re: For New Users

Posted: Mon 09 Nov 2020 10:59 am
by stef942
hi, no its the same machine (pi) , i want to keep the original site as backup, that why i use and other folder for cumulus utils, all realtime files are in th original CumulusMX folder on the server


Image

Re: For New Users

Posted: Mon 09 Nov 2020 11:50 am
by HansR
That is very confusing, publishing a site on free.fr and then that NOT being the site you want support on. And by giving the name CumulusMX to the directory of the original site you add to the confusion. But anyway, you can run the CumulusUtils generated website on free.fr without disturbing the original site. Just put it on a different directory (e.g. CUtils or CMX or whatever).

Earlier in this thread you gave the address of the CUtils site as http://stef942.free.fr/CMX/. Could you be clear about where you want the site to go?

So I think you want the original site here: http://stef942.free.fr/CumulusMX/ and the CUtils generated site here: http://stef942.free.fr/CMX/
Can you confirm this or do you really want to have the site on the Raspberry (requiring a WebServer btw)?
And if all realtime files are in the CumulusMX directory on the server, then just set

Code: Select all

CumulusRealTimeLocation=../CumulusMX
and have the files generated to free.fr/CMX/

CumulusUtils MUST run in the CumulusMX directory (on the Cumulus machine, not confused with the site?) It will not get confused with any other site because all output is written to the utils directory from where it is brought to the site (automatically or manually). It is a website generator, not a website. CumulusUtils only has the executable and the inifile in the CumlusMX directory on the machine where CumulusMX runs (which is not the website). Output is written to the subdirectory utils.

Re: For New Users

Posted: Mon 09 Nov 2020 12:12 pm
by rogerthn
I had totally missed CumulusRealTimeLocation, sorry :bash: :!:
@stef942: No need for symlinks or Extra web files :D

Re: For New Users

Posted: Mon 09 Nov 2020 12:18 pm
by stef942
HansR wrote: Mon 09 Nov 2020 11:50 am
So I think you want the original site here: http://stef942.free.fr/CumulusMX/ and the CUtils generated site here: http://stef942.free.fr/CMX/
yes that's what i want