Skip to content

Commit

Permalink
Merge pull request #4 from marciogranzotto/better-docs
Browse files Browse the repository at this point in the history
Better docs
  • Loading branch information
marciogranzotto committed Sep 26, 2020
2 parents f0d7ca2 + 6165b83 commit 04eb549
Show file tree
Hide file tree
Showing 6 changed files with 189 additions and 109 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"exiasr.hadolint",
"omartawfik.github-actions-vscode"
"omartawfik.github-actions-vscode",
"mrmlnc.vscode-remark"
]

// Use 'forwardPorts' to make a list of ports inside the container available locally.
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ jobs:
- uses: actions/checkout@v2
- name: hadolint
run: docker run --rm -i hadolint/hadolint < nightscout/Dockerfile
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: gaurav-nelson/github-action-markdown-link-check@v1
build-amd64:
name: Build amd64 image
runs-on: ubuntu-latest
needs: [dockerlint]
needs: [dockerlint, markdown-link-check]
steps:
- uses: actions/checkout@v2
- name: Patch files
Expand All @@ -28,7 +33,7 @@ jobs:
build-armv7:
name: Build armv7 image
runs-on: ubuntu-latest
needs: [dockerlint]
needs: [dockerlint, markdown-link-check]
steps:
- uses: actions/checkout@v2
- name: Patch files
Expand All @@ -43,7 +48,7 @@ jobs:
build-aarch64:
name: Build aarch64 image
runs-on: ubuntu-latest
needs: [dockerlint]
needs: [dockerlint, markdown-link-check]
steps:
- uses: actions/checkout@v2
- name: Patch files
Expand All @@ -58,7 +63,7 @@ jobs:
build-i386:
name: Build i386 image
runs-on: ubuntu-latest
needs: [dockerlint]
needs: [dockerlint, markdown-link-check]
steps:
- uses: actions/checkout@v2
- name: Patch files
Expand Down
File renamed without changes.
142 changes: 39 additions & 103 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,126 +15,38 @@

[![Buy me a coffee][buymeacoffee-shield]][buymeacoffee]


## About


Nightscout acts as a web-based CGM (Continuous Glucose Montinor) to allow multiple caregivers to remotely view a patients glucose data in realtime.

This add-on is a wrapper around [nightscout/cgm-remote-monitor][cgm-remote-monitor].
Please refere to their documentation for issues releated to Nightscout and not this add-on.

It includes a Mongo Database which is used to store the uploaded values.

![sample image](/images/sample.png)
![sample image](images/sample.png)

## Installation

The installation of this add-on is pretty straightforward and not different in
comparison to installing any other Home Assistant add-on.

1. [Add our Home Assistant add-ons repository][repository] to your Hass.io instance.
1. Install the "Nightscout" add-on.
1. Change the configuration files with the required values.
1. Start the "Nightscout" add-on
1. Check the logs of the "Nightscout" add-on to see if everything went well.
1. Click "OPEN WEB UI" to open the Nightscout website.
1. Log in with your `api_key`.
1. [Add our Home Assistant add-ons repository][repository] to your Home Assistant instance.
2. Install the "Nightscout" add-on.
3. Change the configuration files with the required values.
4. Start the "Nightscout" add-on
5. Check the logs of the "Nightscout" add-on to see if everything went well.
6. Click "OPEN WEB UI" to open the Nightscout website.
7. Log in with your `api_key`.

[:books: Read the full add-on documentation][docs]

**NOTE**: Starting the add-on might take a couple of minutes (especially the
first time starting the add-on).

**NOTE**: Do not add this repository to Hass.io, please use:
**NOTE**: Do not add this repository to Home Assistant, please use:
`https://github.com/marciogranzotto/addons-repository`.

## Configuration

**Note**: _Remember to restart the add-on when the configuration is changed._

Example add-on configuration:

```yaml
ssl: true
certfile: fullchain.pem
keyfile: privkey.pem
api_key: CHANGEMEPLEASE
plugins:
- careportal
- boluscalc
```
**Note**: _This is just an example, don't copy and paste it! Create your own!_
### Option: `ssl`

Enables/Disables SSL (HTTPS) on the web interface of Nightscout. Set it `true`
to enable it, `false` otherwise.

### Option: `certfile`

The certificate file to use for SSL.

**Note**: _The file MUST be stored in `/ssl/`, which is the default_

### Option: `keyfile`

The private key file to use for SSL.

