Skip to content

Instantly share code, notes, and snippets.

View SmithyAT's full-sized avatar

Christian Schmied SmithyAT

View GitHub Profile
@SmithyAT
SmithyAT / vpn.sh
Created February 17, 2024 19:45
VPN Manager Script
#!/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
}
/*
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
@SmithyAT
SmithyAT / HumiLogger_v1.ino
Created March 10, 2019 12:47
Sparkfun Thing (ESP8266) Humidor Logger with SHT31 Sensor
#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