OpenMarine

Full Version: @mxtommy KIP instrument display webapp for Signalk
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
(2021-11-25, 09:46 PM)SkipperEarly Wrote: [ -> ]Has anyone found a way to format text controls? Would like e.g. datetime  to show ony time

Node red can do that, I use it to display windspeed as Beaufort scale & direction. Input the signalk into a function node and output to a new singalk delta then display that in kip. If you're used to node red it's quite easy, if not ask here and someone will write it for you, also quite easy  

Quite calm tonight. Big Grin


[Image: kg9uuep.png]
I used to like having KIP running but it's not working as it should anymore.

I'm sick of deleting the cache etc - something is definitely not right!!
(2021-12-15, 06:24 AM)Lazzz Wrote: [ -> ]I used to like having KIP running but it's not working as it should anymore.

I'm sick of deleting the cache etc - something is definitely not right!!

working perfectly here all day every day, might be something your end? Anything in the server log?
HI 

Thank's for this work

where can'i store my own *.html page (including a png) to be accessed in a KIP page
i tried http://localhost:3000/@jules/jules_polar.html
@jules is /home/pi/.signalk/node_modules/@jules  (a folder i created, containing jules_polar.html)

i get error "cannot GET @jules/jules_polar.html

how can'i show png or pdf with KIP (like manuals/documentation)

Merci beaucoup
(2022-02-15, 02:54 PM)Jules Wrote: [ -> ]HI 

Thank's for this work

where can'i store my own *.html page (including a png) to be accessed in a KIP page
i tried http://localhost:3000/@jules/jules_polar.html
@jules is /home/pi/.signalk/node_modules/@jules  (a folder i created, containing jules_polar.html)

i get error "cannot GET @jules/jules_polar.html

how can'i show png or pdf with KIP (like manuals/documentation)

Merci beaucoup
You need to have a webserver running for that. I installed the lighttpd package and use the url http://localhost in KIP to show a few buttons to do stuff everyone will warn me about not to do  Tongue
One off the buttons is for exiting chromium because it is running in kiosk-mode in de pilot-house on a RPi3 with 7” display. The buttons call php scripts doing the naughty stuff. Hé, it is running on a private WiFi network and only running while on the way.
I think KIP is great, the only bad thing is that the time cannot be displayed in a useful way.
Unfortunately, my attempts with Grafana and InfulxDB have all failed.
Anyway good job Tommy
(2022-02-16, 06:15 PM)RKV Wrote: [ -> ]I think KIP is great, the only bad thing is that the time cannot be displayed in a useful way.
Unfortunately, my attempts with Grafana and InfulxDB have all failed.
Anyway good job Tommy

Make it yourself by creating a html-page (with js) and run it as I wrote above. I have multiple pages made myself with a clock, with buttons and even streaming from a webcam.
That sounds even more complicated than my previous efforts.
I'm just the copy and paste user.
Don't understand why in Grafana rewriting the file from "allow_embedding" to true doesn't work would be the simplest solution for me.
(2022-02-17, 07:50 AM)RKV Wrote: [ -> ]That sounds even more complicated than my previous efforts.
I'm just the copy and paste user.
Don't understand why in Grafana rewriting the file from "allow_embedding" to true doesn't work would be the simplest solution for me.

Is Grafana running ok: can you see it in a browser? Have you changed the port to something different SignalK is using? SignalK is on 3000, so you could use 3001 for Grafana and use that in the url in KIP like: http://YourIp:3001
Have you removed the semicolon in front of "allow_embedding = true"?
(2022-02-16, 06:15 PM)RKV Wrote: [ -> ]I think KIP is great, the only bad thing is that the time cannot be displayed in a useful way.
Unfortunately, my attempts with Grafana and InfulxDB have all failed.
Anyway good job Tommy

As PaddyB previously mentioned, node-red is a nice alternative to make your own displays embedded into KIP.
You can find an example here: https://flows.nodered.org/flow/1bffe6808...939983e758

If you never used node-red, don't be afraid. I had never touched it before and took me around 1h to learn the basics and start writing simple flows.

Curently i use it to display buttons on the KIP interface that send SignalK messages.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18