rt400 / Jewish-Sabbaths-Holidays

Jewish Shabbat Yomtov and Holidays times and event
9 stars 1 forks source link

Traceback #4

Closed sweichbr closed 3 years ago

sweichbr commented 3 years ago

Hi

Excited about this integration. Unfortunately, I can't get any of the sensors to work. Here is a sample from the log file

2021-06-27 23:44:01 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.hebcal_hebrew_date fails Traceback (most recent call last): File "/config/custom_components/hebcal/sensor.py", line 229, in create_db_file await self.filter_db(temp_db["items"], "new") File "/config/custom_components/hebcal/sensor.py", line 271, in filter_db is_in = datetime.datetime.strptime( File "/usr/local/lib/python3.8/_strptime.py", line 568, in _strptime_datetime tt, fraction, gmtoff_fraction = _strptime(data_string, format) File "/usr/local/lib/python3.8/_strptime.py", line 352, in _strptime raise ValueError("unconverted data remains: %s" % ValueError: unconverted data remains: -04:00 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 350, in async_update_ha_state await self.async_device_update() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 558, in async_device_update raise exc File "/config/custom_components/hebcal/sensor.py", line 171, in async_update await self.update_db() File "/config/custom_components/hebcal/sensor.py", line 389, in update_db await self.create_db_file() File "/config/custom_components/hebcal/sensor.py", line 238, in create_db_file with open( FileNotFoundError: [Errno 2] No such file or directory: '/config/custom_components/hebcal/hebcal_data.json

rt400 commented 3 years ago

please share your integration config. also check if you have a file hebcal_data.json. if not check if you have a permission issue.

sweichbr commented 3 years ago

I do not have that file, but I am unsure of where to check permissions. On the file system it's root, but so are all my other integrations (running homeassistant.io on rpi4).

My config

homeassistant: unit_system: imperial latitude: 39.xxxx longitude: -7x.xxxx time_zone: America/New_York

And for the sensor, I just copied your example from github.com

Thanks

On Tue, Jun 29, 2021, 3:01 AM Yuval @.***> wrote:

please share your integration config. also check if you have a file hebcal_data.json. if not check if you have a permission issue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rt400/Jewish-Sabbaths-Holidays/issues/4#issuecomment-870315642, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKI5HDBG7NFQCSPKLTO6CULTVFVUJANCNFSM47NDURWQ .

rt400 commented 3 years ago

can you send me the full latitude: 39.xxxx longitude: -7x.xxxx , so i can check it on my system ?

sweichbr commented 3 years ago

Don't really want to post it on github. Is there a way to DM you?

On Tue, Jun 29, 2021, 7:42 AM Yuval @.***> wrote:

can you send me the full latitude: 39.xxxx longitude: -7x.xxxx , so i can check it on my system ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rt400/Jewish-Sabbaths-Holidays/issues/4#issuecomment-870521715, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKI5HDGQ3I73FWA2BB7ADW3TVGWTNANCNFSM47NDURWQ .

rt400 commented 3 years ago

Don't really want to post it on github. Is there a way to DM you? On Tue, Jun 29, 2021, 7:42 AM Yuval @.***> wrote: can you send me the full latitude: 39.xxxx longitude: -7x.xxxx , so i can check it on my system ? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#4 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKI5HDGQ3I73FWA2BB7ADW3TVGWTNANCNFSM47NDURWQ .

yes. you can send it to my email ? yuval.teltech@gmail.com

rt400 commented 3 years ago

Thanks. i fix the Diaspora timezone bug. you can check for update and let me know if that work.

sweichbr commented 3 years ago

Perfect. Thanks for fixing it.

On Tue, Jun 29, 2021, 8:58 AM Yuval @.***> wrote:

Thanks. i fix the Diaspora timezone bug. you can check for update and let me know if that work.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rt400/Jewish-Sabbaths-Holidays/issues/4#issuecomment-870576229, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKI5HDDY3HLREGFMVEWQ3LDTVG7N5ANCNFSM47NDURWQ .

rt400 commented 3 years ago

I was glad to help. I'm closing the issue.