someoneAnyone / Nightscouter

An Native iOS app for displaying Nightscout website data.
MIT License
19 stars 25 forks source link

Changed required fields for Medtronic compatibility #70

Closed daveewall closed 7 years ago

daveewall commented 7 years ago

I'm running a purely Medtronic setup, and the JSON objects returned from NS don't have some of the fields that Dexcom uses, so the code fails to retrieve the information properly.

I'm not the best Swift programmer, especially when it comes to question marks, so I'm sure there's a Swiftier way to handle this, but it does work for me as-is.

Also, can't test it with a Dexcom setup.

daveewall commented 7 years ago

Is this better?

daveewall commented 7 years ago

Forget it. I don't think it matters anyway. After upgrading oref0 his morning, it seems they just added direction support for MDT sensors, which fixed the current version of the program, making this PR irrelevant anyway.