We use MQTT for comunication between the ground stations and ourselves. Our ground station receives a signal from our satellite, which then sends the data to the MQTT server. Then our bot listens to the MQTT server and sends a message to whoever is using the bot on Telegram.
- PUBLISH [topic] [message]
- Publishes a message to the specified topic
- EXEC [code]
- Locally run code on the gs. Don't use double quotes (")
- RUN [script]
- Run a specific script on the gs. Found in scriptRunner
- SEND [message]
- Send a signal out with the correspnding message
- PING
- Requests a response from the gs
This messaging app allows for us to commincate with our bot and for the bot to send us messages.
The bot name is under: gsStanfordBot
Heroku is the online hosting service that is hosting our bot. The bot name under Heroku (also known as an app) is gsstanfordbot. The bot is connected to my account for free hosting. Contact agamarra@stanford.edu for info on this.
Followed this guide under Heroku to set up the bot: https://github.com/xDWart/mqtg-bot
This is the MQTT broker link.
Host: broker.mqttdashboard.com
Port: 1883
Link: tcp://broker.mqttdashboard.com:1883
We can also use HiveHQ to access a web client to connect to the Mqtt server with http://www.hivemq.com/demos/websocket-client/
This lets us actively view the subscriptions.