Skip to content

Instantly share code, notes, and snippets.

@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
#!/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 / 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
@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("""