Skip to content

Instantly share code, notes, and snippets.

@chriszero
chriszero / marstek-venus-esphome-rs485.yaml
Created February 1, 2026 11:44
ESPHome config for Marstek Venus battery via RS485/Modbus (M5Stack Atom) — companion for EOS Connect HA inverter interface
substitutions:
name: marstek-m1
friendly_name: MT1
wifi_ssid: !secret wifi_ssid
wifi_password: !secret wifi_password
api_key: !secret api_key
ota_pass: !secret ota_pass
tx_pin: GPIO19
@chriszero
chriszero / enwg_sim.py
Created December 10, 2024 17:51
Simuliert Kosten der Netzentgelte nach enwg14a, Verbräuche Stündlich als csv als Export von Zeitreihen aus InfluxDB
import pandas as pd
import numpy as np
from datetime import datetime, timedelta
import matplotlib.pyplot as plt
import streamlit as st
from demandlib import bdew
# Streamlit Web App starten
st.title("Netzentgelte Kosten-Simulator")
st.write("""
@chriszero
chriszero / wifiambilight.ino
Last active November 7, 2017 21:56
Open Pixel Control Server on a Particle Photon
// This #include statement was automatically added by the Particle IDE.
#include "opcserver.h"
SYSTEM_THREAD(ENABLED);
#include "FastLED/FastLED.h"
FASTLED_USING_NAMESPACE
#include "math.h"
#define MAX_LEDS 256 // Upper limit; OK to receive data for fewer
#!/usr/bin/python
# encoding: utf-8
'''
boblighthue -- shortdesc
boblighthue connects a hue light to boblightd
@author: Christian Völlinger
@copyright: 2016 Christian Völlinger. All rights reserved.
@license: GNU GENERAL PUBLIC LICENSE v3
@chriszero
chriszero / neobob.conf
Created June 18, 2013 15:54
Sample config for boblight using my neobob
#[global]
interface 127.0.0.1
port 19333
[device]
name ambilight
#via udev-rule
output /dev/sensors/ftdi_AH01DLTX
#output /dev/ttyUSB0
channels 90