Now you will not forget about next infusion set or CGM sensor change! This app remembers for you!
- How does it work?
- Bugs, new features and questions
- Instalation
- Configuration
- Notifications
- IFTTT Applets tutorials
- Facebook Messenger notifications
- push notifications from IFTTT mobile app
- Logging in to your website
- Turn your app on
- Update my site
- every day at given time - atrigger.com automatically triggers your website
- BetterMemorySugarBot automatically reads last change data from your nightscout website
- BetterMemorySugarBot calculates your next change date
- BetterMemorySugarBot notifies you via IFTTT or SMS about remaing hours to approaching change. Read more about notifications here
You discovered some bug ?? Need some new feature? Have a question? Or maybe, you just need little help during instalation process or further usage ? Feel free to create a new issue
- Create Github account or log in if you had already one.
- Go to this project page. (you are probably already here)
- Click
Fork
button. (picture below) - Click
F5
on your keyboard to refresh website. - You have your own fork of repository now. Since now, do all instructions there.
- Go to this link
- Fill in the form and verify your humanity. Click
Create an account
button. (example picture below) - Choose free plan (default) and click
Continue
button. (picture below) - Click
skip this step
button. (picture below) - Verify your email addres (example picture below)
-
Make sure you are in YOUR forked repositorium (not in original one). Read about forking here
-
Click
-
Create Heroku account. New account is highly recomended by me, because of heroku`s free dynos(read more here).
-
Click
Deploy app
button. -
Watch building logs
-
Your app is properly deployed. Instalation process is over. Now time for configuration.
example picture on bottom of this tab FIELDS:
- required:
App name
andapp_name
- first of all, I apologize for duplication, but it is necessary. It`s unique name of your app. It will be used in website URL (https://<app_name>.herokuapp.com). Please make sure, that this two fields are equal.heroku_token
- your unique token on heroku. Go to this intructions in order to find out how to get it.LANGUAGE_CODE
- language of your app. Only accepted vaues areen
(english)(default) orpl
(polish).SECRET_KEY
- secret password for your app. Keep it in secret!! It will be used for authorization.
-
ATRIGGER_KEY
andATRIGGER_SECRET
- read more in atrigger sectionINFUSION_SET_ALERT_FREQUENCY
- amount of time beetwen infusion set changes. [in hours]NIGHTSCOUT_LINK
- http link to your nightscout websiteSENSOR_ALERT_FREQUENCY
- amount of time beetwen CGM sensor changes. [in hours]
heroku token is your unique API key. getting instructions:
- Go to this link
- Scroll down to
API Key
section (picture below) - Click
Reveal
button - Now you know your heroku token. COPY it and PASTE it to
heroku_token
field
- go to this link
- Fill in registration form and click
Create My Account
button (if had not already done this). (example picture below) - Now you should see page like below. (if you are not just go to this link)
- On the picture above, I have marked
API Key
andAPI Secret
. You can copy and paste them into configuration form in instalation process or set it when your app had been already deployed. (see this instructions) - Verify atrigger with ATriggerVerify.txt
- Now you can go back to configuration instructions.
- In order to find out how to get them, go here
- If you already had them, time for logging in to your website
- Now you should see a page like below. Now you can paste your
ATRIGGER_KEY
in right field and clickCHANGE
button. - You should see a green confirmation like below
- Now you can paste your
ATRIGGER_SECRET
in right field and clickCHANGE
button. You should see similar green message. (example picture below) - Now your
ATRIGGER_KEY
andATRIGGER_SECRET
are set. Go back to atrigger configuration.
- Go to atrigger setup website and download verification file. (picture below)
- Now log in to your website
- You should see page like below. Click gray
Upload verification file
button. - Click
Choose file
button and choose your ATriggerVerify.txt from your computer. (picture below) - Click
UPLOAD
button. (picture below) - You should see green sucess message like below.
-
Go to your website (https://
<app_name>
.herokuapp.com). You should see page like below. Now clickIT IS MYWEBSITE
buttton. -
Now type your
SECRET_KEY
(it has been set during instalation process) and clickLOG IN
button. (example picture below) -
You are logged in !
BetterMemorySugarBot has two ways of notifying. I recomend notifying via IFTTT. It`s completly free, easier to set up and it is flexible. You can choose notifying via facebook messenger, push notifications from mobile app or email. Of course, you can explore this platform and combine BetterMemorySugarBot with other services on your own.Second options is SMS via Twilio API. I have to warn you, that when free credits are run out, you will have to pay for text messages. To use your free credits you do not have to give them any credit card or any other billing info. It is also a little more complicated to configurate than IFTTT. If you had decided, you can go to notifications configuration instruction
- Log in to your website and go to menu view.
- Choose your notification time (custom time when notification occures). PLEASE TYPE UTC TIME. Click
CHANGE
. Default value is 16 (UTC). - Go to notifications center.
- Choose your notifications way (you can choose both) and click
CHANGE
button. (picture below) - Now go to IFTTT configuration or to SMS configuration
-
If you are here, I assume you had already followed notifications configuration instruction
-
Create account on IFTTT or if you already done this, you can log in
- Go to this link
- You can sign up with your social media account or just type your email and click
Get started
button. - If you had choose email registration, now type your password and click
Sign up
button.
-
Now go to this link
-
Now log in to your website and go to notifications center. You should see page like below.
-
Click
MANAGE IFTTT MAKERS
button (picture above) -
Now paste your
IFTTT key
and clickADD
button. (picture below) -
Of course, you can add more IFTTT accounts and BetterMemorySugarBot will trigger all of them.
-
Finally, time for creating your own notifying applet:
- Facebook Messenger notifications
- push notifications from IFTTT mobile app
- explore IFTTT and create some other custom applet
-
Go to this link
-
Type
sugarbot-notification
-
Search for
messenger
-
Log in to your Facebook account
- Confirm your connection via link in your email box.(example picture below)
- Now get back to your applet creation site.
- Click
Send message
button. (picture below) - In
Message text
field paste:{{Value1}}
- Click
Create action
button. (picture below) - Click
Finish
button and now your applet is ready. - If you had done all the steps from instalation and configuration instructions, you are ready to turn this app on !!!
-
Go to this link
-
Type
sugarbot-notification
-
Search for
notifications
-
Click
Send notifications from the IFTTT app
button. (picture below) -
In
Message
field paste:{{Value1}}
-
Click
Finish
button and now your applet is ready. -
Now you just have to download IFTTT app and log in to your account. IFTTT asks you for your number. You can give it them and they will send you a link or just download it from Google Play or App Store
-
If you had done all the steps from instalation and configuration instructions, you are ready to turn this app on !!!
-
Go to this link
-
Type
sugarbot-notification
-
Search for
email
-
Go to your email box and copy your PIN. Paste it in
PIN
field. (picture below) -
Click
Connect
button. -
Now get back to your applet creation site.
-
In
Subject
field, type your custom message subject e.g. "BetterMemorySugarBot Notification" -
In
Body
field paste:{{Value1}}
-
Click
Finish
button and now your applet is ready. -
If you had done all the steps from instalation and configuration instructions, you are ready to turn this app on !!!
This tutorial will be avaible soon. Do you really need it?? Let me know!
If you had done all the steps from instalation and configuration instructions, your app is fully prepared for this final step.
- Log in to your website
- Click
SEND NOTIFICATION NOW
green button. (picture below) - You should see page similar to below one
- Congratulations !!! Your app is working. Your first notifications has been sended ! Now every day at give time, BetterMemorySugarBot will send you a notification with remaing time. If you wants to check remaing time without notification, just click
QUIET CHECKUP
button in menu.
To check, if your site is up-to-date or not you should go to your forked repo.
- Now look for message
This branch is
<some number>
commits behind Simon-the-Shark:master. (picture below) - If there is no message like this, your website is up-to-date
- If you can see the message, your website needs to be updated. Follow the instructions below.
- Click
Compare
button - Click
switching the base
if you see that link. Otherwise, manually set the base fork drop down to your fork, and the head fork to the upstream. - You should see page similar to below. Click
Create new pull request
button - Type short description and click
Create pull request
(example picture below) - Click
Merge pull request
- Click
Confirm merge
- Now message in your repository should contain
ahead
word