Skip to content

grisp/grisp_time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grisp_time

An OTP application for time synchronization using NTP.

Build

$ rebar3 compile

Configuration

The grisp_time application can be configured via environment variables in your sys.config file:

servers

List of NTP server hostnames to use for time synchronization. If an empty list is provided, the ntp deamon will not be started.

Type: [string()]

Default: ["0.pool.ntp.org", "1.pool.ntp.org", "2.pool.ntp.org", "3.pool.ntp.org"]

Example:

{grisp_time, [
    {servers, ["ntp.example.com", "time.example.com"]}
]}

ntpd

Path to the ntpd executable.

Type: string()

Default: "/usr/sbin/ntpd"

Example:

{grisp_time, [
    {ntpd, "/usr/local/bin/ntpd"}
]}

Complete Configuration Example

{grisp_time, [
    {servers, ["0.pool.ntp.org", "1.pool.ntp.org"]},
    {ntpd, "/usr/sbin/ntpd"}
]}

About

Keeps time synchronized on GRiSP devices

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published