This file contains hidden or 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
version: '3.2' | |
services: | |
homieMonitor: | |
container_name: homieMonitor | |
environment: | |
- HM_MQTT_HOST=192.168.1.1 | |
- HM_MQTT_PORT=1883 | |
- HM_MQTT_SSL_ENABLE_FLAG=true | |
- HM_MQTT_USER=mqtt | |
- HM_MQTT_PASS=superSecret |
This file contains hidden or 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
First of all we list packages during upgrade, that are not marked as automatically handled: | |
aptitude search -F '%p' --disable-columns '~U' | while read PACKAGE; do sudo apt-mark showmanual $PACKAGE; done | |
Second I want to find even those packages, that are already automatically handled but are still installed although nothing | |
installed depends on it | |
aptitude search -F '%p' --disable-columns '~U' | while read PACKAGE; do echo -n "$PACKAGE "; apt-cache rdepends $PACKAGE | tail +3 | while read RDEPEND; do dpkg --get-selections | egrep "^${RDEPEND}.*\s" | wc -l; done | paste -sd+ | bc; done |
This file contains hidden or 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
[[inputs.mqtt_consumer]] | |
servers = ["ssl://192.168.0.102:8883"] | |
## Topics that will be subscribed to. | |
topics = [ | |
"venus/N/+/#", | |
] | |
username = "telegraf" | |
password = "superSecret" |
This file contains hidden or 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
meters: | |
- name: grid1 | |
type: custom | |
power: | |
source: http | |
uri: http://shelly%40test.de:[email protected]/status | |
jq: .emeters | map(.power) | add | |
scale: -1 | |
energy: | |
source: http |