**Note**: _The file MUST be stored in `/ssl/`, which is the default_

### Option: `api_key`

The api key that will be used to login and upload data to Nightscout.

**Note**: _It has to be at least 12 characters long_

### Option: `plugins`

A list of plugins you would like to use.
You can see the list of available plugins on [nightscout/cgm-remote-monitor][cgm-remote-monitor]
The default list should be pretty much what you need.

## Embedding into Home Assistant

It is possible to embed Nightscout directly into Home Assistant, allowing you to
access your Nightscout through the Home Assistant frontend.

Home Assistant provides the `panel_iframe` integration, for these purposes.

Example configuration:

```yaml
panel_iframe:
nightscout:
title: Nightscout
icon: mdi:water-alert
url: https://address.to.your.hass.io:5423
```

**TODO**: Add configuration for sensors

## Uploading data

Using any of the supported apps, like `xDrip+`, `Gimp` and `Spike`, enter the URL of your instance following this pattern:
```
https://[email protected]:5423/api/v1/
```
Just change the api key, url address and port, if needed.

## Changelog & Releases

This repository keeps a change log using [GitHub's releases][releases]
functionality. The format of the log is based on
[Keep a Changelog][keepchangelog].

Releases are based on [Semantic Versioning][semver], and use the format
of ``MAJOR.MINOR.PATCH``. In a nutshell, the version will be incremented
based on the following:

- ``MAJOR``: Incompatible or major changes.
- ``MINOR``: Backwards-compatible new features and enhancements.
- ``PATCH``: Backwards-compatible bugfixes and package updates.

## Support

Got questions?
Expand All @@ -146,9 +58,6 @@ You can [open an issue here][issue] on GitHub.
This is an active open-source project. We are always open to people who want to
use the code or contribute to it.

We have set up a separate document containing our
[contribution guidelines](CONTRIBUTING.md).

Thank you for being involved! :heart_eyes:

## Authors & contributors
Expand All @@ -159,6 +68,7 @@ For a full list of all authors and contributors,
check [the contributor's page][contributors].

## License

GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Expand All @@ -167,26 +77,52 @@ Version 3, 29 June 2007
of this license document, but changing it is not allowed.

[aarch64-shield]: https://img.shields.io/badge/aarch64-yes-green.svg

[amd64-shield]: https://img.shields.io/badge/amd64-yes-green.svg

[anchore-shield]: https://anchore.io/service/badges/image/67d1185473090e99d5ac5e1bb4d1aa2295117a9bd3d7abbf8cd8a71e331c8388

[anchore]: https://anchore.io/image/dockerhub/marciogranzotto%2Funifi%3Alatest
[armhf-shield]: https://img.shields.io/badge/armhf-no-red.svg

[armhf-shield]: https://img.shields.io/badge/armhf-no-red.svg

[armv7-shield]: https://img.shields.io/badge/armv7-yes-green.svg

[i386-shield]: https://img.shields.io/badge/i386-yes-green.svg

[buymeacoffee-shield]: https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg

<!-- markdown-link-check-disable-next-line -->
[buymeacoffee]: https://www.buymeacoffee.com/automarcio

[commits-shield]: https://img.shields.io/github/commit-activity/y/marciogranzotto/addon-nightscout.svg

[commits]: https://github.com/marciogranzotto/addon-nightscout/commits/master

[contributors]: https://github.com/marciogranzotto/addon-nightscout/graphs/contributors

[dockerhub]: https://hub.docker.com/r/marciogranzotto/nightscout

[home-assistant]: https://home-assistant.io

[issue]: https://github.com/marciogranzotto/addon-nightscout/issues

[keepchangelog]: http://keepachangelog.com/en/1.0.0/

[license-shield]: https://img.shields.io/github/license/marciogranzotto/addon-nightscout.svg

[maintenance-shield]: https://img.shields.io/maintenance/yes/2020.svg

[project-stage-shield]: https://img.shields.io/badge/project%20stage-experimental-yellow.svg

[releases-shield]: https://img.shields.io/github/release/marciogranzotto/addon-nightscout.svg

[releases]: https://github.com/marciogranzotto/addon-nightscout/releases

[repository]: https://github.com/marciogranzotto/addons-repository

[cgm-remote-monitor]: https://github.com/nightscout/cgm-remote-monitor

[marciogranzotto]: https://github.com/marciogranzotto

[docs]: nightscout/DOCS.md
Loading

0 comments on commit 04eb549

Please sign in to comment.