There is nothing that will directly give you the first of the month. The 
closest you can do is $days_ago:

$day($data_binding=‘some binding’, $days_ago=20).outTemp.maxtime

But of course as we move through the month the actual day provided will change. 
You could use a little in-line python in your template to calculate an offset 
based on the current day of month to use with the number of days ago and then 
use that in the tag, eg (untested):

#set $offset = (some calculation)
$day($data_binding=‘some binding’, $days_ago=$offset).outTemp.maxtime
$day($data_binding=‘some binding’, $days_ago=$offset+1).outTemp.maxtime

Not sure how well that will work (not sure if in-line calculation is supported 
in $day() tags) and it’s starting to get complex and messy.

For info detail on aggregate tag usage can be found in the Customization Guide 
(http://weewx.com/docs/customizing.htm#general_aggregation_periods).

Gary

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/d284759c-a6d0-4796-93b9-f5ddadd82ebbo%40googlegroups.com.

Reply via email to