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/sh | |
# Run this script from cron every 10 minutes: | |
# echo '*/10 * * * * /path/to/passwall_watchdog.sh' >> /etc/crontabs/root | |
enabled=$(uci get passwall.@global[0].enabled) | |
tcp_node=$(uci get passwall.@global[0].tcp_node) | |
address=$(uci get passwall.$tcp_node.address) | |
previous_ip=$(uci get passwall.$tcp_node.ip 2>/dev/null) | |
current_ip=$(resolveip $address) |
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
// golang version of https://github.com/synman/bambu-go2rtc | |
// usage: ./camera-stream <accessCode> <hostname> | |
// with ffplay: ./camera-stream <accessCode> <hostname> | ffplay -hide_banner -fflags nobuffer -analyzeduration 10 -probesize 32 -i - | |
// tested on bambu lab a1 mini, the fps is really low for this device :( | |
package main | |
import ( | |
"bytes" | |
"crypto/tls" |
OlderNewer