Open lew101 opened 10 years ago
@limbenjamin first time I've seen accurate dates since the bug started. am/pm messed up but I'll call it progress thanks i'll let you know if i find some time to play with the am/pm thing
Nothing?
@limbenjamin I use AM/PM and I found that your patch worked perfectly for me. Thank you so much! First time I've had accurate dates and times in many months.
tl;dnr
Apologies if someone has already solved this, but I was too lazy to read through all of the comments. Anyways, my solution was to change the following lines:
333: MatchItemDate = '
Hopefully my line numbers are still correct, made some changes to the code.
OK. The only problem I now have is the dates not showing correctly. Could someone give me a step-by-step tutorial on how you got it to work? Thanks.
Dates are working for me, sorry, dunno.
OK. The only problem I now have is the dates not showing correctly. Could someone give me a step-by-step tutorial on how you got it to work? Thanks.
can somebody post the entire file (with working dates and times)? thx!
Nothing?
You wouldn't want my file, it has a lot of additional processing, like converting & to &. If you make the changes I recommended, it should work for you.
i tried the changes but it doesn't work :( so i might need e full file :s
Should we just give up and chalk Rainmeter up as a lost cause?
yes, I have.
I don't use the calendar part anyway.
“You don't stop running because you get old, you get old because you stop running.” Andy Rhine
On Wed, Mar 4, 2015 at 9:16 AM, Gregory2001 notifications@github.com wrote:
Should we just give up and chalk Rainmeter up as a lost cause?
— Reply to this email directly or view it on GitHub https://github.com/Kaelri/Enigma/issues/84#issuecomment-77175810.
This topic is about the Google Calendar. We need help about the Google Calendar. We're not interested in what you don't use.
I've followed everything above and got it working again, except for the correct dates and times for events. These still show the date and time of last refresh rather than scheduled time of event. I've learnt a little bit about lua, but not enough to fix it. Surely it's no more than a half hour job for someone to update a fully operational reader.lua? Please? Anyone?
Ok, here's my GoogleCalendar function from my Reader.lua, this should work for you, and if it doesn't, let me know and I'll take another look:
GoogleCalendar = {
MatchLink = '<link.-rel=.-alternate.-href="\'["\']',
MatchItem = '<entry.-',
MatchItemID = '
',
--MatchItemDate = 'startTime="\'["\']',
MatchItemDate = '
So, I replaced the Google Calendar function in reader.lua with your code, refreshed the skin, and now it doesn't get past "Loading..."
@Eclipse06 , your code doesn;t work for me either...... Keep showing "loading......"
Gee someone could create a pull request that fixes the issue. On Mar 10, 2015 3:00 AM, "steventan11" notifications@github.com wrote:
@Eclipse06 https://github.com/Eclipse06 , your code doesn;t work for me either...... Keep showing "loading......"
— Reply to this email directly or view it on GitHub https://github.com/Kaelri/Enigma/issues/84#issuecomment-78004757.
so still nobody that wants to paste his entire file? cause only fragments don't ensure us to have it completely correct
this incorporates all the fixes from all the different threads. cheers, and good wishes.
this completely replaces the file reader.lua file so need to copy and then paste to the original or create a new lua file. did it this way as the fixes were needed in several different areas.
http://notepad-plus-plus.org/download/v6.7.7.html I use notepad++ if you don't have a lua editor
++UPDATE++ also just incase when you get your private address from google make sure to capitalize the b in basic at the end of the google xml link.
web //www.google.com/calendar/feeds/accountname%40gmail.com/private-somelongnumber/Basic
okay here is the link for a file download if there are problems with the copy/paste.
https://drive.google.com/file/d/0B8Xtnqln2_2GZS1GMmpEMmJIa0E/view?usp=sharing
just download copy to \Documents\Rainmeter\Skins\Enigma\@Resources\Measures
What are we supposed to do with this?
-------Original Message-------
From: JCHutchinson64 Date: 04/16/15 15:46:02 To: Kaelri/Enigma Cc: Gregory2001 Subject: Re: [Enigma] GCal reader no longer showing feed (#84)
http://pastebin.com/YZnvhXzg this incorporates all the fixes from all the different threads. cheers, and good wishes. — Reply to this email directly or view it on GitHub.
This email has been checked for viruses by Avast antivirus software. http://www.avast.com
updated my note, but just incase you need to replace the reader.lua with the content of the pastebin. if you don't have a lua editor then suggest notepad++. copy from pastebin and paste over.
On Thu, Apr 16, 2015 at 1:53 PM, Gregory2001 notifications@github.com wrote:
What are we supposed to do with this?
-------Original Message-------
From: JCHutchinson64 Date: 04/16/15 15:46:02 To: Kaelri/Enigma Cc: Gregory2001 Subject: Re: [Enigma] GCal reader no longer showing feed (#84)
http://pastebin.com/YZnvhXzg this incorporates all the fixes from all the different threads. cheers, and good wishes. — Reply to this email directly or view it on GitHub.
This email has been checked for viruses by Avast antivirus software. http://www.avast.com
— Reply to this email directly or view it on GitHub https://github.com/Kaelri/Enigma/issues/84#issuecomment-93837376.
I just need the fix for Google Calendar.
-------Original Message-------
From: JCHutchinson64 Date: 04/16/15 15:59:46 To: Kaelri/Enigma Cc: Gregory2001 Subject: Re: [Enigma] GCal reader no longer showing feed (#84)
updated my note, but just incase you need to replace the reader.lua with the content of the pastebin. if you don't have a lua editor then suggest notepad++. copy from pastebin and paste over.
On Thu, Apr 16, 2015 at 1:53 PM, Gregory2001 notifications@github.com wrote:
What are we supposed to do with this?
-------Original Message-------
From: JCHutchinson64 Date: 04/16/15 15:46:02 To: Kaelri/Enigma Cc: Gregory2001 Subject: Re: [Enigma] GCal reader no longer showing feed (#84)
http://pastebin.com/YZnvhXzg this incorporates all the fixes from all the different threads. cheers, and good wishes. — Reply to this email directly or view it on GitHub.
This email has been checked for viruses by Avast antivirus software. http://www.avast.com
— Reply to this email directly or view it on GitHub https://github.com/Kaelri/Enigma/issues/84#issuecomment-93837376.
— Reply to this email directly or view it on GitHub.
This email has been checked for viruses by Avast antivirus software. http://www.avast.com
this does fix the GCal =) the reader.lua is what drives the calendar.
On Thu, Apr 16, 2015 at 2:11 PM, Gregory2001 notifications@github.com wrote:
I just need the fix for Google Calendar.
-------Original Message-------
From: JCHutchinson64 Date: 04/16/15 15:59:46 To: Kaelri/Enigma Cc: Gregory2001 Subject: Re: [Enigma] GCal reader no longer showing feed (#84)
updated my note, but just incase you need to replace the reader.lua with the content of the pastebin. if you don't have a lua editor then suggest notepad++. copy from pastebin and paste over.
On Thu, Apr 16, 2015 at 1:53 PM, Gregory2001 notifications@github.com wrote:
What are we supposed to do with this?
-------Original Message-------
From: JCHutchinson64 Date: 04/16/15 15:46:02 To: Kaelri/Enigma Cc: Gregory2001 Subject: Re: [Enigma] GCal reader no longer showing feed (#84)
http://pastebin.com/YZnvhXzg this incorporates all the fixes from all the different threads. cheers, and good wishes. — Reply to this email directly or view it on GitHub.
This email has been checked for viruses by Avast antivirus software. http://www.avast.com
— Reply to this email directly or view it on GitHub https://github.com/Kaelri/Enigma/issues/84#issuecomment-93837376.
— Reply to this email directly or view it on GitHub.
This email has been checked for viruses by Avast antivirus software. http://www.avast.com
— Reply to this email directly or view it on GitHub https://github.com/Kaelri/Enigma/issues/84#issuecomment-93840523.
I just need the fix for GCal.
-------Original Message-------
From: JCHutchinson64 Date: 04/16/15 16:26:43 To: Kaelri/Enigma Cc: Gregory2001 Subject: Re: [Enigma] GCal reader no longer showing feed (#84)
this does fix the GCal =) the reader.lua is what drives the calendar.
On Thu, Apr 16, 2015 at 2:11 PM, Gregory2001 notifications@github.com wrote:
I just need the fix for Google Calendar.
-------Original Message-------
From: JCHutchinson64 Date: 04/16/15 15:59:46 To: Kaelri/Enigma Cc: Gregory2001 Subject: Re: [Enigma] GCal reader no longer showing feed (#84)
updated my note, but just incase you need to replace the reader.lua with
the content of the pastebin. if you don't have a lua editor then suggest
notepad++. copy from pastebin and paste over.
On Thu, Apr 16, 2015 at 1:53 PM, Gregory2001 notifications@github.com wrote:
What are we supposed to do with this?
-------Original Message-------
From: JCHutchinson64 Date: 04/16/15 15:46:02 To: Kaelri/Enigma Cc: Gregory2001 Subject: Re: [Enigma] GCal reader no longer showing feed (#84)
http://pastebin.com/YZnvhXzg this incorporates all the fixes from all the different threads. cheers, and good wishes. — Reply to this email directly or view it on GitHub.
This email has been checked for viruses by Avast antivirus software. http://www.avast.com
— Reply to this email directly or view it on GitHub https://github.com/Kaelri/Enigma/issues/84#issuecomment-93837376.
— Reply to this email directly or view it on GitHub.
This email has been checked for viruses by Avast antivirus software. http://www.avast.com
— Reply to this email directly or view it on GitHub https://github.com/Kaelri/Enigma/issues/84#issuecomment-93840523.
— Reply to this email directly or view it on GitHub.
This email has been checked for viruses by Avast antivirus software. http://www.avast.com
Thanks @JCHutchinson64 ! It's works! The date of the GCal show correctly now! Thanks a lot!
Guys, just try this steps:
Tadaaa~~~ GCal date works now!!!
Awesome. Date and time works for one of my google accounts, but date only on the other. I can live with that for now..
Thanks heaps for the code and the simple instructions.
On 17/04/2015, at 10:43 AM, steventan11 notifications@github.com wrote:
Thanks @JCHutchinson64 ! It's works! The date of the GCal show correctly now! Thanks a lot!
Guys, just try this steps:
Tadaaa~~~ GCal date works now!!!
— Reply to this email directly or view it on GitHub.
oddly enough it keeps saying 'waiting for data from webparser' the previous file i had showed wrong times and dates but i saw the items, now i don't see anything
anyone that has an idea of what could be causing this?
Doesn't work for me, either - I get exactly the same as Lefky.
have you changed the original http given by gcal from https://www.google.com/calendar/feeds/yourgmailid%40gmail.com/private-somelongnumber/basic to https://www.google.com/calendar/feeds/yourgmailid%40gmail.com/private-somelongnumber/Basic
for some odd reason the change in the basic to Basic allows it to get past the waiting for data
i wrote the steps on how to put in in there so yeah :p
When editing Reader.lua, I couldn't get the time to change no matter what method I used. Once I downloaded the .lua that JCHutchinson64 posted - it worked! Thanks!
i tried copying, replacing, delete and recreate from download and nothing works...
Stupid question: How do I get an apostrophe to render appropriately? For example: "Joe Shmoe':s Birthday" to "Joe Shmoe's Birthday"?
since yesterday it suddenly works??? however the am/pm part is pretty confusing
anyone knows why it suddenly works?
Google announced that as of November 18, 2015 calendar rss feeds will be discontinued due to low usage.... Darn it!
https://www.404techsupport.com/2015/10/google-discontinue-feed-google-calendars/
Hopefully there's a way the calendar can still be incorporated in Enigma... v5? Any thoughts? @Kaelri?
What "v5"?
On http://enigma.kaelri.com/downloads/ it says: Next: V5 ... in development....
Hi Everyone
Ok here we go again. I have mostly got the Google Calendar working again with the ICAL feed. You will need to change your feed options to the ics. Something like:
https://calendar.google.com/calendar/ical/EMAIL/PRIVATE_KEY/basic.ics
Then make the following changes to the Reader.lua file:
It seems that recurring events are an issue because they don't come through as the nearest one first anymore so the results will probably need to be ordered by date somehow, it's a start though.
@t0mmy9 , thanks so much for that! A great start indeed as my additional calendars have sprung back to life. Sadly, my main appointment calendar still renders the "invalid feed format" message...
I edited Options.inc to make sure the calendar ics links don't get messed up by options.ini.
However, probably as a result of editing reader.lua, now my gmail feed is not working anymore. It says "Waiting for data from WebParser". Any chance you could post the entire revised reader.lua to avoid any editing errors?
It would be beyond awesome if at some point you were able to make this work properly again. I greatly appreciate your efforts!
Cheers, Jay
@jayzee2001 sure although I'm on a slightly older version of the Enigma theme than the current one so I would make a backup. Here's my full file: http://pastebin.com/stgQ34ea
I don't use the gmail feed so I'm not sure there, maybe turn on logging in Rainmeter and check the log file. Also check your appointment feed in a text editor and see if it's in the "VEVENT" format.
Just tried these fixes, as you suggested, and now my feeds for both calendar and gmail are stuck on "Loading..." Any suggestions?
Also, I didn't know how to edit the options.inc file, so that may be my issue. I also tried using t0mmy's full file, and that had the same result.
Thank you all in advance! Drives me nuts when Google messes with things and causes my feeds to stop working, so I'm grateful that you folks are here to help!
I'm using @t0mmy9 's Reader.lua and with calendar's .ICS but still unable to load any calendar events, any idea?
@t0mmy9 's edits are working for my calendars, but there are still some significant issues.
Whenever you put in new values (URLs) into options.inc through the options applet, it always modifies the ".../basic.xml" part to read ".../full.xml". So I edited it to read exactly as per the new url given, ending in ".../basic.ics".
options.inc resides in C:\Users[username]\Documents\Rainmeter\Skins\Enigma\@Resources\User
Unfortunately, the edits also stop my gmail feed from working, getting stuck on "Waiting for data from WebParser".
Hopefully @t0mmy9 or other people involved with the programming of enigma will have the time and ability to make this work again as it used to. I don't want to give up on my enigma powered desktop just yet!
Another option would be too look into acquiring some lua skills myself... Can anybody recommend a good place to start?
Cheers, J.
Ok with a few small changes I've got my calendar to display events in the right order and remove past events. Here's my current Reader.lua:
http://pastebin.com/Cmab7pyD And the changes from the last version: https://www.diffchecker.com/pkbforwg
This only works for monthly recurring events, annual will need to be looked at and it seems that the "VTIMEZONE" info can be used to adjust to local timezones. @jayzee2001 I'm guessing the "IdentifyType" function is returning GoogleCalendar by accident instead of Atom for your Gmail feed but I'm not sure.
I don't actually know Lua I'm just using the reference from here: http://www.lua.org/pil/contents.html especially Pattern-Matching.
With @t0mmy9 's latest version the Google Calendar feed has sprung back to life! And it appears to be working without changing "full" to "basic". Still some issues, but huge thanks to all who have contributed.
Made a few edits to get my gmail and rss feeds back!
The removal of past events is fine for calendar items, but it also excluded my gmail and rss feed items from being added. So I, probably very inelegantly, changed it to only exclude past events if the feed type is GoogleCalendar:
In Input() under -- ADD NEW ITEMS it now reads
for i = #Items, 1, -1 do if Items[i] then if t == 'GoogleCalendar' then if (Items[i].Date > os.time()) then table.insert(Feeds[f], 1, Items[i]) end else table.insert(Feeds[f], 1, Items[i]) end end end
If anybody can compact this further, please let me know!
Also, in IdentifyDate, the statement "if (s:match('BYMONTHDAY')) then..." generated the error "attempt to index local 's' (a nil value)". This seemed to stem, for some reason, from the DefineTypes function, looking for an non-existent
In DefineTypes(), under Atom = {
MatchItemDate = '
There is still some work to do re: Annual repeats, time zone conversions etc, but I'm excited so far to have most of the functionality back.
Fully modified reader.lua at http://pastebin.com/T9HCgZdR
Thanks again @t0mmy9 for digging into the ICAL pattern matching. I haven't done any programming in the last 2 decades; my head hurts trying to figure this out!
Cheers, Jay
My calendar still has no Holidays and my GCal still doesn't work. I must be missing something. Thanks.
------ Original Message ------ From: "jayzee2001" notifications@github.com To: "Kaelri/Enigma" Enigma@noreply.github.com Cc: "Gregory2001" gregl@bloomer.net Sent: 12/13/2015 1:55:09 AM Subject: Re: [Enigma] GCal reader no longer showing feed (#84)
Made a few edits to get my gmail and rss feeds back!
The removal of past events is fine for calendar items, but it also excluded my gmail and rss feed items from being added. So I, probably very inelegantly, changed it to only exclude past events if the feed type is GoogleCalendar:
In Input() under -- ADD NEW ITEMS it now reads
for i = #Items, 1, -1 do if Items[i] then if t == 'GoogleCalendar' then if (Items[i].Date > os.time()) then table.insert(Feeds[f], 1, Items[i]) end else table.insert(Feeds[f], 1, Items[i]) end end end
If anybody can compact this further, please let me know!
Also, in IdentifyDate, the statement "if (s:match('BYMONTHDAY')) then..." generated the error "attempt to index local 's' (a nil value)". This seemed to stem, for some reason, from the DefineTypes function, looking for an non-existent tag in gmail's Atom feed. I changed this to look for the tag, which made the error go away.
In DefineTypes(), under Atom = { MatchItemDate = '(.-)', becomes MatchItemDate = '(.-)',
There is still some work to do re: Annual repeats, time zone conversions etc, but I'm excited so far to have most of the functionality back.
Fully modified reader.lua at http://pastebin.com/T9HCgZdR
Thanks again @t0mmy9 for digging into the ICAL pattern matching. I haven't done any programming in the last 2 decades; my head hurts trying to figure this out!
Cheers, Jay
— Reply to this email directly or view it on GitHub.
I've had the Gcal reader installed and working for about half a year now but it's now showing Invalid Feed Format, Could not identify a valid feed format. I have tried giving the reader another XML address and it still isn't working.