Created
January 21, 2025 20:35
-
-
Save mariotti/5c0558ac135df225d9d064c291baa35c to your computer and use it in GitHub Desktop.
Set my default meshtastic channels - example
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 -x | |
# | |
# Defaults | |
# | |
defPSK="AQ==" | |
shortPSK="<YOUR 8bit Key>" | |
longPSK="<Your 256bit Key>" | |
mynetwork="mynet" | |
# | |
meshtastic --ch-set name "${mynetwork}Tele" \ | |
--ch-set psk "base64:${longPSK}" \ | |
--ch-set uplink_enabled false \ | |
--ch-set downlink_enabled false \ | |
--ch-set module_settings.position_precision 10 \ | |
--ch-index 0 | |
meshtastic --ch-set name "LongFast" \ | |
--ch-set psk "base64:${defPSK}" \ | |
--ch-set uplink_enabled false \ | |
--ch-set downlink_enabled false \ | |
--ch-set module_settings.position_precision 10 \ | |
--ch-index 1 | |
meshtastic --ch-set name "${mynetwork}Public" \ | |
--ch-set psk "base64:${defPSK}" \ | |
--ch-set uplink_enabled false \ | |
--ch-set downlink_enabled false \ | |
--ch-set module_settings.position_precision 10 \ | |
--ch-index 2 | |
meshtastic --ch-set name "${mynetwork}channel1" \ | |
--ch-set psk "base64:${shortPSK}" \ | |
--ch-set uplink_enabled false \ | |
--ch-set downlink_enabled false \ | |
--ch-set module_settings.position_precision 10 \ | |
--ch-index 3 | |
meshtastic --ch-set name "${mynetwork}channel2" \ | |
--ch-set psk "base64:${longPSK}" \ | |
--ch-set uplink_enabled false \ | |
--ch-set downlink_enabled false \ | |
--ch-set module_settings.position_precision 10 \ | |
--ch-index 4 | |
meshtastic --ch-set name "${mynetwork}Private" \ | |
--ch-set psk "base64:${longPSK}" \ | |
--ch-set uplink_enabled false \ | |
--ch-set downlink_enabled false \ | |
--ch-set module_settings.position_precision 10 \ | |
--ch-index 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment