Skip to content

Translates serial data from arduino into api requests, and relays responses

Notifications You must be signed in to change notification settings

Olin-Hydro/pi-peline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pi-peline

This is an tool to facilitate communicate between hydro-api and circadia. This code will run on a raspberry pi, and act as a portal to the world wide web for our arduino running circadia.

  • PySerial is used to communicate over usb between the arduino and the pi
  • Messages sent from circadia will be mapped/transformed into GET and POST requests, and sent to hydro-api
  • The response from hydro-api will be sent back to circadia

Setup

Create a virtual environment called venv, enter it, and install requirements

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Set required environment variables

source set_env_vars.sh

About

Translates serial data from arduino into api requests, and relays responses

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published