[EDK4] Cronjob update all prices from eve-central

Discuss/Upload mods to the EVE-Dev Killboard.
User avatar
Salvoxia
Developer
Posts: 1515
Joined: Wed Feb 22, 2012 12:11

Re: [EDK4] Cronjob update all prices from eve-central

Post by Salvoxia » Wed Nov 05, 2014 19:37

Yeah sure, I did a quick&dirty fix for it. It is the line with file://...
Basically what I did was replacing all slashes in the path passed to the valueFatcher with backslashes:
Line 143:

Code: Select all

$fetch = new valueFetcher("file://".str_replace('/', '\\', $KB_HOME."/".$outfile));
If you do that depending on the OS it should be fine.

Regards,
Salvoxia

User avatar
prometh
Advanced
Posts: 169
Joined: Thu Aug 09, 2012 19:25
Contact:

Re: [EDK4] Cronjob update all prices from eve-central

Post by prometh » Thu Nov 06, 2014 12:00

I hope i fixed it!
In general there should be no problem using forward slashes in php, i think it is was problem only when passing a local file to curl...

User avatar
Salvoxia
Developer
Posts: 1515
Joined: Wed Feb 22, 2012 12:11

Re: [EDK4] Cronjob update all prices from eve-central

Post by Salvoxia » Thu Nov 06, 2014 18:11

prometh wrote:I hope i fixed it!
Indeed you did, nice job!

Code: Select all

16:53:00 EVE Central price fetcher started...
typeID 367477 can not be querried.
typeID 367489 can not be querried.
typeID 367541 can not be querried.
17:07:58 8245 Items updated

User avatar
prometh
Advanced
Posts: 169
Joined: Thu Aug 09, 2012 19:25
Contact:

Re: [EDK4] Cronjob update all prices from eve-central

Post by prometh » Thu Nov 20, 2014 11:46

Minor Update:

Since I was not very happy with the prices coming out a bit to high and the CREST prices being to low in my opinion, I gave this one a little tweak and at least for me the results look reasonable now. It can be used now to fetch from multiple regions and use the 5% percentile price instead of the the median. The daily pricelist provided under http://brgf.de/prices/marketdata.xml will now use the regions of the 5 major high-sec trade hubs and the percentile prices.

Cheers.


Image

User avatar
SirSteven
Greenhorn
Posts: 12
Joined: Sun Jul 27, 2014 23:19

Re: [EDK4] Cronjob update all prices from eve-central

Post by SirSteven » Wed Dec 24, 2014 15:23

I tried to use the interesting new Cron-Job, but I receive the following message if using:
#!/usr/bin/php
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /www/htdocs/w00f6769/killboard/common/includes/class.valuefetcher.php:104 Stack trace: #0 /www/htdocs/w00f6769/killboard/common/includes/class.valuefetcher.php(104): SimpleXMLElement->__construct('0') #1 /www/htdocs/w00f6769/killboard/cron/cron_evec.php(147): valueFetcher->fetch_values() #2 {main} thrown in /www/htdocs/w00f6769/killboard/common/includes/class.valuefetcher.php on line 104
Any idea, where I can find the mistake???

By the way: Happy Christmas to everyone...

User avatar
Salvoxia
Developer
Posts: 1515
Joined: Wed Feb 22, 2012 12:11

Re: [EDK4] Cronjob update all prices from eve-central

Post by Salvoxia » Thu Dec 25, 2014 12:29

Hi,

does this error occur immediately after execution or does it take 10 minutes before it appears?

Regards,
Salvoxia

User avatar
SirSteven
Greenhorn
Posts: 12
Joined: Sun Jul 27, 2014 23:19

Re: [EDK4] Cronjob update all prices from eve-central

Post by SirSteven » Thu Dec 25, 2014 15:22

Salvoxia wrote:Hi,

does this error occur immediately after execution or does it take 10 minutes before it appears?

Regards,
Salvoxia
Hi Salvoxia,

this error occures after 10 minutes.

User avatar
prometh
Advanced
Posts: 169
Joined: Thu Aug 09, 2012 19:25
Contact:

Re: [EDK4] Cronjob update all prices from eve-central

Post by prometh » Thu Dec 25, 2014 18:10

Hmmm.... the xml file should have been created in the cache folder already, could you upload that one? Should be marketdata201412xx.xml

Thanks.


Image

User avatar
SirSteven
Greenhorn
Posts: 12
Joined: Sun Jul 27, 2014 23:19

Re: [EDK4] Cronjob update all prices from eve-central

Post by SirSteven » Thu Dec 25, 2014 19:17

prometh wrote:Hmmm.... the xml file should have been created in the cache folder already, could you upload that one? Should be marketdata201412xx.xml

Thanks.
I checked it, the marketdata201412xx.xml Data really exists in the cache folder...

User avatar
prometh
Advanced
Posts: 169
Joined: Thu Aug 09, 2012 19:25
Contact:

Re: [EDK4] Cronjob update all prices from eve-central

Post by prometh » Sat Dec 27, 2014 08:44

Could you upload that file somewhere?


Image

Post Reply

Return to “Modding”

Who is online

Users browsing this forum: No registered users and 10 guests