Hello to all users of the forum. I'm trying to compile LibreELEC from git to get a release completely in Italian. Editing some sources that the libreelec automake uses to get the system I was able to get half results. For example by changing the file /system/settings/settings.xml I'm able to set the it_it language after also inserting the localization addon in the addons folder. One thing that I'm not able to do is to set the timezone. I think kodi copy settings from LibreELEC core, maybe zdata.service. Can someone help me to set the timezone?
[SOLVED] Set default timezone
-
alessandro.psrt -
October 12, 2016 at 9:15 AM -
Thread is Unresolved
-
-
- Official Post
LibreELEC.tv/kodi-100.08-setup-timezone.patch at master · LibreELEC/LibreELEC.tv · GitHub
autostart.shYou need to set a value in /storage/.cache/timezone containing the timezone. I'd do this with an embedded autostart.sh script that detects whether that file already exists, and if not (which would be first boot) creates it to set the value.
-
Thanks for reply but does not work.
Created /projects/S805/filesystem/usr/config/autostart.sh containing:
Bash#!/bin/bash file="/storage/.cache/timezone" if [ -f "$file" ] then echo "$file found." else echo "TIMEZONE=Europe/Rome" >> /storage/.cache/timezone fi
After first run it creates /storage/.cache/timezone with TIMEZONE=Europe/Rome value but in kodi settings timezone remain empty.
I'm doing something wrong?
[hr]
Doing test, for example: if timezone is set America/Jamaica and modify /storage/.cache/timezone in Europe/Rome value, in kodi settings timezone remain set in America/Jamaica, even after reboot.
[hr]
You gave me the idea and I solved differently.
The time zone settings appear to be read in real time from /storage/.kodi/userdata/guisettings.xml, so:
Created /projects/S805/filesystem/usr/config/guisettings.xml with default values
Created /projects/S805/filesystem/usr/config/autostart.sh containing:Bash#!/bin/bash file="/usr/config/guisettings.xml" if [ -f "$file" ] then yes | cp -rf /usr/config/guisettings.xml /storage/.kodi/userdata yes | rm /usr/config/guisettings.xml else echo "Already set" fi
It works but if you have a better method I listen.
-
/usr is read-only! Fix errors.
Bash
Display More#!/bin/bash file="/storage/.kodi/alreadyset" if [ -f "$file" ] then echo "Already set" else echo "localtime, rss are set" >> /storage/.kodi/alreadyset cp /usr/config/guisettings.xml /storage/.kodi/userdata echo "TIMEZONE=Europe/Rome" >> /storage/.cache/timezone cp /usr/config/RssFeeds.xml /storage/.kodi/userdata fi
With this method I can set my rss feed. Deleting libreelec-rss patch file and editing RssFeeds.xml from kodi source works, but I don't know why I can't get rss enabled by default in kodi settings. Now everything works, thanks. Hope will help other peoples.