Take a look at xdrip4ios[1]. If you are using Libre 2 sensors you don't need MiaoMiao, Libre 2 has Bluetooth connectivity built in.
The other piece of the puzzle is Nighscout[2] that stores data in Mongodb (last time I looked at it). You can also enter a custom script to your Nightscout installation that can be your own endpoint to accepting JSON data about BG.
The other piece of the puzzle is Nighscout[2] that stores data in Mongodb (last time I looked at it). You can also enter a custom script to your Nightscout installation that can be your own endpoint to accepting JSON data about BG.
1) https://xdrip4ios.readthedocs.io/ 2) http://www.nightscout.info/