Skip to main content

Smartmeter WebThing

Project description

smart meter webthing

A webthing connector for smart meters

This project provides a smart meter webthing API. It provides the software to connect an IR USB sensor

The smart meter webthing package provides an http webthing endpoint that supports smart meter consumption values over 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 can use the PIP package manager as shown below

sudo pip install smartmeter_webthing

After installation, you can start the webthing http endpoint in your Python code or from the command line by typing

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 must be set. To configure the device address, see setup device.

As an alternative to the list command, you can also use the register command to register and start the webthing service as a systemd device. This way, the webthing service is started automatically at boot time. Starting the server manually with the listen command, as shown above, is no longer necessary.

sudo smartmeter --command register --port 7122 --sport /dev/ttyUSB-meter 

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

smartmeter_webthing-1.2.2.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

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

smartmeter_webthing-1.2.2-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file smartmeter_webthing-1.2.2.tar.gz.

File metadata

  • Download URL: smartmeter_webthing-1.2.2.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for smartmeter_webthing-1.2.2.tar.gz
Algorithm Hash digest
SHA256 121aa852293fec5a6755d2189efee6e169ef09eb7fca233e30a43c5ccbb9697d
MD5 b209eea61fb058b0424d1f53611bb889
BLAKE2b-256 09efd2f81543f865cf533704ea8236d3fe4842c65d21508965f3e24bd5d72013

See more details on using hashes here.

File details

Details for the file smartmeter_webthing-1.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for smartmeter_webthing-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8f7dbd25abbb1e28ef2f106f4c0cbfa1771ebc2fcca8a3057d80f55e9da05c59
MD5 a417bfb7fbd05755a37799e73196ba9a
BLAKE2b-256 caa1736fbab32e05bf966a1f5fac3be37490f07012610f919c6adf5f16478be3

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