Page 1 of 1

What is the shell command to create the wswin export file

Posted: Mon Jul 18, 2011 5:27 pm
by wfpost
I want to create the wswin export file 4-5 times a day.
As the GUI is offering doing that manually, there certainly is a shell command to initiate this with cron as well?

Boris, could you help and write down a shell command creating the wswin export file for the current month,
the same way the GUI does it when clicking the button there?

Thanks,

Image

Re: What is the shell command to create the wswin export fil

Posted: Mon Jul 18, 2011 8:36 pm
by admin

Code: Select all

echo "wswin 201101" >/dev/meteohub
Generates the monthly data for January 2011. As this is handled by the neteohub scheduler, you just have to pipe above command to "/dev/meteohub". Logging of action goes into "meteohub log".

Re: What is the shell command to create the wswin export fil

Posted: Tue Jul 19, 2011 12:23 am
by wfpost
thanks a lot, working

with the date function it looks like that (for the current month)

Code: Select all

echo "wswin `date +%Y%m`" >/dev/meteohub