-
Notifications
You must be signed in to change notification settings - Fork 0
Setup mLab Logging
In Loop App > Settings > mLab There are 2 values you need to enter to log data to mLab (Database, API Key)
First you will need to enable API Access in mLab and obtain your API Key. Then you need to get the database name. Once you have these two pieces of information you can enter them in Loop.
If you don't already have an mLab account Go Here: https://mlab.com/signup/ othewise skip this step.
1.) Log in to the mLab management portal 2.) Click your username (not the account name) in the upper right-hand corner to open your account user profile 3.) If you are already in the account details page, then click on the row with your username in the Account Users section 4.) If the status is showing as “Data API Access: Disabled” in the “API Key” section, click the “Enable Data API access” button 5.) Once Data API access is enabled, your current API key will be displayed in the “API key”
6.) (Optional) If you want to update the current key, click “Regenerate API key”
If you have already configured mLab for Nightscout in the past when you log in to mLab you will see an initial dashboard with database "Names". The names will start with some string of characters and a "/" like "ds019283/nightscout" the portion you need to enter in Loop is the "nightscout". You can also create a separate database just for loop and use that if you wish.
To see what databases your mLab account has available you can go to this URL Replace [YOUR_API_KEY_HERE] https://api.mlab.com/api/1/databases?apiKey=[YOUR_API_KEY_HERE] with the API Key you got in the first part. It will return a list of database names you can use to log data.