Git Product home page Git Product logo

ubhits / ad-calendartvreminders Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 0.0 52 KB

Your TV notifies you of the next upcoming event from you calendar every time it turns on. Please :star: my repo if you like like the app, it will encourage me a lot.

License: Apache License 2.0

Python 100.00%
home-automation smart-home smarthome media-player home-assistant mediaplayer homeassistant appdaemon hacs appdaemon-apps

ad-calendartvreminders's People

Contributors

ubhits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ad-calendartvreminders's Issues

please help

hey, i love this idea but i can not get it to work i get the following log

2021-01-16 13:33:02.033186 WARNING calendar_tv_reminders: ------------------------------------------------------------
2021-01-16 13:33:02.034263 WARNING calendar_tv_reminders: Unexpected error in worker for App calendar_tv_reminders:
2021-01-16 13:33:02.035320 WARNING calendar_tv_reminders: Worker Ags: {'id': 'e1f1b4a7206b42c18d37345d68fe5e3e', 'name': 'calendar_tv_reminders', 'objectid': 'd79bcfc6ac1b467b8c2630f6b8cc4821', 'type': 'scheduler', 'function': <bound method CalendarTVReminders.show_notification of <calendar_tv_reminders.CalendarTVReminders object at 0x7f93845d00>>, 'pin_app': True, 'pin_thread': 1, 'kwargs': {'__thread_id': 'thread-1'}}
2021-01-16 13:33:02.036359 WARNING calendar_tv_reminders: ------------------------------------------------------------
2021-01-16 13:33:02.039299 WARNING calendar_tv_reminders: Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/appdaemon/threading.py", line 887, in worker
funcref(self.AD.sched.sanitize_timer_kwargs(app, args["kwargs"]))
File "/config/appdaemon/apps/calendar_tv_reminders.py", line 49, in show_notification
for event in self.calendar_events():
File "/config/appdaemon/apps/calendar_tv_reminders.py", line 60, in calendar_events
event_message = event["attributes"]["message"]
KeyError: 'message'
2021-01-16 13:33:02.040082 WARNING calendar_tv_reminders: ------------------------------------------------------------

error log

The automation does not work for me, I am using it with television sony bravia this is the AppDaemon log, as seen it detects the on, but on the screen no message appears, where the error may be, thank you.

2020-08-30 22:55:52.053830 WARNING calendar_tv_reminders: ------------------------------------------------------------
2020-08-30 22:55:52.052466 WARNING calendar_tv_reminders: Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/appdaemon/threading.py", line 887, in worker
funcref(self.AD.sched.sanitize_timer_kwargs(app, args["kwargs"]))
File "/config/appdaemon/apps/ad-calendartvreminders/apps/calendar_tv_reminders.py", line 49, in show_notification
for event in self.calendar_events():
File "/config/appdaemon/apps/ad-calendartvreminders/apps/calendar_tv_reminders.py", line 60, in calendar_events
event_message = event["attributes"]["message"]
TypeError: 'NoneType' object is not subscriptable

2020-08-30 22:55:52.050566 WARNING calendar_tv_reminders: ------------------------------------------------------------
2020-08-30 22:55:52.049206 WARNING calendar_tv_reminders: Worker Ags: {'id': '381cafxxxxxxx475da04jkjfkñsdjfkj554', 'name': 'calendar_tv_reminders', 'objectid': '56883e096xxxxxxx36bf5358dfksdljfksdjf43f', 'type': 'scheduler', 'function': >, 'pin_app': True, 'pin_thread': 2, 'kwargs': {'__thread_id': 'thread-2'}}
2020-08-30 22:55:52.047889 WARNING calendar_tv_reminders: Unexpected error in worker for App calendar_tv_reminders:
2020-08-30 22:55:52.044325 WARNING calendar_tv_reminders: ------------------------------------------------------------
2020-08-30 22:50:57.049953 WARNING calendar_tv_reminders: ------------------------------------------------------------
2020-08-30 22:50:57.047642 WARNING calendar_tv_reminders: Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/appdaemon/threading.py", line 887, in worker
funcref(self.AD.sched.sanitize_timer_kwargs(app, args["kwargs"]))
File "/config/appdaemon/apps/ad-calendartvreminders/apps/calendar_tv_reminders.py", line 49, in show_notification
for event in self.calendar_events():
File "/config/appdaemon/apps/ad-calendartvreminders/apps/calendar_tv_reminders.py", line 60, in calendar_events
event_message = event["attributes"]["message"]
TypeError: 'NoneType' object is not subscriptable

2020-08-30 22:50:57.045841 WARNING calendar_tv_reminders: ------------------------------------------------------------
2020-08-30 22:50:57.043257 WARNING calendar_tv_reminders: Worker Ags: {'id': '81d5xxxxxxxxxxxxxxxxxxb1a7d731cbf47c27', 'name': 'calendar_tv_reminders', 'objectid': '56883e0xxxxxxxxxxxxxxxxffa5cdcf', 'type': 'scheduler', 'function': >, 'pin_app': True, 'pin_thread': 2, 'kwargs': {'__thread_id': 'thread-2'}}
2020-08-30 22:50:57.041827 WARNING calendar_tv_reminders: Unexpected error in worker for App calendar_tv_reminders:
2020-08-30 22:50:57.038220 WARNING calendar_tv_reminders: ------------------------------------------------------------

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.