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/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 

Release files for smartmeter-webthing 1.1.9

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.1.9
File Size Uploaded
smartmeter_webthing-1.1.9.tar.gz 11.3 kB Details

Built distribution (wheel)

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

Total release size:23.2 kB

Release files / smartmeter_webthing-1.1.9.tar.gz

Download URL smartmeter_webthing-1.1.9.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ed5cb0e714909ea8cc867a6a315c8bd50fd565225710b37ad5bebdbcdc682369
BLAKE2b-256 checksum
How to use checksums
f5ad24e1c75c8fc48b4716a0607e287b20098f1a85676c6c8c572645c3329d4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

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

Download URL smartmeter_webthing-1.1.9-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a8bc1e99e0d3c3f935c25fa79f5df84510d30768818564935028d793ae4596d
BLAKE2b-256 checksum
How to use checksums
1460b61c67414c4d518b1a5af7a0d9a091d6d833a9222509ce1a234777e7f405
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release history Release notifications | RSS feed

1.2.32

2 release files

1.2.31

2 release files

1.2.30

2 release files

1.2.29

2 release files

1.2.28

2 release files

1.2.27

2 release files

1.2.26

2 release files

1.2.25

2 release files

1.2.24

2 release files

1.2.23

2 release files

1.2.22

2 release files

1.2.21

2 release files

1.2.20

2 release files

1.2.19

2 release files

1.2.18

2 release files

1.2.17

2 release files

1.2.16

2 release files

1.2.14

1 release file

1.2.13

2 release files

1.2.12

2 release files

1.2.11

2 release files

1.2.10

2 release files

1.2.9

2 release files

1.2.8

2 release files

1.2.7

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.10

2 release files

This release

1.1.9 This release

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.0

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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