Download
(1Kb)
Download
Updated: 09-30-08 12:00 PM
Updated:09-30-08 12:00 PM
Created:unknown
Downloads:4,325
Favorites:14
MD5:

Calendar Export

Version: 0.1.5
by: Innomin8 [More]

This add-on produces an export of calendar data from the in-game Blizzard Calendar. Alone not very useful.

This add-on is designed to be paired with the Calendar Converter, which is available from: http://code.google.com/p/wow-calendar-export/

The Calendar Converter application takes the saved variables file from this add-on and converts it into iCalendar format.

For the uninitiated, iCalendar format is a standard file format for calendars supported by:

- Microsoft Outlook
- iCal (Mac OS)
- Google Calendar

If you experience any problems with the add-on, please email me, or send me a message through WoWInterface.

0.1.5

Updated to new API. Now works with latest build (3.0.2 - 8982).

0.1.4

Updated to new API (Blizzard added creator of the event). Confirmed working in current build.

0.1.3

Resolved (I think) an error processing days with no events. Please post any error messages still being encountered so I can resolve.

Thanks!

0.1.2

New release with great thanks to Gnarfoz. This should now (hopefully) work, and produce some sort of useful export data.

Work has already commenced on the conversion tool to take Lua and make an iCalendar file, and if I can decipher the format of Blizzard's dates, I'll have that up and running in no time!
Optional Files (0)


Post A Reply Comment Options
Unread 07-29-08, 12:01 PM  
Acacia_
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 60
Uploads: 6
What do you want tested more specifically? Just the export logs?
Report comment to moderator  
Reply With Quote
Unread 07-29-08, 12:06 PM  
Innomin8
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 10
Uploads: 1
Assuming the code runs without error (I have no way to test), I just want the file which is written to SavedVariables (should contain any data in the calendar)

If there are errors, any debug information you have would be great so I can fix my code.

Thanks!
Report comment to moderator  
Reply With Quote
Unread 07-29-08, 12:20 PM  
Acacia_
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 60
Uploads: 6
Yepp, I'll get back to you as soon as I get past the currently pesky authentication server <.<
Report comment to moderator  
Reply With Quote
Unread 07-29-08, 02:03 PM  
THUNDER_CHILD
Dork
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 55
File comments: 12
Uploads: 1
Code:
Interface\AddOns\CalendarExport\CalendarExport.lua:5: unexpected symbol near '|'
Count: 1

Call Stack:
[C]: ?
is an error i got. and all that is in the sv is:

CalendarExport_Data = nil
__________________
-"@Cairenn: have I mentioned lately that I hate you guys and you're all evil?"
-"@Cairenn: /join #wow-bdsm"
Last edited by THUNDER_CHILD : 07-29-08 at 05:13 PM.
Report comment to moderator  
Reply With Quote
Unread 07-29-08, 03:39 PM  
Acacia_
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 60
Uploads: 6
Didn't receive any errors upon login and had same as Thunder on the sv:


Code:
CalendarExport_Data = nil
Report comment to moderator  
Reply With Quote
Unread 07-29-08, 03:50 PM  
THUNDER_CHILD
Dork
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 55
File comments: 12
Uploads: 1
Originally posted by Acacia_
Didn't receive any errors upon login and had same as Thunder on the sv:


Code:
CalendarExport_Data = nil
do you have lua errors enabled? options -> interface -> help -> display lua errors.
__________________
-"@Cairenn: have I mentioned lately that I hate you guys and you're all evil?"
-"@Cairenn: /join #wow-bdsm"
Report comment to moderator  
Reply With Quote
Unread 07-29-08, 04:10 PM  
Acacia_
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 60
Uploads: 6
Originally posted by THUNDER_CHILD
do you have lua errors enabled? options -> interface -> help -> display lua errors.
Yes I do, however, I seem to have a non-working Bugsack running in the background somewhere (broke with the patch yesterday it seems), I'll try to disable that add-on and relog.
Report comment to moderator  
Reply With Quote
Unread 07-29-08, 04:15 PM  
Acacia_
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 60
Uploads: 6
Originally posted by Acacia_
Yes I do, however, I seem to have a non-working Bugsack running in the background somewhere (broke with the patch yesterday it seems), I'll try to disable that add-on and relog.
Yepp, that was it; same error as Thunder upon login.
Report comment to moderator  
Reply With Quote
Unread 07-29-08, 07:32 PM  
Gnarfoz
A Deviate Faerie Dragon
 
