In version 5.2 are there valid tags $time_at and $time_since ?

17 views
Skip to first unread message

DR

unread,
9:39 AM (8 hours ago) 9:39 AM
to 'Jon Fear' via weewx-user

I have a long running version 4.7.0 with some modifications of the current.inc that Mr. Keffer helped tweak oh so long ago.

I have another Rasp Pi with recent installation of 5.2.0 running and I'm customizing it to incorporate a couple of helpful (for me) displays.  I think I understand the new way of making an observation list to display current conditions, and also how the method works to break out certain values to display as  a different format, etc.

When I tried to insert the formating to get last rain and time and date, using the same type of code, I get a tag error, which according to the discussion in the WeeWx manual the HTML code just gets inserted into the output.


I went through the formatting and tag options section and see many choices, but do not see the option for $time_at nor $time_since.


Were those options which were available in version 4.7 and no longer are supported for valid choices?  A google search shows info for a different language and the use of a hyphen in the name rather than an underscore, so I assume there aren't entries applicable to my looking for formating options in HTML.


From the current.inc for the Seasons skin in version 4.7   Note there are two different weather stations and one doesn't have the rain gauge uncovered, so values are in one database but not the other, explaining the rain differences.

<tr>
        <td class="label">$obs.label.rain_today</td>
        <td class="data">$day.rain.sum</td>
      </tr>
      <tr>
        <td class="label">$obs.label.rainRate</td>
        <td class="data">$current.rainRate</td>
      </tr>
      <tr>
       <td class="label">$obs.label.Rainfall Yesterday</td>
        <td class="data">$day($days_ago=1).rain.sum</td>
      </tr>
      <tr>
       <td class="label">$obs.label.Last Rain</td>
       <td class="data">$time_at('rain>0')<br/>$time_since('rain>0') ago</td>
      </tr>



From the most recent version, 5.2:

#elif $x == 'rain'
      <tr>
        <td class="label">$gettext("Rain Today")</td>
        <td class="data">$day.rain.sum</td>
      </tr>
      <tr>
    <td class="label">$obs.label.Rainfall Yesterday</td>
        <td class="data">$day($days_ago=1).rain.sum</td>
      </tr>
      <tr>
       <td class="label">$obs.label.Last Rain</td>
       <td class="data">$time_at('rain>0')<br/>$time_since('rain>0') ago</td>
       </tr>
    #else
      <tr>


Thank you for guidance.  Dale


Reply all
Reply to author
Forward
0 new messages