This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://perso.aquilenet.fr/~sven337/english/2016/07/14/DIY-wifi-baby-monitor.html | |
| // Based on Sven337's Baby Monitor Code which in turn is based on | |
| // Based on ESP_MCP3201_SPI | |
| #include <SPI.h> | |
| #include <ESP8266WiFi.h> | |
| #include <ESP8266WebServer.h> | |
| #include <WiFiClient.h> | |
| #include <WiFiUdp.h> | |
| #include <ESP8266mDNS.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //See https://blog.tuckerosman.com/2019/02/building-temperature-based-fan.html for more information. | |
| //#include <Math.h> | |
| //#define CURVE_FACTOR 1.03 | |
| #include <TC74_I2C.h> | |
| #define FANSPEED_PIN 4 | |
| TC74_I2C TC74(TC74_A0); | |
| int temperature; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:18.04 | |
| ENV KEY <put your key here> | |
| WORKDIR /root/ | |
| COPY entry.sh . | |
| COPY windows98hd.img . | |
| RUN chmod +x entry.sh | |
| RUN apt -y update | |
| RUN apt -y install software-properties-common |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function checkingLoop() { | |
| //This is what checks every so often and sends the reminder message. | |
| const range = getNearestDateTimeRange(moment()); | |
| if(!range) return; | |
| const leavingCell = range.getCell(1,2); | |
| const returnCell = range.getCell(1,3); | |
| const leaving = leavingCell.getDisplayValue(); | |
| const returning = returnCell.getDisplayValue(); | |
| if(leaving.length) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <avr/sleep.h> | |
| #include <avr/interrupt.h> | |
| void setup() { | |
| //intialize the input (the power switch) | |
| pinMode(4, INPUT); | |
| //intialize the output (motherboard power switch) | |
| pinMode(3, OUTPUT); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //INSTALL INSTRUCTIONS ARE IN THE LINE COMMENTS | |
| //Put this in your binary tree class. Because Google's GraphVis API can have multiple arrows pointing to duplicates, this keeps | |
| //track of how many spaces it needs to put in an element to keep it unique. | |
| static int blankcount = 0; | |
| //Put this function and its associated documentation into your binary tree class. This is what you'll call to get the url. | |
| //You may have to fix imports because this uses java.net.URLEncoder. | |
| /** | |
| * |