This file contains 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
/* | |
* WiFi Scanner for WiMos D1 | |
* Fred Owsley - @fredowsley | |
* Use Adafruit_SSD1306 libs from https://github.com/tekk/MeteoESP/tree/master/lib/Adafruit_SSD1306-esp8266-64x48 | |
* or this one: https://github.com/mcauser/Adafruit_SSD1306/blob/esp8266-64x48 | |
*/ | |
#include <SPI.h> | |
#include <Wire.h> | |
#include <Time.h> |
This file contains 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
const http = require('http'); | |
const randexp = require('randexp').randexp; | |
const hostname = '127.0.0.1'; | |
const port = 3000; | |
const server = http.createServer((req, res) => { | |
res.writeHead(200, { | |
'Content-Type': 'text/html' |
This file contains 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
const http = require('http'); | |
const randexp = require('randexp').randexp; | |
const hostname = '127.0.0.1'; | |
const port = 3000; | |
const server = http.createServer((req, res) => { | |
res.writeHead(200, { | |
'Content-Type': 'text/html' |
This file contains 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 <FastLED.h> | |
#define NUM_LEDS 160 | |
#define DATA_PIN 6 | |
// Define the array of leds | |
CRGB leds[NUM_LEDS]; | |
void setup() { | |
FastLED.addLeds<WS2812B, DATA_PIN, RGB>(leds, NUM_LEDS); |
This file contains 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 <FastLED.h> | |
#define NUM_LEDS 160 | |
#define DATA_PIN 6 | |
// Define the array of leds | |
CRGB leds[NUM_LEDS]; | |
int mid = NUM_LEDS/2; | |
void setup() { |
This file contains 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 <FastLED.h> | |
#define NUM_LEDS 160 | |
#define DATA_PIN 6 | |
CRGB leds[160]; | |
int x; | |
void setup() { | |
FastLED.addLeds<WS2812B, 6>(leds, 160); | |
} |
This file contains 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 <FastLED.h> | |
#define NUM_LEDS 160 | |
#define DATA_PIN 6 | |
// Define the array of leds | |
CRGB leds[NUM_LEDS]; | |
int mid = NUM_LEDS/2; | |
void setup() { |
This file contains 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
sudo apt-get update | |
sudo apt-get upgrade | |
sudo reboot | |
sudo apt-get install -y python3 python3-dev python3-venv python3-pip bluez libffi-dev libssl-dev libjpeg-dev zlib1g-dev autoconf build-essential libopenjp2-7 libtiff6 libturbojpeg0-dev tzdata ffmpeg liblapack3 liblapack-dev libatlas-base-dev libopenblas-dev npm snapd | |
sudo useradd -rm homeassistant -G dialout,gpio,i2c | |
sudo mkdir /srv/homeassistant |