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
[Unit] | |
Description=FHEM Home Automation | |
Requires=network.target | |
After=dhcpcd.service | |
[Service] | |
Type=notify | |
NotifyAccess=all | |
User=fhem | |
Group=dialout |
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
defmod systemd_ready notify global:INITIALIZED { \ | |
use Socket;;;;\ | |
my $name = $ENV{NOTIFY_SOCKET};;;;\ | |
my $sock_addr = sockaddr_un($name);;;;\ | |
socket(my $server, PF_UNIX,SOCK_DGRAM,0);;;;\ | |
connect($server, $sock_addr);;;;\ | |
print $server "READY=1\n";;;;\ | |
close($server);;;; } | |
defmod systemd_shutdown notify global:SHUTDOWN {\ |
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
#!/bin/bash | |
cat /sys/class/hwmon/hwmon0/device/temp1_input | cut -c1-2 | mosquitto_pub -h <mqtt-broker> -s -t <topic> -i <clientid> |
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
#!/bin/bash | |
cat /sys/class/hwmon/hwmon0/device/hwmon/hwmon0/temp1_input | cut -c1-2 | mosquitto_pub -h <broker-ip> -s -t <topic> -i <client-id> |
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
[ | |
{ | |
"id": "dca33d8.38ff4c", | |
"type": "tcp out", | |
"z": "379029c6.41a1f6", | |
"host": "", | |
"port": "", | |
"beserver": "reply", | |
"base64": false, | |
"end": false, |