Skip to content

Commit

Permalink
Merge branch 'master' of github.com:grebleem/WeatherLinkLiveUDP
Browse files Browse the repository at this point in the history
  • Loading branch information
grebleem committed Jun 24, 2020
2 parents c64fe08 + b37b88b commit bf6c872
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 1 deletion.
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,52 @@ Weewx Driver for The WeatherLink Live (WLL). It implements a HTTP interface for
Also it collects a real-time 2.5 sec broadcast for wind speed and rain over UDP port 22222.

[See Davis weatherlink-live-local-api](https://weatherlink.github.io/weatherlink-live-local-api/)

To see a live demo of this plugin in vist [meteo-otterlo.nl](https://meteo-otterlo.nl), it features the [Belchertown weewx skin](https://github.com/poblabs/weewx-belchertown#belchertown-weewx-skin) from [Pat O'Brien](https://github.com/poblabs) with a MQTT broker to display the 2.5 seconds wind and rain data.

### Installation

1) Download the driver

```
wget -O weatherlinkliveudp.zip https://github.com/grebleem/*************/archive/master.zip
```

2) Install the driver

```
sudo wee_extension --install weatherlinkliveudp.zip
```

3) Set the `station_type` to `WeatherLinkLiveUDP` and modify the `[WeatherLinkLiveUDP]` stanza in `weewx.conf`:
```
[Station]
# Set the type of station.
station_type = WeatherLinkLiveUDP
```
```
[WeatherLinkLiveUDP]
wll_ip = 192.168.1.47
poll_interval = 15 # number of seconds
ISS_id = 1
wind_id = 4
driver = user.weatherlinkliveudp
```

4) Restart WeeWX

```
sudo /etc/init.d/weewx restart
```

Note: The driver requires the Python `requests` library. To install it:

```
sudo apt-get update
sudo apt-get install python-requests
```
or
```
pip install requests
```
24 changes: 24 additions & 0 deletions install.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Installer file for WeatherLink Live (WeatherLinkLiveUDP) driver for WeeWX
# Copyright 2020 Bastiaan Meelberg
# Distributed under the terms of the GNU Public License (GPLv3)

from setup import ExtensionInstaller

def loader():
return WLLInstaller()

class WLLInstaller(ExtensionInstaller):
def __init__(self):
super(WLLInstaller, self).__init__(
version="0.1",
name='wll',
description='Periodically poll weather data from a WeatherLink Live device',
author="Bastiaan Meelberg",
config={
'WeatherLinkLiveUDP': {
'host': '1.2.3.4',
'poll_interval': 15,
'driver': 'user.weatherlinkliveudp'
}
},
files=[('bin/user', ['bin/user/weatherlinkliveudp.py'])])
2 changes: 1 addition & 1 deletion user/WeatherLinkLiveUDP.py → user/weatherlinkliveudp.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,4 +444,4 @@ def Check_UDP_Broascast(self):
# }]
# },
# "error":null }
#
#

0 comments on commit bf6c872

Please sign in to comment.