Scott Bender - TestFlight version 1.17.0 of Wil...

TestFlight version 1.17.0 of WilhelmSK is available. Please use this thread so see updates and report issues.
136 Replies
Scott Bender
Scott BenderOP3mo ago
Send me your Apple ID if you want to try and you'll not already on the list
* Added: Control Center switching
switches must include "displayName" meta data
switches are just toggles now, they do not show the current state
multi switch supprt for victron inverter mode and led presets

* Comming: Siri Integration
* Comming: Hopefully Home Screen Widgets!
* Added: Control Center switching
switches must include "displayName" meta data
switches are just toggles now, they do not show the current state
multi switch supprt for victron inverter mode and led presets

* Comming: Siri Integration
* Comming: Hopefully Home Screen Widgets!
Scott Bender
Scott BenderOP3mo ago
No description
Greg Young
Greg Young3mo ago
for some reason my earlier testflight for wsk dissapered? [email protected] dont know what happened? wsk beta expired on both my ipads … and testflight for wsk dissapeared … weird
Scott Bender
Scott BenderOP3mo ago
hmm... you are in the list oh! it has not been approved by Apple yet
Greg Young
Greg Young3mo ago
aha
Scott Bender
Scott BenderOP3mo ago
I forgot, the first time a new minor version goes to testflight, it requres a review I also forgot to mention that the Control Center actions require iOS 18
Greg Young
Greg Young3mo ago
ok noted, ive deleted my mis threads 🙂 also still have one ipd with wsk “not expired” … so will survive:)
Scott Bender
Scott BenderOP3mo ago
You can download the App Store version It
Greg Young
Greg Young3mo ago
hmmm, the ipad its working on, has notbyet updated to IOS18, other two have…
Scott Bender
Scott BenderOP3mo ago
It's the same as what was in TestFlight
Greg Young
Greg Young3mo ago
ah ok, shall do.
Scott Bender
Scott BenderOP3mo ago
it's just the Control Center buttons that require iOS 18
Greg Young
Greg Young3mo ago
noted noted on the updates in this version… albeit i was looking for “new layouts editor” 😦 …. cooming soon i guess
Scott Bender
Scott BenderOP3mo ago
Yes, plan on owrking on that also for this version
Greg Young
Greg Young3mo ago
👍 testflight updated to latest - installed ok, no adverse effects noted to date.. good. but after looking hard, cant really see the recent changes… albeit i dont use much digital switching. and i dont use siri. .. so probably no goodies in there for me ..
Scott Bender
Scott BenderOP3mo ago
Might be some cool Apple Automations via Shortcuts you might be eventually interested in. Right now really only applies to digital switching But I'm interested in ideas for other app Shortcuts
Greg Young
Greg Young3mo ago
ok noted.. just updated wsk Pi also .. assumed it also needed for some of the. new functionality
Scott Bender
Scott BenderOP3mo ago
Yes. I’ll add that to the testing notes… Just did a cool automation, when I leave the boat, it turns off all non-essential stuff. Like cabin lights, stereo, etc. No interaction needed. Oh. Shit. Autopilot. “Siri, turn ten degrees to port”
Greg Young
Greg Young3mo ago
never used shortcuts . but you have motivated me to learn and explore. .. only snag isnthat my (brand new) ipad pro, is still on IOS17.x … and says “uptodate” . … so im assuming that means i cant as yet use them? (i dont see wsk listed in the shortcuts app list when trying to select an app)
Scott Bender
Scott BenderOP3mo ago
Only works on iOS 18 right now. I will make them work on 16, just don’t want to spend time testing there now
Greg Young
Greg Young3mo ago
or maybe
Greg Young
Greg Young3mo ago
No description
Scott Bender
Scott BenderOP3mo ago
Must be. I updated mine before the official release I’m working on the anchor alarm shortcuts now…
Greg Young
Greg Young3mo ago
cool…. im gonna try one of the other (older) ipads at my helm ah…. snookered again. ipad at helm is much older… and stuck on IOs15.x .. forever .. haha. (im repurposing all my old ipads!)
Scott Bender
Scott BenderOP3mo ago
1.17.0 build 239 is out.
Please get the latest WilhelmSK Plugin.

The Put Path Shortcut requires a server update which has not been release. Reach out to me if you want to try this, I can give you a file to place on your system.

Shortcuts allowing buttons in Control Center, Automations, Siri Support
! switches must include "displayName" meta data
* Set A Multi Switch (set victron inverter on, charge only, etc)
* Set A Switch (turn a switch to on or off)
* Toggale A Switch (taggle the switch state)
* Launch WilhelmSK
* Drop/Set/Raise Anchor
* Send a PUT to any path
* Get the value of a path
* Control the state and heading of an autopilot

1.17.0 build 236:
* Added the ability to specify the connection for Shortcuts/Control Buttons
* Added a Shortcut to launch WilhelmSK
* Added Send Put Shortcut
* Added Get Path Shortcuts
* Added Autopilot Shortcuts
* Made Shortcuts work on iOS 17

