Skip to content

fixtheatm/Pi_code

Repository files navigation

Raspberry Pi code for a PhotoBioReactor station

This is part of the Fixing the Atmosphere project and education materials. It contains the code to read bioreactor sensors connected to a Raspberry Pi, and send the information to the web site for viewing.

Programs, Scripts, Tools

genericsensor.py
Base class inherited by all concrete sensors.
sensor_gas.py
Monitor and report discrete gas (oxygen) flow steps.
sensor_light.py
Report instantaneous light intensity measurements.
sensor_temperature.py
Report instantaneous temperature measurements.
temperature.py
import file that specifies the 1-wire device id for the temperature sensor. Automatically [re] generated
photobioreactor.py
import file that specifies the id for the local PhotoBioReactor station.
send_json_to_server.sh
Script to be run regularly to transfer collected reading to the website database.
make3jsonposts.sh
A test script to generate fake data for all of the sensor. This can be used when testing sending of data to the website.
makejsondata.sh
A test script to generate fake data for a single specified sensor.
master_datavalue.json
A template used to generate fake data in the (website) expected json format.
crontab.txt
scheduled task entries entered via `crontab -e`. These end up in /var/spool/cron/crontabs/pi, but that file should not be modified directly. The information can also be entered using `gnome-schedule`

Reference information sources

About

RaspBerry Pi Code for BioReactors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published