Single source setting for timezone, zonename, country (wireless)

I want to create a single method that sets timezone, zonename and country (wireless) in one go, and I am wondering if that not already exists. This is for easy configuration of systems deployed in different countries.

My questions:

  • Does this already exist?
  • Are timezone and zonename already synchronized elsewhere?
  • What happens to timezone and zonename on uci commit system?

Working on stand-alone UCI/console openWRT only. My current plan is to create a package that depends on zoneinfo-core and use the zone.tab file to translate from zonename to timezone and wireless country code.

Thanks!

Why would you need to set timezone at all? bbox logd is buggy and overcorrects remote log.

"this" does not exist, but if you are into javascripts - setting wifi country should linger like no password dialog at least.

I rely on timekeeping and local time to have certain tasks executed at 1AM, so I need a timezone.
This is console/UCI only - no web interface.

Because there isn't a 1:1 correlation of time zone to country and country to time zone, it might be a bit challenging.

You could always render a map and have the person drop the pin on their location (this would only apply in a LuCI configuration context)... this is common for the desktop operating systems.

Yes - I agree. I was aiming for an approach based on zonename (Africa/Lagos), which would be accurate enough for everything. I agree that country or EAT would be insufficient.

Would bee nice to have "super easy mode" for initial setup.

1 Like

These are embedded systems, and having a single setting avoids issues. We also want to be in regulatory compliance so setting the country on wireless is important. None of the above is luci/web interface oriented, but it would be easy for the right person to implement. Alright - I will have a go at it then.

Wanna move this to permanent wishlists?

Sure! Maybe share a link here so I can contribute what I come up with in that context.

1 Like

Share if you develop anything in regard.

1 Like