Giter Site home page Giter Site logo

chuckination / ida-bgs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ztiknl/ida-bgs

0.0 1.0 0.0 75 KB

EDMC plugin that gathers system/faction data for specific systems and sends JSON formatted data to webapi

License: MIT License

Python 100.00%

ida-bgs's Introduction

IDA-BGS

An EDMC plugin that gathers system/faction data for specific systems and sends JSON formatted data to webapi

Version

Version 0.66

What it does:

Whenever a user jumps from one system to another, upon landing in the destination system, an event is created in the ED journal file.
Whenever a user docks at a station, another event is created in the ED journal file.
This plugin reads these events (FSDjump and Docked), and ONLY these events, gathers system/station/faction data, and pushes JSON formatted data to the IDA-BGS API.
Data sent to the API can be reported in a Discord channel by the IDA-BGS Bot

What else can it do:

Whenever a user completes a mission, sells exploration data, cashes in a bounty or delivers cargo (market), an event is created in the ED journal file.
If enabled, this plugin reads these events, gathers related data, and pushes JSON formatted data to the IDA-BGS API.
This is an optional feature, OPT-IN, which means users do not participate, unless they manually place a checkmark in the settings tab.

How to use:

  1. Clone the repo to the EDMC plugin folder, or download and unzip to the EDMC plugin folder
    (default: c:\Users\%USERNAME%\AppData\Local\EDMarketConnector\plugins)
  2. Request API key on webinterface
  3. Start up EDMC
  4. Insert API key into plugin by going to File -> Settings, tab IDA-BGS, enter/paste the key, and hit OK
  5. Optional: add checkmark to approve additional data packages

There is an extra row in the main window of EDMC, labeled IDA-BGS.
This row can have 5 different values:

  • Idle
    Not doing anything, waiting for any event to be triggered

  • Success: BGS/INF/EXPL/BNT/DLVR data n/a
    Just processed FSDjump event, but destination system does not contain our faction
    Just processed MissionCompleted event, but the target and recipient are not our faction

  • Success: BGS/INF/EXPL/BNT/DLVR data sent
    Just processed FSDjump event, our faction is present here, data sent without errors
    Just processed MissionCompleted event, mission is for or from our faction, data sent without errors

  • Success: API not ready
    The API received data, but isnt ready yet to process it, please wait until I built that functionality

  • Fail: error code - short error message
    could be many things, the error code and short error message will be a hint/clue
    The full error message can be found in EDMC log file, usually located in %TMP%/EDMarketConnector.log

Changes to make for use by another faction

Want to make this work for another faction, all you need to change here are 2 instances of 'IDA-BGS' and 2 instances of the server url to push data to https://ida-bgs.ztik.nl/api.php
One more change will be required for the webapi, which does the filtering of systems where the faction has a presence or not

Disclaimer

This plugin is still under construction, bugs new features WILL appear unexpectedly.
Patches are always welcome.

Thanks

  • Everybody who helped test the EDMC Plugin
    (devnull, Optimus Stan)
  • HammerPiano, wouldnt have gotten the plugin working so fast without your advice
  • EliteBGS Tick Bot
  • Everyone at EDCD: Community Developers Discord channel
    (Phelbore, Athanasius, Gazelle, tez, Garud, T'kael, VerticalBlank, anyone else I missed?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.