Skip to content

wetfish/ecs

Repository files navigation

ecs

Environmental control systems

sensorlogger.py

Super basic instructions

  • Write raspberry pi OS to an SD card
  • Run sudo apt update
  • Then sudo apt install python3-pip
  • Then pip3 install -r requirements.txt
  • Then python3 simplelogger.py 26 dht11

Installation and usage

Requires python 3

Requires 1-wire interface to be enabled in raspi-config for ds18b20 sensor https://www.raspberrypi-spy.co.uk/2018/02/enable-1-wire-interface-raspberry-pi/

To install dependencies:

pip install -r requirements.txt

Usage:

python3 sensorlogger.py [GPIO pin #] [Sensor type] {-f output filename}

GPIO pin # and sensor type required. When -f is used, an output filename can be specified for the log file, defaults to [sensorname].log when -f is not used

GPIO pin # is the BCM pin #, not the board pin # https://raspberrypi.stackexchange.com/questions/12966/what-is-the-difference-between-board-and-bcm-for-gpio-pin-numbering

Sensor type is all lower case. dht11, dht22, or ds18b20

quickcsvplotter.py

Plots the data collected by sensorlogger.py

Usage:

python3 quickcsvplotter.py [csv filename 1] [csv filename 2] ... [csv filename n]

Providing filenames in command line is optional. If no filenames are specified, all csvs in current directory will be plotted.

About

Environmental control systems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages