https://github.com/stephenlb/smart-car-dashboard
Smart Car Dashboard via PubNub Data Stream Network
https://github.com/stephenlb/smart-car-dashboard
Last synced: 8 months ago
JSON representation
Smart Car Dashboard via PubNub Data Stream Network
- Host: GitHub
- URL: https://github.com/stephenlb/smart-car-dashboard
- Owner: stephenlb
- Created: 2015-01-29T06:08:54.000Z (over 11 years ago)
- Default Branch: gh-pages
- Last Pushed: 2015-02-20T01:06:26.000Z (over 11 years ago)
- Last Synced: 2024-10-24T18:52:37.250Z (over 1 year ago)
- Language: JavaScript
- Homepage: http://stephenlb.github.io/smart-car-dashboard/
- Size: 702 KB
- Stars: 6
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Smart Car Dashboard Output
Your car's live data feed in realtime displayed in a dashboard.
### Update All
You can update everything in a single call or one at a time.
```javascript
PUBNUB({
publish_key : 'demo-36',
subscribe_key : 'demo-36'
}).publish({
channel : 'smart-car',
message : {
tachometer : 4000,
mph : 60,
temperature : 60,
lat : 37.7833074,
long : -122.3992261
}
})
```
### Add Lat/Long WayPoint
You can add a waypoint with the following command.
```javascript
// Starting Waypoint
PUBNUB({
publish_key : 'demo-36',
subscribe_key : 'demo-36'
}).publish({
channel : 'smart-car',
message : {
lat : 37.7833074,
long : -122.3992261
}
})
// Add a Second Waypoint
PUBNUB({
publish_key : 'demo-36',
subscribe_key : 'demo-36'
}).publish({
channel : 'smart-car',
message : {
lat : 37.7830000,
long : -122.3999999
}
})
```