Skip to content

Instantly share code, notes, and snippets.

View poggenpower's full-sized avatar

Thomas Laubrock poggenpower

View GitHub Profile
@poggenpower
poggenpower / README.MD
Last active August 22, 2022 09:37
Viessmann to mqtt forwarder

Viessmann to MQTT forwarding

The files below is part of a larger framework and won't really run indpendent from it, but should be easy to convert into a standalone version.

External modules

Two external modules are requirend

  1. https://github.com/somm15/PyViCare for talking Viessmannn API
  2. https://github.com/poggenpower/mqtt_tree for wrapping MQTT communication (requires paho.mqtt.client) install via pip install git+https://github.com/poggenpower/mqtt_tree
@wikrie
wikrie / fritzbox-cert-update.sh
Last active March 2, 2024 10:48
Fritzbox Fritz!Box AVM SSL Letsencrypt automatically update
#!/bin/bash
## this little Gist is for Copy the Letsencrypt Cert from an Linux machine (e.g. Raspberry PI or Synology NAS)
## to the router (Fritzbox).
## It is usefull to be able to speak to the Router over DDNS without any Cert issue in the Browser.
## thanks to https://gist.github.com/mahowi for the perfect Idea
## put it in /etc/letsencrypt/renewal-hooks/post so it gets run after every renewal.
## since Fritz OS 7.25 it is needed to select a Username, from a security point of view
## it is always a good idea to have a non default user name. And as normaly a Fritz Box
## is connected to the Internet, the prefered method should be WITH Username.
# taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
import BaseHTTPServer, SimpleHTTPServer
import ssl