Skip to content

davidbstein/bangbang-kegerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bangbang-kegerator

Simple temperature control module

parts

some of these are cheaper from places other than amazon.

attach the thermometer

this tutorial might help - just soldier things to the correct leads

https://learn.adafruit.com/adafruits-raspberry-pi-lesson-11-ds18b20-temperature-sensing/hardware

Set up the monitor

  • go to drive.google.com
  • add google scripts

add scripts

  • make a script with the following code and save it
function doPost(e) {
  props = PropertiesService.getScriptProperties();
  arr = JSON.parse(props.getProperty("last_n") || '[]');
  arr = arr.slice(0, 100);
  arr.unshift(new Date() + " - " + e.postData.contents);
  props.setProperty("last_n", JSON.stringify(arr));
}

function doGet(e) { 
  props = PropertiesService.getScriptProperties()
  arr = JSON.parse(props.getProperty("last_n") || '[]');
  return HtmlService.createHtmlOutput("<pre>" + JSON.stringify(arr, null, "  ") + "</pre>")
}
  • go to publish > deploy as web app
  • save the link (you need to replace my link in index.js

setup

About

control module for kegerator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published