Trigger API call from N2K MFD
I would like to be able to reboot my sensesp device from my Raymarine MFD. How would i do so?
For rebooting sensesp i guess i can call /device/restart (https://signalk.org/SensESP/pages/internals/)
But how would i add a button on my MFD, which initiates a reboot message to signalk-server, and from there to sensesp (over Wifi, i haven't got the sensesp connected to N2K directly).
Thanks a lot.
23 Replies
No way that I know of with Raymarine.
There used to be a way to bring up a website on Axiom, not sure that still works.
Then you could have a switch in Kip that does it via node-red.
Thanks Scott interesting workaround. Indeed that seems to be possible https://forum.raymarine.com/showthread.php?tid=5750
Don't think that is for my use case though π Bit to complicated, than i'm faster doing it with my phone.
Maybe another solution could be a watchdog in signalk-server that triggers when a certain value is absent for an x amount of time. Than automatically trigger the reboot (instead of me doing it manually). Would there be a plugin for that?
No plugin for that, it could be done in node-red
Will take a look at that, thx. I guess i would need the Treshold node for that? https://flows.nodered.org/node/@joelaw9/node-red-threshold
Just a signalk subscribe node i see.
With Lighthouse 4, the number of apps available is getting smaller and smaller. I couldn't find any browser for my Axiom+, and the fact that they need to be signed by raymarine is kinda annyoing.
I found a couple tutorials about jailbreaking Lighthouse, but Β‘I never managed to succeed with that.
I actually managed ti jailbreak my axiom after a few hours of attempts π

That means that if you can install a browser, you can do pretty much anything. My next step is building a dedicated app for the kind of stuff you were asking for. NOTE: Remember that jailbreaking the device can brick it, so do it at your opwn risk . I used this guide: https://github.com/colinoflynn/raymarine-axiom-rescue
Also note that it comes with AnyDesk. You can use that to display the screen from other devices. At one point at had it showing WilhelmSK from an iPad.
Yup, that's an easier solution. I guess "overkill" is my second name π
Indeed probably useless, but is cool π
Nice!
Something else, i see that Lighthouse supports Digital Switching https://www.raymarine.com/en-us/learning/online-guides/what-is-digital-switching
I don't have any experience with DS, but article above indicates that Lighthouse supports multiple DS-systems, like EmpirBus. And for that i see a signalk plugin: https://github.com/sbender9/signalk-empirbus-plugin
I am not near the boat now to give it a try , but wouldn't that be a solution?
Yes, requires purchase of commercial hardware.
I have this and can control from my Axiom. I think itβs the cheapest solution.
https://yachtdevicesus.com/products/circuit-control-nmea-2000-digitial-switch-ydcc-04
Yacht Devices U.S. LLC
Circuit Control - NMEA 2000 Digitial Switch - YDCC-04
Circuit Control YDCC-04 The Circuit Control contains four latching (bi-stable) relays, which can be managed from connected control buttons with LED indicators or over NMEA 2000 with standard messages. The Circuit Control is the core component of our digital switching system. In addition to connected buttons, loads can

And wouldn't it be possible to just 'define a button', let's see turn nav lights on, that would put that message/pgn on the n2k bus. Obviously if no hardware if attached it wouldn't trigger anything. But maybe i would be able to pick up the message and use that to trigger a nodered flow.
Nope
Or is not possible to define the button/send the message, when there is no DS hardware on the network?
Would be cool if they just supported the generic switching pgns, but they donβt.
If they did then we could just use the signalk-n2k-switching-emulator plugin.
All the lighthouse switching requires special stuff from the vendor.
Digital Switching Configuration
Marine electronics for NMEA 2000 and SeaTalk NG networks
reading... π
I tried to reverse engineer that stuff without any luck.
I guess if someone made real emulation plugin of the YDCC, could probably get it to work.
Much easier to just put an IPad at the helm! π
Yes i was thinking the same (maybe i use a shelly button or water resistant alternative)
Thanks, makes it more clear now.
Btw. is this a Raymarine thing? Do other brands use standard n2k pgns?
Not sure. And I think k the Raymarine does use the standard pgns, itβs just that you this config to even get any buttons and it is locked to the serial # of the ydcc.
I have not looked into how the other mfd manufacturers do it. But accourdong to that page, they all need some configuration files uploaded to them.
Might be able to trick them into using my emulator, not sure.
Ok, will give it a try when i am at the boat. Do i understand it correctly that i have to test it like this:
- i use https://github.com/sbender9/signalk-n2k-switching-emulator
- this emulates a DS-device (by broadcasting it existence?) so that the MFD (potentially) 'unlocks' the possibility to define a switch/button.
- i define a switch/button and than check in data browser if a specific path becomes available