https://github.com/ps2/pod_simulator_frontend
https://github.com/ps2/pod_simulator_frontend
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ps2/pod_simulator_frontend
- Owner: ps2
- Created: 2022-02-04T23:36:00.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-14T18:35:44.000Z (over 4 years ago)
- Last Synced: 2025-06-14T03:39:36.504Z (12 months ago)
- Language: JavaScript
- Size: 637 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Getting Started with the Pod Simulator UI
This is a UI frontend for the raspberry pi based [pod simulator](https://github.com/LoopKit/pod). 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](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
## 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](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.