Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API parameter/call for reset #476

Open
jimjackii opened this issue Nov 8, 2024 · 4 comments
Open

API parameter/call for reset #476

jimjackii opened this issue Nov 8, 2024 · 4 comments

Comments

@jimjackii
Copy link

Hello,

Is there an API parameter/call to reset the device externally?

I would like to perform an automatic reset once a day because there are still problems with the device and it remains in AP mode after a few days (presumably restarted?).

The firmware is devel20240521, the WiFi mode is 1.

Regards, Steffen

@dl9rdz
Copy link
Owner

dl9rdz commented Nov 8, 2024

You can do something like
wget --post-data="reboot=1" http://[deviceip]/control.html

@jimjackii
Copy link
Author

jimjackii commented Nov 8, 2024

Thanks.

With

wget -q --tries=1 --timeout=1 --post-data="reboot=1" http://[IP-Addr]/control.html

it works with an attempt that is cancelled after 1s.
The receiver is reset.

Regards, Steffen

@ckuethe
Copy link
Contributor

ckuethe commented Jan 9, 2025

I've been thinking of adding a configurable feature to do this, either at a set time (perhaps 2245Z and 1045Z daily, so that it's reset a little bit before all the weather balloons go up), or a periodic timer (anyywhere from once a minute to once a year, as you deem appropriate)

@jimjackii
Copy link
Author

The configurable reset would be great.

I have the problem that sometimes the receiver is no longer accessible (WiFi starts in access mode) and I can't easily access the device to reset it manually. An internal automatic reset would be very helpful.

ckuethe added a commit to ckuethe/rdz_ttgo_sonde that referenced this issue Jan 10, 2025
ckuethe added a commit to ckuethe/rdz_ttgo_sonde that referenced this issue Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants