Grabbing the muse's mac address and serial number?


#1

Hi,

Quick question. I’m using python-osc (Python 3), to get some data out of muse-io, and I’m just wondering how to parse the config data. I’d like to grab the connected Muse’s mac address and serial number. But, I seem to be getting just a long string that looks like a dictionary but isn’t a dictionary. I’ve tried to cast it, do eval on it, but it just throws an error. Does anyone have suggestions on how to do this?

Thanks!

PS: This is what I’m getting:

 {"mac_addr":"0006666881F2","serial_number":"1090-A3RX-81F2","preset":"14","filters_enabled":true,"notch_frequency_hz":60,"battery_data_enabled":true,"compression_enabled":true,"eeg_sample_frequency_hz":3520,"eeg_output_frequency_hz":220,"eeg_channel_count":4,"eeg_samples_bitwidth":10,"eeg_channel_layout":"TP9 FP1 FP2 TP10 ","eeg_downsample":16,"afe_gain":1961,"battery_percent_remaining":67,"battery_millivolts":3874,"eeg_units":"EEG_MICROVOLTS","acc_units":"ACC_GFORCE","eeg_conversion_factor":1.644980342484907,"drlref_conversion_factor":3225.806451612903,"acc_conversion_factor":3.906256109482,"acc_sample_frequency_hz":50,"drlref_sample_frequency_hz":10,"acc_data_enabled":true,"drlref_data_enabled":true,"error_data_enabled":true}