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
#!/bin/bash | |
PS3="Select item: " | |
function vpnActive() { | |
ip -f inet addr show tun0 > /dev/null 2>&1 | |
if [ $? -eq 0 ] ; then return 0 ; else return 1 ; fi | |
} |
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 connected round LED Clock. It gets NTP time from the internet and translates to a 60 RGB WS2812B LED strip. | |
If you have another orientation where the wire comes out then change the methods getLEDHour and getLEDMinuteOrSecond | |
Happy programming, Leon van den Beukel, march 2019 | |
--- | |
NTP and summer time code based on: | |
https://tttapa.github.io/ESP8266/Chap15%20-%20NTP.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 <Arduino.h> | |
#include <Wire.h> | |
#include <ESP8266WiFi.h> | |
#include "Adafruit_SHT31.h" | |
#include <PubSubClient.h> | |
//#define BLYNK_PRINT Serial | |
#include <BlynkSimpleEsp8266.h> | |
const int sleepInterval = 15; // in Minuten |