Skip to content

Instantly share code, notes, and snippets.

@flazer
flazer / esphome-web-151830.yaml
Created February 2, 2025 17:28
A config file for compiling an espHome node for reading sml data from an IR-reading head by an olimex poe (non iso) board
esphome:
name: esphome-web-151830
friendly_name: stromzaehler
min_version: 2024.11.0
name_add_mac_suffix: false
esp32:
board: esp32dev
framework:
type: esp-idf
@flazer
flazer / dataflow-fake.ino
Created March 25, 2018 16:32
Arduino WS2812b dataflow fake animation
/*
* Dataflow - Fake
*
* 2017 - Chris Figge <[email protected]>
*
* Schnell mal runtergeschrieben, weil Bock.
*/
#include <Adafruit_NeoPixel.h>
@flazer
flazer / bullshit-servo.c
Created November 18, 2013 09:09
Script to handle a servo via button-press on arduino-controllers: usage-example: youtube.com/watch?v=ghyxaQc5-Xg
#include <Servo.h>
Servo myservo;
int pos = 0;
int btn = 13;
int maxAngle = 180;
int minAngle = 40;
int speed = 5;
void setup()
@flazer
flazer / gpstimesync.py
Created November 18, 2013 09:01
Connects to your GPS-Dongle and synchronize systemtime with GPS-UTC-time. Handles local-timezones Needs PYTZ-Library: http://pytz.sourceforge.net/#installation
#! /usr/bin/python
#####################
# GPS-TIME-SYNC #
# 2013 flazer #
# [email protected] #
#####################
# Connects to your GPS-Dongle and synchronize systemtime with GPS-UTC-time.
# Handles local-timezones