Thread Tools Display Modes
08-30-08, 02:41 PM   #1
iggeigge
A Defias Bandit
Join Date: Aug 2008
Posts: 2
Use data from external source

Hi,

I'm very new to lua coding so please bare with me if you think I'm a complete moron.

I need to use data presented on a web page (DKP data) in my addon. Is there any way to collect this data on the fly from the web page (or sql server) or would the best way be to manually save data into a local file and parse it from there?

I want as few manual interactions as possible since DKP data is updated often so I can't distribute the data together with the addon.

Best Regards
  Reply With Quote
08-30-08, 02:52 PM   #2
Mera
Retired of WoW, In ESO :)
 
Mera's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 331
Originally Posted by iggeigge View Post
Hi,

I'm very new to lua coding so please bare with me if you think I'm a complete moron.

I need to use data presented on a web page (DKP data) in my addon. Is there any way to collect this data on the fly from the web page (or sql server) or would the best way be to manually save data into a local file and parse it from there?

I want as few manual interactions as possible since DKP data is updated often so I can't distribute the data together with the addon.

Best Regards
no you cannot communicate directly from the wow client to the web applications this is for your own security this is not allowed but what most people are doing is coding an addon that will store datas in a file on your computer, and you upload this datas to your web application which will read it
__________________
If you need to reach me I'm in ESO, @class101 or "Fathis Ules i"
addons: SpamBayes, BrokerCPU
projects: ThunderBayes
Mera[xeh]? - La CroisadeEcarlate (wow)
  Reply With Quote
08-30-08, 03:41 PM   #3
Petrah
A Pyroguard Emberseer
 
Petrah's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2008
Posts: 2,988
Originally Posted by iggeigge View Post
Hi,

I'm very new to lua coding so please bare with me if you think I'm a complete moron.

I need to use data presented on a web page (DKP data) in my addon. Is there any way to collect this data on the fly from the web page (or sql server) or would the best way be to manually save data into a local file and parse it from there?

I want as few manual interactions as possible since DKP data is updated often so I can't distribute the data together with the addon.

Best Regards
EQDKP use to support WoW, but I'm not sure if it does anymore. You'll need to have your own web site to install this, more than likely on a *nix server. You will also need the addon called CT RaidTracker in order to import from the game into EQDKP.

__________________
♪~ ( ) I My Sonos!
AddOn Authors: If your addon spams the chat box with "Addon v8.3.4.5.3 now loaded!", please add an option to disable it!
  Reply With Quote
08-30-08, 04:16 PM   #4
iggeigge
A Defias Bandit
Join Date: Aug 2008
Posts: 2
For now it seems like the best way to go is to dump data from the website to saved variables in some kind of webscript or 3rd party software.

Anyone know if there's a sql -> lua table script/software out there?

The dkp web softwares do it the other way around I assume (parse lua into sql) so should be possible to reverse them.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Use data from external source


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off