Fermentation Temp Controller III: Server APIs #piday #raspberrypi @Raspberry_Pi

from Fermentation Temp Controller III: Server APIs #piday #raspberrypi @Raspberry_Pi
by Rebecca Houlihan


NewImage

Andrew’s Raspberry Pi fermentaion controller III: server APIs via the blog Running On Beer.

This is the optional part of the Raspberry Pi Fermentation Controller, but it’s the part that I used to roll into the Brewery IoT page.

There are three PHP scripts that run on the server:

Index.php – collects data
getRows.php – lists data from the database
getLast.php – gets the last temperature entered in the database
There are also two prerequisites:

A pre-shared .pem key on the server. This should match the one on the Raspberry Pi.
A MySQL table (I’ve called it FermChamber, but if you know SQL, you can change it) with two columns: TimeStamp (datetime) and Temp (float).

Read more

998Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!

Comments