This is an automated archive made by the Lemmit Bot.
The original was posted on /r/tasker by /u/GDCWatchFaces on 2023-08-10 04:37:55.
Background...
I am a T1 Diabetic. I started this project a couple of months ago. I wanted a watch face that would display the readings from my Continuous Glucose Monitor (CGM). Its a Dexcom G6 Sensor. That was the easy part. That data is readily available from a couple of apps. (xDrip+ and G-Watch Wear). I am insulin dependent and use an Omnipod 5 insulin pump. The manufacturer Insulet does not provide the data called Insulin on Board (IOB). That is where I began my journey with tasker.
With the assistance from members of this group I was able to create a task that would grab the data from the Omnipod 5 application that displayed the IOB and pass it to the watch via AutoWear as a complications both a text and ranged values.
I now want to be able to share this complication with other diabetics. Most of which do not have the technical skills of the folks reading this post. Sure they can install Tasker and AutoWear and use taskernet to import my Profile and Tasks. I have done that with some. But I would like this to be simple for the common user.
Here is what I have been able to do
-
Use Tasker App Factory to export my profile as an App
-
I have been able to toggle off the profile so that the task does not run. The complication updates on my watch... - GREAT
- However, the complication still comes across as the AutoWear complications (Text and Icon 1 / Ranged Value 1)
This is great, I have those apps installed. What does the common user need to do to be able to get this IOB data on their watch face? My watch faces for diabetics are FREE. I do this as a hobby. I am not a developer. I have had to muddle my way through the Google Play Console.
Below is the code from my Tasker Task. The Profile just looks at the App when a notification is present
Task: OP5_IOB
A1: Variable Set [
Name: %text
To: %NTITLE
Structure Output (JSON, etc): On ]
A2: Simple Match/Regex [
Type: Regex
Text: %text
Regex: (IOB:* (?[\d.]+) U) ]
A3: Variable Set [
Name: %iob_pass
To: %IOB
Recurse Variables: On
Structure Output (JSON, etc): On ]
A4: Notify [
Title: IOB
Text: %IOB
Icon: %IOB
Number: 0
Priority: 5
LED Colour: Red
LED Rate: 0 ]
A5: AutoWear Complications [
Configuration: Clear Unset: true
Text: %IOB
Subtitle: IOB
Complication To Update: Text And Icon 1
Icon: /storage/emulated/0/Tasker/Widgets/icons/white_syrninge.png
Doze Icon: /storage/emulated/0/Tasker/Widgets/icons/IMG_20230623_185529.png
Apply Now: true
Name: OP5_IOB
Timeout (Seconds): 20
Structure Output (JSON, etc): On
Continue Task After Error:On ]
A6: AutoWear Complications [
Configuration: Clear Unset: true
Text: %IOB
Complication To Update: Ranged Value 1
Icon: /storage/emulated/0/Tasker/Widgets/icons/white_syrninge.png
Doze Icon: /storage/emulated/0/Tasker/Widgets/icons/white_syrninge.png
Ranged Value: %IOB
Min Value: 0
Max Value: 30
Apply Now: true
Name: OP5_RV_IOB
Timeout (Seconds): 20
Structure Output (JSON, etc): On ]
Any guidance would be greatly appreciated.
GDC