David Sanner
David Sanner
SKSignal K
Created by David Sanner on 2/11/2025 in #server
David Sanner - Bug or odd behavior w/ Data Brow...
On further thought I don't think startup sync explains what I'm seeing. (Data Browser showing different notifications data than http://localhost:3000/signalk/v1/api/vessels/self/ ) I have three paths defined below for the tank measurement - one from SenseEsp (currentLevel) & two from derived-data. What is really odd is if all three are there everything is fine but if I remove tanks.freshWater.starboard.capacity then no notifications.tanks... information shows up under "Data Browser" - I'll report back if I see anything else (or others see this) but we may just have to put this on the "that's odd" list. { "path": "tanks.freshWater.starboard.capacity", "value": { "units": "ratio", "description": "Level of tank as ratio", "zones": [ ] } }, { "path": "tanks.freshWater.starboard.currentLevel", "value": { "units": "ratio", "description": "Level of tank as ratio", "alertMethod": [ "visual", "sound"], "zones": [ { "upper": 0.125, "lower": 0, "state": "alert", "message": "1/8 Fresh Water Tanks" } ] } }, { "path": "tanks.freshWater.starboard.currentVolume", "value": { "units": "m3", "description": "Starboard Water Tank Volume.", "zones": [ { "upper": 0.01209,"lower": -10,"state": "warn", "message": "Starboard Water Tank Low" }, { "upper": 0.0266, "lower": 0.0121, "state": "alert","message": "Starboard Water Tank 7 Gallons" } ], "alertMethod": [ "visual", "sound" ] } }
6 replies
SKSignal K
Created by David Sanner on 2/11/2025 in #server
David Sanner - Bug or odd behavior w/ Data Brow...
This seems to be happening for only some notification paths (only 20% are missing?), working discovering a pattern. If you have many zones/notifications can you compare the number found under the URL to the number under the Data Browser? Thanks for the check that I'm waiting for up to 15s. I am waiting long enough... the data/measurement is there, just not the notification in some places but not all. (btw, most notification paths don't show up until data is there - plugins may be different) Key bit I think, is that the measurement and the related notification is showing up under: http://localhost:3000/signalk/v1/api/vessels/self/ But not under "Data Browser" or subscription. In my plugin I'm using "app.getSelfPath('notifications')" which it does show up under.
I redid my baseDeltas.json to have only a single zone (for this tank) and it's the same behavior. Thx.
6 replies
SKSignal K
Created by David Sanner on 2/11/2025 in #server
David Sanner - Bug or odd behavior w/ Data Brow...
I wrote a simple test plugin and I'm seeing the same behavior when I subscribe to notifications but here's a test that I hope illustrates the issue. I have a SensESP sending a tank value every 15s or so: 'tanks.freshWater.starboard.currentLevel' and all looks good (values shown in Data Browser). After SK server restart I added a zone to it - shown in baseDeltas.json: { "path": "tanks.freshWater.starboard.currentLevel", "value": { "units": "ratio", "description": "Data should be of type number.", "alertMethod": [ "visual", "sound" ], "zones": [ { "upper": 0.1, "lower": 0, "state": "alert", "message": "testing" } ] } } --------- As soon as I add the zone a notification for that zone pops up in 'Data Browser' however if I restart SK server it doesn't repopulate the notification and only shows the path to the tank level measurement. However if I then view via http://localhost:3000/signalk/v1/api/vessels/self/ I find the notification: notifications.tanks.freshWater.starboard.currentLevel With proper values (eg. $source "self.notificationhandler") Again, at this point, when I look under "Data Browser" the notification doesn't show up. If I then edit the measurement's zone values it shows up but if I then restart SK server again it doesn't show up in the 'Data Browser' (or subscription) but does w/ URL above. -- So that's the inconsistency -- (I hope that makes sense / good example) Final oddness/clue: If I then go and delete the zone & method from the measurement meta data baseDeltas.json has: { "path": "tanks.freshWater.starboard.currentLevel", "value": { "units": "ratio", "description": "Data should be of type number.", "zones": null } } But this time after restart it does show the notification path (w/o zones or methods) under both 'Data Browser' and URL above. Thanks
6 replies
SKSignal K
Created by Greg Young on 2/8/2025 in #plugins-and-webapps
Greg Young - @Scott Bender anchor alarm plugin...
@Greg Young The issue only happens when changing from warning (alarm state) to 'emergency' state as it wasn't updating the notification state (though it did update the state going from normal-> emergency) . This issue only popped up only with the unreleased changes Scott made back in September (refactoring and stopping continuous updating of the notification state as he pointed out should only be set once). Published version never had this issue.
Note, Scott's feedback on this lead me down the road to creating signalk-notification-player plugin which allows for custom notification playback. Version 2.0 should be out soon which includes a Webapp for viewing notification states / values.
https://github.com/davidsanner/signalk-notification-player
5 replies
SKSignal K
Created by yarradeen on 1/29/2025 in #questions
notifications.notifications
That's what I'm thinking & my testing yesterday showed the same. Glad you could edit manually.
Not sure the fix for others, maybe a delete button or special case that removes the edit feature for paths that start with notification? Perhaps open an issue w/ SK server on github just to make sure the issue is known.
8 replies
SKSignal K
Created by yarradeen on 1/29/2025 in #questions
notifications.notifications
You might start by making a copy of baseDeltas.json and then removing the issues - though you have to keep the json format regular (remove all between and including {}, if last remove the trailing comma).
I've seen this pop up when I had @signalk/zones but I think what is likely happening in your case is that if you edit the meta data of a notifications.xxx.xxx entry under "Data Browser" and save it, the notification entry gets stored in baseDeltas.js which then can have the duplicate notification.notification issue after sk restarts.
8 replies
SKSignal K
Created by yarradeen on 1/29/2025 in #questions
notifications.notifications
Do you have zones defined by the older @signalk/zones plugin? I think it can cause this issue. (check AppStore installed / source under Data Browser) To migrate zone configuration from @signalk/zones plugin to use SK server directly, under SK Data Browser, click edit and then save for each path with a zone shown . Then disable then @signalk/zones plugin.
Cleanup: after removing @signalk/zones plugin try restarting SK ... that may help but you might have to edit baseDeltas.json
8 replies
SKSignal K
Created by jimseng on 1/26/2025 in #questions
Can someone talk me through Kip boolean control panel --> node red
I'm not sure what to tell you w/o an Andriod to test ... maybe try other platforms w/ different javascript engine? I can't even run Kip on my older ipad air however I did just test on an iphone and while the "Push" control works (pressing on button sends true) I can't get it to repeat. This issue may just be related to touch interface vs. mouse events.
21 replies
SKSignal K
Created by jimseng on 1/26/2025 in #questions
Can someone talk me through Kip boolean control panel --> node red
With the new Kip boolean panel a "Push" type control sends multiple/continuous events with True. I'm seeing 5-10 per second. When released (stop pressing) it stops sending True (does not send a False). Maybe try adding a new Push type switch to make sure you're not getting any cached code?
21 replies
SKSignal K
Created by jimseng on 1/26/2025 in #questions
Can someone talk me through Kip boolean control panel --> node red
Also, I've used Kip's Push (eg. to mute notification playback) and it seems to send true as fast as it can while being depressed. I'm not seeing any repeat rate control. The boolean Toggle control works well for my use case above w/ USB switching.
21 replies
SKSignal K
Created by jimseng on 1/26/2025 in #questions
Can someone talk me through Kip boolean control panel --> node red
No description
21 replies
SKSignal K
Created by jimseng on 1/26/2025 in #questions
Can someone talk me through Kip boolean control panel --> node red
I'm controlling a usb relay with node red (allows me to enable n2k bus when testing from home). Startup read relay state and creates SK path. PUT handler accepts (true/false) input from Kip's boolean toggle, flow logic then controls relay, reads state and sends pathvalue to to update SK path.
21 replies
SKSignal K
Created by David Sanner on 10/11/2024 in #server
David Sanner - meta data & zones issue: I have...
From the manual: "Any part of the range which is not explicitly within a zone is considered to be normal (the default)." Got it, makes sense but again would be nice to be able to control the message & method associated with a notification entering the normal state. Use case might be a relay (battery combiner) turning off or any other path returning to normal where it might be nice to get a notification of this. I guess defining a nominal zone could work but why not have control of the notification in the default state? Thanks.
1 replies
SKSignal K
Created by David Sanner on 9/30/2024 in #server
David Sanner - zones & notifications: what are ...
@Karl-Erik Gustafsson Thanks... I was poking around there yesterday (though missed the pencil/edit) icon. @Scott Bender Thanks as well, now I see the best way to do zones/notifications. fyi, if it's not obvious for all, to migrate your config from the zones plugin to server/baseDeltas.json use the Data Browser and for each path with zone metadata (but not the notification paths generated by zones plugin) click edit and then save (pencil then disk icon). This transfers and saves the config from the zones plugin to baseDeltas.json which then allows the zones plugin to be disabled.
4 replies
SKSignal K
Created by David Sanner on 9/29/2024 in #plugins-and-webapps
David Sanner - Beta testers (windows?) I'm ab...
I added the mpg123 player as an option and updated npmjs w/ the latest version. I can add other players later / as needed.
1 replies