SK
Signal K2mo ago
Tony

Tony - Finally decided to install WilhelmSk acr...

Finally decided to install WilhelmSk across all of the Apple devices today. An impressive amount of work has gone into the app. I am still customizing the instrument panels and notifications from sk server. I have a question about zones. What's a good strategy for testing notifications triggered from zones? Should I simulate a path with values and try to fall out of a configured zone min/max? For example, I do not want to run my engine to trigger a test notification for oil pressure by making the engine oil pressure go up. So I am wondering what a simple testing strategy could be to simulate this.
4 Replies
Scott Bender
Scott Bender2mo ago
Have you played with the "Data Fiddler"?
Tony
TonyOP2mo ago
Yes I know how it works. Is this how you would test zones? Also, how would I create custom alerts for combined paths? For example, I want to check the engine oil pressure is aligned with rpms in the event of a sudden loss of pressure.
Greg Young
Greg Young2mo ago
nodered
- use a “notification “ node , for generating the customised alerts - likewise with inject node , you can simulate various alarm conditions … aka your oil pressure alert/alarm when testing flows, i just have a bunch inject nodes, and manually trigger them you can use the same path as eg the oil pressure, nodered will generate same path but with its own source. provided whatever your using to display/trigger from this path is not “source selected” it should enable your testing
Scott Bender
Scott Bender2mo ago
for multiple paths, subscribe to both and use a function to do the test
let _ = global.get('lodash')
let app = global.get('app')

let chargerCurrent = app.getSelfPath('electrical.chargers.house.current.value')
let amps = app.getSelfPath('electrical.venus.dcPower')

if (_.isUndefined(chargerCurrent) || chargerCurrent === null ) {
chargerCurrent = 0;
}

if ( chargerCurrent > 0 ) //we're charging the battery from the grid
chargerCurrent = 0
return { payload: amps - chargerCurrent, topic: 'electrical.venus.totalCurrent'}
let _ = global.get('lodash')
let app = global.get('app')

let chargerCurrent = app.getSelfPath('electrical.chargers.house.current.value')
let amps = app.getSelfPath('electrical.venus.dcPower')

if (_.isUndefined(chargerCurrent) || chargerCurrent === null ) {
chargerCurrent = 0;
}

if ( chargerCurrent > 0 ) //we're charging the battery from the grid
chargerCurrent = 0
return { payload: amps - chargerCurrent, topic: 'electrical.venus.totalCurrent'}
Want results from more Discord servers?
Add your server