Skip to content

Release v6.2

Choose a tag to compare

@chaunceygardiner chaunceygardiner released this 25 Jul 01:14

weewx-loopdata 6.2

A small quality release for the sample skin: when the instrument panel
cannot fetch its loop data, it now says so on the page instead of sitting
silently dead. Drop-in upgrade — install over 6.x, no config changes.
(The loopdata service itself is unchanged from 6.1.)

What's new

  • A failed loop-data fetch shows up in the LIVE indicator. When the
    poll for loop_data_file returns anything but the json — the classic
    case being the web server's 404 page, because loopdata writes outside
    HTML_ROOT (say /dev/shm) and nothing on the web server serves that
    path — the indicator now reads NO DATA (HTTP 404) — check loop_data_file (or BAD DATA — check loop_data_file for a response
    that isn't json). A network-level failure shows OFFLINE. Previously
    the only trace was a JSON.parse error in the browser console, and the
    panel just looked dead. A later successful poll rewrites the indicator
    to LIVE, as always. (weewx-celestial 7.1 ships the same change for its
    Geocentric page.)

Requirements

  • WeeWX 4 or 5
  • Python 3.7 or later
  • No third-party Python packages required

Installing/upgrading

Download weewx-loopdata.zip
and install it over your existing copy, then restart weewxd:

weectl extension install weewx-loopdata.zip

(or wee_extension --install weewx-loopdata.zip on WeeWX 4).