Announcement

Collapse
No announcement yet.

Howto change from US to UK/EU date format in HS3 linux/Pi

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Howto change from US to UK/EU date format in HS3 linux/Pi

    How to change from US to UK/EU date format in HS3 linux/Pi


    By default HS3 displays dates in the US mm/dd/yy format. To change to the UK/EU format of dd/mm/yy make the following changes to your system.

    1 - Log in to your system command line using SSH from another linux box or an SSH client for windows such as Putty.

    2 - Ensure that the system locale is set to your region (in this example we will use en_GB for the UK).

    a. Check the current locale typing:

    localectl

    This is what I see on my laptop.

    ICS-HPN:~$ localectl

    System Locale: LANG=en_US.UTF-8
    VC Keymap: n/a
    X11 Layout: us
    X11 Model: pc105

    b. If the current locale is not correct, check that the required locale is installed:

    localectl list-locales
    ...
    en_GB.UTF-8
    ...

    c. Change the system locale to the desired region

    sudo localectl set-locale LC_ALL=en_GB.UTF-8

    d. Check the change has been implemented:

    localectl

    3 - That has changed the system locale to the correct region.

    However, HomeSeer changes the locale of the homeseer user to en_US, on the fly, when HomeSeer starts so it is necessary to edit some HomeSeer configuration files to complete the changes.

    By default linux comes with vi as its command line editor. Many find the interface difficult to use and prefer nano instead. To install nano, issue the following commands:

    sudo apt-get update

    sudo apt-get install nano

    a. Change the homeseer startup file:

    sudo nano /usr/local/HomeSeer/autostart_hs

    Change the line:
    export LANG=en_US.UTF-8
    to
    export LANG=en_GB.UTF-8

    b. Change the homeseer go file:

    sudo nano /usr/local/HomeSeer/go

    Change the line:
    export LANG=en_US.UTF-8
    to
    export LANG=en_GB.UTF-8

    c. If necessary add you actual location to the location.csv file. To add your location edit the file:

    sudo nano /usr/local/HomeSeer/Config/location.csv

    and add your actual location copying the format of already entered locations. NOTE: there is a long standing feature/bug that the longitude values in the file are reverse signed. ie West of Greenwich values are positive instead of the expected negative.

    4 - Restart the system to implement the changes:

    sudo reboot

    Author - adeux - Mark
    Last edited by Pete; April 9th, 2018, 06:33 PM.
    - Pete

    Auto mator
    Homeseer 3 Pro - 3.0.0.534 (Linux) - Ubuntu 18.04/W7e 64 bit Intel CPU - Mono 5.20
    Homeseer Zee2 (Lite) - 3.0.0.534 (Linux) - Ubuntu 18.04/W7e BeeLink 4Gb BT3 Pro - Mono 5.20

    X10, UPB, Zigbee, ZWave and Wifi MQTT automation.
Working...
X