Please get the latest WilhelmSK Plugin.

The Put Path Shortcut requires a server update which has not been release. Reach out to me if you want to try this, I can give you a file to place on your system.

Shortcuts allowing buttons in Control Center, Automations, Siri Support
! switches must include "displayName" meta data
* Set A Multi Switch (set victron inverter on, charge only, etc)
* Set A Switch (turn a switch to on or off)
* Toggale A Switch (taggle the switch state)
* Launch WilhelmSK
* Drop/Set/Raise Anchor
* Send a PUT to any path
* Get the value of a path
* Control the state and heading of an autopilot

1.17.0 build 236:
* Added the ability to specify the connection for Shortcuts/Control Buttons
* Added a Shortcut to launch WilhelmSK
* Added Send Put Shortcut
* Added Get Path Shortcuts
* Added Autopilot Shortcuts
* Made Shortcuts work on iOS 17

Greg Young
Greg Young3mo ago
👍 ios17. .. i can now test on my ipad. feedbck to follow @Scott Bender just messing around with shortcuts, used “drop anchor” - worked as expected. However i noticed that when i went into the wsk anchor alarm gui, it wouldnt allow me to use “raise anchor” button… untill i had manually set a radius, then the raise anchor button un-greyed. not sure if this is intentional behaviour? may have always been this way? i just never noticed ?
Scott Bender
Scott BenderOP3mo ago
I think it's always been that way but I can fix that
Greg Young
Greg Young3mo ago
eg, if you dropped in wrong spot, and want to raise and redrop. you would have to set radius before raisimg …
Scott Bender
Scott BenderOP3mo ago
yep, makes sense
Greg Young
Greg Young3mo ago
just checking to see…. does raise anchor shortcut work (regardless if the radious is set?)
Scott Bender
Scott BenderOP3mo ago
Not sure... I think so
Greg Young
Greg Young3mo ago
yes works ok , just tested … yes, i have annoying attention to detail i know shortcut/widgets are neat! particularly for things like dropping and raising anchor … to avoid mulitple screen taps etc
Scott Bender
Scott BenderOP3mo ago
Siri too!
Greg Young
Greg Young3mo ago
i was goingbto investigate autopilot … then saw that autopilot PI “only”? works with raymarine APs
Scott Bender
Scott BenderOP3mo ago
yes, only works with Raymarine. It it's pluggable so new AP's can be added, but so far no one has figured any others out
Greg Young
Greg Young3mo ago
im more an alexa person … haha there are only so many voice assistants i can tolerate!
Scott Bender
Scott BenderOP3mo ago
I don't use Siri much either, but this is definitely a case where I would. With the Apple Watch on the bow
Greg Young
Greg Young3mo ago
hah. im still using “disposable” iphones on the bow. dad to daughter “ do you have any old iphones i can use” answer, yes, but does it matter if screens area cracked ….
Scott Bender
Scott BenderOP3mo ago
Please get the latest WilhelmSK Plugin.

The Put Path Shortcut requires a server update which has not been release. Reach out to me if you want to try this, I can give you a file to place on your system.

Shortcuts allowing buttons in Control Center, Automations, Siri Support
! switches must include "displayName" meta data
* Set A Multi Switch (set victron inverter on, charge only, etc)
* Set A Switch (turn a switch to on or off)
* Toggale A Switch (taggle the switch state)
* Launch WilhelmSK
* Drop/Set/Raise Anchor
* Send a PUT to any path
* Get the value of a path
* Control the state and heading of an autopilot, advance waypoin

Builtin Siri Commands, these come builtin
* "Drop the anchor in WilhelmSK"
* "Raise the anchor in WilhelmSK"
* "Set the anchor in WilhelmSK"
* "Tack to port in WilhelmSK"
* "Tack to starboard in WilhelmSK"
* "Toggle the [switch displayName] in WilhelmSK"

1.17.0 build 241:
* Added ability to search for paths and connections in Shortcuts
* Added autopilot advance waypoint Shortcut
* Added automatically generated Snapshots
* Added a setting to specify the default connection for Shorcuts
* Fixed connecion settings not getting saved for discovered connections
* Fixed lock/set anchor radius does nothing

1.17.0 build 239:
* Added the ability to specify the connection for Shortcuts/Control Buttons
* Added a Shortcut to launch WilhelmSK
* Added Send Put Shortcut
* Added Get Path Shortcuts
* Added Autopilot Shortcuts
* Made Shortcuts work on iOS 17

Please get the latest WilhelmSK Plugin.

The Put Path Shortcut requires a server update which has not been release. Reach out to me if you want to try this, I can give you a file to place on your system.

Shortcuts allowing buttons in Control Center, Automations, Siri Support
! switches must include "displayName" meta data
* Set A Multi Switch (set victron inverter on, charge only, etc)
* Set A Switch (turn a switch to on or off)
* Toggale A Switch (taggle the switch state)
* Launch WilhelmSK
* Drop/Set/Raise Anchor
* Send a PUT to any path
* Get the value of a path
* Control the state and heading of an autopilot, advance waypoin

