Skip to main content

A web connected Eltako windsensor measuring wind speed on Raspberry Pi

Project description

pi_eltakows_webthing

A web connected Eltako windsensor measuring wind speed on Raspberry Pi

This project provides a webthing API to a Eltako windsensor running on a Raspberry Pi. As a webthing, the Eltako windsensor can be discovered and used by home automation systems or custom solutions supporting the webthing API.

The pi_eltakows_webthing package exposes an http webthing endpoint which supports reading the wind speed via http. E.g.

# webthing has been started on host 192.168.0.23

curl http://192.168.0.23:7050/properties 
{
   "windspeed": 2.6
}

Regarding the RaspberryPi/Eltako windsensor hardware setup and wiring please refer tutorials such as Measure Wind Speed with Eltako Windsensor and Win10 IoT Core

To install this software you may use Docker or PIP package manager such as shown below

Docker approach

sudo docker run --privileged -p 7050:7050 -e gpio=25 grro/pi_eltakows_webthing:0.2.0

PIP approach

requires python 3.x

sudo pip install pi_eltakows_webthing

After this installation you may start the webthing http endpoint inside your python code or via command line using

sudo eltakows --command listen --port 7050 --gpio 25

Here, the webthing API will be bind ton port 7050 and be connected to the Eltako windsensor reed switch

Alternatively to the listen command, you can use the register command to register and start the webthing service as systemd unit. By doing this the webthing service will be started automatically on boot. Starting the server manually using the listen command is no longer necessary.

sudo eltakows --command register --port 7050 --gpio 25

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pi_eltakows_webthing-1.0.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pi_eltakows_webthing-1.0.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file pi_eltakows_webthing-1.0.0.tar.gz.

File metadata

  • Download URL: pi_eltakows_webthing-1.0.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pi_eltakows_webthing-1.0.0.tar.gz
Algorithm Hash digest
SHA256 afe944f0705f369be067209c3c729823a12bdae78849599c8b668b388b920acd
MD5 81efe147f18dab2bfd08d756bacbe7ff
BLAKE2b-256 fecb151adfe50a9619a04ebc8925cb90ea2c6336351e7873210d046968ae9c91

See more details on using hashes here.

File details

Details for the file pi_eltakows_webthing-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pi_eltakows_webthing-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for pi_eltakows_webthing-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e6c55d6ae5ef98f026f2a0c210f9bde93a96aee91d3f377bec594cde3642328
MD5 cbf1241a3c9d4f7a43a84e293f77c955
BLAKE2b-256 ad15d545a77ffb976acc70c551f88b71f70594cc5747c4e5a21a0dd5e5077510

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page