matte
SKSignal K
•Created by matte on 10/20/2024 in #questions
Metadata via api 2.11
Yes we will see, thanks for the help we continue tommorow
62 replies
SKSignal K
•Created by matte on 10/20/2024 in #questions
Metadata via api 2.11
We are doing a research project conneting a large ship simulator which have around 1800 signals to prove that the maritime industry would benift of apis
62 replies
SKSignal K
•Created by matte on 10/20/2024 in #questions
Metadata via api 2.11
Just from a courious question, how many data points / paths do you think a singalk can handle at second level?
62 replies
SKSignal K
•Created by matte on 10/20/2024 in #questions
Metadata via api 2.11
thanks for all help
62 replies
SKSignal K
•Created by matte on 10/20/2024 in #questions
Metadata via api 2.11
for some reason i got it to work now. I restarted signalk then it worked better
62 replies
SKSignal K
•Created by matte on 10/20/2024 in #questions
Metadata via api 2.11
it works but i want make it work on this path Machinery.SteeringGear.1.Pump.2.State
62 replies
SKSignal K
•Created by matte on 10/20/2024 in #questions
Metadata via api 2.11
that works actually then i had a little special path that where it did not work
62 replies
SKSignal K
•Created by matte on 10/20/2024 in #questions
Metadata via api 2.11
i am thinking if there could be some permissions issues with the file
62 replies
SKSignal K
•Created by matte on 10/20/2024 in #questions
Metadata via api 2.11
same but with get
62 replies
SKSignal K
•Created by matte on 10/20/2024 in #questions
Metadata via api 2.11
Sounds good but i sthould still be possible to store it and return it in the api call?
62 replies
SKSignal K
•Created by matte on 10/20/2024 in #questions
Metadata via api 2.11
This is my stringified payload "{"value":{"discipline":"Naivgation","key":"Position.Longitude","topic":"Position.Longitude"}}"
62 replies
SKSignal K
•Created by matte on 10/20/2024 in #questions
Metadata via api 2.11
In the old 1.7 it showed up
62 replies
SKSignal K
•Created by matte on 10/20/2024 in #questions
Metadata via api 2.11
this is my strinfied value.
Do i need to give source key ?
62 replies
SKSignal K
•Created by matte on 10/20/2024 in #questions
Metadata via api 2.11
I get this in return but there is no meta data nor when i use the api or in ui {
"state": "COMPLETED",
"requestId": "e8392c1b-60c4-417d-a4f5-9ef444d0382e",
"statusCode": 200,
"href": "/signalk/v1/requests/e8392c1b-60c4-417d-a4f5-9ef444d0382e",
"user": "admin"
}
62 replies
SKSignal K
•Created by matte on 10/20/2024 in #questions
Metadata via api 2.11
The issue is that i dont have access ot the setting files, i need the one i am doing the study project with if we reach the file since we are running it in docker so i cant see it. Thanks for the exmaple. is the meta after value the stringified json object? like this but stringified "meta": {
"discipline": "Naivgation",
"key": "Position.Longitude",
"topic": "Position.Longitude"
},
62 replies
SKSignal K
•Created by matte on 10/20/2024 in #questions
Metadata via api 2.11
@Scott Bender It is this documentation you refer to? https://signalk.org/specification/1.7.0/doc/put.html
I am trying to get it work i have got so far that i get only 202 response Pending but noting updated
Are there any more documentation how the metadata should look like? in the payload
62 replies
SKSignal K
•Created by matte on 10/20/2024 in #questions
Metadata via api 2.11
I will try to explain
I am trying to set metadata of a path using the put API
/signalk/v1/api/vessels/self/' + item.fullKey + '/meta
In older version like 1.7 if remeber it was possible to add custom keys as metadata and custom units when adding metadata via API.
example
/meta example metadata Payload for the put request that have used in the past { "units": "knots", "euqipmentTag": "Engine" "serialNumer: "tet12345 } But since i cant ge this to work in 2.11 I was in the ui under browse data it was possible to metadat directly but only under pre defined keys like description etc My question is have the API changed ? and is it still possible to add custom keys under metadata or only using the predefined ones ?
/meta example metadata Payload for the put request that have used in the past { "units": "knots", "euqipmentTag": "Engine" "serialNumer: "tet12345 } But since i cant ge this to work in 2.11 I was in the ui under browse data it was possible to metadat directly but only under pre defined keys like description etc My question is have the API changed ? and is it still possible to add custom keys under metadata or only using the predefined ones ?
62 replies