Correction, forcing the format simply changed the correct time of day to March, so we have "NaN undefined at March". I had copied your formatting example which is $last_time instead of $last_rain which is what I have as my variable.
On Thursday, 9 March 2017 13:07:05 UTC-5, Robert Mantel wrote: > > Trying to force the format did nothing, still getting the NaN undefined in > the top left corner of the plot. Here's my skin.conf that is in use for > the steelseries gauges: > > # $Id: skin.conf 1210 2015-01-01 17:01:08Z mwall $ > # configuration file for the steel series gauges skin for weewx > # created by Matthew Wall > # based on work by Mark Crossley and others > # > # This skin can be copied, modified, and distributed as long as this notice > # is included in any derivative work. > > [CopyGenerator] > copy_once = css/*.css, scripts/*.js > > [CheetahGenerator] > search_list_extensions = user.forecast.ForecastVariables, > user.lastrain.lastRainTags > encoding = html_entities > [[ToDate]] > [[[index]]] > template = index.html.tmpl > [[[data]]] > template = gauge-data.txt.tmpl > [[[XML]]] > template = XML/weewx_pws.xml.tmpl > > [ImageGenerator] > image_width = 720 > image_height = 196 > image_background_color = 0xffffff > chart_background_color = 0xffffff > chart_gridline_color = 0xeaeaea > > top_label_font_path = > /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed-Bold.ttf > top_label_font_size = 10 > > unit_label_font_path = > /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf > unit_label_font_size = 10 > unit_label_font_color = 0xaaaaaa > > bottom_label_font_path = > /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf > bottom_label_font_size = 10 > bottom_label_font_color = 0xaaaaaa > axis_label_font_path = > /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf > axis_label_font_size = 10 > axis_label_font_color = 0xaaaaaa > > rose_label = N > rose_label_font_path = > /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansCondensed.ttf > rose_label_font_size = 8 > rose_label_font_color = 0x888888 > rose_color = 0xaaaaaa > > chart_line_colors = 0x1e69d2, 0x8b008b, 0xa09e5f, 0x8080f0 > chart_fill_colors = 0x7ec9f2, 0xeb00eb, 0xf0febf, 0xe0e0f0 > > line_type = 'solid' > marker_size = 2 > marker_type ='none' > plot_type = line > aggregate_type = none > width = 1 > yscale = None, None, None > vector_rotate = 90 > line_gap_fraction = 0.01 > bar_gap_fraction = 0.2 > daynight_day_color = 0xffffff > daynight_night_color = 0xf8f0f0 > daynight_edge_color = 0xafefef > bottom_label_format = %x %X > time_length = 90000 > > [[images]] > x_label_format = %H:%M > show_daynight = true > [[[daybarometer]]] > [[[[barometer]]]] > [[[dayrain]]] > yscale = None, None, 0.02 > plot_type = bar > [[[[rain]]]] > aggregate_type = sum > #aggregate_type = last > aggregate_interval = 3600 > label = Rain (hourly total) > [[[dayrainrate]]] > [[[[rainrate]]]] > [[[daywind]]] > [[[[windSpeed]]]] > [[[[windGust]]]] > [[[daywinddir]]] > line_type = None > marker_type = 'box' > marker_size = 2 > yscale = 0.0, 360.0, 45.0 > [[[[windDir]]]] > [[[daywindvec]]] > [[[[windvec]]]] > plot_type = vector > [[[[windgustvec]]]] > plot_type = vector > aggregate_type = max > aggregate_interval = 3600 > [[[dayouttemphum]]] > [[[[windchill]]]] > [[[[heatindex]]]] > [[[[dewpoint]]]] > [[[[outTemp]]]] > [[[dayinouttemp]]] > [[[[outTemp]]]] > [[[[inTemp]]]] > [[[dayinouthum]]] > yscale = 0, 100, 10 > [[[[outHumidity]]]] > [[[[inHumidity]]]] > [[[dayradiation]]] > [[[[radiation]]]] > [[[dayuv]]] > [[[[UV]]]] > [[[daysoc]]] > [[[[soc]]]] > > > > On Thursday, 9 March 2017 00:14:01 UTC-5, gjr80 wrote: >> >> 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.
