FTP upload frequency

507 views
Skip to first unread message

FlyingBirdy

unread,
Sep 17, 2013, 8:51:31 AM9/17/13
to weewx...@googlegroups.com

Hi,

 

Working with WeeWx for more than a year without any problem on my RaspBerry, a perfect combination.

I have now a question about the FTP upload frequency, can that be changed to upload every 5 minutes (and not 15 minutes).

(My raspiCam drops every 5 minutes a weather photo in the weewx upload dirctory.......)

 

Thanks
Bert

Andrew

unread,
Sep 17, 2013, 11:11:27 AM9/17/13
to weewx...@googlegroups.com
Hi,
I use 150 seconds parameter in weewx.conf.  This is the same parameter of the interval of reading of packets from weather station.

Thomas Keffer

unread,
Sep 17, 2013, 1:33:59 PM9/17/13
to weewx-user
Right now, the FTP upload frequency is locked to the archive record frequency. If you use a 15 minute archive interval, that's what you'll get for your FTP interval.

You could write a new service that drops your weather photo in, then kicks off an FTP session in a separate thread.

-tk


--
You received this message because you are subscribed to the Google Groups "Weewx user's group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Tom Keffer
kef...@threefools.org
+1 541-386-8891 (h)
+1 541-490-9507 (c)
Skype: tkeffer

Miguel Angel

unread,
Sep 17, 2013, 1:51:07 PM9/17/13
to weewx...@googlegroups.com
Hi,

You could set also a line in the crontab of the raspberry pi to upload your cam files independently. 
My problem was that the bandwidth I use to upload the weewx files is very limited, and I needed upload files once in an hour instead every 15 minutes.

This is my crontab configuration:

0 * * * * /usr/bin/lftp -u user,pass -e 'mirror -R --only-newer /var/www/weewx /httpdocs/meteo; quit' www.algarra.org

This line uploads every new file from directory /var/www/weewx to directory /httpdocs/meteo in my site www.algarra.org




2013/9/17 Thomas Keffer <tke...@gmail.com>
Reply all
Reply to author
Forward
0 new messages