Builtin Siri Commands, these come builtin
* "Drop the anchor in WilhelmSK"
* "Raise the anchor in WilhelmSK"
* "Set the anchor in WilhelmSK"
* "Tack to port in WilhelmSK"
* "Tack to starboard in WilhelmSK"
* "Toggle the [switch displayName] in WilhelmSK"

1.17.0 build 241:
* Added ability to search for paths and connections in Shortcuts
* Added autopilot advance waypoint Shortcut
* Added automatically generated Snapshots
* Added a setting to specify the default connection for Shorcuts
* Fixed connecion settings not getting saved for discovered connections
* Fixed lock/set anchor radius does nothing

1.17.0 build 239:
* Added the ability to specify the connection for Shortcuts/Control Buttons
* Added a Shortcut to launch WilhelmSK
* Added Send Put Shortcut
* Added Get Path Shortcuts
* Added Autopilot Shortcuts
* Made Shortcuts work on iOS 17

Greg Young
Greg Young3mo ago
“send a PUT to any path” ?? at present im using PUT handler etc in nodered along with an LED multiswitch in WSK. (the way you assistend me some time ago) .. all workimg ok. trying to understand above new functionality.. and if this makes it any easier? and/or an example of how it would be used?
Scott Bender
Scott BenderOP3mo ago
This will just let you create a Shortcut to switch that And just thought, I can do something so that it does not require a server change… When you have a chance, on an iOS 17 device, go into Shortcuts app, Go "Back <" , then to App Shortcuts, WilhelmSK And screenshot that? hmm. just tested on my sons iOS 17 device. I don't even see any shortcuts do you? OK, fixed. Don't worry about getting me a screenshot
Greg Young
Greg Young3mo ago
sorry, all yr messages were my “overnight” . .. but will do some updated testing today this is what i see on an ipad with IOS17 …. seems the first group have some overlap with second group?
Greg Young
Greg Young3mo ago
No description
Scott Bender
Scott BenderOP2mo ago
The first group are shortcuts that you created
Please get the latest WilhelmSK Plugin and always check when I release new beta versions of WilhelmSK.

You will need to reset switch names on any existing switch Shortcuts

Shortcuts allowing buttons in Control Center, Automations, Siri Support
* Set A Multi Switch (set victron inverter on, charge only, etc)
* Set A Switch (turn a switch to on or off)
* Toggale A Switch (taggle the switch state)
* Launch WilhelmSK
* Drop/Set/Raise Anchor
* Send a PUT to any path
* Get the value of a path
* Control the state and heading of an autopilot, advance waypoin

Builtin Siri Commands
* "Drop the anchor in WilhelmSK"
* "Raise the anchor in WilhelmSK"
* "Set the anchor in WilhelmSK"
* "Tack to port in WilhelmSK"
* "Tack to starboard in WilhelmSK"
* "Toggle the [switch displayName] in WilhelmSK"
* "Turn the Autipilot Ten Degrees To Port in WilhelmSK"
* "Turn the Autipilot One Degree To Starboard in WilhelmSK"

