Donixon
Donixon
SKSignal K
Created by barnaclebill on 8/8/2024 in #questions
inject data?
Did not know this feature was allready in Signal-K like this. Only reason I reacted with the nodeRED soluction was that I was just working with it. I use nodeRED for everything, so I thought it would be a fitting solution for this answer. I guess this would be even more suitable.
18 replies
SKSignal K
Created by barnaclebill on 8/8/2024 in #questions
inject data?
No description
18 replies
SKSignal K
Created by barnaclebill on 8/8/2024 in #questions
inject data?
🧠
18 replies
SKSignal K
Created by barnaclebill on 8/8/2024 in #questions
inject data?
One of the examples, 'send an adjusted depth value', is what I think you want?
18 replies
SKSignal K
Created by barnaclebill on 8/8/2024 in #questions
inject data?
wow @Mastiff great minds haha
18 replies
SKSignal K
Created by barnaclebill on 8/8/2024 in #questions
inject data?
I think youre looking for NodeRed in SignalK : https://github.com/SignalK/node-red-embedded
18 replies
SKSignal K
Created by Donixon on 7/31/2024 in #plugins-and-webapps
Donixon - @AdrianP morning! The new Freeboard l...
nodeRED json for the docus
18 replies
SKSignal K
Created by Donixon on 7/31/2024 in #plugins-and-webapps
Donixon - @AdrianP morning! The new Freeboard l...
[{"id":"2c29e5a0b32c4033","type":"split","z":"075d623192a4cbb8","name":"Split Array","splt":"\\n","spltType":"str","arraySplt":"1","arraySpltType":"len","stream":false,"addname":"","x":490,"y":400,"wires":[["59a79a9cbfee678b"]]},{"id":"59a79a9cbfee678b","type":"signalk-send-delta","z":"075d623192a4cbb8","name":"","x":690,"y":400,"wires":[]},{"id":"9f064f3e1ee8d1ef","type":"function","z":"075d623192a4cbb8","name":"IMO","func":"var units = msg.payload.serial;\nvar signalkData = units.map(unit => {\n var serial = unit;\n\n return {\n \"context\": \"vessels.urn:mrn:imo:mmsi:\" + serial,\n \"updates\": [\n {\n \"timestamp\": new Date().toISOString(),\n \"values\": [\n {\n \"path\":\"\",\n \"value\": {\n \"registrations\":\n {\n \"imo\":\"IMO\" + serial\n }\n },\n }\n ]\n }\n ]\n };\n});\n\nmsg.payload = signalkData;\nreturn msg;","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[],"x":330,"y":400,"wires":[["2c29e5a0b32c4033"]]},{"id":"85d041bdcb02656b","type":"inject","z":"075d623192a4cbb8","name":"SHIPS","props":[{"p":"payload"}],"repeat":"3600","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"serial\":[\"244660640\"]}","payloadType":"json","x":180,"y":400,"wires":[["9f064f3e1ee8d1ef"]]}]
[{"id":"2c29e5a0b32c4033","type":"split","z":"075d623192a4cbb8","name":"Split Array","splt":"\\n","spltType":"str","arraySplt":"1","arraySpltType":"len","stream":false,"addname":"","x":490,"y":400,"wires":[["59a79a9cbfee678b"]]},{"id":"59a79a9cbfee678b","type":"signalk-send-delta","z":"075d623192a4cbb8","name":"","x":690,"y":400,"wires":[]},{"id":"9f064f3e1ee8d1ef","type":"function","z":"075d623192a4cbb8","name":"IMO","func":"var units = msg.payload.serial;\nvar signalkData = units.map(unit => {\n var serial = unit;\n\n return {\n \"context\": \"vessels.urn:mrn:imo:mmsi:\" + serial,\n \"updates\": [\n {\n \"timestamp\": new Date().toISOString(),\n \"values\": [\n {\n \"path\":\"\",\n \"value\": {\n \"registrations\":\n {\n \"imo\":\"IMO\" + serial\n }\n },\n }\n ]\n }\n ]\n };\n});\n\nmsg.payload = signalkData;\nreturn msg;","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[],"x":330,"y":400,"wires":[["2c29e5a0b32c4033"]]},{"id":"85d041bdcb02656b","type":"inject","z":"075d623192a4cbb8","name":"SHIPS","props":[{"p":"payload"}],"repeat":"3600","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"serial\":[\"244660640\"]}","payloadType":"json","x":180,"y":400,"wires":[["9f064f3e1ee8d1ef"]]}]
18 replies
SKSignal K
Created by Donixon on 7/31/2024 in #plugins-and-webapps
Donixon - @AdrianP morning! The new Freeboard l...
found the correct way to puth in the custom IMO. It needed an object IN an object. Now it works like intended! A bit complicated that some values works different then others. Alot of reverse engineering with other vessels, to see how they put it in. But works now haha
18 replies
SKSignal K
Created by Donixon on 7/31/2024 in #plugins-and-webapps
Donixon - @AdrianP morning! The new Freeboard l...
{
"path":"",
"value": {
"registrations":
{
"imo":"IMO " + serial
}
},
}
{
"path":"",
"value": {
"registrations":
{
"imo":"IMO " + serial
}
},
}
18 replies
SKSignal K
Created by Donixon on 7/31/2024 in #plugins-and-webapps
Donixon - @AdrianP morning! The new Freeboard l...
Oke, thought I fixed it, but it was just the 'bug' the showed them. Restart full Signla-K docker and didnt inject the 70+ vessel list with an IMO. Now it works 'clean' again. When I test it with injecting just 1 IMO, the stays fast, but the IMO-filter doesnt work. When I fiddle with different paths in 'registrations', the whole filter seems buggy and lagy again. Maybe with the new release, it is fixed! Thanks for the reaction.
18 replies
SKSignal K
Created by Donixon on 7/31/2024 in #plugins-and-webapps
Donixon - @AdrianP morning! The new Freeboard l...
18 replies
SKSignal K
Created by Donixon on 7/31/2024 in #plugins-and-webapps
Donixon - @AdrianP morning! The new Freeboard l...
The button somewhat works? - If i open freeboard clean browser, it loads in all vessels - If I toggle the IMO-only the own given IMO to own ships disapear - If I refresh the page with the toggle ON the boats also disapear but when I retoggle it they stay - But the other vessels dont disapear imidiatly but disapear slowly, or just stay; So I dont think the IMO-only toggle works flawless :^)
18 replies
SKSignal K
Created by Donixon on 7/31/2024 in #plugins-and-webapps
Donixon - @AdrianP morning! The new Freeboard l...
sorry for my missunderstanding!
18 replies
SKSignal K
Created by Donixon on 7/31/2024 in #plugins-and-webapps
Donixon - @AdrianP morning! The new Freeboard l...
@AdrianP oke fixt it, the formating was not correct:
{ "path": "", "value": { "registrations": "IMO 9123456"
} },
I keep forgetting, that when its a single input, the path is empty. Just like the MMSI. Now it works
18 replies
SKSignal K
Created by Donixon on 7/31/2024 in #plugins-and-webapps
Donixon - @AdrianP morning! The new Freeboard l...
Tried every possible thing , but no luck. Looking forward to your reply
18 replies
SKSignal K
Created by Donixon on 7/31/2024 in #plugins-and-webapps
Donixon - @AdrianP morning! The new Freeboard l...
No description
18 replies
SKSignal K
Created by Donixon on 7/31/2024 in #plugins-and-webapps
Donixon - @AdrianP morning! The new Freeboard l...
No description
18 replies
SKSignal K
Created by Donixon on 7/31/2024 in #plugins-and-webapps
Donixon - @AdrianP morning! The new Freeboard l...
This is how i write it to the cars delta
18 replies
SKSignal K
Created by Donixon on 7/31/2024 in #plugins-and-webapps
Donixon - @AdrianP morning! The new Freeboard l...
18 replies