SK
Signal K5mo ago
Lure

Lure - Is there a way to set timezone for SK em...

Is there a way to set timezone for SK embedded NodeRed? I would like that Date() in NR works with localtime and not UTC. I was trying to set it via plugin settings, but it seems it does not work.
No description
6 Replies
Scott Bender
Scott Bender5mo ago
Yeah, that won't work Assuming that you are on a unix system, edit ~/.signalk/signalk-server
#!/bin/sh

export TZ="Europe/Amsterdam"
node /usr/lib/node_modules/signalk-server/bin/signalk-server -c /home/sbender/.signalk $*
#!/bin/sh

export TZ="Europe/Amsterdam"
node /usr/lib/node_modules/signalk-server/bin/signalk-server -c /home/sbender/.signalk $*
Lure
LureOP5mo ago
Tnx, will try when I get back to boat (no remote ssh to Cerbo)
Scott Bender
Scott Bender5mo ago
Oh. It’s going to be different on VenusOS. I’ll let you know…
Lure
LureOP5mo ago
it sounds complicated. Maybe I will just addapt my code to add TZ offset in calculations (I just need to detect local time hour).
Scott Bender
Scott Bender5mo ago
Actually have not found a way to do it that would not get overwritten by a Venus OS software update
Lure
LureOP5mo ago
@Scott Bender thanks for the effort. Will workaround in code.
Want results from more Discord servers?
Add your server