Smartmeter WebThing
Project description
smart meter webthing
A smart meter web thing connector
This project provides a smart meter webthing API. It provides the software to connect an IR USB sensor
The smart meter webthing package exposes a http webthing endpoint supporting the smart meter consumption values via http. E.g.
# webthing has been started on host 192.168.0.23
curl http://192.168.0.23:7122/properties
{
"current_power": 389,
"produced_power_total": 3314.7,
"consumed_power_total": 259784.2
}
To install this software you may use PIP package manager such as shown below
sudo pip install smartmeter_webthing
After this installation you may start the webthing http endpoint inside your python code or via command line using
sudo smartmeter --command listen --port 7122 --sport /dev/ttyUSB-meter
Here, the webthing API will use the local port 7122. Additionally, the device address of the IR sensor has to be set. To configure the device address refer setup device
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 time. Starting the server manually using the listen command as shown above is no longer necessary.
sudo smartmeter --command register --port 7122 --sport /dev/ttyUSB-meter
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for smartmeter_webthing-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a546b5793274f39fcbfd0a7e64a8608cdfc3d657ccd7b380eaeae3f6832ccbe |
|
MD5 | 4a1ddd01aaacf832e8eac70648293ec5 |
|
BLAKE2b-256 | dddf530992ac2e3a17634cee81d859a7934f412acccf2dd491e0cc8644da8bc3 |
Hashes for smartmeter_webthing-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f266744a441a25c8b93f6832ad9d3050b2979faa5fda0485e1bb75e40a90cef |
|
MD5 | bbe6007c1fd26271b5205698fad28313 |
|
BLAKE2b-256 | c1e8e259bed4f45cb5cac28bc4290e47f1fe6f98167500cb8edc4ae3fccf316a |