Read temperature on thermistor 10k through Python3 on raspberry pi
Project description
GreenPonik_Thermistor10k.py Library for Raspberry pi
This is the sample code for read temperature with thermistor 10k sensor on i2c bus.
Table of Contents
- GreenPonik_Thermistor10k.py Library for Raspberry pi
- Table of Contents
- Dev workflow
- Installation
- Methods
- Example
- Credits
Dev workflow
create python virtual environnement
python3 -m venv venv
activate venv linux
source venv/bin/activate
activate venv windows
venv\Scripts\activate
install dependencies
pip install -r requirements.txt
build the documentation
TODO
Installation
> git clone https://github.com/GreenPonik/GreenPonik_Thermistor10k.git
cd GreenPonik_Thermistor10k
pip3 install -r requirements.txt
or
> pip install greenponik-thermistor10k
from GreenPonik_Thermistor10k.Thermistor10k import Thermistor10k
Methods
"""
Get temperatue in celcius
"""
def read_temp():
Example
import time
from GreenPonik_Thermistor10k.Thermistor10k import Thermistor10k
if __name__ == "__main__":
th = Thermistor10k()
while True:
temperature = th.read_temp()
print("celcius temp %.3f °c" % temperature)
time.sleep(1)
Credits
Write by Mickael Lehoux, from GreenPonik, 2020
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
Close
Hashes for greenponik-thermistor10k-0.0.15.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4b945fe13540482ba35699e1c7271525f4de9d7366cbefa126d13208129829f |
|
MD5 | b73c2708e5c38b80575548c935556bb7 |
|
BLAKE2b-256 | 4f02390cf178935256fc9af7c5cdc841877c630e55a6022f3bbc7f7760496e54 |
Close
Hashes for greenponik_thermistor10k-0.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c3edeaec7531d28071f39deaa74d2f2a31774ad05411d83735d4b60a349c4af |
|
MD5 | e0b21a40652a81956da0fd85597bb418 |
|
BLAKE2b-256 | 794125a07232431e787ae68108ca34335073c1a70923cf2a56e9eb48290f8fc2 |