Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/drnic/stratux-simulator
https://github.com/drnic/stratux-simulator
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/drnic/stratux-simulator
- Owner: drnic
- Created: 2017-07-17T04:08:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-17T08:26:20.000Z (over 7 years ago)
- Last Synced: 2024-10-16T12:33:50.138Z (2 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stratux Simulator
I wanted to build a little app that watches [Stratux](https://github.com/cyoung/stratux) web socket data, so this is a simple simulator to produce traffic. Stratux API documented at https://github.com/cyoung/stratux/blob/master/notes/app-vendor-integration.md
Currently supports:
* GET /getStatus
* GET /getSituation
* WebSocket Upgrade /status
* WebSocket Upgrade /situation
* WebSocket Upgrade /trafficIn one terminal:
```
go run main.go
```To watch simulated traffic:
```
wsd -url ws://localhost:8080/traffic -origin http://localhost:8080/
```Get static response to Stratux status:
```
$ curl localhost:8080/getStatus
{"Version":"v0.5b1","Devices":0,"Connected_Users":1,"UAT_messages_last_minute":0,"UAT_messages_max":0,"ES_messages_last_minute":100,"ES_messages_max":500,"GPS_satellites_locked":10,"GPS_connected":true,"GPS_solution":"","Uptime":227068,"CPUTemp":42.236}
```