Skip to content

Instantly share code, notes, and snippets.

@MatthewFlamm
MatthewFlamm / Alarm system.md
Last active August 29, 2025 18:02
Esp32 home alarm system with home assistant and esphome

Alarm system using esp32 with esphome and home assistant

@Jimmy-Z
Jimmy-Z / services-start.sh
Created February 28, 2019 08:42
multi SSID with VLAN script, for ASUS AC86U with merlin
#!/bin/sh
# multi SSID with VLAN script, for ASUS AC86U with merlin
#
# setup before hand:
# set "router" to "AP Mode"
# this will put all ports and wireless in br0
# create 2 guest network
# enable Administration => System => Enable JFFS custom scripts and configs
# put this script in /jffs/scripts/, name should be "services-start"
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active October 6, 2025 17:07
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@ciotlosm
ciotlosm / Readme.md
Last active October 7, 2025 15:38
Kiosk mode for lovelace

Kiosk mode

Installation

Add kiosk.js file with the content below to your www folder in config.

Like any other custom script, use ui-lovelace.yaml resources section to reference the kiosk.js file.

Make sure you add kiosk somewhere in your URL. You can use it in the id of your view or in the query string.

// Slightly modified Adalight protocol implementation that uses FastLED
// library (http://fastled.io) for driving WS2811/WS2812 led stripe
// Was tested only with Prismatik software from Lightpack project
#include "FastLED.h"
#define NUM_LEDS 114 // Max LED count
#define LED_PIN 6 // arduino output pin
#define GROUND_PIN 10
#define BRIGHTNESS 255 // maximum brightness
//
// Arduino serial-interface for controlling the ws2812 leds. The serial interface is based on the
// Adalight protocol. The protocol is as follows:
// [prefix][led count][checksum][red, green, blue]*
// prefix := 'Ada'
// led count := number of leds - 1 (uint16_t big endian)
// checksum := led count high bit XOR led count low bit XOR 0x55 (uint8_t)
// red, green, blue := channel intensity [0-255] (uint8_t)
//
@mattiarossi
mattiarossi / Iboard_Emoncms_pinchange_power.ino
Last active March 30, 2017 10:50
Uses an arduino and the pinchangeint library to implement an energy monitor that reads pulses from a power meter that has an open collector pulse output like the Finder 7E.23.8.230.0001: http://www.findernet.com/media/series/7E/EN/S7EEN.pdf Logs power readings to an emoncms instance (http://www.emoncms.org)
/*
Many meters have pulse outputs, including electricity meters: single phase, 3-phase,
import, export.. Gas meters, Water flow meters etc
The pulse output may be a flashing LED or a switching relay (usually solid state) or both.
In the case of an electricity meter a pulse output corresponds to a certain amount of
energy passing through the meter (Kwhr/Wh). For single-phase domestic electricity meters
(eg. Elster A100c) each pulse usually corresponds to 1 Wh (1000 pulses per kwh).