Where can I find description of all the parameters available in the python api?
I want to tune my devices for a much more interactive use. Like, GPS updates every minute. Repeat messages for a long time, so users having been offline will get the message. Don’t go to sleep, so phones are disconnected.
My settings. Only adjusted position_broadcast_secs so far.
I think this might be the page you are looking for.
I am trying similar things with my devices, sacrifice some battery life to get the highest accuracy, frequency, and reliability of messages and location. Pretty much staring at the screen and tracking the other device with the pointer for hours.
Hi @Lure.Exciting.Salads , @lais this is great. I have been trying this too with much the same aim - to get accurate positioning for hiking. Do you think it’s possible now to have a standard list of values optimised for hiking? I realise battery life is an issue but 24 hours looks fairly easy to achieve. So with a spare that would be fine for me. Thanks.
Wrote this short script to set similar values to all my devices. Will test to see if it works for my case.
#!/bin/bash
meshcmd="meshtastic"
echo "Set values to high update freq. Sacrifice battery life."
# https://github.com/meshtastic/Meshtastic-protobufs/blob/master/docs/docs.md#.RadioConfig.UserPreferences
# Numeric configs
declare -A prefarray
prefarray=( \
# send our position this often
[position_broadcast_secs]=60 \
# stay alive after position_broadcast_secs, allows a paired phone to hear from us
[wait_bluetooth_secs]=20 \
# delay before killing Bluetooth when no phone
[phone_timeout_secs]=3600 \
# phone_sds_timeout_sec is currently disabled, but keep an eye on it
# Turn off after this time
[mesh_sds_timeout_secs]=$((24*3600)) \
# How often should we try to get GPS position
[gps_update_interval]=30 \
)
for key in "${!prefarray[@]}"; do
echo "setting $key to ${prefarray[$key]}"
$meshcmd --set $key ${prefarray[$key]}
done