gregy - @Scott Bender wsk “custom” guages I ...

@Scott Bender wsk “custom” guages I wish to make a modified/more detailed version of the “electrical overview” guage. i know how to add “web” guages (eg from grafana) 1) Have experimented with grafana - using “Canvas” plugin for grafana however because grafana is fed by influx data, and combined with the (min) grafana refresh rate of 5s, it delivers unacceptably slow updates for data in a “real time” electrical overview. .. so with the influx write update frequency and grafana update frequency… it appears any “grafana” based dashboards are too slow.. 2) nodered “dashboard”
.. likewise can be embedded in wsk as a “web” guage have experimented with dashboards in nodered however the dashboard “elements” are very rudimentary and almost impossible to emulate a diagram comparable to the electrical overview. (even simple boxs with values difficult) not sure if i chose best pallete/plugin for dashboard elelemnts ? … any thoughts or guidance on better options than above ? or how i might go about this?
19 Replies
Scott Bender
Scott Bender3mo ago
I have not tried to do this with anything. Do you have any programming skills?
Scott Bender
Scott Bender3mo ago
I wonder if I could make it possible to use this to build custom gauges. https://apps.apple.com/us/app/swift-playgrounds/id908519492
App Store
‎Swift Playgrounds
‎Swift Playgrounds makes it fun to learn to code and build real apps. You solve interactive puzzles in the guided “Get Started with Code” and learn the basics of building apps in “Get Started with Apps.” You experiment with a wide range of challenges and samples that let you explore unique coding exp…
Greg Young
Greg YoungOP3mo ago
programming skills … hmmm, not useful i suspect for task at hand … Im good at adapting and modifying… but raw coding from scratch … im a failure these days some simple ESP32 stuff and “function nodes JS” in nodered. … beeen a looong time since i coded (8080 machine code, fortran and basic) … haha last century!
Scott Bender
Scott Bender3mo ago
do you think you would want to try learning Swift Playgrounds?
Teppo Kurki
Teppo Kurki3mo ago
@gregy with https://github.com/tkurki/signalk-grafana you get real time updates over websocket and history retrieval from Influx
GitHub
GitHub - tkurki/signalk-grafana: Signal K Grafana Datasource and Tr...
Signal K Grafana Datasource and Trackmap. Contribute to tkurki/signalk-grafana development by creating an account on GitHub.
Greg Young
Greg YoungOP3mo ago
@Teppo Kurki many thanks for the tip. i will give this a rty with grafana . … again I have to wonder out aloud …. how we get a method for showcasing /overviewing what the (growing) list of plugins can do. this is the second in a week that i learned about … but by asking question on forum - which very pleasingly uou and others answered … but i still believe the power amd range of plugins is not well understood.. by both exist users or potential newbies. @Teppo Kurki i already have grafana running on same rpi as signalk, and not using docker. so looking thru github, from what i can tell, i need to “copy” the datasource directory from github repository, and place it into my grafana/plugins directory? and then the unsigned plugin authorisation (inside grafana) correct?
Greg Young
Greg YoungOP3mo ago
is this going to prevent me from using as above?
No description
Teppo Kurki
Teppo Kurki3mo ago
Good point on discovering plugins - but let’s start distinct threads for that & signalk-grafana!
Greg Young
Greg YoungOP3mo ago
@Scott Bender been experimenting a little with wsk guages and i think with a couple of additional “guages” (well actually graphical elements) it would be possible to emulate the electrical overview and add additional elements. Q; how difficult would it be to include “ guage” types that are a horizontal or vertical line ? arrow heads? Q: a guage type that allows for 2 or 3 values (paths) and a heading.? that is, similar to the “DC loads” guage embedded in electrical overview? similarly a “battery” guage (on its own) same as the battery inside the battery guage. hence by defining “guages” with a couple of configurable paths and a border around them and then adding a horizontal or vertical line (guage) .. it shoild be possible to build an “overview” style panel. hence with a couple of “standalone” new guage types, it would be possible to build your own customised electrical,overview . thoughts? … ok, further thinking, there is a guage type “image” so im guessing its already possible to make lines /arrow head lines as images and add them…. ?
Scott Bender
Scott Bender3mo ago
Did you look at the Swift Playground stuff?
Greg Young
Greg YoungOP3mo ago
i downloaded the swift application … but it was just blank?
Greg Young
Greg YoungOP3mo ago
this is my effort on building a combo “guage” with existing guage types.
No description
Greg Young
Greg YoungOP3mo ago
hvent as yet prepd images for the other lines and arrows.. but this is general layout. obviously at present just using a digital current guage .. so only current displayed in each box.
Scott Bender
Scott Bender3mo ago
I'm pretty close to making so people can create custom gauges using Swift Playground, once I have that done I can send you an example.
Greg Young
Greg YoungOP3mo ago
ok .. sounds like swift will allow me to achieve what i was after. 1) a guage for “loads” … that can populate current (A) and Power (W) skpaths. 2) guage for sources (eg shore pwr) that can populate current (A), Power (W) and Volts 3) battery guage .. volts .current, power, SOC, fyi,,, having difficulty getting above guges to display the “units” correctly … have played around with edge padding, number padding etc … but v difficult to get title, value and units all correctly proportional meantime will go read up on swift playground … swift playgrounds appears to down load the playgrounds really slowly (even on my starlink at anchor) … so the “blank” was just it spinning its wheels … v slowly
Scott Bender
Scott Bender3mo ago
ok it's available on Mac also, much easier to work with there
Greg Young
Greg YoungOP3mo ago
unfortunately im not a Mac person. do have a windows laptop with me on. boat …. but its a far cry from a nice big screen and decent PC at home… didnt think i would be “learning coding” at anchor .. haha
Scott Bender
Scott Bender3mo ago
don't spend too much time on it unless you really think it will useful and relativel easy. In the end, this stuff is going to make it easier for me and is enabling me to do Home Screen Widgets Or even I can do the original work for a gauge for you, and then you can tweak it in playgroun
Greg Young
Greg YoungOP3mo ago
not going to try using existing guages any further … ive reached the limitations of existing guage types available but proved that it shsould be doable … and i have logical layout and the derived/computed skpath/values working correctly. .. the rest is now just getting new guage types that will support more than one value/path imthink the anchorage believes im now playing video games (swift playground music )
Want results from more Discord servers?
Add your server