It is currently April 27th, 2024, 1:11 pm

Enigma Google Calendar Patch

A package of skins with a "theme" or by a single author
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5407
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Enigma Google Calendar Patch

Post by eclectic-tech »

dblevins wrote: July 9th, 2023, 5:33 pm I just thought replacing my ATnotes with my Google calendar as a Rainmeter widget but this string is too long for me to follow (as I don't write for Rainmeter). Can anyone just post the link to aRainmeter widget for the Google Calendar that doesn't need "fixing" .
Thanks.
helder065 posted an updated version here.

I also created an updated stand-alone Enigma style variant, using helder065's reader and the changes to the URL iCal variables format.

Download:
Google Calendar V2023_06_21_1.2023.06.21.rmskin
2023/111/24 Updated the Reader.lua file to ensure it is V2023.06.21 from helder065
Previous DL 166 times
You do not have the required permissions to view the files attached to this post.
xgecemx
Posts: 1
Joined: September 15th, 2023, 6:11 pm

Re: Enigma Google Calendar Patch

Post by xgecemx »

Hey there!

First off, massive props to you for jumping in and providing improvements! 🙌 The Rainmeter community thrives because of folks like you.

The fix for the monthly event bug was sorely needed! I know a few folks (including yours truly) who were scratching their heads over that one. And sorting the latest news on top for RSS feeds? Absolute game-changer. Makes it so much more user-friendly.

I'll give your updated reader.lua a whirl later today. Excited to see your tweaks in action.When we take a glance at the 2024 calendar, there are certain timeframes we should be especially observant of in terms of weather patterns. Now, while I can't predict exact dates for weather events, historically speaking, as we transition from winter to spring, certain regions might experience increased dew point chart precipitation and perhaps even some unexpected frost in the early months. Remember, 2024 is a leap year, which means an extra day in February – this could slightly alter some seasonal transitions. As we approach summer, we might anticipate heatwaves in specific areas, and hurricane season will be upon us in the latter half of the year, as always. It's crucial to stay updated with your local forecasts, especially during these transitional periods. Keeping an eye on the 2024 calendar and aligning it with our weather updates will ensure you're prepared for whatever Mother Nature has in store!"

Thanks for sharing and keep up the fantastic work!
Spaldo
Posts: 4
Joined: January 16th, 2023, 11:56 am

Re: Enigma Google Calendar Patch

Post by Spaldo »

Mine has stopped working again. Anyone else having issues?
User avatar
Jean-Michel
Posts: 14
Joined: January 26th, 2020, 3:02 pm
Location: France

Re: Enigma Google Calendar Patch

Post by Jean-Michel »

Mine has stopped too recently. The log says:

Code: Select all

Script: Reader.lua:415: field 'day' missing in date table
helder065
Posts: 18
Joined: June 7th, 2023, 2:20 pm
Location: France

Re: Enigma Google Calendar Patch

Post by helder065 »

Hello Spaldo and Jean-Michel

Update the reader.lua file to the latest file

-- Reader.lua for GoogleCalendar skin
-- Update : 2023-06-21

in this previous post : https://forum.rainmeter.net/viewtopic.php?t=27623&start=100#p215918


Regards,
helder065
User avatar
Jean-Michel
Posts: 14
Joined: January 26th, 2020, 3:02 pm
Location: France

Re: Enigma Google Calendar Patch

Post by Jean-Michel »

helder065 wrote: November 24th, 2023, 9:37 am Hello Spaldo and Jean-Michel

Update the reader.lua file to the latest file

-- Reader.lua for GoogleCalendar skin
-- Update : 2023-06-21

in this previous post : https://forum.rainmeter.net/viewtopic.php?t=27623&start=100#p215918


Regards,
helder065
Oh, thank you Helder, I didn't see this post. :)
Spaldo
Posts: 4
Joined: January 16th, 2023, 11:56 am

Re: Enigma Google Calendar Patch

Post by Spaldo »

Hi helder065, thanks for the reply and work on the project.

Unfortunately this hasn't fixed it for me. Now I just get:

Loading...
Processing...

Never changes. Maybe I should try reinstalling?
helder065
Posts: 18
Joined: June 7th, 2023, 2:20 pm
Location: France

Re: Enigma Google Calendar Patch

Post by helder065 »

Spaldo wrote: November 25th, 2023, 9:30 am Hi helder065, thanks for the reply and work on the project.

Unfortunately this hasn't fixed it for me. Now I just get:

Loading...
Processing...

Never changes. Maybe I should try reinstalling?
Hi Spaldo,
can you provide in private message

your URLs, set in GoogleCalendar.ini at lines 5
copy-paste

Code: Select all

[Variables]
;-----------------------
; FEEDS
GoogleCalendar1=https://........................../basic.ics
GoogleCalendar2=https://........................../calendar.ics
GoogleCalendar3=https://..................../opencalendar.ics
and your readerURL config ; copy paste from lines at line 80

Code: Select all

; 1~3 tabs
NumberOfTabs=2
; 1~8 items
NumOfItems=8
ReaderURL1=#GoogleCalendar1#
;?futureevents=true&singleevents=true&orderby=starttime&sortorder=a
ReaderURL2=#GoogleCalendar2#
;?futureevents=true&singleevents=true&orderby=starttime&sortorder=a
ReaderURL3=#GoogleCalendar3#?futureevents=true&singleevents=true&orderby=starttime&sortorder=a
ReaderUpdateRate=3000
ReaderWriteEvents=#GoogleCalendarWriteEvents#
ReaderEventFile=#@#User\Calendars\GoogleCalendar1.xml|#@#User\Calendars\GoogleCalendar2.xml|#@#User\Calendars\GoogleCalendar3.xml

if reader is stuck in processing it's maybe because there's an infinite loop.

Regards,
helder065
Last edited by Brian on November 25th, 2023, 3:34 pm, edited 1 time in total.
Reason: Added [code] tags. It's the </> button.
User avatar
Jean-Michel
Posts: 14
Joined: January 26th, 2020, 3:02 pm
Location: France

Re: Enigma Google Calendar Patch

Post by Jean-Michel »

Hello everybody, I use the Google Calendar skin with the adapted LUA script updated on the 2023-06-21. This one worked but since a few days, the script return on the line 1,235 (for my script) the error:

Reader.lua:1235: attempt to compare nil with number

So, I inserted two print() function for debug before the comparison condition on the line 1235:

Code: Select all

if nextEvent < os.time() then
Here the debug log when the issue occurs, my added debug lines are in italic:

DBUG (16:35:47.935) : @@@@@@ I'm in ComputeNextEvent(rrule, dtstart) function @@@@@
DBUG (16:35:47.936) : debug 777 ! -- Display all parameters of rrule --
DBUG (16:35:47.936) : debug 778 ! -- FREQ: MONTHLY
DBUG (16:35:47.936) : debug 779 ! -- INTERVAL: nil
DBUG (16:35:47.936) : debug 780 ! -- COUNT: nil
DBUG (16:35:47.937) : debug 781 ! -- BYDAY: -1WE
DBUG (16:35:47.937) : debug 782 ! -- BYMONTH: nil
DBUG (16:35:47.937) : debug 783 ! -- BYMONTHDAY: nil
DBUG (16:35:47.937) : debug 784 ! -- BYYEARDAY: nil
DBUG (16:35:47.938) : debug 785 ! -- BYWEEKNO: nil
DBUG (16:35:47.938) : debug 786 ! -- UNTIL: nil
DBUG (16:35:47.938) : debug 787 ! -- BYSETPOS: nil
DBUG (16:35:47.938) : ***************** MONTHLY EVENT *********************
DBUG (16:35:47.939) : debug 1069 : BYDAY on Monthly event args : -1WE
DBUG (16:35:47.939) : debug 1110 : args(1): -1WE
DBUG (16:35:47.939) : debug 1112 : Total arguments: 1
DBUG (16:35:47.939) : debug 1132 ! DTStartcurrentYear : 2023 DTStartcurrentMonth : 11 currentYear : 2023 currentMonth : 11
DBUG (16:35:47.940) : debug 1164 Wed Nov 29 11:00:00 2023
DBUG (16:35:47.940) : debug 1150 ! beginning while loop ! DTStartcurrentYear : 2023 StartcurrentMonth : 11 currentYear : 2023 currentMonth : 11
DBUG (16:35:47.940) : debug 1228 -- targetNth day in range of month-- : abs(targetNth) <= countday --- CHECK 4
DBUG (16:35:47.940) : Compare nextEvent: 1703674800
DBUG (16:35:47.940) : To os.time: 1704036947

DBUG (16:35:47.941) : debug 1236 ---go to next month interval -- date is in the past
DBUG (16:35:47.941) : debug 1237 ---startdate : Wed Nov 29 11:00:00 2023 nextEvent : Wed Dec 27 12:00:00 2023 --- loop --- : 1
DBUG (16:35:47.941) : debug 1270 ---startdate : Wed Nov 29 11:00:00 2023 nextEvent without time correction : Wed Dec 27 12:00:00 2023 nextEvent3 with time correction : Wed Dec 27 11:00:00 2023 --- loop -END-- : 1
DBUG (16:35:47.942) : debug 1150 ! beginning while loop ! DTStartcurrentYear : 2023 StartcurrentMonth : 11 currentYear : 2023 currentMonth : 12
DBUG (16:35:47.942) : debug 1223 -- targetNth day out range of month-- : abs(targetNth) > countday --- CHECK 3
DBUG (16:35:47.942) : Compare nextEvent: nil
DBUG (16:35:47.942) : To os.time: 1704036947

ERRO (16:35:47.943) : Script: Reader.lua:1240: attempt to compare nil with number


It seems that the issue appears on a loop. I don't know about LUA, but I can make changes in the script if someone have thoughts about this issue. Sorry for my basic English, it's not my native language.
Last edited by Brian on December 31st, 2023, 6:55 pm, edited 1 time in total.
jake2456
Posts: 87
Joined: June 8th, 2015, 10:39 pm

Re: Enigma Google Calendar Patch

Post by jake2456 »

Hey guys I happen to install the standalone version from 6/21 electric-tech posted. I noticed my events are showing an hour off. Im guessing has to do with daylight savings or something. Any idea how to fix this?