I am new to pywws but already really like the software, great job!. I have question similar to Stefan's related to rain data from the station (1080).
I started using it for my sprinkler control with openhab2 over mqtt (and independently to wunderground). Normally all data is reported as expected but for the rain I need a raw data from the station to see last 24h rain (rather than since midnight, so now for example 24h rain showed on station is 2.7mm whereas reported is 0 which I believe is since midnight). Eventhough I read documentation it is not clear to me how to get this into mqtt template being still reported live.
#live#
{
#idx '"idx" : "%Y-%m-%d %H:%M:%S",'#
#wind_dir '"wind_dir" : "%.0f",' '' 'winddir_degrees(x)'#
#wind_ave '"wind_ave" : "%.2f",' '' 'wind_kmph(x)'#
#wind_gust '"wind_gust" : "%.2f",' '' 'wind_kmph(x)'#
#hum_out '"hum_out" : "%.d",'#
#hum_in '"hum_in" : "%.d",'#
#temp_in '"temp_in_c" : "%.1f",'#
#temp_in '"temp_in_f" : "%.1f",' '' 'temp_f(x)'#
#temp_out '"temp_out_c" : "%.1f",'#
#temp_out '"temp_out_f" : "%.1f",' '' 'temp_f(x)'#
#rel_pressure '"rel_pressue" : "%.2f",' '' 'x+4.5'#
#calc 'rain_inch(rain_hour(data))' '"rainin" : "%g",'#
#calc 'rain_inch(rain_day(data))' '"dailyrainin" : "%g",'#
#calc 'rain_hour(data)' '"rain" : "%g",'#
#calc 'rain_day(data)' '"dailyrain" : "%g",'#
}
I could overcome this problem by changing rules in openhab2 sprinkler trigger to calculate 24 rain myself but I'm pretty sure pywws can do it so don't want to overcomplicate.
Do I need #raw# section for just rain_day in parallel to #live# or I can grab this somehow within live section? I tried different things but always pywws was throwing error