×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

New WeeWX JSON driver

  • Posts: 216
  • Thank you received: 120
PR for a new INDI weather driver that retrieves data from a WeeWX weather instance using the WeeWX JSON plugin.

github.com/teeks99/weewx-json

github.com/indilib/indi-3rdparty/pull/598
The following user(s) said Thank You: Jasem Mutlaq
1 year 8 months ago #84036

Please Log in or Create an account to join the conversation.

  • Posts: 200
  • Thank you received: 18

Replied by Thomas Mason on topic New WeeWX JSON driver

I am setting up to use weewx for my netatmo weather station. I have the netatmo setup working with weewx and can view the data correctly formatted on the weewx webpage. Installed the weewx-json plugin and it is generating a json file, first bit is:

thomas@plutoniborg:~/Downloads$ cat /var/www/html/weewx/weewx.json
{
"station":
{
"location": "Santa Fe, NM",
"latitude": 35.67415,
"longitude": -105.92701,
"altitude (meters)": 2200.0,
"link": ""
},
"generation":
{
"time": "Sat, 20 Aug 2022 13:00:00 MDT",
"generator": "weewx 4.8.0"
},
"current":
{
"temperature": {"value": 15.799999999999999, "units": "°C"},
"dewpoint": {"value": 12.916316531130608, "units": "°C"},
"humidity": {"value": 83.0, "units": "%"},
"heat index": {"value": 15.602777777777774, "units": "°C"},
"wind speed": {"value": 8.000019883927573, "units": "km/h"},
"wind gust": {"value": 23.000057166291775, "units": "km/h"},
"wind direction": {"value": 244.0, "units": "°"},
"wind chill": {"value": 15.799999999999999, "units": "°C"},
"rain rate": {"value": 0.08080000000000001, "units": "cm/h"},
"inside temperature": {"value": 23.7, "units": "°C"},
"inside humidity": {"value": 46.0, "units": "%"},
"void_end": null
},
However when I try and add the weather device it doesn't appear as an option. I can add it as an Aux but it doesn't seem to work.

[2022-08-20T13:10:35.374 MDT INFO ][ org.kde.kstars.ekos] - "Starting INDI services..."
[2022-08-20T13:10:35.394 MDT WARN ][ org.kde.kstars.indi] - Driver "WeewxJSON" failed to start. Retrying in 5 seconds...
[2022-08-20T13:10:40.146 MDT WARN ][ org.kde.kstars.indi] - Driver "WeewxJSON" failed to start. Retrying in 5 seconds...
[2022-08-20T13:10:45.105 MDT WARN ][ org.kde.kstars.indi] - Driver "WeewxJSON" failed to start. Retrying in 5 seconds...

Under Aux it says available as a remote drive - to use locally install the corresponding driver but that seems not to work:

thomas@plutoniborg:~/Downloads$ sudo apt-get install indi-weewx-json
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package indi-weewx-json

running on ubuntu 22.04 with current 3.6 kstars and "indi-full is already the newest version (1.9.7+202207290717~ubuntu22.04.1)"
Last edit: 1 year 7 months ago by Thomas Mason.
1 year 7 months ago #85511

Please Log in or Create an account to join the conversation.

  • Posts: 216
  • Thank you received: 120

Replied by Rick Bassham on topic New WeeWX JSON driver

Hey Thomas, I can't see anything that would be causing the issue you describe at first glance. Is your weather station on a publicly accessible site? That would make debugging easier for me. Did you build and install directly from source?

Also can you provide the output of:
cat ~/.indi/WeewxJSON_config.xml

It doesn't look like this driver is available on the PPA yet.
1 year 7 months ago #85512

Please Log in or Create an account to join the conversation.

  • Posts: 200
  • Thank you received: 18

Replied by Thomas Mason on topic New WeeWX JSON driver

the xml file doesn't exist which I guess reflects the absence of the driver. Not sure how the timing fits for ppa but it works fine when I build manually.

Since this enables resolution of a Wish List request I posted a description of how to get it working with netatmo:

indilib.org/forum/wish-list/2917-support...eather-stations.html
Last edit: 1 year 7 months ago by Thomas Mason.
1 year 7 months ago #85513

Please Log in or Create an account to join the conversation.

Time to create page: 0.595 seconds