View tap-linux.py
# 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 |
View gist:1779d91a9475d709ae55fdc383e42873
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] |
View gist:7016b96ae4e20db71ecc32e67141e8d9
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 |
View suntrio.conf
[[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" |