Page 1 of 1

Ouput clientraw.txt more often?

Posted: Wed Dec 28, 2011 9:20 pm
by Killervette
Is there a way to output the clientraw.txt more than once a minute???

Re: Ouput clientraw.txt more often?

Posted: Thu Dec 29, 2011 12:36 am
by admin
no

Re: Ouput clientraw.txt more often?

Posted: Fri Dec 30, 2011 6:02 pm
by wfpost
I fully understand, why Boris is writing down a simple no, but if you want to try,
you can do this with a few shell script lines.
With my ebox-4300 it´s working pretty well, though at the moment I do not see the need to update my weather values every 10s.

One thing that looks pretty good, though, is the windrose moving.
I guess this might be a feature all Anglo-Saxon and windy Northern parts of Europe might be keen of to have :lol:
wasn´t skyewright the first who wrote he updated his clientraw more often than a minute :wink:

Code: Select all

#!/bin/bash
while :
do
/srv/www/meteohtml.cgi /home/meteohub/clientraw.conf >/var/run/meteohub/clientraw.out;
/usr/bin/ncftpput -u user -p password ftp-server /remote_dir /data/export/clientraw.txt
sleep 10
done

Re: Ouput clientraw.txt more often?

Posted: Fri Dec 30, 2011 6:15 pm
by Killervette
wfpost wrote:I fully understand, why Boris is writing down a simple no, but if you want to try,
you can do this with a few shell script lines.
With my ebox-4300 it´s working pretty well, though at the moment I do not see the need to update my weather values every 10s.

One thing that looks pretty good, though, is the windrose moving.
I guess this might be a feature all Anglo-Saxon and windy Northern parts of Europe might be keen of to have :lol:
wasn´t skyewright the first who wrote he updated his clientraw more often than a minute :wink:

Code: Select all

#!/bin/bash
while :
do
/srv/www/meteohtml.cgi /home/meteohub/clientraw.conf >/var/run/meteohub/clientraw.out; cp /var/run/meteohub/clientraw.out /data/export/clientraw.txt; cp /var/run/meteohub/clientraw.out /var/run/meteohub/perm/clientraw.txt; mv /var/run/meteohub/clientraw.out "/var/run/meteohub/uploads/clientraw.txt"
/usr/bin/ncftpput -u user -p password ftp-server /remote_dir /data/export/clientraw.txt
sleep 10
done
Thanks, i will give it a try. I live in a windy area, and it would be nice to get a more live look at the windspeeds.

Re: Ouput clientraw.txt more often?

Posted: Fri Dec 30, 2011 7:16 pm
by wfpost
Depending in how you run WDLIVE.
If locally and not on a remote webserver, there would be a nice solution offering clientraw.txt with

changing the directory clientraw is copied into meteohub root webserver folder
#!/bin/bash
while :
do
/srv/www/meteohtml.cgi /home/meteohub/clientraw.conf >/var/run/meteohub/clientraw.out; cp /var/run/meteohub/clientraw.out /data/myweb/clientraw.txt;
sleep 10
done

Re: Ouput clientraw.txt more often?

Posted: Fri Dec 30, 2011 7:53 pm
by Killervette
I dont run WDLive at all. I run some ajax scripting that updates when the clientraw text changes. So I just need to update the clientraw locally. No ftp needed.

Re: Ouput clientraw.txt more often?

Posted: Fri Dec 30, 2011 8:53 pm
by wfpost
I see: what´s your website? - just to get a glimpse on how that graphically looks like

BTW: I just noticed the cp and mv part with the command to create the clientraw.txt is not needed and can be left out
#!/bin/bash
while :
do
/srv/www/meteohtml.cgi /home/meteohub/clientraw.conf >/var/run/meteohub/clientraw.out; cp /var/run/meteohub/clientraw.out /data/myweb/clientraw.txt;
sleep 10
done

Re: Ouput clientraw.txt more often?

Posted: Fri Dec 30, 2011 9:18 pm
by Killervette
wfpost wrote:I see: what´s your website? - just to get a glimpse on how that graphically looks like

BTW: I just noticed the cp and mv part with the command to create the clientraw.txt is not needed and can be left out
#!/bin/bash
while :
do
/srv/www/meteohtml.cgi /home/meteohub/clientraw.conf >/var/run/meteohub/clientraw.out; cp /var/run/meteohub/clientraw.out /data/myweb/clientraw.txt;
sleep 10
done


thanks!

Re: Ouput clientraw.txt more often?

Posted: Mon Jan 02, 2012 12:11 am
by skyewright
wfpost wrote:wasn´t skyewright the first who wrote he updated his clientraw more often than a minute :wink:
Not me. I don't even use the 1 minute update. 5 minutes is fine for how I use clientraw :) .