[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 » Tue Jan 06, 2015 21:24

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 » Tue Jan 06, 2015 22:15

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 » Tue Jan 13, 2015 19:37

Any new solution???

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 » Wed Jan 14, 2015 08:34

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 » Sat Jan 17, 2015 14:47

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

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

Post by prometh » Mon Jan 19, 2015 19:09

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.


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 » Mon Jan 19, 2015 22:10

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

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

Post by prometh » Tue Jan 20, 2015 11:24

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.


Image

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

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

Post by Salvoxia » Tue Jan 20, 2015 13:50

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

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

Post by Salvoxia » Mon Oct 23, 2017 17:15

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
cron_evem_v_0_4.zip
Value Fetcher cron job from evemarketer.com, based on Snitch Ashor's cron_evec
(2.45 KiB) Downloaded 115 times

Post Reply

Return to “Modding”

Who is online

Users browsing this forum: No registered users and 7 guests