Skip to content

Instantly share code, notes, and snippets.

@mariotti
Created January 21, 2025 20:31
Show Gist options
  • Save mariotti/7668cdffe8e33c971678c635fefe0510 to your computer and use it in GitHub Desktop.
Save mariotti/7668cdffe8e33c971678c635fefe0510 to your computer and use it in GitHub Desktop.
Set minimal device meshtastic defaults - example
#! /bin/bash -x
#
# Defaults
#
role="CLIENT"
#role="CLIENT_MUTE"
timezone="CET-1CEST,M3.5.0,M10.5.0/3"
region="EU_868" # "EU_433" / "EU_868" / <YOUR REGION>
gpsmode="disabled"
#gpsmode="enabled"
powersave="false"
meshtastic --set device.role "${role}" \
--set device.tzdef "${timezone}" \
--set position.position_broadcast_smart_enabled true \
--set position.position.gps_mode ${gpsmode} \
--set power.is_power_saving ${powersave} \
--set lora.region "${region}" \
--set lora.override_duty_cycle false \
--reboot
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment