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
on MQTT#Connected do | |
timerSet,1,60 | |
endon | |
on System#Boot do | |
TaskValueSet 2,1,1 | |
endon | |
On Rules#Timer=1 do | |
logentry,[storage#generator] |
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
That was hard to find and if you are playing with retro computing it can help | |
+-------+ | |
p0 +5V | 1 8 | GDN p1 | |
p0 -D | 2 7 | +D p1 | |
p0 +D | 3 6 | -D p1 | |
p0 GND | 4 5 | +5V p1 | |
+-------+ | |
Took standard 2xUSB header, cut key section and repin one side of connector reverse |
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.http]] | |
## One or more URLs from which to read formatted metrics | |
urls = [ | |
"http://<ip_of_suntrio>/status/status.php" | |
] | |
## Optional HTTP headers | |
headers = {"Authorization" = "Basic <auth_token_use_chrome_dev_tools_to_get_it>="} | |
data_format = "csv" |
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
# Simple linux tun/tap device example tunnel over udp | |
# create tap device with ip tuntap add device0 tap | |
# set ip address on it and run tap-linux on that device and set desitation ip | |
# run same on another node, changing dst ip to first node | |
import fcntl | |
import struct | |
import os | |
import socket | |
import threading |