Skip to content

Instantly share code, notes, and snippets.

@audiefile
audiefile / Triggering “Eating Soon Mode” via Pebble Watch
Last active January 27, 2024 10:29
Draft Documentation for Triggering “Eating Soon Mode” via Pebble Watch Uses IFTTT and pebble watch app ThisButton by The Hub Media
• Setup IFTTT account
• Connect to Maker channel and note secret key
• Create if recipe
o if Maker 'Receive a web request'
• The Event Name doesn't matter, just make note of it. I suggest avoiding spaces as I've seen them cause problems in the past.
o then Maker 'Make a web request'
• URL: https://mynightscout.com/api/v1/treatments.json
• Method: POST
• Content type: application/json
• Body: { "enteredBy": "Maker", "eventType": "Temporary Target", "reason": "Eating Soon", "targetTop": 80, "targetBottom": 80, "duration": 60}
Your OpenAPS implementation can pull CGM data from a Nightscout site instead of from the CGM directly. To do this wirelessly with an android phone you can use the xDrip app.
If you have a share receiver follow these directions to set up your android uploader and Nightscout website: http://www.nightscout.info/wiki/welcome/nightscout-with-xdrip-and-dexcom-share-wireless
You could also build a DIY receiver. Directions to build the receiver, set up your uploader and Nightscout can be found here: http://www.nightscout.info/wiki/nightscout-with-xdrip-wireless-bridge
You can also use part of the DIY receiver set up - the wixel – directly to the raspberry pi
https://github.com/jamorham/python-usb-wixel-xdrip
https://github.com/ochenmiller/wixelpi_uploader