chrisfrederickson / firepi

A remote web server to control a temperature chamber at Rowan University with a Raspberry Pi sending Modbus commands.
MIT License
0 stars 0 forks source link

Firepi

A remote web server to control a temperature chamber at Rowan University with a Raspberry Pi sending MODBUS commands.

Setup

Here's how to set up the system:

API

Firepi uses a RESTful API

Get and put a temperature

/api/v1/temp

Set a temperature curve

The temperature curve is represented on the frontend and backend as a CSV file of 2 columns and n rows. The second column is the length of time in seconds at a temperature given by the first column.

30 1000
40 3000
-10 1000
70 5000

The curve can be set through a POST request containing the CSV data as a string.

/api/v1/tempcurve

Events

Users can request to use the chamber at certain times using an event system through Google Calendar. This is currently not available.

/api/v1/event

Com Port

The system uses a COM port to connect from the Raspberry Pi to the temperature chamber. The number of the port is not necessarily defined. In order to make it easy to reconnect to a temperature chamber, the frontend will display a connect button if the system is currently disconnected.

Users are able to select a port number and then press a button. This will reset the temperature chamber object and try to reconnect. If it fails, the website will alert you to an error. If this reconnection is successful, the connection dialog will disappear.

/api/v1/reconnect