Comments (3)
BTW getting all /vessels/self/ data could result in a lot of data. Would be better to ask for the data thats actually required.
from freeboard-sk.
It connects to delta stream using: ws://host:port/signalk/v1/stream?subscribe=none
Spec for streaming api says.....
You can specify the contents of the strea by using the subscribe
query parameter.
- ws://hostname/signalk/«version»/stream?subscribe=self
- ws://hostname/signalk/«version»/stream?subscribe=all
- ws://hostname/signalk/«version»/stream?subscribe=none
So this is a valid connection query string according to the spec.
Upon successful connection it sends the following subscription requests:
let aisSub = {
"context":"vessels.*",
"subscribe":[
{"path":"uuid","period":10000,"policy":selfPolicy},
{"path":"name","period":10000,"policy":selfPolicy},
{"path":"communication.callsignVhf","period":10000,"policy":selfPolicy},
{"path":"mmsi","period":10000,"policy":selfPolicy},
{"path":"port","period":10000,"policy":selfPolicy},
{"path":"flag","period":10000,"policy":selfPolicy},
{"path":"navigation.position","period":10000,"policy":selfPolicy},
{"path":"navigation.state","period":10000,"policy":selfPolicy},
{"path":"navigation.courseOverGround*","period":10000,"policy":selfPolicy},
{"path":"navigation.speedOverGround","period":10000,"policy":selfPolicy}
]
};
let selfSub = {
"context":"vessels.self",
"subscribe":[
{"path":"navigation.*","period":1000,"policy":selfPolicy},
{"path":"environment.wind.*","period":1000,"policy":selfPolicy},
{"path":"notifications.*","period":1000}
]
}; ```
So not sure where `playbackRate` would come into it.... that would be a history API query...
from freeboard-sk.
Looks like my code added default playback and startTime - oops. So ignore that.
Ok, I was handling 'all', Ive added 'none' now, and will look at 'self' too. Long time since I looked at that code :-)
Seems there is another ws bug in my code that was affecting the above too so closing this.
from freeboard-sk.
Related Issues (20)
- Why don't you use Mapbox Style to implement the ENC display ? HOT 1
- FB not working behind a reverse proxy over https in Docker HOT 6
- Improvement ideas for meteo display HOT 9
- True wind HOT 6
- Feature Request: Different colors per shiptype HOT 7
- Feature Request: Filter per shiptype HOT 4
- Feature Request: Different 'hide moored' option HOT 3
- Feature Request: Focus function revamp HOT 10
- Internet map service popup shown in kiosk mode HOT 3
- Vessel no longer detected since upgrade to 2.9.0. Also no longer detecting .mbtiles charts HOT 3
- Route display: Show waypoints HOT 2
- Provide means for deleting waypoints on touch screen
- Use unified interface for route drawing and editing HOT 2
- Route drawing/editing: show total route length
- Wind direction compass rose HOT 3
- Feature Request: Filter if shipID is filled HOT 5
- trails are not syncronized HOT 4
- Feature request: Provide a way to configure and mute sounds HOT 1
- AIS AtoN markers are disproportionally large HOT 1
- Consider making AIS target icons larger when zoomed close in HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freeboard-sk.