mddub / pancreabble Goto Github PK
View Code? Open in Web Editor NEWSend OpenAPS status updates to a Pebble watch via Bluetooth.
Send OpenAPS status updates to a Pebble watch via Bluetooth.
I've set up Pancreabble, which is successfully passing the CGM data over to Urchin on the Pebble, using the set-up details in the oref0-setup.sh dev repo, and the libs there.
I've built a version of peb-urchin-status.sh
that generates an urchin-status.json
that contains the following line:
{"message": "Set Temp Basal at 3:55: 2.85 for 30 minutes"}
My upload-pebble alias is:
upload-pebble = ! bash -c "~/src/oref0/bin/peb-urchin-status.sh && openaps report invoke upload/urchin-data.json && openaps use pebble send_urchin_data upload/urchin-data.json"
and my report is: urchin-data
[report "upload/urchin-data.json"]
use = format_urchin_data
reporter = JSON
cgm_clock = monitor/clock.json
report = upload/urchin-data.json
device = pebble
glucose_history = monitor/glucose-unzoned.json
status_text =
status_json = upload/urchin-status.json
action = add
The urchin-data.json
file contains the list of SGV values for the graph, then the following:
"msgType": 1,
"statusText": "Set Temp Basal at 3:55: 2.85 for 30 minutes",
"delta": 2,
"trend": 0,
"recency": 233,
"lastSgv": 120
When the upload runs, I get a message on the pebble watch face saying:
Msg Failed Code 2
Any ideas how to fix this so that the OpenAPS status is being picked up and displayed?
I don't have pancreoptions.json in myopenaps2
Using cp src/oref0/lib/oref0-setup/pancreoptions.json myopenaps2
Then running :~/myopenaps2# ~/src/oref0/bin/peb-urchin-status.sh
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
Missing dev parameter
rfcomm0: 6D:0B:D3:64:00:08 channel 1 clean
#!/bin/bash
MAC=$1
if ! ( rfcomm show hci0 | grep -q $MAC ) ; then
I'm quitting for now because I got paired to edison and pebble then found my watchface had been inadvertantly left on another and pairing edison pebble took some struggle and haven't gotten it paired to my second pebble, round.
when you do a -h on the uses for the pancreabble device, you get set_time rather than set_clock options. I used the set_time option successfully. Also, the format_urchin_data option only takes a string or json file for the urchin status in addition to the glucose.json. Perhaps the changes in the code aren't up to date per the content in the readme?
#apt-get update has this error is it an issue?
Ign http://http.debian.net jessie-backports/main i386 Packages/DiffIndex
Err http://security.debian.org jessie/updates/contrib Translation-en_IE
Something wicked happened resolving 'security.debian.org:http' (-5 - No address associated with hostname)
After invoking succesfully the reports and sending to the pebble the bg's/temp basals I have on my pebble all the data. But if I enter/open any other notification I lose every OpenAPS/bg related data.
Is everything normal or I am lacking something in the configuration?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.