FTP upload template

53 views
Skip to first unread message

Martin Madara

unread,
Sep 7, 2020, 2:31:51 AM9/7/20
to weewx-user
Hi folks,

hope you are all doing well.  I'm using below template for FTP upload, but its giving me each time records for whole day. Is it possible to adjust below template to give me records let's say for last hour only?


#for $record in $day.records
$record.dateTime--$record.windDir.format(add_label=False)--$record.windSpeed.format(add_label=False)--$record.windGust.format(add_label=False)--$record.outHumidity.format(add_label=False)--$record.outTemp.format(add_label=False)--$record.inTemp.format(add_label=False)
#end for

Appreciate your help on this!
Martin

Tom Keffer

unread,
Sep 7, 2020, 9:08:19 AM9/7/20
to weewx-user
Why not just use the $hour tag?

#for $record in $hour.records
...
#end for

-tk

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/8558dd50-ab8e-48f7-ad6a-89b6507378e4n%40googlegroups.com.

Martin Madara

unread,
Sep 7, 2020, 9:15:45 AM9/7/20
to weewx-user
Oh, great, thanks Tom, weewx simplicity rocks!!
Reply all
Reply to author
Forward
0 new messages