This app uses a web socket server to broadcast each client message to all clients.
- Create .env file with .env.serversample content.
- Run
npm run server
command.
You can run locally this application in console to allow easy debugging.
- Create .env file with .env.simulatorsample content.
- Run
npm run simulator [DEVICE]
command. You can run the 4 devices needed in a simulator:
npm run simulator N
npm run simulator S
npm run simulator E
npm run simulator W
- Move pixel with keys. Use '.' key to simulate click.
If you want to simulate other devices sending messages, use run-messaje.js file.
- Run
npm run message
command to send the hardcoded message on file.
Finally, deploy this image on balena and use joystick to move the pixel on the display.
- Don't forget to create Environment Variables. See .env.clientsample to see which ones to create.
- Deploy on balena