[EDK4] Cronjob update all prices from eve-central

Discuss/Upload mods to the EVE-Dev Killboard.
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've sent you a version to test whether its the local file thingy.
I didn't receive anything. Did you sent it per email? If you did so, please send it again, I've reduced Spam settings of my account... thanks in advance.
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 »

The new script receive the following error message:
#!/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('<!DOCTYPE HTML ...') #1 /www/htdocs/w00f6769/killboard/cron/cron_evec.php(181): valueFetcher->fetch_values() #2 {main} thrown in /www/htdocs/w00f6769/killboard/common/includes/class.valuefetcher.php on line 104
P.S.: I'll be on vacation until saturday.
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 »

Any new solution???
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 maybe try just to fetch this xml with the value fetcher?

http://brgf.de/prices/marketdata.xml

Just to check if that is working?

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 »

I have made a test with the xml-data above, I receive the following error code:
#!/usr/bin/php
Warning: file_put_contents(cache/marketdata20150117.xml) [function.file-put-contents]: failed to open stream: Permission denied in /www/htdocs/w00f6769/killboard/cron/cron_evec.php on line 176

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('<!DOCTYPE HTML ...') #1 /www/htdocs/w00f6769/killboard/cron/cron_evec.php(181): valueFetcher->fetch_values() #2 {main} thrown in /www/htdocs/w00f6769/killboard/common/includes/class.valuefetcher.php on line 104
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

I'm afraid if the xml above does not work it's some issue with the value fetcher class itself. Right now I'm out of ideas.

Sorry about that.
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

I'm afraid if the xml above does not work it's some issue with the value fetcher class itself. Right now I'm out of ideas.

Sorry about that.
Doesn't matter, thanks for your support and help. Then we have to use the old price-fetcher.
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 »

The old fetcher does not get price updates any longer but Salvoxia implemented fetching via CREST as default I guess. What I was asking you is to use the URL http://brgf.de/prices/marketdata.xml in the admin section under Item values and then just klick fetch. Sorry if i was not clear about this.
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 »

Well, as you said, the default is now the CREST value fetcher. So using the URL to the old-style price XML in the ACP will cause the CREST value fetcher to try and parse the XML, which will fail.
For testing your XML you have to hardcode it (into the cronjob, for example).
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 all,

Raven Kaundur asked in the eve central value fetcher topic about changes to make it compatible with www.evemarketer.com.
I took the liberty to modify Snitch's eve-central cron job to fetch from EveMarketer and called it cron_evem. The basic principle is still the same, as described in the opening post. The only limitation to EveMarketer's API is that it does not allow for multiple region filters, so the "trade hubs" flag has been removed from this version. EveMarketer's API does, however, allow for a "usesystem" flag to filter for orders in one particular system. I used this opportunity to filter for Jita specifically.


Best Regards,
Salvoxia
Attachments
evem_valuefetch_10.zip
EVEMarketer ValueFetch v1.0 for EDK 4.4.x
(4.48 KiB) Downloaded 463 times
cron_evem_v_0_4.zip
Value Fetcher cron job from evemarketer.com, based on Snitch Ashor's cron_evec
(2.45 KiB) Downloaded 586 times
Post Reply