(You can creat Shortcuts with different names, and you won't have to say "in WilhelmSK")

Known Issues:
* The set switch control center button's state does not get updated when changed in some other manner. Apple has a way to do this, but I can't get it to work and their docs are not good on this.

1.17.0 build 250:
* Added autopilot turn builtin Snapshots
* Error handling cleanup
* Improved Siri reponses from Get Path responses (now uses displayName if available)
* Switch names now searchabe
* Support switches with out displayName meta

1.17.0 build 248:
* Fixed Shortcuts not showing on new installs/iOS 17

1.17.0 build 247:
* WSK Plugin API cleanup
* Shortcut error handling improvements
* Shortcut performance improvements
* Don't require a server change to PutPath suppport

1.17.0 build 241:
* Added ability to search for paths and connections in Shortcuts
* Added autopilot advance waypoint Shortcut
* Added automatically generated Snapshots
* Added a setting to specify the default connection for Shorcuts
* Fixed connecion settings not getting saved for discovered connections
* Fixed lock/set anchor radius does nothing

1.17.0 build 239:
* Added the ability to specify the connection for Shortcuts/Control Buttons
* Added a Shortcut to launch WilhelmSK
* Added Send Put Shortcut
* Added Get Path Shortcuts
* Added Autopilot Shortcuts
* Made Shortcuts work on iOS 17

Please get the latest WilhelmSK Plugin and always check when I release new beta versions of WilhelmSK.

You will need to reset switch names on any existing switch Shortcuts

Shortcuts allowing buttons in Control Center, Automations, Siri Support
* Set A Multi Switch (set victron inverter on, charge only, etc)
* Set A Switch (turn a switch to on or off)
* Toggale A Switch (taggle the switch state)
* Launch WilhelmSK
* Drop/Set/Raise Anchor
* Send a PUT to any path
* Get the value of a path
* Control the state and heading of an autopilot, advance waypoin

Builtin Siri Commands
* "Drop the anchor in WilhelmSK"
* "Raise the anchor in WilhelmSK"
* "Set the anchor in WilhelmSK"
* "Tack to port in WilhelmSK"
* "Tack to starboard in WilhelmSK"
* "Toggle the [switch displayName] in WilhelmSK"
* "Turn the Autipilot Ten Degrees To Port in WilhelmSK"
* "Turn the Autipilot One Degree To Starboard in WilhelmSK"

(You can creat Shortcuts with different names, and you won't have to say "in WilhelmSK")

Known Issues:
* The set switch control center button's state does not get updated when changed in some other manner. Apple has a way to do this, but I can't get it to work and their docs are not good on this.

1.17.0 build 250:
* Added autopilot turn builtin Snapshots
* Error handling cleanup
* Improved Siri reponses from Get Path responses (now uses displayName if available)
* Switch names now searchabe
* Support switches with out displayName meta

1.17.0 build 248:
* Fixed Shortcuts not showing on new installs/iOS 17

1.17.0 build 247:
* WSK Plugin API cleanup
* Shortcut error handling improvements
* Shortcut performance improvements
* Don't require a server change to PutPath suppport

1.17.0 build 241:
* Added ability to search for paths and connections in Shortcuts
* Added autopilot advance waypoint Shortcut
* Added automatically generated Snapshots
* Added a setting to specify the default connection for Shorcuts
* Fixed connecion settings not getting saved for discovered connections
* Fixed lock/set anchor radius does nothing

1.17.0 build 239:
* Added the ability to specify the connection for Shortcuts/Control Buttons
* Added a Shortcut to launch WilhelmSK
* Added Send Put Shortcut
* Added Get Path Shortcuts
* Added Autopilot Shortcuts
* Made Shortcuts work on iOS 17

something is really off with that version! I removed it Now I can't reproduce the issue. So build 250 is available again.
Greg Young
Greg Young2mo ago
ah, my shortcuts … duh i will give build 250 a bit of exercise today ooops.. just had two wsk crashes .. after the build 250 testflight update. sent you one of them. third time it opened . ..more to come
Greg Young
Greg Young2mo ago
hmmm. im confused. this is what i see today in shortcuts… (a bunch have now dissapeared)
No description
Scott Bender
Scott BenderOP2mo ago
Did you update the wsk plugin?
Greg Young
Greg Young2mo ago
ooops… duh and a new fusion version also i see. You have been busy! after update and restart of server, didnt see it. then shutdown wsk and restarted - got a crash. restarted again,- all ok. i now see the extra shortcuts for whatever reason, wsk seems unstable/crash of first start.. i sent you crash report
Scott Bender
Scott BenderOP2mo ago
Introducing Widgets!!
* Pretty simple right now, I can't use any of my existing Gauge code!
* Widgets Available on
* Home Screen,
* Lock Screen (even the line obove the time),
* Stand By Night Mode
* Today View
* Please send me any ideas you have for Widgets!

Please get the latest WilhelmSK Plugin and always check when I release new beta versions of WilhelmSK.

Shortcuts allowing buttons in Control Center, Automations, Siri Support
* Set A Multi Switch (set victron inverter on, charge only, etc)
* Set A Switch (turn a switch to on or off)
* Toggale A Switch (taggle the switch state)
* Launch WilhelmSK
* Drop/Set/Raise Anchor
* Send a PUT to any path
* Get the value of a path
* Control the state and heading of an autopilot, advance waypoin

Builtin Siri Commands
* "Drop the anchor in WilhelmSK"
* "Raise the anchor in WilhelmSK"
* "Set the anchor in WilhelmSK"
* "Tack to port in WilhelmSK"
* "Tack to starboard in WilhelmSK"
* "Toggle the [switch displayName] in WilhelmSK"
* "Turn the Autipilot Ten Degrees To Port in WilhelmSK"
* "Turn the Autipilot One Degree To Starboard in WilhelmSK"

You can creat Shortcuts with different names, and you won't have to say "in WilhelmSK"

You can specify custom icons for Control Center switch buttons by adding a "controlCenterIcon" meta data entry in baseDeltas.json. For Example:

{
"path": "electrical.switches.venus-1",
"value": {
"controlCenterIcon": "helm"
}
},

See https://developer.apple.com/design/human-interface-guidelines/sf-symbols and https://developer.apple.com/sf-symbols/ for supported icons

Known Issues:
* The set switch control center button's state does not get updated when changed in some other manner. Apple has a way to do this, but I can't get it to work and their docs are not good on this.
Introducing Widgets!!
* Pretty simple right now, I can't use any of my existing Gauge code!
* Widgets Available on
* Home Screen,
* Lock Screen (even the line obove the time),
* Stand By Night Mode
* Today View
* Please send me any ideas you have for Widgets!

Please get the latest WilhelmSK Plugin and always check when I release new beta versions of WilhelmSK.

Shortcuts allowing buttons in Control Center, Automations, Siri Support
* Set A Multi Switch (set victron inverter on, charge only, etc)
* Set A Switch (turn a switch to on or off)
* Toggale A Switch (taggle the switch state)
* Launch WilhelmSK
* Drop/Set/Raise Anchor
* Send a PUT to any path
* Get the value of a path
* Control the state and heading of an autopilot, advance waypoin

Builtin Siri Commands
* "Drop the anchor in WilhelmSK"
* "Raise the anchor in WilhelmSK"
* "Set the anchor in WilhelmSK"
* "Tack to port in WilhelmSK"
* "Tack to starboard in WilhelmSK"
* "Toggle the [switch displayName] in WilhelmSK"
* "Turn the Autipilot Ten Degrees To Port in WilhelmSK"
* "Turn the Autipilot One Degree To Starboard in WilhelmSK"

You can creat Shortcuts with different names, and you won't have to say "in WilhelmSK"

You can specify custom icons for Control Center switch buttons by adding a "controlCenterIcon" meta data entry in baseDeltas.json. For Example:

{
"path": "electrical.switches.venus-1",
"value": {
"controlCenterIcon": "helm"
}
},

See https://developer.apple.com/design/human-interface-guidelines/sf-symbols and https://developer.apple.com/sf-symbols/ for supported icons

Known Issues:
* The set switch control center button's state does not get updated when changed in some other manner. Apple has a way to do this, but I can't get it to work and their docs are not good on this.
Greg Young
Greg Young2mo ago
app upgraded - ok no plugin update showing in sk app store. .. so far no issues, no crash at first start .. and now to play with widgets Ipad still on IOs17.7 (latest) When i go into add widgets, i dont see wsk listed on LHS (even if i select “other”) shortcuts are showing as expected
Scott Bender
Scott BenderOP2mo ago
what's LHS?
Greg Young
Greg Young2mo ago
left hand side 🙂
Greg Young
Greg Young2mo ago
No description
Scott Bender
Scott BenderOP2mo ago
ok
Greg Young
Greg Young2mo ago
the list of apps that have widgets are on LHS, scrolling to bottom .. no wsk entry shown
Scott Bender
Scott BenderOP2mo ago
ok. need to download io17 dev stuff... only 8 gig... not sure if it matters... did you open WilhelmSK before you tried widgets?
Greg Young
Greg Young2mo ago
yes its open, also again closed and restarted wsk. “search” of widgets doesnt bring it up, and definitely not in the avail list for whatever reason -haven’t researched - Ipads (well at least my brand new Pro) are still on IOS17.7
Scott Bender
Scott BenderOP2mo ago
tht's odd
Greg Young
Greg Young2mo ago
latest ipad pro. sw check says “latest” .. go figure
No description
Greg Young
Greg Young2mo ago
ahah
No description
Scott Bender
Scott BenderOP2mo ago
I think I found the ios17 issue, should have a new release soon… got it, uploading new version now
1.17.0 build 258:
* Added support for strings and bools in Text widgets
* Added a switch widget
* Added text that shows how old the data is in widgets
* Moved units on text widget to bottom right
* Fixed widgets not showing on io 16
1.17.0 build 258:
* Added support for strings and bools in Text widgets
* Added a switch widget
* Added text that shows how old the data is in widgets
* Moved units on text widget to bottom right
* Fixed widgets not showing on io 16
Greg Young
Greg Young2mo ago
loaded ok and yes now see wsk widgets appearing. Did a test with an anlogue guage. but noticed that path selectable - but not source. … eg in my system inhave mutiple “electrical.batteries.0.current” (same for voltage etc)
Scott Bender
Scott BenderOP2mo ago
ok, did not deal with that... added to the list You should clean that up!! give everything paths that make sense (path-mapper plugin)
Greg Young
Greg Young2mo ago
not me … victron!!
Scott Bender
Scott BenderOP2mo ago
you don't have a GX device?
Greg Young
Greg Young2mo ago
No description
Greg Young
Greg Young2mo ago
n2k.41 is my victron linx BMS (n2k connected to cerbo) n2k.225 is my quattro (ve.bus connected to cerbo) bottom entry is from (yr) plugin i think
Scott Bender
Scott BenderOP2mo ago
you probably don't need the n2k data, right? it's duplicating things coming from the venus plugin
Greg Young
Greg Young2mo ago
and notice that the quattro reading is actually its “Dc output/input”
Scott Bender
Scott BenderOP2mo ago
I turn off NMEA 2000 out on the Cerbo it's pretty much nonsense
Greg Young
Greg Young2mo ago
so that would supress ? the n2k.225 entery
Scott Bender
Scott BenderOP2mo ago
n2k.41 also
Greg Young
Greg Young2mo ago
nope… the n2k.41 is the lynx own nmea2000 output on n2k bus
Scott Bender
Scott BenderOP2mo ago
oh, wait, sorry, not 41
Greg Young
Greg Young2mo ago
just looking if i get the inverter dc output via a plugin generated message … then yes prob could switch off ..
Scott Bender
Scott BenderOP2mo ago
should be there (or I am missing it in the venus-plugin)
Greg Young
Greg Young2mo ago
i believe its showing up correctly as electrical.chargers.276.current
Scott Bender
Scott BenderOP2mo ago
the only reason to have n2k out on GX device, SHOULD be to display data on n2k MFDs but n2k-signalk plugin can send out just the stuff you need let's start a thread in #venus if you want to talk more about this subject
Greg Young
Greg Young2mo ago
noted and ok multiple sources. also discovered multiple GNSS, SOG, COG etc sources on my n2k network … some less accurate than others. hence “source” selection somewhat important (at least for me)
Scott Bender
Scott BenderOP2mo ago
Check out the source priorities settings You definitely want to set that up for your gps data Crap , in fixing ios 16, i broke the control center buttons in ios 18! Fixed in build 259
Greg Young
Greg Young2mo ago
new build. wsk - all ok, no crashes widget : no change? (no source as yet.) your comments well noted about source priorities- noticed that i alraedy had some set, albeit not all, so a useful revisit for me.
Scott Bender
Scott BenderOP2mo ago
Just a new Elelctrical Overview widget
Greg Young
Greg Young2mo ago
oooohh let me look hmm im not seeing that one appear. wsk showing build 259 no plugin update showing.. IPAD IOS17.7 what am i missing?
Scott Bender
Scott BenderOP2mo ago
See the release notes In TestFlight
Greg Young
Greg Young2mo ago
looked there … im obviously missing something
Greg Young
Greg Young2mo ago
what am i missing?
No description
Scott Bender
Scott BenderOP2mo ago
Umm. Maybe we screwing up. I think I forgot to add the new one for iOS seventeen. But see the notes specific to this release I did add it for iOS 27 17 You should this new widget
Scott Bender
Scott BenderOP2mo ago
No description
Scott Bender
Scott BenderOP2mo ago
Yours won’t show that gauge it will just have some text And I swear I updated the release notes!!
1.17.0 build 260:
* Added new Electrical Overview Gauge (go to Setting->Widgets in WilhelmSK to configure)
1.17.0 build 260:
* Added new Electrical Overview Gauge (go to Setting->Widgets in WilhelmSK to configure)
Greg Young
Greg Young2mo ago
🙂 thought i was going to have another duh moment. we are one all ah hang on. my test flight still only showing 259. obviously not yet published by cuppertino!
Scott Bender
Scott BenderOP2mo ago
Man I am having a duh moment! I must not have hit the last button to release to the public!
Greg Young
Greg Young2mo ago
260 just arrived greg 1, scott 2
Scott Bender
Scott BenderOP2mo ago
lol
Greg Young
Greg Young2mo ago
aahhh test flight 260, still doesnt actually have the notes for build 260. or 259… i think youve picked up an older version of your release notes?
Scott Bender
Scott BenderOP2mo ago
it does for me
Scott Bender
Scott BenderOP2mo ago
No description
Greg Young
Greg Young2mo ago
No description
No description
Greg Young
Greg Young2mo ago
wtf? this is weird
Scott Bender
Scott BenderOP2mo ago
very strange
Greg Young
Greg Young2mo ago
not going burn our time unravelling this…
Greg Young
Greg Young2mo ago
build 260 i see two new (different sized) widgets eg below, but when i edit this … nothing to select?
No description
Scott Bender
Scott BenderOP2mo ago
Go into WilhelmSK, Settings -> Widgets Add a gauge There's only one available
Greg Young
Greg Young2mo ago
ah .. now i see. very nice!! topic change: to my other “challenge” …. any thoughts on “grouping” guages ? i know how to save a page layout, i know how to save individual guages (& add back into other pages) … but how to group some guages . eg that “combo “ guage i put together - has 10++ individual guages .. with releative layout/positioning to each other… all this gets lost above in native wsk .. not related to shortcuts or widgets .. or maybe its embedding a (smaller) page into a larger page?
Scott Bender
Scott BenderOP2mo ago
what do you mean "all this gets lots"?
Greg Young
Greg Young2mo ago
so i define a new “test” page … with a bunch of individual guages the guages are spaced relative to each other with the “arrows” i move each of them around to get the layout. this is not a full “page” .. eg a quarter of a page. .. i want to then “save” this .. so i can embed it into a production layout/page - with other already defined guages. (without having to again relayout the combo ) moving and positioning the guages is quite painful and takes a bit of time.
Scott Bender
Scott BenderOP2mo ago
you can do that in the template, and then reuse that template and have different gauges ?
Greg Young
Greg Young2mo ago
my terminology might be confusing us… but this is what my test page looks like
No description
Greg Young
Greg Young2mo ago
ignore the awa guage on bottom right. … i want to “grab” all those guages - along with relative positions, and insert into another (existing) page
Scott Bender
Scott BenderOP2mo ago
ok. yeah. you can't do that you could kinda do it the other way around
Greg Young
Greg Young2mo ago
yeah thought i was over exercising wsk 🙂
Scott Bender
Scott BenderOP2mo ago
now add empty places for other gauges in that template
Greg Young
Greg Young2mo ago
yeah -that was my way fwd..
Scott Bender
Scott BenderOP2mo ago
then you can re-use that temple and put other gauges around it but, you are limited since they all would hae the same gauge layout around that if you wanted too hack around with some json.... Siwft Playgrounds!
Greg Young
Greg Young2mo ago
.. and moving /repositioning that combo … means moving each guage one by one … no “select all” and drag. 😭 ive hacked json before (badly) … but using online chekcker can avoid disasters so .. the guages in wsk .. are each? a json file or similar? i could probably work out how to hack around … or have fun trying/learning
Scott Bender
Scott BenderOP2mo ago
the templates/pages are json you can multi select and move a group but only in a template
Greg Young
Greg Young2mo ago
duh .. just found the multi select. .. 2 all
Scott Bender
Scott BenderOP2mo ago
lol
Greg Young
Greg Young2mo ago
ok, im off to play! .. later
Scott Bender
Scott BenderOP2mo ago
I am getting close to being able to give you the Swift code for my Electrical Overview. You can load it into Swift playgrounds and change/add things. And even test it with your sk server.
Greg Young
Greg Young2mo ago
👍 found the issue with testflight …. again it showed the new version - but same notes. closed and restarted testflight - it then picked up updated notes. go figure
Scott Bender
Scott BenderOP2mo ago
Wow, pretty cool, just tested on the Mac, All Widgets and Shortcuts work there also!
Greg Young
Greg Young2mo ago
swift playground available for windows environment? (i have windows laptop) .. might be easier than using Ipad
Scott Bender
Scott BenderOP2mo ago
nope
Greg Young
Greg Young2mo ago
No description
Greg Young
Greg Young2mo ago
? different?
Scott Bender
Scott BenderOP2mo ago
yeah, it's just the Swift programming language, not Playgrounds
Greg Young
Greg Young2mo ago
ah swift FOR WINDOWS. bugger
Scott Bender
Scott BenderOP2mo ago
And I would not spend too much time on that, at least until I good a proof of concept working... Well, here I am, messing with the ElectricalOverViewGauge in Playgrounds
Scott Bender
Scott BenderOP2mo ago
No description
Scott Bender
Scott BenderOP2mo ago
And even getting real data from an SKServer
Greg Young
Greg Young2mo ago
i can kinda read the code and actually understand what its doing! cant see where it picks up the skpaths?
Scott Bender
Scott BenderOP2mo ago
this one is pretty complex because there are so many paths and it is very configurable
init(_ boat: SignalKBase, config: ElectricalOverviewGauge, theme: Theme) {
self.boat = boat
self.config = config
self.theme = theme

_systemState = Self.getValue(boat: boat, config: config, key: "systemState")
_dcLoads = Self.getValue(boat: boat, config: config, key: "dcLoadsOverride")
_stateOfCharge = Self.getValue(boat: boat, config: config, key: "stateOfChargeOverride")
_chargerCurrent = Self.getValue(boat: boat, config: config, key: "chargerCurrentOverride")
_current = Self.getValue(boat: boat, config: config, key: "currentOverride")
_power = Self.getValue(boat: boat, config: config, key: "powerOverride")
_voltage = Self.getValue(boat: boat, config: config, key: "voltageOverride")
_temperature = Self.getValue(boat: boat, config: config, key: "temperatureOverride")
_timeRemaining = Self.getValue(boat: boat, config: config, key: "timeRemainingOverride")
_solarPower = Self.getValue(boat: boat, config: config, key: "solarPowerOverride")
_solarVoltage = Self.getValue(boat: boat, config: config, key: "solarVoltageOverride")
_solarCurrent = Self.getValue(boat: boat, config: config, key: "solarCurrentOverride")
_solarMode = Self.getValue(boat: boat, config: config, key: "solarModeOverride")
_acPower = Self.getValue(boat: boat, config: config, key: "acPowerOverride")
_acGridPower = Self.getValue(boat: boat, config: config, key: "acGridPowerOverride")
_acGridVoltage = Self.getValue(boat: boat, config: config, key: "acGridVoltageOverride")
_acGridCurrent = Self.getValue(boat: boat, config: config, key: "acGridCurrentOverride")
_acCurrent = Self.getValue(boat: boat, config: config, key: "acCurrentOverride")
}

static func getValue(boat: SignalKBase, config: ElectricalOverviewGauge, key: String) -> ObservedObject<SKValue>
{
guard let path = config.getPath(key)
else {
return ObservedObject(wrappedValue:SKValue(SKPathInfo(key)))
}
return config.getObservableSelfPath(boat, path: path, source: config.getSource(key))
}
init(_ boat: SignalKBase, config: ElectricalOverviewGauge, theme: Theme) {
self.boat = boat
self.config = config
self.theme = theme

_systemState = Self.getValue(boat: boat, config: config, key: "systemState")
_dcLoads = Self.getValue(boat: boat, config: config, key: "dcLoadsOverride")
_stateOfCharge = Self.getValue(boat: boat, config: config, key: "stateOfChargeOverride")
_chargerCurrent = Self.getValue(boat: boat, config: config, key: "chargerCurrentOverride")
_current = Self.getValue(boat: boat, config: config, key: "currentOverride")
_power = Self.getValue(boat: boat, config: config, key: "powerOverride")
_voltage = Self.getValue(boat: boat, config: config, key: "voltageOverride")
_temperature = Self.getValue(boat: boat, config: config, key: "temperatureOverride")
_timeRemaining = Self.getValue(boat: boat, config: config, key: "timeRemainingOverride")
_solarPower = Self.getValue(boat: boat, config: config, key: "solarPowerOverride")
_solarVoltage = Self.getValue(boat: boat, config: config, key: "solarVoltageOverride")
_solarCurrent = Self.getValue(boat: boat, config: config, key: "solarCurrentOverride")
_solarMode = Self.getValue(boat: boat, config: config, key: "solarModeOverride")
_acPower = Self.getValue(boat: boat, config: config, key: "acPowerOverride")
_acGridPower = Self.getValue(boat: boat, config: config, key: "acGridPowerOverride")
_acGridVoltage = Self.getValue(boat: boat, config: config, key: "acGridVoltageOverride")
_acGridCurrent = Self.getValue(boat: boat, config: config, key: "acGridCurrentOverride")
_acCurrent = Self.getValue(boat: boat, config: config, key: "acCurrentOverride")
}

static func getValue(boat: SignalKBase, config: ElectricalOverviewGauge, key: String) -> ObservedObject<SKValue>
{
guard let path = config.getPath(key)
else {
return ObservedObject(wrappedValue:SKValue(SKPathInfo(key)))
}
return config.getObservableSelfPath(boat, path: path, source: config.getSource(key))
}
a simple one path hard coded gauge would: @ObservedObject var windSpeed : SKValue = WilhelmSKLibrary.getSignalK().getObservableSelfPath("environment.wind.speedApparent", source:nil)
var body: some View {
VStack {
Text(soc.info.displayName ?? "")

let measurement = soc.getMeasurement(.depth)
let val = measurement?.value ?? soc.doubleValue() ?? -1

Gauge(value:val, in: 0...100) {
if let units = measurement?.unit.symbol {
Text(units)
}
if let title: String = soc.info.meta?["units"] as? String {
Text(title)
}
} currentValueLabel: {
Text(String(format: "%.*f", 1, val))
//.foregroundColor(.green)

}
.scaleEffect(1)
.gaugeStyle(.accessoryCircular)
.animation(.interactiveSpring (response: 1,
dampingFraction: 1, blendDuration: 1), value:val)
}
//.tint(gradient)
.padding()
}
var body: some View {
VStack {
Text(soc.info.displayName ?? "")

let measurement = soc.getMeasurement(.depth)
let val = measurement?.value ?? soc.doubleValue() ?? -1

Gauge(value:val, in: 0...100) {
if let units = measurement?.unit.symbol {
Text(units)
}
if let title: String = soc.info.meta?["units"] as? String {
Text(title)
}
} currentValueLabel: {
Text(String(format: "%.*f", 1, val))
//.foregroundColor(.green)

}
.scaleEffect(1)
.gaugeStyle(.accessoryCircular)
.animation(.interactiveSpring (response: 1,
dampingFraction: 1, blendDuration: 1), value:val)
}
//.tint(gradient)
.padding()
}
that's it! You don't have to worry about any details, or even updating when the path value changes (also bad example because I was playing around/testing) this stuff is so cool! The other gauges in WilhelmSK, which are written in Objective C take a ton more code And all the supporting Swift code is Open Source You can actually create stand alone apps I emailed you the Playgrounds App/Code. Also @Teppo Kurki This just uses REST GET, it does not do streaming When the exact same code is run in WilhelmSK, it does streaming also, the exact same code is used for Widgets (There is one line that is different when part of WilhelmSK)
import WilhelmSKDummyGauges
import WilhelmSKDummyGauges
Scott Bender
Scott BenderOP2mo ago
GitHub
GitHub - sbender9/WilhelmSKLibrary
Contribute to sbender9/WilhelmSKLibrary development by creating an account on GitHub.
Scott Bender
Scott BenderOP2mo ago
GitHub
GitHub - sbender9/WilhelmSKDummyGauges: Dummy Gauges Classes For Wi...
Dummy Gauges Classes For WilhelmSKLibrary. Contribute to sbender9/WilhelmSKDummyGauges development by creating an account on GitHub.
Scott Bender
Scott BenderOP2mo ago
Example apps now on GitHub
Scott Bender
Scott BenderOP2mo ago
No description
Want results from more Discord servers?
Add your server