[SOLVED] Where to set regional settings in config file?

I would like to set up an openhabian 2.4 installation on a Raspberry 3b using config files.

Could you please let me know where one can set the location, country and timezone - which could be found in Paper UI under configuration/system/ Regional Settings (org.eclipse.smarthome.core.i18nprovider)

Can’t check my file ATM but it would be in the addons.cfg file found in
etc/openhab2/services

Unfortunately not … there is only:

  • package
  • remote
  • legacy
  • binding
  • ui
  • persistence
  • action
  • transformation
  • voice
  • misc

In runtime.cfg is a section called LOCALE - but only for default language and region (e.g. DE, US).

Set those in services/runtime.cfg

Example of my config

 # Set location, country, and language
org.eclipse.smarthome.i18n:language=en
org.eclipse.smarthome.i18n:region=US
org.eclipse.smarthome.i18n:location=xx.xxxxxx,-yy.yyyyyy
org.eclipse.smarthome.i18n:timezone=US/Eastern
org.eclipse.smarthome.i18n:measurementSystem=US
5 Likes

I couldn’t get above to work, but this did:
org.eclipse.smarthome.i18n:location=XX.XXXXXX,YY.YYYYYY

The core part was removed a while ago. I updated my post.

Thanks for pointing out the issue!

Is there current documentation on how to configure openhab via configuration files? I’ve just upgraded my container to 2.5.1, but have been running since 2.3.x days. I have several of these values in my services/runtime.cfg file. I drive my whole setup via docker, git and a CI/CD pipeline. All of that to say for me, text file configuration is king. It would be helpful to know what is currently current… :wink:

1 Like

Do you know if that is still valid in OH3 or is ESH completely gone ?

And is there any chance to retrieve and use these settings in rules ?

 # Set location, country, and language
org.openhab.i18n:language=en
org.openhab.i18n:region=US
org.openhab.i18n:timezone=US/Eastern
org.openhab.i18n:location=XX.263288541957735,-YY.74270163142114

Not that I’m aware.