I have some automation modules that don’t get internet access except through a Home Assistant integration which is fine by me as I didn’t want to open ports for all of them.
They keep really bad time and can gain or lose up to 10 minutes in 30 days. If I had ports open, there is a field under Date & Time settings to input an NTP Server address for them to sync with.
I’ve been reading this morning on how to have a local machine run as an NTP Server for other machines and devices on the local network either via NTP or Chrony/Chronyd.
Doesn’t look too difficult to do but it would be nice to have an FBX App that took care of most of it.
FBX is already a Web Server and has apps for VPN servers, proxy servers, chat server, media server, game server. Why not add Time Server to the mix?
How it might work: FBX syncs with pool.ntp/org to get the time and runs as an NTP Server itself and gives us a local IP address to that NTP Server.
HA has a chrony app but apps can only be installed when using HAOS full operating system with Supervisor privileges. They get installed along-side of HA which means they’re just Debian apps most likely.
I checked Cockpit Applications and 45drives but neither had NTP Server.
Installed chrony on my laptop, created NTP server by adding a couple of lines to chrony.conf, allowing port 123 in ufw and now have one of my control modules synced to my laptop via it’s static local IP.
I know it’s working because as soon as I input my static IP as an NTP server, I watched the module time go from 6:33:59 to 6:40:00 at the same exact moment my laptop clock went from 6:39 to 6:40.
I would prefer the always on FBX to be the NTP server but I’m leery about installing applications and messing with .conf files on it. I don’t know what time/date system or service it already has. (that and I want the Easy Button:)
EDIT; Looks like timedated. /usr/lib/systemd/system/systemd-timedated.service