Skip to content

Instantly share code, notes, and snippets.

Avatar

Korbinian Probst KorbinianP

View GitHub Profile
@KorbinianP
KorbinianP / default.sitemap
Last active Jan 10, 2022
An example of how I integrated the ELV ws980 Weatherstation to OpenHab 2.5. Somehow a "best of" of all the solutions on https://www.forwardme.de/2020/04/16/wetterstation-ws980-wifi-in-openhab-einbinden/. Some spice from me on top.
View default.sitemap
Frame label="Wetterstation WiFi"{
Default item=wetterstation_temperatur_gefuehlt
Default item=wetterstation_temperatur_aussen
Default item=wetterstation_temperatur_innen
Default item=wetterstation_taupunkt
Default item=wetterstation_feuchtigkeit_innen
Default item=wetterstation_feuchtigkeit_aussen
Default item=wetterstation_wind_geschwindigkeit
Default item=wetterstation_wind_boee_geschwindigkeit
Default item=wetterstation_wind_staerke_zahl
View StorypointsCalc_TShirt.htm
<!DOCTYPE html>
<html>
<head>
<title>T-Shirt Size to Storypoints Calculator</title>
<script type="text/javascript">
function calculate(){
xs = Number(document.calculator.xs.value);
s = Number(document.calculator.s.value);
m = Number(document.calculator.m.value);
l = Number(document.calculator.l.value);
@KorbinianP
KorbinianP / 99-lesekopf.rules
Last active May 13, 2020
Read two SmartMeters and send the values to a REST API.
View 99-lesekopf.rules
SUBSYSTEMS=="usb", ATTRS{idProduct}=="ea60", ATTRS{idVendor}=="10c4", ATTRS{serial}=="015AE1E8", SYMLINK+="ttyUSBlesekopf0", GROUP="dialout", MODE="0660", RUN+="/etc/openhab2/others/setupLesekopf0.sh"
SUBSYSTEMS=="usb", ATTRS{idProduct}=="ea60", ATTRS{idVendor}=="10c4", ATTRS{serial}=="015ADDC3", SYMLINK+="ttyUSBlesekopf1", GROUP="dialout", MODE="0660", RUN+="/etc/openhab2/others/setupLesekopf1.sh"
@KorbinianP
KorbinianP / ics-creator.py
Created May 3, 2019
A simple example on how to create an ics calendar file in python
View ics-creator.py
#!//usr/bin/python3
from icalendar import Calendar, Event
from datetime import datetime, timedelta
from uuid import uuid4
"""
Please install dependencies with pip:
- icalendar 4.0.3
- uuid 1.30