Wiresense.py
Client libary for Wiresense
🛠️Features
- Send data to the wiresense frontend
- Works with almost every sensor
- Automaticly saved data into csv files
📖Usage
Install the libary with pip:
pip install wiresense
Import the libary and configure it
from wiresense import Wiresense
await Wiresense.config({
"port": 8080
})
Setup a new sensor (group)
def readSensorData():
# Replace with you actual sensor reading logic
return {
"Pressure": random.randint(0, 10),
"Humidity": random.randint(0, 10),
"Temperature": random.randint(0, 10),
}
sensor_1 = Wiresense('Fake-BME280', readSensorData, './data/sensor1_data.csv')
Execute a sensor (Send to frontend and save to file)
await sensor_1.execute()
Please note that Wiresense is an asynchronous library and requires execution within an asyncio event loop. Make sure to run the main function using asyncio.run() or within an existing asyncio application.
📜License
✍️Authors
Metadata
Release files for wiresense 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wiresense-1.0.2.tar.gz | 7.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wiresense-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.6 kB
Release files / wiresense-1.0.2.tar.gz
| Download URL | wiresense-1.0.2.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0adc1cbf5e248bba91c6433ecb6eca2c12a944449ddcaa208cd858cec7a4d00d
|
|
BLAKE2b-256 checksum How to use checksums |
cadc0dd361755bb4c4f8846729347a37a440f0e275a0561b29de51547f0c2937
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.4
|
Release files / wiresense-1.0.2-py3-none-any.whl
| Download URL | wiresense-1.0.2-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ca2a799f6764c8c46d3bf613825c3857b971acdf2e845ec548e8eedcb843798e
|
|
BLAKE2b-256 checksum How to use checksums |
63ef004629f4a890fbdbe8d3f9b3934e4307061dec12be63baf30a40f1e479b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.4
|