Ouput clientraw.txt more often?
Moderator: Mattk
-
- Fresh Boarder
- Posts: 8
- Joined: Mon Dec 19, 2011 1:06 am
Ouput clientraw.txt more often?
Is there a way to output the clientraw.txt more than once a minute???
Re: Ouput clientraw.txt more often?
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
wasn´t skyewright the first who wrote he updated his clientraw more often than a minute
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

wasn´t skyewright the first who wrote he updated his clientraw more often than a minute

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
Last edited by wfpost on Fri Dec 30, 2011 9:02 pm, edited 1 time in total.
-
- Fresh Boarder
- Posts: 8
- Joined: Mon Dec 19, 2011 1:06 am
Re: Ouput clientraw.txt more often?
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.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![]()
wasn´t skyewright the first who wrote he updated his clientraw more often than a minute![]()
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
Re: Ouput clientraw.txt more often?
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
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
Last edited by wfpost on Fri Dec 30, 2011 8:51 pm, edited 1 time in total.
-
- Fresh Boarder
- Posts: 8
- Joined: Mon Dec 19, 2011 1:06 am
Re: Ouput clientraw.txt more often?
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?
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
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
-
- Fresh Boarder
- Posts: 8
- Joined: Mon Dec 19, 2011 1:06 am
Re: Ouput clientraw.txt more often?
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!
Last edited by Killervette on Wed Jan 04, 2012 3:46 pm, edited 1 time in total.
-
- Platinum Boarder
- Posts: 873
- Joined: Fri Jan 25, 2008 6:27 pm
- Location: Isle of Skye, Scotland
Re: Ouput clientraw.txt more often?
Not me. I don't even use the 1 minute update. 5 minutes is fine for how I use clientrawwfpost wrote:wasn´t skyewright the first who wrote he updated his clientraw more often than a minute![]()
