Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 3 123 LastLast
Results 1 to 10 of 30
  1. #1
    Member
    Join Date
    Mar 2016
    Location
    UK
    Posts
    50

    piCorePlayer 6 - configuring NTP server ?

    I am experimenting with piCorePlayer on a raspberry Pi3B. Date wise it would appear that I am stuck in the 1970's !

    Is it possible to configure a local (internal) NTP server from within piCorePlayer such that on an (infrequent) reboot it will automatically update?

    Cheers

    Software versions thus

    piCorePlayer 6.0.0 (build 0008)
    piCore Version 10.3pCP
    Squeezelite 1.9.6-1206-pCP

  2. #2
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    2,688
    pCP 6 does try to wait for the time to come ... but I guess it did not wait long enough for you.

    What I have in mine is a crontab entry that syncs the time every day at 6am
    Code:
    0 6 * * * /usr/bin/getTime.sh
    You can set this in the cron section in Tweaks in pCP.
    Last edited by Paul Webster; 2020-06-02 at 09:14.
    Paul Webster
    http://dabdig.blogspot.com
    Author of "Now Playing" plugins covering Radio France (FIP etc), KCRW, Supla Finland, ABC Australia, CBC/Radio-Canada and RTE Ireland

  3. #3
    Senior Member Jeff07971's Avatar
    Join Date
    Aug 2011
    Location
    London, England
    Posts
    1,508
    Quote Originally Posted by farrina View Post
    I am experimenting with piCorePlayer on a raspberry Pi3B. Date wise it would appear that I am stuck in the 1970's !

    Is it possible to configure a local (internal) NTP server from within piCorePlayer such that on an (infrequent) reboot it will automatically update?

    Cheers

    Software versions thus

    piCorePlayer 6.0.0 (build 0008)
    piCore Version 10.3pCP
    Squeezelite 1.9.6-1206-pCP
    I set an internal (LAN) NTP server IP address in "Bootcodes" and it all works fine for me

    I do this as my network only allows the LAN NTP server to communicate with external NTP servers so won't get the time with defualt settings

    Jeff

    Want a webapp ? Get SqueezeLite-X ! https://forums.slimdevices.com/showt...l=1#post903953

  4. #4
    Member
    Join Date
    Mar 2016
    Location
    UK
    Posts
    50
    Quote Originally Posted by Paul Webster View Post
    pCP 6 does try to wait for the time to come ... but I guess it did not wait long enough for you.

    What I have in mine is a crontab entry that syncs the time every day at 6am
    Code:
    0 6 * * * /usr/bin/getTime.sh
    You can set this in the cron section in Tweaks in pCP.
    Thanks Paul, that was very helpful.

    I’m a member of the “tin foil” hat brigade, so my home network is screwed down at the firewall level - the PiCorePlayer was not allowed external NTP (123) access hence it was not updating.

    I’ve temporarily allowed external access for now, so this has solved the issue I was having with Paradise Radio/BBC iPlayer not streaming(time sensitive).

    I presume you can manually set an internal NTP server IP address somewhere (I guess the only issue may be it being overwritten by an update).

  5. #5
    Senior Member Jeff07971's Avatar
    Join Date
    Aug 2011
    Location
    London, England
    Posts
    1,508
    Quote Originally Posted by farrina View Post
    I’m a member of the “tin foil” hat brigade
    Not sure that is particularly true, limiting outbound connections is a security step that many do but you have to have the knowledge and equipment to do it.

    Jeff

    Want a webapp ? Get SqueezeLite-X ! https://forums.slimdevices.com/showt...l=1#post903953

  6. #6
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,240
    Quote Originally Posted by farrina View Post
    I presume you can manually set an internal NTP server IP address somewhere (I guess the only issue may be it being overwritten by an update).
    Yes, go to the Extras-> Bootcodes page (In beta mode) There is an ntp option.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

  7. #7
    Member
    Join Date
    Mar 2016
    Location
    UK
    Posts
    50
    Quote Originally Posted by paul- View Post
    Yes, go to the Extras-> Bootcodes page (In beta mode) There is an ntp option.
    Perfect thanks - just what I was looking for!!

  8. #8
    Senior Member Jeff07971's Avatar
    Join Date
    Aug 2011
    Location
    London, England
    Posts
    1,508
    Quote Originally Posted by paul- View Post
    Yes, go to the Extras-> Bootcodes page (In beta mode) There is an ntp option.
    Would be nice if this could be set by DHCP option 42

    Jeff

    Want a webapp ? Get SqueezeLite-X ! https://forums.slimdevices.com/showt...l=1#post903953

  9. #9
    Senior Member mr-b's Avatar
    Join Date
    Feb 2007
    Location
    UK
    Posts
    429
    How can I check that the cron job is running successfully (ntpd cmd)? Not sure which log I should be viewing but I couldn't see any cron log files in /var/log. Or does the script have to be modded to output to a specific file?
    Sheesh, I'm so rusty on Unix.

  10. #10
    Senior Member paul-'s Avatar
    Join Date
    Jan 2013
    Posts
    3,240
    There would not be logging by default, unless your cron script directed output to a log file.
    piCorePlayer a small player for the Raspberry Pi in RAM.
    Homepage: https://www.picoreplayer.org

    Please donate if you like the piCorePlayer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •