What is the shell command to create the wswin export file

Discussion of the Meteohub software package

Moderator: Mattk

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

What is the shell command to create the wswin export file

Post 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
Last edited by wfpost on Tue Jul 19, 2011 12:24 am, edited 1 time in total.
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7879
Joined: Mon Oct 01, 2007 10:51 pm

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

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

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

Post 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
Post Reply