{"id":13717330,"url":"https://github.com/vooon/ntpd_driver","last_synced_at":"2025-07-25T09:10:17.727Z","repository":{"id":18176145,"uuid":"21289538","full_name":"vooon/ntpd_driver","owner":"vooon","description":"This node convert ROS TimeReference message to ntpd-shm format.","archived":false,"fork":false,"pushed_at":"2022-12-30T14:31:27.000Z","size":70,"stargazers_count":18,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-30T18:06:25.419Z","etag":null,"topics":["ntpd","ntpd-driver","ros","ros-node","shm"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vooon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-27T21:16:05.000Z","updated_at":"2025-04-17T06:18:30.000Z","dependencies_parsed_at":"2023-01-13T19:41:33.640Z","dependency_job_id":null,"html_url":"https://github.com/vooon/ntpd_driver","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/vooon/ntpd_driver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vooon%2Fntpd_driver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vooon%2Fntpd_driver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vooon%2Fntpd_driver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vooon%2Fntpd_driver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vooon","download_url":"https://codeload.github.com/vooon/ntpd_driver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vooon%2Fntpd_driver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266983523,"owners_count":24016559,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ntpd","ntpd-driver","ros","ros-node","shm"],"created_at":"2024-08-03T00:01:20.870Z","updated_at":"2025-07-25T09:10:17.707Z","avatar_url":"https://github.com/vooon.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"ntpd\\_driver\n============\n\nThis ROS node listen `sensor_msgs/TimeReference` and send it to ntpd via SHM (like gpsd).\n\nParameter `~/shm_unit` define SHM unit (in ntp.conf) (int, default: 2).\nParameter `~/fixup_date` enable/disable date fixup (bool, default: false)\n\n\nSystem configuration\n--------------------\n\n### ntpd configuration\n\nAdd this to `/etc/ntp.conf`:\n\n    ### GPS SHM driver\n    server 127.127.28.2 minpoll 4 maxpoll 4\n    fudge 127.127.28.2 time1 0.5 stratum 12 refid ROS\n\nAnd then restart ntp service.\n\nRun example:\n\n    rosrun ntpd_driver shm_driver _shm_unit:=2 _time_ref_topic:=/mavros/time_reference\n\n\n### chrony configuration\n\nAdd this to `/etc/chrony/chrony.conf`:\n\n    ### SHM driver\n    refclock SHM 0 delay 0.5 refid ROS\n\nAnd then restart chrony service.\n\nRun example:\n\n    rosrun ntpd_driver shm_driver _shm_unit:=0 _time_ref_topic:=/mavros/time_reference\n\n\n### Date fixup configuration (sudo)\n\nOn my Raspberry Pi 2 ntpd reject SHM data if system date is not set (e.g. JAN 1970).\nTo fix that `shm_driver` now can set system time if it unset.\n\nFor setting date program requires root privileges, so used `sudo`.\n\nAdd this to `/etc/sudoers` (using `visudo`):\n\n    %sudo\tALL=NOPASSWD: /bin/date\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvooon%2Fntpd_driver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvooon%2Fntpd_driver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvooon%2Fntpd_driver/lists"}