Running from source

Jonathan Harris edited this page Dec 18, 2016 · 9 revisions

Running from source

Download and extract the source code of the latest release.

Mac:

  • Requires the Python “requests” and “watchdog” modules - install these with easy_install requests watchdog .
  • Run with ./EDMarketConnector.py .

Windows:

  • Requires Python2.7 and the Python “requests” and “watchdog” modules.
  • Run with EDMarketConnector.py .

Linux:

  • Requires the Python “imaging-tk”, “iniparse” and “requests” modules. On Debian-based systems install these with sudo apt-get install python-imaging-tk python-iniparse python-requests .
  • Run with ./EDMarketConnector.py .

Command-line

The command-line program EDMC.py writes the current system and station (if docked) to stdout and optionally writes player status, ship locations, ship loadout and/or station data to file. This program requires that the user has performed setup and verification through the app.

Arguments:

 -h, --help     show this help message and exit
 -v, --version  print program version and exit
 -a FILE        write ship loadout to FILE in Companion API json format
 -c FILE        write ship loadout to FILE in Coriolis json format
 -e FILE        write ship loadout to FILE in E:D Shipyard plain text format
 -l FILE        write ship locations to FILE in CSV format
 -m FILE        write station commodity market data to FILE in CSV format
 -o FILE        write station outfitting data to FILE in CSV format
 -s FILE        write station shipyard data to FILE in CSV format
 -t FILE        write player status to FILE in CSV format
 -d FILE        write raw JSON data to FILE
 -n             send data to EDDN

The program returns one of the following exit codes. Further information may be written to stderr.

  1. Success. Note that this doesn't necessarily mean that any requested output files have been produced - for example if the current station doesn't support the facilities for which data was requested.
  2. Server is down.
  3. Invalid Credentials.
  4. Verification Required.
  5. Not docked. You have requested station data but the user is not docked at a station.
  6. I/O or other OS error.

Packaging for distribution

Mac:

  • requires py2app 0.9.x
  • Sparkle.framework installed in /Library/Frameworks
  • Run setup.py py2app

Windows:

  • requires py2exe 0.6.x
  • winsparkle.dll & .pdb from WinSparkle copied to the current directory
  • WiX Toolset
  • Run setup.py py2exe