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
| #!/usr/bin/env python3 | |
| from pisugar import * | |
| import asyncio | |
| import os | |
| import sys | |
| import telegram | |
| async def main(): | |
| # Get Pisugar battery level | |
| conn, event_conn = connect_tcp('localhost') |
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
| #!/usr/bin/env python3 | |
| from pisugar import * | |
| import asyncio | |
| import os | |
| import sys | |
| import logging | |
| from telegram import Update | |
| from telegram.ext import filters, MessageHandler, ApplicationBuilder, CommandHandler, ContextTypes | |
| import gammu.smsd |
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
| /** | |
| * RP2040/RP2350 External watchdog | |
| * | |
| */ | |
| #include <avr/sleep.h> | |
| #define WDT_TIMEOUT 180 // Watchdog timeout 180s/3min (flashing the RP2040 must taken into account!) | |
| volatile uint16_t wdt_count = 0; | |
| static void delay(unsigned long millis) { | |
| // ~1ms delay |
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
| #!/bin/bash | |
| LONG_VERSION=$(bin/buildinfo.py long) | |
| SHORT_VERSION=$(bin/buildinfo.py short) | |
| BRANCH=$(bin/buildinfo.py branch) | |
| # Use modem preset for all nodes | |
| preset="MEDIUM_FAST" | |
| # Define the owner names and their corresponding device types |
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
| /* | |
| * SCPI commands send using Linux netcat on command line | |
| * echo "SOUR:FREQ:CW 123457000" | nc -q 1 192.168.178.232 5025 | |
| * echo "SOUR:FREQ:CW 31.458 MHz" | nc -q 1 192.168.178.232 5025 | |
| * echo "SOUR:FREQ:FIX 31.458 MHz" | nc -q 1 192.168.178.232 5025 | |
| * echo "*RST" | nc -q 1 192.168.178.232 5025 | |
| * echo "SYST:ERR?" | nc -q 1 192.168.178.232 5025 | |
| * echo "*IDN?" | nc -q 1 192.168.178.232 5025 | |
| * echo "*OPC?" | nc -q 1 192.168.178.232 5025 | |
| * SYSTem:LAN:CONFig <Static IP>, <Static Gateway>, <Static Subnet>, <Port> |
OlderNewer