Commit Graph
185 Commits
Author SHA1 Message Date
A_D f62f1ee97b made types consistent and generic 2021-08-19 20:37:39 +02:00
A_D 98e8179c3e Dont ignore first killswitch checks changes 2021-08-19 20:35:50 +02:00
A_D e79975bea8 Cleaned up import 2021-08-19 20:35:50 +02:00
A_D 8c0457bf47 updated inara to work with new killswitches 2021-08-19 20:35:49 +02:00
A_D 4c9896569b added inara support for new delete_fields directive 2021-08-19 20:35:48 +02:00
norohind a8a4abfe90 inara.py: trace with logger.trace_if only 2021-08-13 18:06:38 +03:00
norohind e82abc8f03 inara.py: move conf_module import to satisfy isort 2021-08-12 19:36:27 +03:00
norohind 043fd4d826 inara.py: put inara events trace logging under inara-events trace_on option 2021-08-12 16:01:31 +03:00
A_D 6a296d4920 fixed inara per-event killswitch doing nothing 2021-07-03 15:48:25 +02:00
A_D 6c140abe97 Fixed import ordering 2021-06-18 23:36:45 +02:00
A_D fe0e752c9b Added support for arbitrary plugins for POST debug
This works by replacing --eddn-local with --debug-sender, and making the
webserver more generic. support has been added to EDSM, EDDN, and INARA.
2021-06-18 23:36:42 +02:00
Athanasius a0b310f72e Translations: Amalgamate some LANG comments & en.template updated 2021-06-13 15:49:09 +01:00
A_D 40e9e0e268 added missing entries to inara 2021-06-10 20:29:11 +01:00
Athanasius 107c44a2a9 Inara: Fix the all() generator for ShipLocker check 2021-06-10 14:36:50 +01:00
Athanasius a7722f70fe No need for [] if it's a generator inside all() anyway. 2021-06-10 14:04:38 +01:00
Athanasius 9fa02b51c3 Inara: Update to use ShipLocker, possibly from file. 2021-06-10 12:52:15 +01:00
Athanasius 4fa0521438 other core plugins: LANG comment pass 2021-06-07 15:43:32 +01:00
Athanasius 1d3ee4d6a9 Inara: Fix case on Inara 'marketID' key 2021-06-04 18:58:41 +01:00
Athanasius 7a69ca5e6b Inara: Remove useless/wrong setCommanderTravelLocation from SupercruiseEntry
This is old code, pre-dating the move to EDCD.  We could only possibly
set the system name and address from this, and would always have already
set this from login Location event, or any jump-in event.
2021-06-04 18:57:05 +01:00
Athanasius f6777f0237 Inara: Only ApproachSettlement if we have system & fix key case
* If you're near a settlement on login you get an ApproachSettlement
  before `monitor` has system set to pass into `journal_entry()`.
* We had a case-type of an Inara API key, so it wasn't setting the
  BodyName.
* TRACE level logging of what we actually send to Inara.
2021-06-04 18:45:43 +01:00
Athanasius fa0a7c48a2 Inara: setCommanderTravelLocation for SupercruiseExit and ApproachSettlement 2021-06-04 17:47:32 +01:00
Athanasius 07065b0bf3 inara: Comment out generic setCommanderTravelLocation event
This interferes with more specific such events, i.e. from Journal
`Location` event, if sent in the same batch.
2021-06-04 17:35:37 +01:00
A_D 88193cb30f be sure to include body with lat/long 2021-06-04 17:56:31 +02:00
A_D 607729b77b added setCommanderTravelLocation from Location event 2021-06-04 00:15:57 +02:00
A_D 8a94a57e78 Removed debug warnings and bool 2021-06-02 21:46:52 +02:00
A_D 86de3769d2 Fixed nonplural var containing plural names 2021-06-02 13:15:57 +02:00
A_D 2a68b81170 Fixed broken suitMods field 2021-06-02 12:32:32 +02:00
A_D 571db43257 Update Engineering for suits 2021-06-02 12:28:06 +02:00
A_D 2f684a91e3 removed monitor.planet use 2021-06-02 11:57:28 +02:00
A_D c737753a8b Fixed comment 2021-06-01 14:32:17 +02:00
A_D 41c826f536 delCommanderSuitLoadout done, update in-progress 2021-06-01 14:31:34 +02:00
A_D a06095aba0 Start on setCommanderSuitLoadout 2021-06-01 09:42:41 +02:00
A_D d69d0245f2 Implemented ship locker materials 2021-05-31 16:51:38 +02:00
A_D 0322fd37b1 Started updating existing events with taxi info 2021-05-31 12:58:37 +02:00
A_D 11ec6bfe49 Start implementing addCommanderTravelLand 2021-05-31 11:33:05 +02:00
Athanasius 278a78c09a plugins/inara: Don't try to send None-system location
I'm not sure normal use can cause this, but it's an easy obvious check.
2021-05-20 17:34:09 +01:00
Athanasius b862f6b00a Translations: Add killswitch 'disabled' messages. 2021-05-17 10:18:04 +01:00
Athanasius 7f45953012 plugins/station: *Do* set station from BodyType/Body always
The 'if not this.station' was early paranoia when first getting things
working with Odyssey.  It prevents a relog from Horizons (i.e. different
location) from correctly picking up an Odyssey login station when
on-foot in concourse.

Also, EDSM was defaulting wrongly for this.station_marketid.  Not that
the plugin even *uses* that at this time.
2021-05-12 10:56:43 +01:00
Athanasius 844e6115e3 Also handle Embark (properly) in EDSM and Inara plugins. 2021-05-01 13:50:45 +01:00
A_D d0bc006f9f Cleared final mypy errors in inara 2021-04-12 08:31:47 +01:00
Athanasius 878a247604 inara: A few final type fixups 2021-04-12 08:31:47 +01:00
Athanasius aaceaf0f52 inara: More type fixing 2021-04-12 08:31:47 +01:00
Athanasius 7ef6c17fa1 inara: Fix 'fleet' type 2021-04-12 08:31:47 +01:00
Athanasius 3ea6dac00b inara: Further cleanup
* missing 'this' variables declared in This.__init__()
* Types up to end of journal_entry()
2021-04-12 08:31:47 +01:00
Athanasius 6e98cf04d9 inara: Begin conversion to 'This' class. 2021-04-12 08:31:47 +01:00
Athanasius 8cbf37624c Inara: Ignore cognitive complexity & snake_case a var 2021-04-12 08:31:47 +01:00
Athanasius f494a948eb inara: Rename ALLCAPS function vars for padding. 2021-04-12 08:31:47 +01:00
Athanasius 9fd14a3980 Inara: Don't send a setCommanderReputationMajorFaction if we have no Reputations
Sure the `for k, v in ...` means not sending any that are empty/none,
but it will still send the event, just with *no* reputations.

When you're on a fresh character you have no reputations yet, so avoid
causing an Inara API error, including status line text.

Close #581
2021-04-12 08:31:47 +01:00
Athanasius 5edf8d5b59 Change monitor.state['on_foot'] to 'OnFoot' for consistency 2021-04-12 08:30:51 +01:00
Athanasius 734cb9ed11 Inara plugin now maintains Station Name when on_foot 2021-04-12 08:30:51 +01:00