Same issue for me. School calendar works great but my personal calendar doesn't pull any events. Looking forward to a solution someday!eclectic-tech wrote: ↑July 29th, 2018, 1:58 am Wow! I haven't look at this for over 6 months... more rust on my coding skill than I thought, so I took a break.
I may find some time to look deeper, but for the near future, it is what it is... a semi-working script.
It is currently April 19th, 2024, 11:35 am
Enigma Google Calendar Patch
-
- Posts: 1
- Joined: October 25th, 2018, 10:41 pm
Re: Enigma Google Calendar Patch
-
- Posts: 1
- Joined: December 25th, 2018, 2:16 am
Re: Enigma Google Calendar Patch
It is possible to stay in the calendar 5 days before ?
exemple
today is 25 and event of day 20 stay in calendar
exemple
today is 25 and event of day 20 stay in calendar
-
- Posts: 79
- Joined: April 12th, 2014, 12:52 pm
- Location: Slovakia
Re: Enigma Google Calendar Patch
How can i change Date language to another language ? For example to slovak. "FormatLocale=sk-SK"
-
- Rainmeter Sage
- Posts: 5391
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Enigma Google Calendar Patch
I do not think that can be done easily. The feeds and script work with system dates and times.
@ senha1k2 Past Items are removed by default
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Rainmeter Sage
- Posts: 16144
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Enigma Google Calendar Patch
Although indeed not extremely easy, nor impossible isn't. You probably have to pass those dates through some String measures and make there a substitution. As eclectic-tech said, the FormatLocale option won't work in this case.
For example, add the following variables into the [Variables] section:
Code: Select all
[Variables]
...
DateSubstitute="(?siU)Jan":"Ian","(?siU)Feb":"Feb","(?siU)Mar":"Mar","(?siU)Apr":"Apr","(?siU)May":"Mai","(?siU)Jun":"Iun","(?siU)Jul":"Iul","(?siU)Aug":"Aug","(?siU)Sep":"Sep","(?siU)Oct":"Oct","(?siU)Nov":"Nov","(?siU)Dec":"Dec","(?siU)Sunday":"Duminica","(?siU)Monday":"Luni","(?siU)Tuesday":"Marti","(?siU)Wednesday":"Miercuri","(?siU)Thursday":"Joi","(?siU)Friday":"Vineri","(?siU)Saturday":"Sambata"
Then add a this kind of option for each "event" (I hope those can be called events):
Code: Select all
[MeasureWhen1]
Measure=String
String=#Item1Date#
RegExpSubstitute=1
Substitute=#DateSubstitute#
DynamicVariables=1
Code: Select all
[ItemWhen1]
Meter=STRING
MeasureName=MeasureWhen1
Group=FeedData
MeterStyle=StyleReaderSubtext
Text=%1
But finally I believe it can be done.
-
- Posts: 79
- Joined: April 12th, 2014, 12:52 pm
- Location: Slovakia
Re: Enigma Google Calendar Patch
THX balala . I try this and it works also. I had to change TS format in lua scrip too.
Code: Select all
[cas1]
Measure=Time
TimeStamp=#Item1Date#
TimeStampFormat=%a, %d. %B %Y %H:%M
TimeStampLocale=en-US
FormatLocale=sk-SK
Format=%a, %d. %B. %Y %H:%M
DynamicVariables=1
Group=FeedData
-
- Rainmeter Sage
- Posts: 16144
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Enigma Google Calendar Patch
Yes, another approach of the same problem. Congratulations.
-
- Posts: 79
- Joined: April 12th, 2014, 12:52 pm
- Location: Slovakia
Re: Enigma Google Calendar Patch
And what about add in to lua script how many days remains ? It will be cool
-
- Posts: 2
- Joined: February 4th, 2019, 1:38 pm
Re: Enigma Google Calendar Patch
I have been using and slightly modifying the Google Calendar skin https://forum.rainmeter.net/download/file.php?id=15635, and I am wondering if someone knows a way to have it show start and end times of events? I have been trying to figure it out, but I've made no progress. Any help is greatly appreciated!
-
- Posts: 79
- Joined: April 12th, 2014, 12:52 pm
- Location: Slovakia
Re: Enigma Google Calendar Patch
my solution :
add new variable #ItemXRem#
add new variable #ItemXRem#
Code: Select all
if Error then
-- ERROR; QUEUE MESSAGES
Queue['FeedTitle'] = Error.Title
Queue['FeedLink'] = Error.Link
Queue['Item1Title'] = Error.Description
Queue['Item1Link'] = Error.Link
Queue['Item1Desc'] = ''
Queue['Item1Date'] = ''
Queue['Item1Rem'] = '' --add
Queue['Item1Unread'] = 0
for i = 2, MinItems do
Queue['Item'..i..'Title'] = ''
Queue['Item'..i..'Link'] = ''
Queue['Item'..i..'Desc'] = ''
Queue['Item'..i..'Date'] = ''
Queue['Item'..i..'Rem'] = '' --add
Queue['Item'..i..'Unread'] = 0
end
else
-- NO ERROR; QUEUE FEED
Queue['FeedTitle'] = Feed.Title
Queue['FeedLink'] = Feed.Link or ''
for i = 1, math.max(#Feed, MinItems) do
local Item = Feed[i] or {}
if Item.Date ~= nil then
rozdiel = math.floor(os.difftime(Item.Date,os.time())/86400) --add
-- print (i.." test"..Item.Date.." "..os.time())
if rozdiel == 0 then --add
roz = 'Dnes' --add TODAY
else
if rozdiel == 1 then
roz = 'Zajtra' --add TOMMORROW
else
if rozdiel < 5 then
roz = 'Za '..rozdiel..' dni'
else roz = 'Za '..rozdiel..' dní'
end
end
end
else
roz = ''
end
Queue['Item'..i..'Title'] = Item.Title or ''
Queue['Item'..i..'Link'] = Item.Link or Feed.Link or ''
Queue['Item'..i..'Desc'] = Item.Desc or ''
Queue['Item'..i..'Unread'] = Item.Unread or ''
Queue['Item'..i..'Rem'] = roz or '' --add
Queue['Item'..i..'Date'] = Item.Date and os.date(Timestamp, Item.Date) or ''