The service seems to work, but systems is now adding a service that waits for time sync, which of there's no internet causes boot to hang indefinitely.
Time to rethink this.
The service seems to work, but systems is now adding a service that waits for time sync, which of there's no internet causes boot to hang indefinitely.
Time to rethink this.
The reason I want to grab the NTP is because I don't want to update the Arduino if the Date/Time is not valid (ie wrong because there was no Internet).
I've created this systemd entry and it seems to work, although I don't know if it still fires if the NTP gets updated after boot.
[Unit]
Description=Media Centre Control Panel NTP Updater
After=time-sync.target
[Service]
ExecStart=/storage/MediaCentre/NTPUpdate.sh
Type=Simple
[Install]
WantedBy=multi-user.target
Wait for network completes before the NTP gets executed, and the NTP may update at any time, not only when you reboot.
I would like to update an Arduino I have connected via I2C with the correct date and time once I'm sure the Pi has it. Since the Pi is getting the time via NTP, it seems the most obvious would be to have a script run when NTP is successful.
Is there a mechanism for this? I'm thinking systemd might be involved but not sure what target?
This is actually the correct functionality. There are two video outputs, and two audio outputs. The normal behaviour is for the audio to be sent to the first output, on HDMI0. You wouldn't ordinarily send the same output to two different output channels, so HDMI1 is unused. I think there might be an option you can add to cmdline.txt to treat them as a single output.