-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Instances #6
Comments
I thought we could just change the guid and then install 2 copies as a initial hack. Since there are several families with 2 T1D kids I'm hoping we can come up with a real solution. Ideally they would be able to use a single nightscout server and single pebble app and based on the receiver id's we'd be able to figure out which kid it was for. Before that having the pebble point to 2 nightscout servers might be a good step. |
Greg recently helped me out by letting me know I needed to change the UUID so I could run two different watchfaces. I have done that and it is nice that I can now easily switch between the two kids on the pebble. Is there anyway to have the pebble alarm go off for the kid that is not on the active watchface display? |
No. I just met someone from Pebble team, and we quickly ran through some of our use cases. Some alternative ideas:
The short term hack, as you've discovered is to generate new app in cloudpebble, and use the newly generated |
Yeah, I was afraid of that. |
Okay, so I'm going to try and add two endpoints and have it switch the display every 30 seconds to the other kid. This would be where I change how often Pebble.addEventListener("appmessage" is calling cgmfetch(), right? static void timer_callback(void *data) { send_cmd(); timer = app_timer_register(60000, timer_callback, NULL); So I would want to change the 60000 to 30000 Then instead of using opts I could just put in the url for that particular kids data set.
Then I could continue with the existing code and make all the data handling variables arrays based on counter so it would be unique to the watch face. Any comments would be greatly appreciated and probably save me lots of time trying to figure this out. |
@Alkene, this is really cool, have you looked at what we're doing on #16 Lets align so that we don't run into merge hell, there were lots of changes in the other PR. Also lots a indent/whitespace stuff so I think pulling all this together will take some work. The sooner we start on that the better. We need to move the setting page over here so we can add multiple urls, like you said, also the names. I'll probably be working on this late tonight |
Yeah, I have been kind of watching for when that big merge comes through. I will try and keep an eye out for when it does and then see if I can use that to do a clean pull request. |
I haven't made any commits yet so if you wanted to start a new branch in the community repo that would be fine. I'm actually not sure how to code in HTML and when I do get to it it will be more trial and error on my part. We have a wedding to do today but I plan to set some time aside tomorrow to work on it. |
Hi - I'm helping Cheryl and she has 2 children with T1D. I tried getting creative tonight and modified the metadata information in the CloudPeddle deployment process. Unfortunately, it looks like there is a limit of one cgm-pebble instance per phone. I'm guessing it's tied to the App UUID. So my question...
Thanks.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: