Ouput clientraw.txt more often?
Posted: Wed Dec 28, 2011 9:20 pm
Is there a way to output the clientraw.txt more than once 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
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
#!/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
#!/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
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
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![]()