Gnarfoz's Avatar
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 73
Uploads: 7
Fixed several things to make it work ;-)
(for comments on why certain changes were needed, just reply, I'll try to explain, if needed - or someone more bored than me can do it anyway =))

Diff: http://wowuidev.pastey.net/92724
Full: http://wowuidev.pastey.net/92725

SavedVariables: http://wowuidev.pastey.net/92723

That event only fires when you open the Calendar (it's LoD) and actually *modify* a calendar entry, so you should probably use another one instead.

Also, the XML file was and is useless.


BTW, BugSack users, get the hack-fixed WotLK branch of Ace2:
svn co http://svn.wowace.com/wowace/branches/Ace2/WotLK/ X:\WoW\Interface\Addons\Ace2\
;-)
__________________
Be nice to nerds, chances are you might end up working for one. -- Charles J. Sykes
Last edited by Gnarfoz : 07-29-08 at 07:34 PM.
Report comment to moderator  
Reply With Quote
Unread 07-29-08, 08:24 PM  
Innomin8
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 10
Uploads: 1
Thank you so much, Gnarfoz.

As you probably worked out this is my first add-on...

I'll incorporate your changes and release a new version shortly, and it looks like I'll need to change the method to get information about events, as it's not giving a whole lot of useful data.
Report comment to moderator  
Reply With Quote
Unread 07-30-08, 02:09 AM  
Acacia_
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 60
Uploads: 6
Originally posted by Gnarfoz

BTW, BugSack users, get the hack-fixed WotLK branch of Ace2:
svn co http://svn.wowace.com/wowace/branches/Ace2/WotLK/ X:\WoW\Interface\Addons\Ace2\
;-)
<3 *gives the gnome a cookie*
Report comment to moderator  
Reply With Quote
Unread 07-30-08, 02:50 AM  
Acacia_
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 60
Uploads: 6
Latest build

Code:
CalendarExport blocked from using CalendarGetEvent()
Count: 69

Call Stack:
[C]: in function `CalendarGetEvent'
Interface\AddOns\CalendarExport\CalendarExport.lua:27: in function `CalendarExport_Update'
Interface\AddOns\CalendarExport\CalendarExport.lua:6: in function <Interface\AddOns\CalendarExport\CalendarExport.lua:3>

From the SV LUA (I created a PVP test event):

Code:
CalendarExport_Data = {
	["2008-7-31"] = {
		["0:0"] = {
			["maxSize"] = 100,
			["title"] = "BG",
			["textureIndex"] = 0,
			["inviteStatus"] = 4,
			["repeatOption"] = 1,
			["eventType"] = 3,
			["description"] = "test",
		},
	},
	["0-0-0"] = {
		["0:0"] = {
			["textureIndex"] = 0,
			["inviteStatus"] = 0,
			["repeatOption"] = 0,
			["eventType"] = 0,
			["maxSize"] = 0,
		},
	},
}
Report comment to moderator  
Reply With Quote
Unread 07-30-08, 06:17 AM  
Innomin8
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 10
Uploads: 1
That output it awesome, thanks so much!

As for the bug, I'm guessing there's a certain type of event in there which we're not allowed to call CalendarGetEvent on... given that you did get one even saved, I'm not sure :/

If you have a chance, could you try playing around with CalendarGetEvent() and see which arguments cause it to fail? I'm guessing it's something simple like it doesn't work on Holiday events.
Report comment to moderator  
Reply With Quote
Unread 07-30-08, 06:49 AM  
Acacia_
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 60
Uploads: 6
Originally posted by Innomin8
[BIf you have a chance, could you try playing around with CalendarGetEvent() and see which arguments cause it to fail? I'm guessing it's something simple like it doesn't work on Holiday events. [/b]

I wouldn't have the faintest idea of how to proceed with that, but feel free to give me some basic instructions and I'll be happy to oblige.
Report comment to moderator  
Reply With Quote
Unread 08-14-08, 05:31 AM  
blacknight
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 5
Uploads: 1
ive downloaded the new vewrsion of teh calendar and its not exporting any data now .. the old one at least would save ither the user or the events but not both maybee a save button or somthing would be nice...
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: