pioneers / runtime

Firmware for the PiE kit robots and devices
7 stars 2 forks source link

[MISC] Add button to generate new ngrok session #197

Closed levincent06 closed 3 years ago

levincent06 commented 3 years ago

For Spring 2021, each time a new team wants to control the robot, we need to generate a new set of ngrok IP addresses. (This is to prevent different teams from connecting to Runtime simultaneously.)

The current way to do this is to ssh into the Pi and run sudo systemctl restart ngrok. This will run ngrok.sh, which restarts ngrok with new IP addresses and displays them on a webpage (through ngrok_displayer.py).

A new, more user-friendly solution, is to add an HTML button on the webpage which will restart ngrok and display the new IP addresses.