Skip to content

Instantly share code, notes, and snippets.

package main
import (
"encoding/csv"
"encoding/json"
"flag"
"fmt"
"log"
"net/http"
"os"
PR open:
https://github.com/vyos/vyos-1x/pull/1641 - firewall: T4612: Support arbitrary netmasks #1641
https://github.com/vyos/vyos-1x/pull/1648 - T4797: Add support for external lists #1648
https://github.com/vyos/vyos-1x/pull/1626 - T4780: Firewall: add firewall groups in firewall. Extend matching cri… #1626
https://github.com/vyos/vyos-1x/pull/1599 - login: T4751: 2FA OTP key generator in VyOS CLI #1599
@tioan
tioan / Robomaster-S1-Python-Examples.py
Created July 21, 2022 23:00
ROBOMASTER S1 Python Examples
# ROBOMASTER-S1-Python-Examples
# Learning how to program the Robomaster S1 in Python
# Note: you must install the Robomaster S1 app, either on your wireless mobile device or on your
# computer, via Wi-Fi. Next after installing the Robomaster S1 App, you will have to update the
# firmware for the Robomaster S1. Next you must calibrate the Robomaster S1 so it can work
# properly.
# Note: to be able to program the Robomaster S1 in Scratch or Python, you must run the Robomaster
avrdude -p m32u4 -c buspirate -P /dev/ttyUSB0 -u flash:r:flash.bin:r
Attempting to initiate BusPirate binary mode...
(null) mode not confirmed: 'BBIO'
avrdude: Failed to start binary mode, falling back to ASCII...
Attempting to initiate BusPirate ASCII mode...
BusPirate: using ASCII mode
BusPirate is now configured for SPI
avrdude: AVR device initialized and ready to accept instructions
workroom_speaker:
module: controllerx
class: E1744MediaPlayerController
controller: sensor.0x14b457fffe65ea22_action
integration: z2m
media_player: media_player.arbeitszimmer
- platform: template
fans:
bedroom_fan:
friendly_name: "Bedroom fan"
value_template: "{{ states('switch.shelly_shsw_pm_006037') }}"
turn_on:
service: switch.turn_on
entity_id: switch.shelly_shsw_pm_006037
turn_off:
service: switch.turn_off
- id: '1597414084922'
alias: Spiegelschrank Bad - Ein
description: ''
trigger:
- device_id: 75ebf070f93c484ebebd44ae264400ed
discovery_id: 0xec1bbdfffed18daf click_on
domain: mqtt
platform: device
subtype: 'on'
type: action
esphome:
name: hall_voronoi_bulb
platform: ESP8266
board: esp8285
wifi:
networks:
- ssid: !secret esphome_wifi_ssid
password: !secret esphome_wifi_password
Processing esp32dev (board: esp32dev; platform: espressif32@1.11.1; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------
PackageManager: Installing tool-mkspiffs @ ~2.230.0
tool-mkspiffs @ 2.230.0 has been successfully installed!
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 1.11.1 > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: toolchain-xtensa32 2.50200.80 (5.2.0), framework-arduinoespressif32 2.10004.191002 (1.0.4), tool-esptoolpy 1.20600.0 (2.6.0), tool-mkspiffs 2.230.0 (2.30)
zigbee2mqtt:info 2020-01-03 04:20:19: Logging to console and directory: '/share/zigbee2mqtt/log/2020-01-03.04-20-19'
zigbee2mqtt:info 2020-01-03 04:20:19: Starting zigbee2mqtt version 1.8.0 (commit #unknown)
zigbee2mqtt:info 2020-01-03 04:20:19: Starting zigbee-herdsman...
zigbee2mqtt:error 2020-01-03 04:20:26: Error while starting zigbee-herdsman
zigbee2mqtt:error 2020-01-03 04:20:26: Failed to start zigbee
zigbee2mqtt:error 2020-01-03 04:20:26: Exiting...
zigbee2mqtt:error 2020-01-03 04:20:26: Error: SRSP - SYS - version after 6000ms
at Timeout.object.timer.setTimeout [as _onTimeout] (/zigbee2mqtt-1.8.0/node_modules/zigbee-herdsman/dist/utils/waitress.js:44:24)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)