Client library for Wiresense
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wiresense-1.0.2.tar.gz.
File metadata
- Download URL: wiresense-1.0.2.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0adc1cbf5e248bba91c6433ecb6eca2c12a944449ddcaa208cd858cec7a4d00d
|
|
| MD5 |
e21beaab702636680b28ea9733f12fb9
|
|
| BLAKE2b-256 |
cadc0dd361755bb4c4f8846729347a37a440f0e275a0561b29de51547f0c2937
|
File details
Details for the file wiresense-1.0.2-py3-none-any.whl.
File metadata
- Download URL: wiresense-1.0.2-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca2a799f6764c8c46d3bf613825c3857b971acdf2e845ec548e8eedcb843798e
|
|
| MD5 |
dc7f50f34959143158e1312965011739
|
|
| BLAKE2b-256 |
63ef004629f4a890fbdbe8d3f9b3934e4307061dec12be63baf30a40f1e479b0
|