Skip to main content

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/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0051-if00-port0

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/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0051-if00-port0

Metadata

Release files for smartmeter-webthing 1.2.32

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smartmeter-webthing 1.2.32
File Size Uploaded Provenance
smartmeter_webthing-1.2.32.tar.gz 12.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for smartmeter-webthing 1.2.32
File Interpreter ABI Platform
smartmeter_webthing-1.2.32-py3-none-any.whl Python 3 none any Details

Total release size: 26.5 kB

Release files / smartmeter_webthing-1.2.32.tar.gz

Download URL smartmeter_webthing-1.2.32.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
22f8c431294f4410c089c385d4a7b062429da591b0364a41e248e65c1efb38e2
BLAKE2b-256 checksum
How to use checksums
7de50c667ad1997bce71520ad14f7b12121f7ebddeffa25d60c8a3c0c3f00d25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / smartmeter_webthing-1.2.32-py3-none-any.whl

Download URL smartmeter_webthing-1.2.32-py3-none-any.whl
Size 13.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf29de03f12b474b3f2602da480c4c44f964dddef4e9023f25fffdb110f4a98d
BLAKE2b-256 checksum
How to use checksums
e32df7b6b1427c764e0154ee9f72b5b49e9e9ae5ec8c2c205236e5cf41dcb293
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Security for smartmeter-webthing 1.2.32

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2.32 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page