[EDK4] Cronjob update all prices from eve-central

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

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

Post by Salvoxia »

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: 170
Joined: Thu Aug 09, 2012 19:25
Contact:

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

Post by prometh »

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: 1598
Joined: Wed Feb 22, 2012 12:11

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

Post by Salvoxia »

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: 170
Joined: Thu Aug 09, 2012 19:25
Contact:

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

Post by prometh »

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.
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 »

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: 1598
Joined: Wed Feb 22, 2012 12:11

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

Post by Salvoxia »

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 »

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: 170
Joined: Thu Aug 09, 2012 19:25
Contact:

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

Post by prometh »

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

Thanks.
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 »

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: 170
Joined: Thu Aug 09, 2012 19:25
Contact:

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

Post by prometh »

Could you upload that file somewhere?
Post Reply