This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"47174d8f-1b8e-4599-8a59-b580dd55bc87": {"uuid": "47174d8f-1b8e-4599-8a59-b580dd55bc87", "name": "EITZE", "lat": 52.90406544743417, "long": 9.276769435375872, "km": 9.56, "nn": 8.0}, "5aaed954-de4e-4528-8f65-f3f530bc8325": {"uuid": "5aaed954-de4e-4528-8f65-f3f530bc8325", "name": "RETHEM", "lat": 52.789097592149574, "long": 9.382840810129355, "km": 34.22, "nn": 14.31}, "8b4f9f7c-3376-4dd8-95c1-de55b1be4dfd": {"uuid": "8b4f9f7c-3376-4dd8-95c1-de55b1be4dfd", "name": "MARKLENDORF", "lat": 52.68275727270215, "long": 9.70345575731809, "km": 75.91, "nn": 23.01}, "b475386c-30cc-453a-b3b7-1d17ace13595": {"uuid": "b475386c-30cc-453a-b3b7-1d17ace13595", "name": "CELLE", "lat": 52.62270553213209, "long": 10.062164093638698, "km": 111.55, "nn": 31.82}, "ee52ce62-212c-4735-b438-26fbdc37e3e2": {"uuid": "ee52ce62-212c-4735-b438-26fbdc37e3e2", "name": "BERLIN-PL\u00d6TZENSEE OP", "lat": 52.543699621319746, "long": 13.32314190907983, "km": 7.4, "nn": 28.0}, "45721a68-566c-4e2a-a6c7-a7595982a779": {"uuid": "45721a68-566c-4e2a- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from prometheus_client import Gauge, start_wsgi_server, make_wsgi_app | |
from wsgiref.simple_server import make_server | |
import requests | |
# This is a prometheus exporter for german river water level monitoring. | |
# Used API: https://pegelonline.wsv.de/webservice/dokuRestapi | |
# Set the uuid of the station you want to monitor. Uuid can be found via the "stations.json" of the API. | |
# TODO: Loop over all stations and feed them into prometheus | |
# Licence: WTFPL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": { | |
"type": "grafana", | |
"uid": "-- Grafana --" | |
}, | |
"enable": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set your domain here | |
MXDOMAIN=m.example.com | |
# This script will ask you for a password. This is for your CA key and you need it in the next step, when signing your application certificate with your CA key. You can remove the "-aes256" flag in the first line to create a passwordless key, but it is not advised in production. | |
# Let this script run, and move the generated *.tls.* files into your synapse home directory and restart synapse. | |
# For android to recognize this, you need to copy the "ca.crt.pem" file to your phone and go to: "Settings->Security->import from SD card" and select the pem-file. | |
# This certificate has a "CA-Flag" set to true, otherwise android would not import this file correctly. | |
openssl genrsa -aes256 -out ca.key.pem 4096 |