cli icon indicating copy to clipboard operation
cli copied to clipboard

`treehouses tg-terminal` (fixes #1778)

Open darthnoward opened this issue 5 years ago • 0 comments

fixes #1778

what does it do?

serves as a terminal over on Telegram send commands to a Telegram bot and get the output.

Screenshot 08-20 at 12 32

easy to access your rpi even if you're on a phone!

how to test it?

  • apply for a Telegram account if you don't have one and install Telegram client for mobile/desktop
  • create a Telegram bot and get the token for it, see this link for help, the format of the token would be similar to 110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw
  • run treehouses upgrade cli tg-terminal to switch to this branch
  • run treehouses tg-terminal install [put the token here] to install
  • run treehouses tg-terminal start to start it
  • Text your Bot on Telegram "/start", then enter the password treehouses when prompted
  • Text your Bot on Telegram "/run"

Screenshot 08-20 at 12 46

Terminal over on Telegram is now working!!

what's more to test on?

  • treehouses tg-terminal install [token] [password] to set a custom password instead of default treehouses
  • treehouses tg-terminal enable to make the bot run automatically on boot, so the bot will be operational even after you reboot
  • drag and drop for file transfer to rpi

Screenshot 08-20 at 13 24

darthnoward avatar Aug 20 '20 04:08 darthnoward