Greg Young - @Scott Bender WSK layouts & templ...
@Scott Bender
WSK layouts & templates
was doing some editing of one of my v complex dashboards today,
and when doing a resize/reposition of a guage … i think i collapsed it to 0 x 0 (or something very small?)
it continues to show (a mangled guage given text and stuff is all jumbled becaused of small size)
… however my problem is i can no longer “select” (pick) the guage to either resize or reposition it.
note im using Ipad (no i dont have a macbook or similar) …. and no ammount of touching selecting or similar seems to be able to select the guage>
… it just sits overlaying other (working guages) …
is there a way i can somehow “select” it? or better yet delete it from the layout?
18 Replies
I dont want to delete the complete dashboard (took bloody ages to build it)
i think i have correctly saved it and attached below?
its the first page in the above layout …. the problem guage (:outside temp”?) is “over top” of the guage labelled “shore power”
… and as an aside …. notwithstanding above (not beeing able to select a guage) …. it appears the “delete guage” option doesnt work? for any guages in my layouts (its greyed out) … i recall this was a known limitation?

Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
the graphs on this WSK layout are embedded grafana “dashboards” using the
WSK “web guage” type.
Im assuming you have influx/grafana running - & know how to setup influx and log the respective sk paths,
along with setting up grafana to access and display data /graphs from the influx database.
In grafana - define the dashboard with the graph etc showing data correctly, colors etc.
Once your finished and have it looking crrect in grafana
turn off the “time picker” (grafana settings for respective dashboard) and put it display into “kiosk” mode,
(this has the effect of removing all the grafana menus etc )
with grafana dashboard displayed crrectly in the browser, copy the URL from the grafana page
and add it into the WSK web guage,
Note you need to preface the URL you copy with
http:// save the WSK guage and it should then display (& update per the refresh rate you set in grafana settings… note that 5s is the max refresh rate you can get from grafana dashboard - wiyhout a lot of messing around with grafana settings - that ive never managed tro ghet working)
http:// save the WSK guage and it should then display (& update per the refresh rate you set in grafana settings… note that 5s is the max refresh rate you can get from grafana dashboard - wiyhout a lot of messing around with grafana settings - that ive never managed tro ghet working)
Unknown User•3w ago
Message Not Public
Sign In & Join Server To View
@Scott Bender
further to my above "rogue" guage
I shared the layout from ipad as a file ("at anchor dock.wlyt") and with a text editor can see the respective guage definitiions in this file .. &thus presumably i just delete the respective rogue guage)
however I cant I cant find this same file on the Rpi anywhere?
& thus dont know how i can replace the modified wsk layout (.wlyt file) back onto rpi .. and then import it back into ipad ?
(or alternately import it into the layout on ipad.. either way)
any clues pleeeasse?
after some searching and trial and error..
Looks ike its in file "1.0.0.json" in folowing directory
/home/pi/.signalk/applicationData/global/WilhelmSK
You could do it there
You can also just open the edited file on the iPad
Using the Files app or say from an email
Layouts will only be on the rpi if you “Save To Server”
ah ok thx
... i cant for the life of me work out where in the file it has the position/size of the respective guage
... so just going to make the rogue guage a blank ..
.. and then add a whole new guage in the normal layouts editor..
(im nervous to just "Delete" the guage from the json file .. as i notice they are sequentially numbered .. and not sure if im going to create dram 🙂
drama
Yeah, definitely not meant to manually edited
so just to clarify .. somwhere on the ipad i should be able to find the .wlyt file and edit it?
When you share it, email it to yourself, or save to files
ah .. i think i know what you meant ... edit the wlyt file on ipad and then on it to open it.. after that then save to server
click on it
Or email it to yourself, edit it, then email the new file to yourself.
(I like doing the email way, cause then you basically have the history saved)
noted ... tried edit the server version ... must have stuffed it up .. as wsk on ipad will not import it ..
yes im using vscode editor ... so it should throw an issue if i mesed json up ...
more investigation needed !
Yeah, it can’t import that
Actually not sure exactly what you tried to do
got it to work..
copied 1.0.0.json from server,
edited it in vscode (made the rogue guage a blank type)
so it effectively dissapears
(used vscode to check the json was good)
copied the file back to server, deleted the earlier version on ipad,
re-imported the modified layout from server ..
success.