The following (untested) should work
#for $day in $month.days
#set $outTemp_max_data += $day.outTemp.max + ', '
#set $barometer_max_data += $day.barometer.max + ', '
#end for
Be aware though that depending on your skin.conf/weewx.conf settings $day.outTemp.max might include units eg 35.5 ^C (where ^ represents the degree symbol - have worked out how to type that on the iPad) which you may or may not want. If you don't want units you might want to use .formatted or .nolabel (refer formatting options in the Customisation Guide)
You might also want to consider using the python json library, it has the advantage of taking care of the json encoding and decoding for you, in particular it takes care of converting python None values into json Null values. The downside though is that your code can become more complex, in which case it might be worth considering a weewx search list extension.
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 weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.