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.1.7.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

pi_eltakows_webthing-1.1.7-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pi_eltakows_webthing-1.1.7.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for pi_eltakows_webthing-1.1.7.tar.gz
Algorithm Hash digest
SHA256 ef013816627f749f187d8573421c52fcc452471dd156d9632ef6146a5e2b49b8
MD5 57e55d4d69b493d9dce0efcebafa16ef
BLAKE2b-256 7daf0f18facd1888d8d3153b172afa64f50d5846428eff3e2996e9c1ed2f63b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pi_eltakows_webthing-1.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6bdbdce67d4aa369bb6733cb99a501813f03f3b87e0a1de53f7375c53d8808a8
MD5 7fade38d358e0d691c9b06d3e5995541
BLAKE2b-256 b6119b96b27d83bf3fd3d00f84693f73fa02e6e41515b80e097cd78500209f61

See more details on using hashes here.

Supported by

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