Skip to content

Instantly share code, notes, and snippets.

View KorbinianP's full-sized avatar

Korbinian Probst KorbinianP

View GitHub Profile
@KorbinianP
KorbinianP / default.sitemap
Last active May 9, 2022 19:45
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.
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
<!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 July 26, 2023 23:59
Read two SmartMeters and send the values to a REST API.
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 21:03
A simple example on how to create an ics calendar file in python
#!//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