ironsheep / RPi-Reporter-MQTT2HA-Daemon

Linux service to collect and transfer Raspberry Pi data via MQTT to Home Assistant (for RPi Monitoring)
GNU General Public License v3.0
459 stars 64 forks source link

problem starting: python3 /opt/RPi-Reporter-MQTT2HA-Daemon/ISP-RPi-mqtt-daemon.py #109

Open Kenny-Vinamont opened 1 year ago

Kenny-Vinamont commented 1 year ago

Hi, I get this error. somebody knows what the solution is? I did the same steps on my Pi4 and that one is working without issues. These problems are on my Pi3 both are running volumio.

volumio@volumio-zolder:~$ python3 /opt/RPi-Reporter-MQTT2HA-Daemon/ISP-RPi-mqtt-daemon.py Traceback (most recent call last): File "/opt/RPi-Reporter-MQTT2HA-Daemon/ISP-RPi-mqtt-daemon.py", line 44, in local_tz = get_localzone() File "/usr/local/lib/python3.7/dist-packages/tzlocal/unix.py", line 218, in get_localzone _cache_tz = _get_localzone() File "/usr/local/lib/python3.7/dist-packages/tzlocal/unix.py", line 179, in _get_localzone tzname = _get_localzone_name(_root) File "/usr/local/lib/python3.7/dist-packages/tzlocal/unix.py", line 158, in _get_localzone_name raise zoneinfo.ZoneInfoNotFoundError(message) backports.zoneinfo._common.ZoneInfoNotFoundError: 'Multiple conflicting time zone configurations found:\n/etc/timezone: Etc/UTC\n/etc/localtime is a symlink to: Europe/Brussels\nFix the configuration, or set the time zone in a TZ environment variable.\n'

bsimmo commented 1 year ago

Bug?

It saying your timezones are set all over the place. I guess you need set them too one country.

Kenny-Vinamont commented 1 year ago

yeah, figured that out it was somthing with the timezone, but the only place I can change my timezone is in the volumio settings I guess?

Kenny-Vinamont commented 1 year ago

ok, found the command to set timezone trough ssh. sorry for the post didn't know I could still change the timezone outside volumio. But I was searching already 2 days for a solution.. Now it popped up on one of my searches.. sorry for your wasted time.. command: sudo dpkg-reconfigure tzdata.

bsimmo commented 1 year ago

To be fair, I would hope volumio would set all the timezones places needed from it's settings, guess not.

Always worth and ask though, someone else might have the same problem.

On Thu, 24 Aug 2023, 6:25 pm Kenny-Vinamont, @.***> wrote:

ok, found the command to set timezone trough ssh. sorry for the post didn't know I could still change the timezone outside volumio. command: sudo dpkg-reconfigure tzdata.

— Reply to this email directly, view it on GitHub https://github.com/ironsheep/RPi-Reporter-MQTT2HA-Daemon/issues/109#issuecomment-1692128970, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYAXN72IPC44UTOCC544FLXW6FALANCNFSM6AAAAAA35KD4GU . You are receiving this because you commented.Message ID: @.***>