Compare commits

..

4 Commits

Author SHA1 Message Date
Jan Mrna
9bb7b9894e Updated README 2023-11-09 22:18:15 +01:00
Jan Mrna
2c1c9f612e Added group to veles metadata 2023-07-21 20:28:49 +02:00
29d35f9c16 Merge pull request 'Adding variation for compatibility with Python3 < 3.10' (#10) from ViktorWalter/pyveles:py39_compat into master
Reviewed-on: #10
2023-07-17 23:39:30 +02:00
Viktor Walter
831a8eba82 Adding variation for compatibility with Python3 < 3.10 2023-07-17 23:38:45 +02:00
3 changed files with 43 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
{
"group": "smart_household",
}

View File

@@ -0,0 +1,37 @@
# Veles Python package
This is a package for reading [Veles Smart Household](#veles-smart-household) sensors and for logging and visualizing data.
## Installation
```
pip install veles
```
Further documentation is a work in progress :)
## Veles Smart Household
This package is part of Veles Smart Household. Goal of this project is to create open hardware and software platform for measuring various quantities, not only related to indoor air quality:
* temperature
* humidity
* atmospheric pressure
* carbon dioxide (CO2)
* carbon monoxide (CO)
* volatile organic compounds (VOC)
* particulate matter (PM - dust particles)
* light intensity
* soil moisture
... and some more!
Sensors are connected either via RS-485 Modbus or wirelessly to central unit. Wireless sensors are currently in development. Central unit may be any anything that can read from the bus: any computer with RS-485 to USB converter (e.g. Raspberry Pi) or an actual PLC. Readout of the sensor is possible via Modbus: either using your own favourite application or using your Python package.
**We want this to be community effort! Come help us make something great!**
### Other Smart Household repositories
* [RHT wired sensor](https://gitea.veleslabs.org/veles_labs/rht_sensor_wired)
* [IAQ wired sensor](https://gitea.veleslabs.org/veles_labs/iaq_sensor_wired)

View File

@@ -3,8 +3,10 @@ from dataclasses import dataclass
from typing import Dict, Any
from abc import ABC, abstractmethod
import sys
py310 = sys.version_info.minor >= 10 or sys.version_info.major > 3
@dataclass(slots=True)
@dataclass(**({"slots": True} if py310 else {}))
class ReadoutErrorCounter:
"""Class used to track readout errors"""