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
| esphome: | |
| name: solar-monitor | |
| friendly_name: solar-monitor | |
| platformio_options: | |
| ## larger stack size required with all registers enable_load_test | |
| ## reduce registers or wait for integration of 2.0.0 arduinoespressif32 | |
| ## not yet working needs 2.0 | |
| build_flags: | |
| - -DCONFIG_ARDUINO_LOOP_STACK_SIZE=32768 |
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
| esphome: | |
| name: esp32-mic-speaker | |
| friendly_name: esp32-mic-speaker | |
| on_boot: | |
| - priority: -100 | |
| then: | |
| - wait_until: api.connected | |
| - delay: 1s | |
| - if: | |
| condition: |
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
| from rknn.api import RKNN | |
| ONNX_MODEL = 'yolov8m.onnx' | |
| RKNN_MODEL = 'yolov8m.rknn' | |
| DATASET = './dataset.txt' | |
| QUANTIZE_ON = True | |
| if __name__ == '__main__': | |
| # Create RKNN object |
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
| # draft | |
| # view current data quota | |
| sudo iptables -nvL -t filter --line-numbers | |
| # init | |
| sudo iptables -I OUTPUT -p tcp --sport <target-port> -m quota --quota <quota-bytes> -j ACCEPT | |
| sudo iptables -I OUTPUT -p tcp --sport <target-port> -j DROP | |
| # reset quota |
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
| package main | |
| import ( | |
| "fmt" | |
| "github.com/codegangsta/negroni" | |
| "github.com/gorilla/mux" | |
| "log" | |
| "net/http" | |
| ) |