If you have tried to configure REST API and are having problems, see the following tips and reminders:
- Make sure you have the proper syntax for your uploader for the BASE URL.
xDrip beta or Nightscout Dreamsicle uploader app: https://YOURAPISECRET@YOURSITENAME.azurewebsites.net/api/v1/
xDrip original or Nightscout Cookie Monster uploader app: YOURAPISECRET@https://YOURSITENAME.azurewebsites.net/api/v1/
- Make sure your API_SECRET is 12 characters (at least). Count it.
- Make sure your API_SECRET in Azure (or Heroku) settings matches the secret used in the BASE URL for REST API.
- Make sure API_SECRET in Azure is spelled correctly.
- Make sure your API_SECRET variable in Azure is set to type “Custom”.
- Carefully doublecheck the BASE URL (on the uploader) to ensure there are no spaces or typos.
- Make sure when you configured the BASE URL you entered your “actual” API SECRET (passphrase) and your “actual” site name, not the sample text.
- If you are an xdrip user, make sure you are using a beta version. (Version is shown on System Status screen; if you see no version, you have the original xdrip, and the syntax for BASE URL is different. We recommend you update your xdrip.)
- Make sure you have turned mongodb off on the uploader so that you can tell if the REST API upload is working. (Just flip the switch for mongodb upload to “off.”)
- Make sure you did not delete or alter the connection strings in Azure (or Heroku) that are related to mongo. You still need those!
Raw Data Missing
If you suddenly experience raw data being missing after switching, you most likely need to enter an additional calibration on your Dexcom.
Battery Indicator Problem After Switching to REST API Upload
If you experience a problem with the uploader battery percentage reading on your site after switching to rest, you will need to go into the mongodb, open the devicestatus collection, and delete the records. This one-time action should resolve the battery percentage problem.
Make Sure it Works
Do not make any other changes to your site until you verify that REST API upload works. It will be much less confusing for you to troubleshoot and correct any problems if this is the “only” change you are making.
Once your REST API is properly configured and working, if you begin seeing a problem, pay attention to when the problem happens. Does it happen on wifi? Does it happen on cellular? Isolating any situation is the best way to troubleshoot what may be happening.
For full notes on preparing for the Mongo 3 update, which includes detailed information for setting up REST API upload, see MongoDB Upgrade to 3.0.