THIS APPLICATION IS NOT AFFILIATED WITH OR ENDORSED BY BANG & OLUFSEN IN ANY WAY Basic monitoring and reporting of traffic on the Bang and Olufsen MasterLink network, including basic MasterLink packet information, the MLGW protocol, and the Home Automation Protocol The code requires a MasterLink or BeoLink Gateway to run - it is untested with the BeoLiving Intelligence The code draws heavily on the existing MLGW project by user Giachello: https://github.com/giachello/mlgw, but is recoded for Python 2.7 The repository includes: main.py Test programme to monitor events on the Bang and Olufsen Network Resources Folder: CONSTANTS.py Dictionary Constants for packet/telegram decoding MLCONFIG.py Module to download JSON config data from the gateway and initialise serialisable dictionaries of rooms and devices on the network MLCLICLIENT.py Asynchat client to monitor basic Masterlink packets on the network MLGWCLIENT.py Asynchat client to monitor events on the MLGW protocol BLHIPCLIENT.py Asynchat client to monitor traffic on the BeolinkGateway Home Integration Protocol - only works with BLGW MLtn_CLIENT.py Asynchat client to monitor traffic on the MasterlinkGateway telnet events monitor (precursor of the HIP) - works with MLGW and BLGW ASBridge.py Apple Scripting Bridge module to allow direct control of the Apple Music App via the N.Music source notify.scpt Apple script to allow notifications in the notification centre. The script needs exporting to the Resources folder as an application, with the "Stay Open After Run Handler" option checked Scripts Folder: Green.scpt Applescripts that are triggered when colour keys are pressed on a Beo4/Beoremote One when controlling N.Music Blue.scpt Yellow.scpt Red.scpt