Building a phone app
Based on our design, we will be building a web-page-based app, which will be designed for phone and computer. This lets us control the robot without the use of SSH, in a way we can extend and build on as we extend the robot’s capability. We will use three tools designed to work together for this:
- HTML (Hypertext markup language) – This presents things on a web page or app, text, inputs, buttons, and links.
- CSS (Cascading Style Sheets) – This is used to add style and layout to HTML, to determine colors, fonts, positions, and sizes of items.
- JS (JavaScript) – This is used to write code that runs on a page, what happens when buttons are clicked, or to construct complicated gadgets. We’ll use it to interact with the MQTT services on our robot.
We will also need a web service on the robot, to make these files available to your phone. We will use PyInfra to install these items and make them work together.Now let’s build a menu...