Ouput clientraw.txt more often?

and other offical x86 platforms like e-boxes and fitPC

Moderator: Mattk

Post Reply
Killervette
Fresh Boarder
Fresh Boarder
Posts: 8
Joined: Mon Dec 19, 2011 1:06 am

Ouput clientraw.txt more often?

Post by Killervette »

Is there a way to output the clientraw.txt more than once a minute???
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Ouput clientraw.txt more often?

Post by admin »

no
wfpost
Platinum Boarder
Platinum Boarder
Posts: 591
Joined: Thu Jun 12, 2008 2:24 pm
Location: HONSOLGEN
Contact:

Re: Ouput clientraw.txt more often?

Post 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
Last edited by wfpost on Fri Dec 30, 2011 9:02 pm, edited 1 time in total.
Killervette
Fresh Boarder
Fresh Boarder
Posts: 8
Joined: Mon Dec 19, 2011 1:06 am

Re: Ouput clientraw.txt more often?

Post 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.
wfpost
Platinum Boarder
Platinum Boarder
Posts: 591
Joined: Thu Jun 12, 2008 2:24 pm
Location: HONSOLGEN
Contact:

Re: Ouput clientraw.txt more often?

Post 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
Last edited by wfpost on Fri Dec 30, 2011 8:51 pm, edited 1 time in total.
Killervette
Fresh Boarder
Fresh Boarder
Posts: 8
Joined: Mon Dec 19, 2011 1:06 am

Re: Ouput clientraw.txt more often?

Post 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.
wfpost
Platinum Boarder
Platinum Boarder
Posts: 591
Joined: Thu Jun 12, 2008 2:24 pm
Location: HONSOLGEN
Contact:

Re: Ouput clientraw.txt more often?

Post 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
Killervette
Fresh Boarder
Fresh Boarder
Posts: 8
Joined: Mon Dec 19, 2011 1:06 am

Re: Ouput clientraw.txt more often?

Post 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!
Last edited by Killervette on Wed Jan 04, 2012 3:46 pm, edited 1 time in total.
skyewright
Platinum Boarder
Platinum Boarder
Posts: 873
Joined: Fri Jan 25, 2008 6:27 pm
Location: Isle of Skye, Scotland

Re: Ouput clientraw.txt more often?

Post 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 :) .
Post Reply