I assume you are using the gauge-data.txt template from the SteelSeries Weather Gauges GitHub site <https://github.com/mcrossley/SteelSeries-Weather-Gauges>? I just installed the template on a VM running weeWX 3.6.1 using Vince's SLE and $last_rain formats to "04-Feb-2017 00:40". The gauge-data skin.conf from the SteelSeries site is pretty lite, but it should be using sane date-time format defaults. You could try forcing the format by using $last_time.format("%d %B %Y %H:%M"). Failing that you might have to post the skin.conf that is being used and the [StdReport] section of your weewx.conf.
Gary On Thursday, 9 March 2017 14:06:28 UTC+10, Robert Mantel wrote: > > I notice that when I change the field in my gauge-data.txt.tmpl to > $last_rain.raw I just get the epoch date and nothing else which is fine, > but for some reason when I change it to $last_rain it gives me a "NaN > undefined" and then the actual time of day the last rain was. I'm assuming > that the format of the $last_rain value isn't jiving with the format of the > gauge-data.txt.tmpl? I guess it's handling the time of day correctly but > not the date? I'm still very new to weewx so I'm sure there is something > obvious I'm missing here. > > On Wednesday, 8 March 2017 17:25:16 UTC-5, vince wrote: >> >> On Wednesday, March 8, 2017 at 2:24:30 PM UTC-8, vince wrote: >>> >>> On Wednesday, March 8, 2017 at 12:22:17 PM UTC-8, Robert Mantel wrote: >>>> >>>> I forgot to edit the search list extensions and append the last rain >>>> tags, works now, but in the graph I'm seeing the last rain showing NaN >>>> undefined at 07:56. At first I thought it's because there wasn't any rain >>>> today, how far back in time does this function look for the last rain? Or >>>> is it simply the current day? >>>> >>> >>> Should be all your data, if you look at the extension python code you'll >>> see the sqlite queries in there. >>> >>> This gives you the date+time of the day with the last rain: >>> >>> echo "SELECT MAX(dateTime) FROM archive_day_rain WHERE sum > 0;" | >>> sqlite3 weewx.sdb >>> >>> >>> Then run "date -d @NNNNNNNN" using that output to get something more >>> human friendly for the date+time of the 'beginning' of which day had the >>> most recent rain. There's code later on in the python stuff that figures >>> out the offset from then to 'now'. >>> >>> We had rain today, so my output here looks like: >>> >>> (oops) >> >> root@debian:/home/weewx/archive# echo "SELECT MAX(dateTime) FROM >> archive_day_rain WHERE sum > 0;" | sqlite3 weewx.sdb >> 1488960000 >> >> root@debian:/home/weewx/archive# date -d @1488960000 >> Wed Mar 8 00:00:00 PST 2017 >> >> >>> >>> >> -- 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]. For more options, visit https://groups.google.com/d/optout.
