Simulation plugin for Juham™
Overview
This package provides simulation classes for water and power meters. It is designed for testing and development of IoT applications that use MQTT-based sensors. The simulations generate realistic, time-based data that can be published to a broker without requiring physical devices.
WaterMeterSim
Description: Simulates a water meter sensor.
Functionality:
- Generates water consumption readings (
active_liter_lpmand cumulativetotal_liter). - Publishes readings to a configurable MQTT topic at a specified interval.
- Supports integration into threaded applications.
PowerMeterSim
Description: Simulates a power/energy meter sensor.
Functionality:
- Generates active power readings for three phases and total consumption.
- Publishes readings to a configurable MQTT topic at a specified interval.
- Supports integration into threaded applications.
Installation
-
Install
.. code-block:: bash
pip install juham-simulation
-
Configure
To configure edit the *.json configuration files to match your network and
desired reading frequency in seconds.
.. code-block:: json
{
"update_interval": 60
}
Metadata
Release files for juham-simulation 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| juham_simulation-0.1.3.tar.gz | 11.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| juham_simulation-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.0 kB
Release files / juham_simulation-0.1.3.tar.gz
| Download URL | juham_simulation-0.1.3.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
862abc89c9671d59cd547aae5a394ce2db6edf9f3ebe397ca8779aae3f6c556d
|
|
BLAKE2b-256 checksum How to use checksums |
ae9a35aaf1b8322a020753fccdeb5a00d3c4caf1643c6cc0db097aa026395dc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / juham_simulation-0.1.3-py3-none-any.whl
| Download URL | juham_simulation-0.1.3-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a2358f589e49b8300de2f6b21e8fa33f4e8f67053101657fcfd153ca747a2af0
|
|
BLAKE2b-256 checksum How to use checksums |
bd256a026e9fa0325478765bf94b95d83a1a1a04cec206ced645c2c6faa192e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|