"outHumAbs" in microgramms per cube meter on Station info on Belchertown Skin.

90 views
Skip to first unread message

mh081...@gmail.com

unread,
Mar 14, 2024, 4:53:53 AM3/14/24
to weewx-user
Hi,

after i changed my Davis Vantage Pro2 Weather Station with actual Model with Solar/UV Sensor i Changed My Weewx Belchertown Homepage a bit. Installed GTS Extension. My Question is . How can I change  "outHumAbs" to gram per cube/meter? I dont find any detailed Document about.

Can anybody, who already changed this, share his config?


Regards

Miller Beau

unread,
Mar 14, 2024, 1:38:45 PM3/14/24
to weewx-user
Hi,
use it in this way:

    $current.outHumAbs.gram_per_meter_cubed

Here is the complete example out of the seasons skin (sorry - no Belchertown available, but should be the same imho):
      <tr>
        <td class="label">$obs.label.outHumAbs</td>
        <td class="data">$current.outHumAbs.gram_per_meter_cubed</td>
      </tr>

Regards

Miller Beau

unread,
Mar 14, 2024, 1:45:57 PM3/14/24
to weewx-user
In my station it looks like this:
Screenshot 2024-03-14 184423.png

Karen K

unread,
Mar 14, 2024, 1:46:53 PM3/14/24
to weewx-user
mh081...@gmail.com schrieb am Donnerstag, 14. März 2024 um 09:53:53 UTC+1:
Can anybody, who already changed this, share his config?

In graphs.conf I use it like this:

    [[humidity]]

        title = "Luftfeuchtigkeit"

        [[[outHumidity]]]

            name = "relativ"

        [[[outHumAbs]]]

            name = "absolut"

            yAxis = 1

            unit = gram_per_meter_cubed

            [[[[numberFormat]]]]

                decimals = 1


For the current readings at the home page it is more difficult. If you want to show relative and absolute humidity in one line you have add some lines into belchertown.py:

            if obs=='outHumidity':

                humabs_output = getattr(current,'outHumAbs',None)

                if humabs_output is not None:

                    humabs_output = humabs_output.gram_per_meter_cubed

                    station_obs_html += "&nbsp;<span class='border-left'>&nbsp;</span>"

                    station_obs_html += '<span class="outHumAbs">%s</span><!-- AJAX -->' % humabs_output


I added it before the lines

            station_obs_html += "</td>"

            station_obs_html += "</tr>"


In the MQTT configuration in weewx.conf you need to add

            [[[[outHumAbs]]]]

                units = gram_per_meter_cubed


in section [[[inputs]]].

I am not sure if that were all changes.








mh081...@gmail.com

unread,
Mar 14, 2024, 2:43:07 PM3/14/24
to weewx-user
Ok thanks for your Help. Your Hints get me in the right direction.

Thanks

Reply all
Reply to author
Forward
0 new messages