A small python script to read Microsoft Flight Simulator 2020 input profiles (your controller settings for keyboards, flightsticks,...) and produce nice formatted Overviews.
- export csv files
- export excel xls files
- create latex tex-files to make pdf documents
Dieses kurze Skript liest einzelne oder alle Inputprofile des Microsoft Flugsimulators 2020. Aus den eingelesenen Kontrollerzuordnungen und Hotkeys können neben csv- und excel-Dateien insbesondere latex-Quelldatein prodiziert werden, die später in eine pdf-Datei umgerehnet werden können.
Zur besseren Übersichtlichkeit können bestimmte Topics gefiltert werden.
usage: msfs_keybindings.py [-h] [-l LANGUAGE] [-c] [-x] [-t] [-k KEEP | -d DROP] [-o OUTPUT] [-p PATH] [-i IMAGESPATH] [-u USERCFGPATH] [-v {DEBUG,INFO,WARNING,ERROR,CRITICAL}] filename
Read msfs2020 input device configurations and create readable documents
positional arguments: filename
options:
-h, --help show this help message and exit
-l LANGUAGE, --language LANGUAGE
Select language for descriptions, i.e. en-US, de-DE,...
-c, --csv Save as CSV.
-x, --xls Save as Excel xls.
-t, --tex Save as Latex-Template
-k KEEP, --keep KEEP keep these CONTEXT entrys
-d DROP, --drop DROP drop these CONTEXT entrys
-o OUTPUT, --output OUTPUT
Name for output file
-p PATH, --path PATH Path for output image
-i IMAGESPATH, --imagespath IMAGESPATH
Path for device images
-u USERCFGPATH, --usercfgpath USERCFGPATH
Path for user config
-v {DEBUG,INFO,WARNING,ERROR,CRITICAL}, --verbose {DEBUG,INFO,WARNING,ERROR,CRITICAL}
Set the logging level
:~/Dokumente/msfs_keybindings$ python ./msfs_keybindings.py data/inputprofile_0306217088 2023-01-31 07:46:51.950 | INFO | msfs_keybindings.py: 94 __main__:<module> | Using outputpath ***/Dokumente/msfs_keybindings 2023-01-31 07:46:51.954 | INFO | msfs_keybindings.py: 212 __main__:<module> | I found these inputprofiles:[PosixPath('data/inputprofile_0306217088')] 2023-01-31 07:46:51.956 | INFO | msfs_keybindings.py: 278 __main__:read_inputprofile | handling inputprofile data/inputprofile_0306217088 2023-01-31 07:46:51.959 | INFO | msfs_keybindings.py: 326 __main__:read_inputprofile | COCKPIT_CAMERA - KEY_COCKPIT_QUICKVIEW3 : Joystick Pov Right 2023-01-31 07:46:51.961 | INFO | msfs_keybindings.py: 326 __main__:read_inputprofile | COCKPIT_CAMERA - KEY_COCKPIT_QUICKVIEW4 : JoystickPov Left 2023-01-31 07:46:51.962 | INFO | msfs_keybindings.py: 326 __main__:read_inputprofile | EXTERNAL_CAMERA - KEY_CHASE_QUICKVIEW1 : Joystick Pov Right