missionpinball / mpf-monitor

Graphical utilty which connects to MPF to let you visually control, troubleshoot, and see the status of the machine
http://missionpinball.org
MIT License
11 stars 10 forks source link

Support config args in the command line #32

Closed avanwinkle closed 4 years ago

avanwinkle commented 4 years ago

This PR updates mpf monitor to support the -c command line argument for config files. Currently, monitor is hard-coded to use monitor/monitor.yaml as the config file for monitor.

The MPF Show Creator uses the monitor config to determine the placement of lights on the playfield, but has no option to disable or filter the lights. For creating shows that use only some of the lights, different monitor config files are needed to position the desired lights.

Example:

mpf monitor -c monitor_playfield_gi_only

MPF already supports -c as an argument for config files, so this PR extends the pattern for MPF Monitor. If no arg is provided, the default monitor.yaml will be used.

kylenahas commented 4 years ago

Thanks for the PR!