ps2 / pod_simulator_frontend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Started with the Pod Simulator UI

This is a UI frontend for the raspberry pi based pod simulator. You will need to have an instance of that running before you can use this UI. You'll also need to install a recent version of Node.js

Configuration

You will need to point this UI to the network address or name of the raspberry pi your pod emulator is running on. To do this, edit the src/api/index.js file and replace the hostname with either a locally resolvable name, or an ip address.

var socket = new WebSocket("ws://rpi.local:8080/ws");

In the above example, rpi.local is the network name of my raspberry pi.

Startup

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

If you restart your pod simulator, you will need to refresh your web page to get a connection to the new simulator.

About


Languages

Language:JavaScript 76.2%Language:HTML 14.3%Language:CSS 9.5%