If I don't include a timezone setting in my mobileraker.conf, then the service crashes continuously that the PST timezone is unknown when my /etc/timezone file contains America/Los_Angeles.
systemd[1]: mobileraker.service: Failed with result 'exit-code'.
systemd[1]: mobileraker.service: Service RestartSec=10s expired, scheduling restart.
systemd[1]: mobileraker.service: Scheduled restart job, restart counter is at 1010.
systemd[1]: Stopped Companion app to enable push notifications on mobileraker.
systemd[1]: Started Companion app to enable push notifications on mobileraker.
python[9023]: 2023-02-26 21:18:54 voron-v0.bufla.net root[9023] INFO Passed config file is: /home/pi/Mobileraker.conf
python[9023]: 2023-02-26 21:18:54 voron-v0.bufla.net root[9023] INFO Found configuration file at: /home/pi/klipper_config/mobileraker.conf
python[9023]: 2023-02-26 21:18:54 voron-v0.bufla.net root[9023] INFO Read 1 printer config sections
python[9023]: Traceback (most recent call last):
python[9023]: File "/home/pi/mobileraker_companion/mobileraker.py", line 497, in <module>
python[9023]: main()
python[9023]: File "/home/pi/mobileraker_companion/mobileraker.py", line 464, in main
python[9023]: local_config = CompanionLocalConfig(configfile)
python[9023]: File "/home/pi/mobileraker_companion/configs.py", line 54, in __init__
python[9023]: self.timezone: datetime.tzinfo = pytz.timezone(self.timezone_str)
python[9023]: File "/home/pi/mobileraker-env/lib/python3.7/site-packages/pytz/__init__.py", line 188, in timezone
python[9023]: raise UnknownTimeZoneError(zone)
python[9023]: pytz.exceptions.UnknownTimeZoneError: 'PST'
systemd[1]: mobileraker.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: mobileraker.service: Failed with result 'exit-code'.
$ cat /etc/timezone
America/Los_Angeles
Works as expected once I define the timezone in mobileraker.conf.
If I don't include a timezone setting in my mobileraker.conf, then the service crashes continuously that the PST timezone is unknown when my /etc/timezone file contains America/Los_Angeles.
Works as expected once I define the timezone in mobileraker.conf.
Running mobileraker_companion version v0.2.1-41-ge5fa7c8