elite-scripts/README.md

98 lines
3 KiB
Markdown
Raw Normal View History

# A collection of useful scripts around Elite Dangerous #
2020-01-08 08:30:27 +01:00
## Requirements ##
* argcomplete
* argparse
* requests
* Tkinter
You probably want to install your distribution/OS package for Tkinter instead of
using pip. Then do the good old `pip install --user -r requirements.txt` or
`pip3 install --user -r requirements.txt`.
## edsm-getnearest.py ##
```
usage: edsm-getnearest.py [-h] --system SYSTEM [--short] [--gui | --text]
CMDR [CMDR ...]
Locate your CMDRs using EDSM and find their distance to a given system.
positional arguments:
CMDR a list of CMDR names (must have their location public on
EDSM!)
optional arguments:
-h, --help show this help message and exit
--system SYSTEM the target system (must be in EDDN!)
--short short output (only makes sense with `--text`)
--gui explicitly run the GUI
--text explicitly give text output
```
## explorationtools.py ##
```
2020-01-06 17:28:40 +01:00
usage: explorationtools.py [-h] {bodycount,distancebetween,findcommander} ...
A collection of tools useful for exploration.
optional arguments:
-h, --help show this help message and exit
subcommands:
2020-01-06 17:28:40 +01:00
{bodycount,distancebetween,findcommander}
sub-command help
bodycount Returns the number of bodies in a system. Will exit
with code 1 on server error and code 2 if the system
could not be found in EDSM.
2019-11-12 10:31:51 +01:00
distancebetween Calculates the distance between two systems. Will exit
with code 1 on server error and code 2 if (one of) the
2019-11-12 10:31:51 +01:00
systems could not be found on EDSM.
2020-01-06 17:28:40 +01:00
findcommander Attempts to find a CMDRs last known position. Will
exit with code 1 on server error and code 2 if the
CMDR could not be found on EDSM.
```
```
usage: explorationtools.py bodycount [-h] system
positional arguments:
2020-01-06 17:28:40 +01:00
system system to query
optional arguments:
-h, --help show this help message and exit
```
```
usage: explorationtools.py distancebetween [-h] system system
positional arguments:
2020-01-06 17:28:40 +01:00
system the systems to measure
optional arguments:
-h, --help show this help message and exit
```
```
usage: explorationtools.py findcommander [-h] [--system | --coords | --url]
name [apikey]
positional arguments:
2020-01-06 17:28:40 +01:00
name the commander in question
apikey the commanders EDSM API key. Can be empty for public profiles.
optional arguments:
-h, --help show this help message and exit
--system output the commanders last known system (default)
--coords output the commanders last known position in {x,y,z}
coordinates
--url output the commanders profile URL
```
2020-01-08 08:30:27 +01:00
## Need Help / Want to Contribute? ##
Just [file an issue](https://github.com/alterNERDtive/elite-scripts/issues/new)
here or [hop into Discord](https://discord.gg/uUKFdW) if that is your thing.