meshtastic / firmware

Meshtastic device firmware
https://meshtastic.org
GNU General Public License v3.0
3.3k stars 800 forks source link

Add a reboot_after_secs persistent preference #1193

Closed joshpirihi closed 2 years ago

joshpirihi commented 2 years ago

Add the ability to make the node reboot after a certain period every time. So you could do a meshtastic --set reboot_after_secs 86400 and it will reboot every 24 hrs.

Probably need to hard code a minimum of 60s or something like that. accidentally setting it to 1 second would be super annoying and very hard to get out of.

mc-hamster commented 2 years ago

I have reservations about this. What is this trying to solve?

joshpirihi commented 2 years ago

On behalf of a user on the forum. They're having the odd stability issue that a regular reset seems to fix

It's certainly a bit of a bodge. Come to think of it, I've had to reboot my gateway node a couple of times because it stopped receiving lora packets. fortunately the wifi connection stayed up so I could command the reboot with the cli remotely

mc-hamster commented 2 years ago

Please link to the the thread.

We should work toward addressing root causes.

garthvh commented 2 years ago

You can reboot remote nodes from the python API

https://meshtastic.org/docs/software/python/python-cli#--reboot

D4rk4 commented 2 years ago

@garthvh it's not solution for autonomous of the grid nodes

garthvh commented 2 years ago

@garthvh it's not solution for autonomous of the grid nodes

Sure it is https://meshtastic.org/docs/software/device/device-remote-admin

garthvh commented 2 years ago

Admin message works for this, closing