adrian
Start ntp on network connection on nerves
Hello,
I need to set the time for the nerves device. I’ve found GitHub - evokly/nerves_ntp · GitHub but it isn’t getting the time when using WiFi (I haven’t tried with a wired connection)
It looks like busybox contains the ntp package for synchronizing the datetime, is it possible to make it run on start?
Where should the configuration of the TimeZone live? in the config.ex file or maybe is possible to pass it as an option to the erlang VM?
Thanks!
First Post!
ConnorRigby
check this blog post for a good description of NTP. All Systems Go: Creating your own startup checks with Nerves - DockYard
Linux stores time in utc, so you shouldn’t have to worry much about timezones i don’t think. Timex has support for Timezones also. There are some things to account for for Timex to work properly with Nerves though.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









