How to set up Mimosa Calendar event tile




Hello, how are you all? This time I will explain a little about how to set up a calendar event for the Mimosa theme, This is still under development and can currently only display holiday notifications for today. The plan is that this will be able to display the upcoming holiday schedule, but for now that's enough for now. Here is one of the preview


Now please open the event.sh script in the script folder. for now this script fetches data using the free API from nager.date. why did i choose it? of course because the first one is FREE, another reason is without having to create an account and apikey first so it's not a hassle. but a little drawback (in my opinion) is the holiday data is incomplete, some religious holidays are not listed. but even so this is enough to test this theme.

Back to the script, of the several lines of code that exist, there are at least 2 things that can be changed, it is :
  • countryid value
    you must change this with you country id, you can check it on nager.date for more details
  • word .name in line 19
    if you use .name then the notification will be displayed in English, but if you change it to .localName then it will be displayed in your own language, but I suggest if your language does not use an alphabet then you need to change the configuration a little in CalendarXX.conf
Maybe the script is still messy because I myself am not very good at writing code. maybe someone wants to give suggestions for more effective and clean code, you can write it in the comments.

And it seems that's all for this explanation, but it is possible that this article will change when I get other more complete API options or changes in the script of this theme. thank you for reading.



Regards.
Closebox73

( Please feel free to use the themes I created for personal use or for desktop ricing tutorials on YouTube (or others), but if you want to donate to buy coffee or snacks, I would really appreciate it. via Paypal or Buymeacoffee )

Comments