Changes

Jump to navigation Jump to search
24 bytes removed ,  09:50, 11 October 2022
Line 20: Line 20:  
You can read temperature and humidity values with any software that connects to a serial port. Most conveniently you can use the [https://pypi.python.org/pypi/RuSocSci RuSocSci] library in python.  Here is a little example how to write a script that reads the temperature and humidity and writes it to the standard output (console):
 
You can read temperature and humidity values with any software that connects to a serial port. Most conveniently you can use the [https://pypi.python.org/pypi/RuSocSci RuSocSci] library in python.  Here is a little example how to write a script that reads the temperature and humidity and writes it to the standard output (console):
 
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
  #!/usr/bin/env python
+
  #!/usr/bin/env python3
# -*- coding: utf-8 -*-
   
  import temperaturehumidity
 
  import temperaturehumidity
 
  th = temperaturehumidity.TemperatureHumidity()
 
  th = temperaturehumidity.TemperatureHumidity()

Navigation menu