OpenMarine
Changing Units - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1)
+--- Forum: How do I...? (https://forum.openmarine.net/forumdisplay.php?fid=3)
+--- Thread: Changing Units (/showthread.php?tid=2869)



Changing Units - aywwa - 2020-08-22

How do I easily change units from K to C in Signal K instruments if it is not offered as an option. For example environment.cpu.temperature and 1 wire temperature. Yes I'm really new but getting there. I tried signal K filter but got lost. Thanks in advance.


RE: Changing Units - MatsA - 2020-08-22

(2020-08-22, 05:55 AM)aywwa Wrote: How do I easily change units from K to C in Signal K ....
Seems to be a bug..... Better post the question at Slack. http://slack-invite.signalk.org


RE: Changing Units - MatsA - 2020-08-23

It wasn't a bug. Please find a "how to" in this link https://github.com/SignalK/signalk-server-node/wiki/FAQ:-Frequently-Asked-Questions#how-to-add-missing-units-in-instrumentpanel


RE: Changing Units - aywwa - 2020-08-23

Yes that worked. Needed an extra comma at the end of the code for me but otherwise, with a little trial and error, works fine. Thanks so much.


RE: Changing Units - PaddyB - 2020-08-23

Also worth looking at the kip dashboard, best available imho. Set units for any data.


RE: Changing Units - aywwa - 2020-08-23

(2020-08-23, 10:55 AM)aywwa Wrote: Yes that worked. Needed an extra comma at the end of the code for me but otherwise, with a little trial and error, works fine. Thanks so much.

But when I also added environment.inside.28-0000081ba316.temperature that also worked, but removed environment.cpu.temperature. It is present in defaults.json, but doesnt appear and that code part disappears if I validate it also. I had "inside" and "28-0000081ba316" as separate lines, then as one line, same issue. Can I only have one "environment.*.temperature" in defaults.json?, that is only one conversion to Centigrade?
Thanks again.


RE: Changing Units - MatsA - 2020-08-23

As an example I also added the other plugin for CPU temp "signalk-raspberry-pi-monitoring" and changed the default.json, according to the enclosed file, so both values/paths are updated with "units". Hope this helps to edit. Dont know if You are familiar with Node Red ? Done a post with more RPi info https://pysselilivet.blogspot.com/2019/07/node-red-raspberry-control.html