Category: Tutorials|Nov 19, 2022 | Author: Admin

How to set up NightScout Docker using CyberPanel Hosting panel

Share on

How to set up NightScout Docker using CyberPanel Hosting panel

I managed to figure out a way to use the docker, it was quite easy actually.
All I needed was the correct config values, and boom, the docker image within CyberPanel was almost like type and up.

1. Have a VPS.
2. go to Manage Images
3. Search for

nightscout/cgm-remote-monitor

 


4. Choose either "Latest" or "Latest_Dev" (I went with "Latest")
5. Click "Create container" top right.
6. Add your config files to this page.
7. You must at least give it 1024MB of memory. (Choose to start Nightscout on restart)

Choose an IP of your choice, most common ports are over 1000, or over 3000.
Any port will do (As long as you don't have any private ports conflicting with your port choice.)



7. Register at https://www.mongodb.com/cloud/atlas/register


8. Use the mongodb+srv:// address you get when setting up a cluster at the atlas. (See image at point 7 for reference where to put

mongodb+srv://

 

How to make a MongoDB server at Atlas:

1. Click "Create" top right.

 

2. Choose "Shared Cluster" at the top.
3. Choose Azure (And Ireland or any other country that you see allows you to do it for free)
4. Continue with the "ServerLess" option.
5. Press "Create Instance"


6. Click Connect.


7. Click on Copy button on the right side.

 

8. Go to your CyberPanel config page, and add this URL to Mongodb (See image point 7 over)

9. Nightscout Configs:


YARN_VERSION
INSECURE_USE_HTTP
MONGODB_URI
API_SECRET
DISPLAY_UNITS
BASE_URL
ENABLE
AUTH_DEFAULT_ROLES
THEME
MONGO_TREATMENTS_COLLECTION
BACKUP_NUM_KEEP
BACKUP_FREQUENCY

 

Values to the configs:
You need a base URL, but it does not have to be a valid domain unless you want to show the values using a domain instead of VPS IP in the browser.

 

14.15.3
1.22.5
true
mongodb+srv://
Your API_Secret from your phone
mmol
https://subdomain.domain.com
careportal basal dbsize rawbg iob maker bridge cob bwp cage iage sage boluscalc pushover treatmentnotify mmconnect loop pump profile food openaps bage alexa override cors
denied
colors
treatments
7
1d

10. Click Save.

11. Click "Start"

12. Go to

HTTP://IP:port
or
https://subdomain.domain.com (Requires more setup)

And you should be all set up.

Sponsored Ads:

Comments:


Giant change at Google could change everything

Category: Google|Apr 19, 2024 | Author: Admin

Now Windows will be bothered about this too

Category: Microsoft|Apr 18, 2024 | Author: Admin

Test the new AI trick with Logitech

Category: IT|Apr 17, 2024 | Author: Admin

The US Government Has a Microsoft Problem

Category: Microsoft|Apr 16, 2024 | Author: Admin

Now comes the commercial

Category: Microsoft|Apr 15, 2024 | Author: Admin

Linux Foundation is leading fight against fauxpen source

Category: IT|Apr 14, 2024 | Author: Admin

3000 news articles!!! Happy reading!

Category: General|Apr 13, 2024 | Author: Admin

Google shuts down new product

Category: IT|Apr 12, 2024 | Author: Admin

YouTube CEO warns OpenAI that training models on its videos is against the rules

Category: IT|Apr 11, 2024 | Author: Admin

Google unveils Arm-based data center processor, new AI chip

Category: Google|Apr 10, 2024 | Author: Admin

Microsoft to invest $2.9 bln to expand AI, cloud infra in Japan

Category: Microsoft|Apr 9, 2024 | Author: Admin

Nintendo shuts off online access for 3DS and Wii U today

Category: IT|Apr 8, 2024 | Author: Admin

Musk challenges Brazil's order to block certain X accounts

Category: IT|Apr 7, 2024 | Author: Admin

Here’s how much Microsoft will charge for Win10 security updates once support ends

Category: Microsoft|Apr 6, 2024 | Author: Admin

Samsung has beaten Apple again

Category: IT|Apr 5, 2024 | Author: Admin
more