[RELEASE] WeeWX (weather station) to Hubitat driver

Hello,

I've released a package that provides a direct (local) data connection between WeeWX and Hubitat. The direct connection allows for efficient real-time access to data from your weather station, with no internet connection required.

Depending upon your weather station hardware, the Hubitat will provide access to over 20 attributes from your station:

  • temperature
  • humidity
  • windSpeed
  • windDirection
  • windGustSpeed
  • windGustDirection
  • apptemp
  • heatindex
  • humidex
  • windchill
  • rain
  • rainRate
  • hourRain
  • dayRain
  • rain24
  • barometer
  • dewpoint
  • cloudbase
  • uv
  • radiation
  • THSW

For further detail and installation installations, please see theHubitat device driver page here.

If anyone does a cool dashboard that incorporates information from the driver, I would be very interested to hear from you. I really want a cool dashboard. :blush:

4 Likes

In case anyone is wondering what WeeWX is, I was too:

WeeWX is a free, open source, software program, written in Python, which interacts with your weather station to produce graphs, reports, and HTML pages.

Supported devices list looks good.
http://www.weewx.com/hardware.html

Cool driver, thanks. I have an Ambient Weather station, hopefully it is compatible.

Sorry, it didn't occur to me to describe WeeWX itself. :blush:

WeeWX is a (very) popular system used world wide for uploading personal weather station data to various on-line services. Wunderground is probably the best known service.

To get an idea of how popular WeeWX is, see the station registration map here. There's more stations than show on the map of course--the registry only shows stations that have explicitly enabled the station registry which is off by default.

1 Like

Highly likely. Many of the on-line services, including Wunderground, use derivatives of the Ambient Protocol for posting data.

See the listing of compatible stations here:
http://www.weewx.com/hardware.html
Note that you have to look carefully at the subheadings, as some brands (including Ambient) are actually made by a different company (mainly Fine Offset).

Thank you for doing this integration the proper way...without writing a file every X minutes! Took less than a minute to install both sides of the connection, and is now showing the rain/wind as Tropical Storm Fay approaches the Hudson Valley of NY State in my Hubitat device screen. 0.96" of rain so far, and the barometer is down to 29.702 inHg (1005.8 mb).

WeeWX 3.9 and Python 2 if you're curious. My WeeWX 4.x / Python 3 test box is offline right now, so I haven't tested against it yet.....

