ads' corner

DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC)

One of my older Python scripts is throwing a deprecation warning in the 'datetime' module after the recent switch from Ubuntu to Manjaro. The Python version is '3.12.4' now, previously it was '3.11.4'.

Add a Google Calendar to openHAB

openHAB can integrate Google Calendars. The functionality is kind of limited, it can only see the current and the next calendar event, but in my case that is enough. More about the use case in another blog post.


Thunderbird Lightning: cannot add new calendar

If the calendar plugin Thunderbird Lightning stops working after a system upgrade (Ubuntu 8.04 -> 9.10 in my case), just reinstall the libstdc++5 library. Before installing the library you have to deinstall the plugin from Thunderbird and reinstall it afterwards.

The Thunderbird behaviour is a bit curious: the calendar and todo tabs are shown, but all previously defined calendars are missing. In addition it is not possible to add new calendars, these options are greyed out.