Skip to content

Instantly share code, notes, and snippets.

View Noschvie's full-sized avatar

Norbert Noschvie

  • Vienna
  • 01:20 (UTC +02:00)
View GitHub Profile
@Noschvie
Noschvie / post-133815
Last active September 6, 2024 05:53
"Circulating Hot Water Pump" Controller (https://forum.iobroker.net/post/133815)
//https://forum.iobroker.net/post/133815
//VL, outgoing temperature
const idTempVL = 'sonoff.0.HWR.DS18B20-2_Temperature';
const iddTVL = '0_userdata.0.WWZirkulationspumpe.dTVL';
const swOn = 0.7; // Grenzwert in K/min
var speedVL
var speedVLold = 0;
//RL, return temperature
@Paraphraser
Paraphraser / IOTstackOverrideFiles.md
Last active June 24, 2024 06:48
IOTstack and "override" files

IOTstack and "override" files

As a general principle, I'm not in favour of override files. I think they muddy the waters. I think you're much better off editing docker-compose.yml directly.

That said…

When you use IOTstack to manage Docker containers, you have access to two override mechanisms:

  1. A compose-override.yml file. This mechanism is peculiar to IOTstack and is implemented by the so-called "new" menu on the master branch.
  2. A docker-compose.override.yml file. This mechanism is part of docker-compose.
@Paraphraser
Paraphraser / Logging CPU Temperatures.md
Created August 22, 2021 14:05
IOTstack Tutorial: Logging CPU Temperatures

IOTstack Tutorial: Logging CPU Temperatures

introduction

This gist answers a Discord question. It explains my approach to collecting CPU temperatures by sending the data as an MQTT payload.

I like to think of this approach as working with the MING (Mosquitto, InfluxDB, Node-RED, Grafana) paradigm rather than fighting against it (eg using approaches like SSH calling out of the Node-RED container).

The approach is not tied to the Raspberry Pi that is running IOTstack. If you have several Raspberry Pis, they can all log their temperatures to the Raspberry Pi running IOTstack using exactly the same mechanism.

@Noschvie
Noschvie / create_docker_compose_basic_auth_string_for_traefik.sh
Last active May 3, 2020 13:00 — forked from movd/create_docker_compose_basic_auth_string_for_traefik.sh
Generator to create basic authentication string for traefik (docker-compose.yml and .env)
#!/bin/bash
command -v docker >/dev/null 2>&1 || { echo >&2 "I require Docker but it's not installed. Aborting."; exit 1; }
echo "Basic auth for traefik >= v1.7"
read -p "User: " USER
read -p "Password: " PW
# Pull httpd:alpine image (small and includes httpasswd)
docker pull httpd:alpine >/dev/null 2>&1