You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Node-RED
I want to get NTP server time from my node red to ensure accurate time before my time dependent tasks? How can i do it?
Colin Law
unread,
Aug 28, 2017, 8:48:45 AM8/28/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to node...@googlegroups.com
Usually you would rely on the operating system to maintain an accurate
time for you. Is there some reason you cannot do that in this case?
On 28 August 2017 at 13:35, <uzair...@jintech.com> wrote:
> I want to get NTP server time from my node red to ensure accurate time
> before my time dependent tasks? How can i do it?
>
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Node-RED
Pi that is running node red is not under my control whole time and i want to ensure it in my node red that time is set valid. It has caused some issue to me in last few days due to time sync issue on Pi.
Colin Law
unread,
Aug 28, 2017, 9:06:53 AM8/28/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to node...@googlegroups.com
Possibly you could use an exec node to force an ntp sync and check the
response from that.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to node...@googlegroups.com
Probably only if you are running Node-RED as root. And if you were then you would have control over ntp anyway
--
Sent from phone.
Colin Law
unread,
Aug 28, 2017, 11:29:55 AM8/28/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to node...@googlegroups.com
Rather than run as root use visudo to allow the node red user to run
ntpdate without requiring a password. Then the exec node should be
able to run
sudo ntpdate ....
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Node-RED
As a potentially simpler alternative - simply use a web time API and check against the current device time - if too far out alert the user to fix it before allowing the flow to run :)