Git Product home page Git Product logo

bangbang-kegerator's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.