thermometer library for IoT
Project description
===
python thermometers
===
idea: read data from various thermometers
reality: we have one dallas 18s20 connected via 1wire what is mostly used on RaspberryPi
PULL REQUEST FOR ANOTHER DEVICES ARE WELCOME
supported logger
----------------
'thermometer.d18s20.w1' write data from thermometer to logger as list of values, this allow to use i.e. fluent for
store data into graphite or another type of data storage.
instalation
------------
```
pip install thermometer
```
basic usage
-----------
```
>>> from thermometer.dallas_18s20 import w1
>>> w = w1.dallas_18s20()
>>> w.get_temps_aliases()
[('870155007fff0c108a', 24.437), ('080255007fff0c10a5', 32.5)]
```
alias usage
-----------
```
>>> from thermometer.dallas_18s20 import w1
>>> w = w1.dallas_18s20()
>>> w.alias('870155007fff0c108a', 'temp1')
>>> w.get_temps_aliases()
[('temp1', 24.437), ('080255007fff0c10a5', 32.5)]
```
python thermometers
===
idea: read data from various thermometers
reality: we have one dallas 18s20 connected via 1wire what is mostly used on RaspberryPi
PULL REQUEST FOR ANOTHER DEVICES ARE WELCOME
supported logger
----------------
'thermometer.d18s20.w1' write data from thermometer to logger as list of values, this allow to use i.e. fluent for
store data into graphite or another type of data storage.
instalation
------------
```
pip install thermometer
```
basic usage
-----------
```
>>> from thermometer.dallas_18s20 import w1
>>> w = w1.dallas_18s20()
>>> w.get_temps_aliases()
[('870155007fff0c108a', 24.437), ('080255007fff0c10a5', 32.5)]
```
alias usage
-----------
```
>>> from thermometer.dallas_18s20 import w1
>>> w = w1.dallas_18s20()
>>> w.alias('870155007fff0c108a', 'temp1')
>>> w.get_temps_aliases()
[('temp1', 24.437), ('080255007fff0c10a5', 32.5)]
```
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
thermometer-0.1.7.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for thermometer-0.1.7-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a9f3a9a6185c1fb897737ff3e0f0ce1d3d788a6c539862c3f3023995f467637 |
|
MD5 | b66f50e0aa95428a97a9c1b28396886b |
|
BLAKE2b-256 | 384076bf25f6f778f81f28d8b7d0a2ae15d4b6b3b6df21f5d068ab3371aaaa6c |