Skip to content

Instantly share code, notes, and snippets.

View Xitee1's full-sized avatar

Xitee Xitee1

  • Germany, Baden-Württemberg
  • 07:26 (UTC +02:00)
View GitHub Profile
@Xitee1
Xitee1 / Regensensor.ino
Created October 30, 2022 18:33
This is a modified version of https://tutorials-raspberrypi.de/esp8266-regensensor-selber-bauen-wie-viel-pro-qm/ . I made lots of changes and made the code a bit cleaner looking (at least for me it is). Some main features are WiFi sleep to reduce power consumption, INBUILT_LED blinking on detections and overall a few "improvements".
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
// WiFi
#define WIFI_AP "WiFi SSID"
#define WIFI_PASSWORD "Password"
// MQTT
#define MQTT_SERVER "192.168.x.x" // MQTT Server IP (e.g. the IP of HA)
#define MQTT_USER "mqtt" // MQTT username
@Xitee1
Xitee1 / docker-compose.yaml
Created June 23, 2023 06:38
coTurn docker server setup for NextCloud Talk. I created this because I could not find any working and simple docker compose for the coTurn server. This compose is really simple to set up. It already has configured everything neccessary. Just change out your secret and realm and you're ready to go. Make sure to open the port 3488 and 49160-49200…
version: '3'
services:
coturn:
image: coturn/coturn:alpine
command: >
-n --log-file=stdout
--min-port=49160 --max-port=49200
--listening-port=3488
--fingerprint