This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing Units
#1
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.
Reply
#2
(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
________________________________________

Blog; https://pysselilivet.blogspot.com/
Reply
#3
It wasn't a bug. Please find a "how to" in this link https://github.com/SignalK/signalk-serve...umentpanel
________________________________________

Blog; https://pysselilivet.blogspot.com/
Reply
#4
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.
Reply
#5
Also worth looking at the kip dashboard, best available imho. Set units for any data.
Reply
#6
(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.
Reply
#7
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/0...ntrol.html


Attached Files
.txt   default.txt (Size: 660 bytes / Downloads: 213)
________________________________________

Blog; https://pysselilivet.blogspot.com/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)