Where are all the sensors in current.inc ? Want to add additional WH31/51

97 views
Skip to first unread message

Thomas Hackler

unread,
Mar 21, 2022, 5:18:00 PM3/21/22
to weewx-user
Hello,
I run weewx 4.7.0 with a gw1000 (0.4.2) , a froggit WH3000, four WH31 and one WH51.
In the field current conditions two of the four WH31 are shown and other values like inside temperature humidity etc. I want to add the other two WH31 and the WH51 like it is described here:


I have to add the sensors in the current.inc. But my current.ins in /etc/weewx/skins/Seasons only show this:

I would expect to see more sensors? Where are extraTemp1, extraTemp2 etc. ?

from line 18:

#set $observations = $to_list($DisplayOptions.get('observations_current', ['outTemp', 'barometer']))
#for $x in $observations
  #if $getVar('year.%s.has_data' % $x)
    #if $x == 'barometer'
      <tr>
        <td class="label">$obs.label.barometer</td>
        <td class="data">$current.barometer ($trend.barometer.formatted)</td>
      </tr>
    #elif $x == 'windSpeed'
      <tr>
        <td class="label">$obs.label.wind</td>
        <td class="data">$current.windSpeed $current.windDir.ordinal_compass ($current.windDir)</td>
      </tr>
    #elif $x == 'rain'
      <tr>
        <td class="label">$gettext("Rain Today")</td>
        <td class="data">$day.rain.sum</td>
      </tr>
    #else
      <tr>
        <td class="label">$obs.label[$x]</td>
        <td class="data">$getVar('current.' + $x)</td>
      </tr>
    #end if

  #end if
#end for

Maybe it is everything somwhere here?

 $getVar('current.' + $x)

I don't understand how to add the sensors, so maybe can explan it to me.
Thank you
Thomas

Tom Keffer

unread,
Mar 21, 2022, 6:19:41 PM3/21/22
to weewx-user
Look under [DisplayOptions] in skin.conf.

--
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/b24e4ab1-509c-4ccc-b54f-fefc4a7d6687n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages