From Hentschel
Jump to: navigation, search

Ingredients

Raspberry Pi as controller

display and control butttons, found at http://www.emsystech.de/produkt/raspi-lcd/

relay board for outputs

breadboard prototype incl. temp sensor and indicator LED's

Prototype

prototype wired together

the Iphone app for the prototype

Rest interface

The rest interface is at http://hottub/htmobile/rest/hottub. The requestor needs to use the correct http method for setting values (HTTP PUT)

For getting REST values use HTTP GET

 curl http://hottub.home.hentschel.net/htmobile/rest/hottub/blower

which gets

 <?xml version="1.0" encoding="UTF-8" standalone="yes"?><blower state="ON"/>

To set the value, use HTTP PUT

 curl -X PUT http://hottub.home.hentschel.net/htmobile/rest/hottub/blower/ON

which results in

 <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ok succeeded="true"><status>200</status></ok>
 curl http://hottub.home.hentschel.net/htmobile/rest/hottub/
 curl -X PUT http://hottub.home.hentschel.net/htmobile/rest/hottub/pump/ON
 curl -X PUT http://hottub.home.hentschel.net/htmobile/rest/hottub/setpoint/98
 curl -X PUT http://hottub.home.hentschel.net/htmobile/rest/hottub/blower/ON

Target Development

Final version

Hardware

connector board schematic

connector board wiring

the connector board backside

the connector board frontside

Temp sensor

Onewire threaded 1/2" NPT