To others thinking whether to get WeeWx. If you already have Raspberry Pi (and who doesn't?), then this doesn't add much load to it. If you don't have a Raspberry Pi, why not get one?

1 Like

My Ambient Weather station is hooked up to their own service plus WUnderground and unfortunately, in all that, I had never stumbled on this project. Totally new to me. Looking forward to playing with it.

As an aside, anyone who is looking for a weather station... Davis may be the Cadillac, but Ambient Weather sure seems to be the Honda. I bought one used for $20 off Craigslist. It had been in use on the seller's roof for several years and is now still going strong for me.

I think what I have would cost about $200 to replace with the new version. That isn't cheap... but it is 10x better than the Oregon Scientific/La Crosse junk I had before, which barely lasted a season... and a whole lot cheaper than Davis gear. If my Ambient Weather station blew away to Oz I'd buy a new one the next day.

That triggered a memory... I had to go back and look--the last code I did for WeeWX was mid 2014 to address clock set issues with the Davis driver. It's been a long time. FWIW, I'm still using Davis equipment, but I'm not sure I would them Cadillacs. :slight_smile:

1 Like

Hi @dennypage,

I finally received my Tempest and setup weewx, everything working fine with Belchertown skin that I found out thanks to a post by @vreihen.

Now, I wanted a quick way to check weewx data from HE, and I installed your driver, pretty straightforward and simple installation/configuration, but I can't seem to receive any data, the device weewx I configured on HE has no activity. So I checked weewx logs to see what was going on:

WeeWX: 4.1.1
HE IP: 10.1.10.37
WeeWX IP: 10.1.10.73
Latest version of your driver, just installed. I enabled debug in the driver's options.

[[Hubitat]]
    server_url = http://10.1.10.37:39501
    post_interval = 60
    log_success = True
    target_unit = METRICWX

Oct 12 16:03:45 ubuntu weewx[1135169] DEBUG weewx.engine: Loading service user.hubitat.Hubitat
Oct 12 16:03:45 ubuntu weewx[1135169] INFO user.hubitat: version 1.0
Oct 12 16:03:45 ubuntu weewx[1135169] INFO user.hubitat: Data will be posted to http://10.1.10.37:39501
Oct 12 16:03:45 ubuntu weewx[1135169] DEBUG weewx.engine: Finished loading service user.hubitat.Hubitat
Oct 12 16:03:47 ubuntu weewx[1135169] DEBUG user.hubitat: url: http://10.1.10.37:39501
Oct 12 16:03:47 ubuntu weewx[1135169] DEBUG user.hubitat: post_body: {'windSpeed': '0.1', 'windDirection': '051', 'rainRate': '0.00'}
Oct 12 16:04:46 ubuntu weewx[1135169] DEBUG user.hubitat: url: http://10.1.10.37:39501
Oct 12 16:04:46 ubuntu weewx[1135169] DEBUG user.hubitat: post_body: {'windSpeed': '1.7', 'windDirection': '004', 'rainRate': '0.00'}
Oct 12 16:05:46 ubuntu weewx[1135169] DEBUG user.hubitat: url: http://10.1.10.37:39501
Oct 12 16:05:46 ubuntu weewx[1135169] DEBUG user.hubitat: post_body: {'windSpeed': '1.8', 'windDirection': '009', 'rainRate': '0.00', 'hourRain': '0.00', 'dayRain': '0.00', 'rain24': '0.00'}
Oct 12 16:06:46 ubuntu weewx[1135169] DEBUG user.hubitat: url: http://10.1.10.37:39501
Oct 12 16:06:46 ubuntu weewx[1135169] DEBUG user.hubitat: post_body: {'windSpeed': '1.7', 'windDirection': '018', 'rainRate': '0.00', 'hourRain': '0.00', 'dayRain': '0.00', 'rain24': '0.00'}
Oct 12 16:07:46 ubuntu weewx[1135169] DEBUG user.hubitat: url: http://10.1.10.37:39501
Oct 12 16:07:46 ubuntu weewx[1135169] DEBUG user.hubitat: post_body: {'windSpeed': '3.0', 'windDirection': '356', 'rainRate': '0.00', 'hourRain': '0.00', 'dayRain': '0.00', 'rain24': '0.00'}
Oct 12 16:08:46 ubuntu weewx[1135169] DEBUG user.hubitat: url: http://10.1.10.37:39501
Oct 12 16:08:46 ubuntu weewx[1135169] DEBUG user.hubitat: post_body: {'windSpeed': '0.9', 'windDirection': '025', 'rainRate': '0.00', 'hourRain': '0.00', 'dayRain': '0.00', 'rain24': '0.00'}
Oct 12 16:09:47 ubuntu weewx[1135169] DEBUG user.hubitat: url: http://10.1.10.37:39501
Oct 12 16:09:47 ubuntu weewx[1135169] DEBUG user.hubitat: post_body: {'windSpeed': '0.8', 'windDirection': '319', 'rainRate': '0.00', 'hourRain': '0.00', 'dayRain': '0.00', 'rain24': '0.00'}
Oct 12 16:10:47 ubuntu weewx[1135169] DEBUG user.hubitat: url: http://10.1.10.37:39501
Oct 12 16:10:47 ubuntu weewx[1135169] DEBUG user.hubitat: post_body: {'windSpeed': '1.1', 'windDirection': '029', 'rainRate': '0.00', 'hourRain': '0.00', 'dayRain': '0.00', 'rain24': '0.00'}
Oct 12 16:11:49 ubuntu weewx[1135169] DEBUG user.hubitat: url: http://10.1.10.37:39501
Oct 12 16:11:49 ubuntu weewx[1135169] DEBUG user.hubitat: post_body: {'windSpeed': '1.1', 'windDirection': '015', 'rainRate': '0.00', 'hourRain': '0.00', 'dayRain': '0.00', 'rain24': '0.00'}
Oct 12 16:12:49 ubuntu weewx[1135169] DEBUG user.hubitat: url: http://10.1.10.37:39501
Oct 12 16:12:49 ubuntu weewx[1135169] DEBUG user.hubitat: post_body: {'windSpeed': '0.0', 'rainRate': '0.00', 'hourRain': '0.00', 'dayRain': '0.00', 'rain24': '0.00'}

So I guess data is being sent, even if I only see WInd and Rain data being sent that seem a bit strange. I'm using @vreihen udp driver to get data from the Tempest into weewx, and it is working fine, I can read all the sensor's data available and then I use belchertown skin to publish it, so I know the system's working fine.

And this is what I see on HE on your driver's device page:


In HE logs I see nothing, even if debug's enabled.

Any hint on what the problem could be?

Thanks a lot for your work on this.

1 Like

Do you see anything in the Events tab?

Do you have anything else related to the Hubitat running on 10.1.10.73?

You cut out the Device Information pane. Can you show that please?

Nope.

No. This is the first "integration".

Sure.

The Device Network ID is incorrect. Press Save Preferences in the Preferences pane. Do you receive an error? Check the logs when you save.

No errors either with Save Preferences nor with Save Device.

I also recreated the device, reinstalling it from scratch before writing my post. Same thing.

I can try another time.

I recreated it, third time. Isn't the network ID a sort of unique # that gets created when you add a new device? It's not tied to the driver, since it's created before associating the driver, right?

There must be some form of error. The device id is set when you save preferences. The device ID should show 0A010A49. Do you have trailing space in the IPv4 address?

You should see entries in the log when you save the preferences. Do you?

At a minimum, you should see

Updated preferences

followed by either

Invalid IPv4 address for WeeWX server

or

WeeWX Device Network ID is 0A010A49

No spaces.

Here's what I see, finally. :slight_smile:

But I don't see another device with 0A010A49 as DNI. There are 2 others that start with 0A010A though.

This is kinda what I expected. Hubitat only allows one device per IP address. Somewhere, you have another device defined for that IP address.

You should be able to find it by going into the devices tab and sorting on DNI.