This client is to be used with the MotorControlServer. It allows the user to sign in by pin to a running server.
This is a PWA-ready app, which means that when root is run on the server that meets minimum requirements, the user will be able to install the app in their browser.
This repository is published to https://kottochii.github.io/MotorControlClient/
When the app is opened the first time, it cannot function without a setup process. This involves:
- Going to settings by clicking a respective icon in top-right corner.
- Adding hostname with port (e.g.
localhost:5555) of the server on the first line - Selecting a radio
HTTPorHTTPS - Setting
App IDandApp Hashas per database. - Testing the values, using respective button.
- Submitting the form, using respective button.
On most widely used browsers, the Network tab shows all of the network requests/responses. Also, failed requests are directly thrown in the console. The way around it is to discourage the user from running a browser with this features, such as by running the app in kiosk mode of the browser (widely available in Firefox), especially on Linux- or Android-based development boards (e.g. RPi, Orange Pi etc.).