records-table.inc - extraSensor : soilMoist1

43 views
Skip to first unread message

Joachim Puttkammer

unread,
Jun 6, 2020, 5:29:49 PM6/6/20
to weewx-user

Hi,

no date is displayed for the max value of the extra sensor 'soilMoist1'


soilMoist1.png

Here is the content of records-table.inc


<script type="text/javascript">
   
var moment_locale = "$system_locale_js";
    moment
.locale(moment_locale);

    jQuery
(document).ready(function() {

      jQuery
("#year-soilMoist1-max-ts").text( moment.unix($year.soilMoist1.maxtime.raw).utcOffset($moment_js_utc_offset).f$
      jQuery
("#at-soilMoist1-max-ts").text( moment.unix($alltime.soilMoist1.maxtime.raw).utcOffset($moment_js_utc_offset).$

      jQuery
("#year-soilMoist1-min-ts").text( moment.unix($year.soilMoist1.mintime.raw).utcOffset($moment_js_utc_offset).f$
      jQuery
("#at-soilMoist1-min-ts").text( moment.unix($alltime.soilMoist1.mintime.raw).utcOffset($moment_js_utc_offset).$


   
});
</script>

           
<tr>
               
<td class="records-header" colspan=5>$obs.label.Bodenfeuchte ( 10 cm )</td>
           
</tr>
           
<tr>
               
<td colspan=1> </td>
               
<td class="records-header-year" colspan=2>$current.dateTime.format("%Y")</td>
               
<td class="records-header-alltime" colspan=2>$obs.label.records_all_time</td>
           
</tr>
           
<tr>
               
<td>$obs.label.Max Bodenfeuchte</td>
               
<td class="leftborder">$year.soilMoist1.max</td>
               
<td id="year-soilMost1-max-ts"></td><!-- moment.js -->
               
<td class="leftborder" id="at-soilMoist1-max-ts"></td><!-- moment.js -->
               
<td>$alltime.soilMoist1.max</td>
           
</tr>
           
<tr>
               
<td>$obs.label.Min Bodenfeuchte</td>
               
<td class="leftborder">$year.soilMoist1.min</td>
               
<td id="year-soilMoist1-min-ts"></td><!-- moment.js -->
               
<td class="leftborder" id="at-soilMoist1-min-ts"></td><!-- moment.js -->
               
<td>$alltime.soilMoist1.min</td>
           
</tr>


Joachim

Tom Keffer

unread,
Jun 6, 2020, 6:36:39 PM6/6/20
to weewx-user
You have a typo in your HTML:

<td id="year-soilMost1-max-ts"></td><!-- moment.js -->

-tk

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/e5e0b103-f188-47ab-aeb6-7df1ff737327o%40googlegroups.com.

Joachim Puttkammer

unread,
Jun 7, 2020, 5:36:59 AM6/7/20
to weewx-user
me culpa

thanks Tom

Reply all
Reply to author
Forward
0 new messages