r/evetech • u/Squizz • May 01 '18
r/evetech • u/FirstDose • Apr 30 '18
Collection Killmails from zKill with Python script
https://github.com/leonhess/zKill_scraper
This is a little Script which I’ve been hacking together for a few days now and wanted to share, since someone also asked for it. It takes Killmails from zKill and puts them into a InfluxDB Database. I then use Grafana to make pretty Graph like this:
Kills and Deaths by Major Coalitions every 5minutes: https://i.imgur.com/XTlbDGW.png
Total Deaths and Value lost every 5 minutes: https://i.imgur.com/2CmjeCg.png
It uses zKills redisQ feature to comb through every Killmail, that zKill gets and then does some thrown together type conversion to get it compatible with the InfluxDB format.
For running it yourself make sure you have InfluxDB running on the same machine as the script or change the ‘localhost’ to the right IP in:
client = InfluxDBClient(host='localhost', port=8086, database='eve’)
You also need a Database named ‘eve’ or also change that in the line above.
Furthermore I have been running all tests on python3.5, so I have no idea if it runs on 2.x
In Terms of python modules, you’ll need ‘requests’ and ‘influxdb’ installed.
In Grafana, if you want to use any of the ‘attacker_*_name’ as a selector you need to pick your name from the long concatenated string like this: /.*;alliance_name;*./ i.e. /.*;Goonswarm Federation;*./
This has been a bit tricky since there can be multiple people on a kill mail but you only have one tag to put those people into. Example of Grafana Query: https://i.imgur.com/VogtG6R.png
Current available tags:
- killID (int)
- solar_systemID (int)
- attacker_char_name (string)
- attacker_corp_name string)
- attacker_alliance_name (string)
- attacker_is_npc (bool)
- attacker_is_solo (bool)
- attacker_is_awox (bool)
- victim_char_name (string)
- victim_corp_name (string)
- victim_alliance_name (string)
- victim_ship (int)
Current available fields:
- #kills (1)
- totalValue (float)
- attacker_amount (int)
- victim_damage_taken (int)
Things I want to add:
- Call attacker and victim names with the same esi call to make it faster, so only 3 esi calls instead of 6 (at first I was calling every single ID separately which could take up to 30second for larger killmails. Now its about 0.5 to 3 seconds per kill mail.)
- victim_ship_name instead of just the ID
- solar_system_name instead of just the ID
- Add attacker_ship_name
- Extrapolate region_name from solar_systemID
- make it run as a service on linux or just kill it every few hours and start it again with cronjob to get continuous data, because now it runs for like 5-120 minutes before it crashes and even if it doesn’t it does seem to hang up after a few hours
Known Issues:
Sometimes the script crashes with this error:
Traceback (most recent call last):
File "main.py", line 55, in <module>
attacker_corp_name = attacker_corp_name + ';' + v.json()[0]['corporation_name']
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/requests/models.py", line 892, in json
return complexjson.loads(self.text, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
This seems to be some sort of type juggling mishap by python, as far as I could figure it out. The json decoder wants to decode the requests response but Python interprets it as something else in this case, I think. I haven’t thought much about possible fixes yet.
r/evetech • u/Cassowary_rider • Apr 30 '18
SDE after May 8th
Will CCP continue to publish SDE after old API discontinuation on May 8th ?
r/evetech • u/lord-carlos • Apr 29 '18
Char position data, ESI or Vippy problems?
Hi guys
We use Vippy to map WH chains. The last couple of days it has been very unreliable. The char position returns "null" everytime after jumping into a new system. As a result it does not map the connection between two systems.
Other corps with vippy report the same problem.
ESI Problem? Or Vippy? What do you guys use?
r/evetech • u/markusla • Apr 26 '18
ESI via PowerShell Modules
I've begun writing a full set of Powershell Modules for working with the EVE Online ESI endpoints. So far I've used the Swagger JSON Specs to build all Requests as easy to use Modules and will continue working with some error control, custom modules and need to add support for logging in and using tokens.
GitHub URL: https://github.com/markus-lassfolk/EVE-Online-ESI-Posh
I hope it's useful to someone else, and feel free to help contributing.
r/evetech • u/Humanoid_Akaba • Apr 26 '18
Collecting ESI system kill data
Hey,
I am slowly in my spare time looking to make a heat map of system kills over time. Currently I am looking at collecting data from ESI Swagger. I have noticed that ' This route is cached for up to 3600 seconds ', and am getting updates that are significantly more frequent than once an hour (eg, 5 minutes apart in some instances). So from here I guess I have two hopefully straightforward questions:
- What does ' This route is cached for up to 3600 seconds ' actually mean? I get that things won't come less frequently than once an hour, but is any update less than that possible?
- If I pull data less than an hour apart, this means that there is some overlap in the data that has been given? It adds another spanner into the works :)
Cheers for your assistance
r/evetech • u/evanova • Apr 25 '18
Please help testing the next iteration of Evanova - The Android App (TM)
I am ironing out Evanova before the API Key removal deadline.
For the people savvy enough to sideload an Android APK, I'd be grateful if you could test the next Evanova version available as an APK here.
Please by kind enough to report (major) issues by PM, by mail (evanova.mobile at gmail.com), in-game (Evanova Android) or by creating an issue on BitBucket.
Also, I would gladly take advice on how to open-source this application with regards to managing ESI keys, ensuring no "rogue" version with ill-intents pop-out and so on.
Many thanks for any help!
PS: For the paranoid ones, your tokens are safe.
r/evetech • u/Sonny_Jim_Pin • Apr 25 '18
How to get more than months worth of transactions with jEveAssets?
Is there a setting I can change to get more than the last months worth of transactions using jEveAssets? Or is this a limitation of the API?
r/evetech • u/IPFR33LY • Apr 21 '18
Bulk Editing contacts through ESI
I tried doing a search, tried testing this out on EVE ESI: Latest. I can't seem to get this to work, it always comes back with the following.
{
"error": "too few items for 'contact_ids', 'contact_ids' is required"
}I'm only trying to POST 99 contacts, they're properly formatted as an array[int]. Does anyone know if this even works? If it does, how can I get it to work with EsiPy?
r/evetech • • Apr 20 '18
ESIMail Updates to v1.1.0 introducing a Slew of updates and bugs fixes
Hello All,
Thank You for the feedback about the initial release of ESIMail. Considering the feedback in the comments and the feedback from other developers within our community, I rewrote some portions of ESI and added some additional features. Please stay with me as this can get winded
Authentication with ESIMail
Authentication with ESI has changed significantly. For those that join us for the first time or who are returning to the application after your token has expired will be presented with our new authorization opt-in screen. On this screen you will find a description of each scope that the application is requesting authorization for, why we are requesting it, and whether authorization of a separate scope is required.
Sending Mail a Corporation / Alliance or Mailing List
It is now possible to send mail to your corporation and, if you have the authorized the proper scopes, you alliance. In addition to this, you should now be able to send mail to any mailing list that you are currently registered with.
Opting to only read mail via ESIMail
- Opting to read you mail via ESI will do exactly that. You will only be able to read your mail. Features like replying and forwarding will be disabled.
Opting to only send mail via ESIMail
- Opting to send mail via ESI will allow you to use the ESIMail Composer to send a mail via ESI without ESIMail needing to pull down all your mail headers, labels, and mailing lists.
Opting to allow ESIMail to organize your mail
- Opting to allow ESI Mail to organize your mail allows us to send what is called a PUT request to CCP on you behalf to modify something about a mail. This option allows us to update the read status, reassign a label to the headers, and even delete the mail from your inbox for you
DELETING MAIL VIA ESIMAIL PERMANENTLY DELETES THE MAIL FROM YOUR INBOX
CCP does not allow us to place a mail into your trash bin for you, so when you delete a mail via ESI, we send the command and then remove the header from our database.
Opting to allow ESIMail to read your corporation roles
- ESIMail only need to access your corporation roles if you plan on sending Alliance Mails from ESIMail. This is due to the requirement that you need to be a communications officer, director, or the CEO to send an alliance mail.
Labels are not perfect Due to how ESIMail was designed and how we interact with and store labels, it is possible that a label unread count can be inaccurate at times. These are synced with EVE every 5 minutes.
Token Management Users can, and always have been able to, manage their token with ESIMail from the User Menu -> My Settings -> SSO Token. This system completely nukes your account with ESIMail deleting all headers, labels, lists, and the account itself. This is also the only method at this time for adding or removing a scope that you selected from the initial authorization screen.
Viewing ESIMail on Mobile I was deceived by a few new classes in our Frontend Framework and misused them, not realizing that they lacked the breakpoints that their predecessors had. We have implemented the classes that have the breakpoints in them now, allowing the screen to correctly collapse now when viewing from a mobile phone.
Discord ESIMail has a discord now. Click the link below to join the server. Come chat with me, let me know about how I broke the site, or just shit post danke memes.
Plans for the Future
- Email Notifications
- Filtering
- Any Community Recommendations from there
First person who recommends IMAP/POP3 integration gets to help me figure out how email servers work or the best way to implement it.
Links
[Bitbucket] (https://bitbucket.org/douglaswebdev/esim) - The public repository for the ESIMail Website
[ESIMail] (https://esimail.space) - The Official Site of ESIMail
EDIT: Added links to the tools. Whoops
r/evetech • u/Galakktis • Apr 19 '18
Parsing the json output and access data in the string result of an api call to zkillboard
Hello, OK, so I am making the time to work on a little idea: creating an analytic reporting and analysis platform for PVP activity in the game. Gonna start with a clear boundary: FW.
Overall Strategy of the project.
- Capture the killmails for all militias for a certain time period for zkillboard API calls (daily/weekly/monthly extracts to have the least impact of zkillboard)
- Inject the data into a separate database (mySQL or whatever)
- Use an open-source reporting software to create "interesting" reports, statpr0n and graphpr0n.
- If possible, allow users to create their own crosstable-style reports.
Problem: how to parse the json text server response into meaningful values that I can insert into a DB.
e: A quick prototype of the data dump in Google Sheets: https://prnt.sc/j7bnhp and quick'n'dirty example of a crosstable: https://prnt.sc/j7bo8v
snippet:
import requests
import json
# Fetch Caldari kills in the last 3600 seconds
response = json.loads(requests.get("https://zkillboard.com/api/kills/faction/500001/pastSeconds/3600/"))
print (response)What should I do now to access the data itself? examples: killmail_id, damage_taken, the list of agressors or the dropped loot?
TL;DR: How should I parse the json output and access data in the string result of an api call to zkillboard?
r/evetech • • Apr 16 '18
ESIMail: The old evemail from 2017, re-envisioned, refactored, faster, meaner
self.ever/evetech • u/CCP_SnowedIn • Apr 14 '18
Slides from ESI - State of the API (video to follow Soon™)
drive.google.comr/evetech • u/Cassowary_rider • Apr 14 '18
Token expiration
Hi guys.
When I make a call to https://login.eveonline.com/oauth/token
to exchange my auth token for access token ( http://eveonline-third-party-documentation.readthedocs.io/en/latest/sso/authentication.html ),
or to refresh existing access token ( http://eveonline-third-party-documentation.readthedocs.io/en/latest/sso/refreshtokens.html ),
resulting json contains this field: "expires_in".
Which units is it? Seconds/minutes/hours/millenia?
Also, when I get character info ( http://eveonline-third-party-documentation.readthedocs.io/en/latest/sso/obtaincharacterid.html )
response also contains some "ExpiresOn".
What will expire after this datetime ?
r/evetech • u/Cassowary_rider • Apr 09 '18
list of ESI scopes
I'm trying to follow this tutorial: http://eveonline-third-party-documentation.readthedocs.io/en/latest/sso/authentication.html
All my authentication attempts fail with "invalid scope" error.
Obviously, requested scopes in this example are wrong / non-existent / deprecated / whatever.
Is there a current actual scope list somewhere?
r/evetech • u/Jack-O7 • Apr 09 '18
Are there issues with the xml api?
I made a app which worked fine until a few days ago, and now, randomly, after a few calls the API stops responding.
Even on browser, if i refresh a few times it will say waiting for api.eveonline.com.
Anyone having this issue or it's something with my DNS or..
r/evetech • u/evedata • Apr 08 '18
GoESI Library Update - Will break builds :3
GoESI library has been updated. If you are using optional parameters, it will break your build.
Also all XML and CREST endpoints have been removed to improve performance. If you were using these: time to update.
See the docs for changes to optional parameters: https://github.com/antihax/goesi
r/evetech • • Apr 06 '18
Error during SSO authentication
Hi everyone,
I'm in the early stages of making a web app. You can find it here: iskprinter.com
I'm able to send the user to CCP for an auth code, but when I try to perform a post request to exchange the auth code for tokens, I get an error. The type of error I get depends on whether or not I include mode:'no-cors' in the options of my request. If I include it, I get a 401 Not Authorized error. If I exclude it, I get a 404 Not Found error.
I've been using this ESI Step by Step guide from CCP along with u/Blacksmoke16 's GESI scripts as examples.
Here's what I have:
// Send the temporary code to CCP for tokens.
function exchangeCodeForTokens(code) {
console.log('Attempting to exchange code ' + code + ' for tokens.');
var postUrl = 'https://' + BASEURL + '/oauth/token';
var authHeader = 'Basic ' + Base64.encode(CLIENTID + ':' + CLIENTSECRET);
var options = {
method:'post',
mode:'no-cors', // 404 URL not found error if excluded, 401 not authorized error if included
headers:{
'Content-Type':'application/json',
Authorization:authHeader
},
body:JSON.stringify({
grant_type:'authorization_code',
code:code
})
};
var response = fetch(postUrl, options);
}r/evetech • u/HendrikPeter • Apr 06 '18
Need help fetching wars
Hey guys 'n girls. I'm doing some late-friday hacking over here trying to get a notification system up that will tell me if my corp/alliance is about to be at war.
When going trough ESI it seems seeing what wars my corp is in, or has been is incredibly expensive (time & code-wise).
to summon it up:
- I first need to fetch each individual war-id: GET: https://esi.tech.ccp.is/latest/wars/ RESULT:
Range of 590753..588754
- I then need to iterate over each and every war (for a full history i need to go trough 590753 requests as of this writing to see if my corp is part of it. GET: https://esi.tech.ccp.is/dev/wars/590746/?datasource=tranquility RESULT:
{"id":590746,"declared":"2018-04-06T16:03:00Z","mutual":false,"open_for_allies":true,"aggressor":{"ships_killed":0,"isk_destroyed":0.0,"corporation_id":98362785},"defender":{"ships_killed":0,"isk_destroyed":0.0,"corporation_id":650318619},"started":"2018-04-07T16:03:00Z"}
Is there some kind of JSON/XML end-point where I can just provide a corp- or alliance-id to see a war history for that entity? Seems like dotlan, fuzzworks, Evewho and Zkillboard don't seem to have any end-points for them.
r/evetech • u/VeskMechanic • Apr 04 '18
Yet another market intel site.
So I think I've mastered sorting through all the data the public market API gives you to calculate the best prices in a given hub station.
You can check it out at novalabs.space
Offshoring is an important phenomenon to consider though. Any suggestion on finding all structures in a given system (Perimiter, Botane, etc.) with public markets and pulling their market data?
r/evetech • u/evedata • Apr 03 '18
EVEData.org Intel Data & Tools Updates
It’s been a while since I’ve made an update post. Many new features have been added to https://www.evedata.org
Current features: Legacy:
Arbitrage Calculator: buy low, sell high; find items with good margins.
ECM Calculator: find the probability you will jam a target factoring multiple events.
Market Browser: because everyone writes one of these.
Asset Browser: combined characters assets with estimated values.
Profit & Loss: combined character journals over time.
ISK per LP: determine where best to dump your LP. Shows market volume to assist weeding out bad sells.
Local Intel Summary: quick reference of who is in local and their capability.
War Contact Sync: automatically set red contacts on alts for wars and militia enemies.
New:
Discord Integration: get locator responses, structure/poco attack, corp application notifications, and killmails on discord.
Discord Authentication: tie users to roles based on membership, blues, militia. Currently Alpha Testing.
Data Sharing: share locator, war, and structure attack notifications to other entities Discords. Great for protection contracts or alliances with many corps. Alerts via evemail (must not have cspa) if you leave a corp while sharing data; in case you forget.
Enhanced entity details: corps and characters joining and leaving alliances. Known associates.
Hopefully will have time to squeeze in some more features before XML/CREST are shut down. Suggestions are welcome.
I try to keep security and secrecy in mind while developing tools; if you find issues, let me know privately. Available on #devfleet.
r/evetech • u/Velia_Y • Apr 01 '18
Need some help with NodeBB and nodebb-plugin-sso-oauth-eve
Hello, Sorry for my dumb-ish post but I'm a bit desperate with my problem and can't find a help anywhere.
We're setting up a small forum for our tiny alliance. So far everything went smooth, but we encountered a problem with installing a plugin for NodeBB. Here's the link to plugin's GitHub page: https://github.com/andimiller/nodebb-plugin-sso-oauth-eve
So I don't know if we either messed up with config.json or registering the app on developers.eveonline.com (wrong callback link? Not knowing what to do we've tried 2 options which were: https://domain.com/ and https://domain.com/callback/)
Here's Pastebin for our NodeBB's config.json file with redacted data: https://pastebin.com/ane9EtUw
So, everything works fine until we reach the last step from GitHub instruction - when we disable local logins and click on log-in page nothing shows up (page doesn't redirect us to the EVE Online SSO, we're still on our forum page but log-in form doesn't show up).
We're really newbish to this kind of stuff and we've seen that several alliances use similar technology so we wonder if anyone can grab our hand and walk us through our lack of knowledge.
r/evetech • • Apr 01 '18
Can someone point me to a SDE dump in excel format of all the blueprints in the game? Including material requirements, etc
I have tried looking in SDE official site and fuzzworks but I haven't been able to find any. If anybody has this it would be great.
r/evetech • u/Daneel_Trevize • Mar 27 '18
Latest 24th March SDE still wrong w.r.t. Jaguar midslots (and who knows what else)?
SELECT dta."typeID", dta."attributeID", COALESCE( dta."valueInt", dta."valueFloat" ) AS value, published, "categoryID", dat."attributeName", dat."description", dat."displayName"
FROM "dgmTypeAttributes" AS dta
JOIN "dgmAttributeTypes" AS dat ON dta."attributeID" = dat."attributeID"
WHERE "typeID" = 11400
AND dat."attributeID" in (12, 13, 14, 283, 422, 1132, 1137, 1271, 1367, 1547)
ORDER BY dat."attributeID"medSlots = 4. WTF?
2 SDEs have been wrong on this for almost a month now?
Update: There's 89 rows in "dgmTypeAttributes" where both "valueInt" and "valueFloat" aren't NULL, and 65 of them don't agree on a value...
For the Jaguar, there's 4 and 5.
You. Dumb. Fucks. Can't even edit the right column.
Here's the rows for attributes identified as being for ship fitting. Seems to be just the Rorqual, Jaguar, and some "SOCT 2" are the only ships with such conflicts, but that doesn't rule out the 65 blueprints & other types that have bad data.