Skip to main content

Read temperature on thermistor 10k through Python3 on raspberry pi

Project description

Quality Gate Status Maintainability Rating

Lines of Code Duplicated Lines (%)

Reliability Rating Security Rating Vulnerabilities

Upload Python Package Python package

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

greenponik-thermistor10k-0.0.16.tar.gz (36.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

greenponik_thermistor10k-0.0.16-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file greenponik-thermistor10k-0.0.16.tar.gz.

File metadata

  • Download URL: greenponik-thermistor10k-0.0.16.tar.gz
  • Upload date:
  • Size: 36.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for greenponik-thermistor10k-0.0.16.tar.gz
Algorithm Hash digest
SHA256 07991e3341d6bcf0796a6142e815e67abd4b217f52403e574004d45026936abf
MD5 1f38945f7eff0104c85ff386333d57ae
BLAKE2b-256 37c8cabdf65c894fd686955e162bca32ffa52560d1af7e5dea0fd96250c0e214

See more details on using hashes here.

File details

Details for the file greenponik_thermistor10k-0.0.16-py3-none-any.whl.

File metadata

  • Download URL: greenponik_thermistor10k-0.0.16-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for greenponik_thermistor10k-0.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 d990ebe8c5ffeb93a6a8749667ecdb56a87f775bcb8a97dc9d13ea1f92f8abcb
MD5 bc4c9208ad0f0998419ebd303a99208b
BLAKE2b-256 45daed2097a751b452df3e087c7ca4c06e3eaaf392a5f901962f274f82fac05d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page