Comments (5)
This is the remaining feature where Freeboard behaviour is detecting the server type and using:
Node server = /webapps
Artemis server /signalk/v1/apps/list
urls to retrieve a list of webapps.
A request is sent to the appropriate url and the response expected to be consistent across servers...
The response is expected to have the following keys:
{
name: ..., ,
description: ... ,
_location: ...,
}
which are used to compile the target url
as follows:
if(!_location) { url= `/` + name }
else { url= _location }
KIP entry returned by node-server looks like this... so you can see the "_location": "/@mxtommy/kip"
is used for the url.
{
"_from": "@mxtommy/[email protected]",
"_id": "@mxtommy/[email protected]",
"_inBundle": false,
"_integrity": "sha512-NBJjKmpw34AHJOzxJlXoFVj8I/77vm+DAheJLAX74wAlTuzeLjBf8pIh2IWpw0XejHurApTahN6y5D8avXuOBw==",
"_location": "/@mxtommy/kip",
"name": "@mxtommy/kip",
"description": "This is an instrumentation package to display signalK data. Display can be split up in any arrangement to show all data available on the server.",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "@mxtommy/[email protected]",
"name": "@mxtommy/kip",
"escapedName": "@mxtommy%2fkip",
"scope": "@mxtommy",
"rawSpec": "0.1.8",
"saveSpec": null,
"fetchSpec": "0.1.8"
},
....
Can you provide a sample of what Artemis server returns for KIP.
This is clearly a server behaviour that should be documented in the spec so consistent behavour is experienced by client applications.
from freeboard-sk.
Yes a spec addition is needed. I thought we already agreed on path signalk/v1/apps
with list
, search
,install
, remove
. /webapps
was just the early node custom implementation? I will make a PR for the spec.
I will alter my signalk/v1/apps/list
to return:
{
name: ..., ,
description: ... ,
_location: ...,
}
from freeboard-sk.
Hmm, _location
seems oddly named, location
or href
(which I have) seems better. Any idea why the _ ?
I will include both _location
and href
for now.
from freeboard-sk.
Artemis is now returning:
[{
"_location": "../@mxtommy/kip/package/public/index.html",
"licence": "",
"author": "Thomas St.Pierre <[email protected]>",
"name": "Kip",
"description": "",
"href": "../@mxtommy/kip/package/public/index.html",
"repository": "https://github.com/npm/npm.git",
"version": "0.1.8"
},
....
]
from freeboard-sk.
Thanks, it works!!
Closing now
from freeboard-sk.
Related Issues (20)
- Feature Request: Create route from waypoints HOT 2
- Feature Request: Auto Login / Remember me HOT 7
- Unknown wind shown as 0 HOT 1
- wind next legs HOT 3
- Overlap between mbtiles files. HOT 12
- Blank screen between mbtiles files when zooming in or out HOT 5
- heading. HOT 11
- delete menu. HOT 2
- Alarm Operation HOT 5
- Autopilot v2 API alignment
- Remove built-in PyPilot connectivity.
- Setting dialog options menu overflow HOT 1
- Measure, distance and angles HOT 1
- enhancement of waypoints HOT 4
- Meteo context pop-up title not updated HOT 1
- Make welcome screen skippable via URL params HOT 4
- show laylines to waypoint HOT 17
- Show windbarbs HOT 2
- show kip steering widget in freeboard.
- "No weather data found." HOT 20
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.