Skip to content

Commit

Permalink
* (bluefox) Made it compatible with js-controller 5.x
Browse files Browse the repository at this point in the history
* (bluefox) Added json config
  • Loading branch information
GermanBluefox committed Jul 17, 2023
1 parent 87da3d4 commit 63ac50f
Show file tree
Hide file tree
Showing 22 changed files with 1,203 additions and 647 deletions.
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
use or non-use of the information provided or by the use of incorrect and incomplete information,
are excluded in principle, provided that the translator / The authors are not proven to be intentionally or grossly negligent.
All offers are non-binding. The translators / authors expressly reserve the right to change,
supplement or delete parts of the pages or the entire offer without prior notice, or to discontinue publication temporarily or permanently.
supplement or delete parts of the pages or the entire offer without a prior notice, or to discontinue publication temporarily or permanently.

!> Do-It-Yourself.
DIY project means in our case, that there is no company from which one can buy a finished, functioning system.
DIY project means, in our case, that there is no company from which one can buy a finished, functioning system.
Elements of the system are developed and put together by participants of the project.
They will be provided to you free of charge.
DIY means to you that you have to do your part to make the system work for you.
Expand All @@ -46,7 +46,7 @@
## Description
This adapter starts the nightscout server from this repository: https://github.com/nightscout/cgm-remote-monitor or uses such a server remotely.

For the detailed information read Nightscout documentation [here](https://nightscout-user-guide.readthedocs.io/).
For detailed information, read Nightscout documentation [here](https://nightscout-user-guide.readthedocs.io/).

See [requirements](#requirements).

Expand All @@ -55,11 +55,11 @@ In case you are using local mongoDB the connection string looks like `mongodb://
## Requirements
### In server mode
#### Installed and running mongo DB.
It could be cloud DB or local DB, that could be installed from here: https://www.mongodb.com/download-center/community.
It could be a cloud DB or local DB that could be installed from here: https://www.mongodb.com/download-center/community.

Under Debian the MongoDB could be installed as: `apt-get install mongodb` or `sudo apt-get install mongodb` if the user is not `root`.

Following commands could work for Debian if `apt-get install mongodb` could not find a package:
The following commands could work for Debian if `apt-get install mongodb` could not find a package:

```
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
Expand All @@ -77,7 +77,7 @@ You can write the values into https://nightscout.iobroker.in and the **secret fr

![config](img/config.png)

To push the values into local nightscout with xDrip+ you must enter in Basis URL `https://<SEE IoT CONFIG API-secret>@nightscout.iobroker.in/api/v1/`.
To push the values into local nightscout with `xDrip+` you must enter in Basis URL `https://<SEE IoT CONFIG API-secret>@nightscout.iobroker.in/api/v1/`.

Like here:

Expand All @@ -88,7 +88,7 @@ You can access your local nightscout server via iot cloud. For that you must ope
**Remember that cloud access and local access require different API secrets!**

### In client mode
You need a running nightscout server instance, and it's API accessible via http or https.
You need a running nightscout server instance, and its API is accessible via http or https.


## Use cases
Expand All @@ -115,7 +115,7 @@ on('nightscout.0.data.mgdl', obj => {
}
});
```
**Notice: to get the chart as an image the phantomjs adapter must be installed and running**
**Notice: to get the chart as an image, the phantomjs adapter must be installed and running**

### Send charts via telegram or email
You can write a script:
Expand Down Expand Up @@ -145,6 +145,10 @@ sendTo('nightscout.0', 'chart', {
-->

## Changelog
### **WORK IN PROGRESS**
* (bluefox) Made it compatible with js-controller 5.x
* (bluefox) Added json config

### 1.0.6 (2022-05-31)
* (bluefox) BREAKING CHANGE: This version supports only nightscout 14.x. You must enter your API secret in settings
* (bluefox) BREAKING CHANGE: Own nightscout server updated to v14.x
Expand Down Expand Up @@ -178,7 +182,7 @@ sendTo('nightscout.0', 'chart', {
* (Volker Richert) Fixed last Updated value

### 0.9.6 (2019-09-14)
* (bluefox) used newer version of nightscout
* (bluefox) used a newer version of nightscout

### 0.9.4 (2019-08-10)
* (bluefox) initial release
Expand Down
1 change: 0 additions & 1 deletion admin/admin.d.ts

This file was deleted.

71 changes: 71 additions & 0 deletions admin/i18n/de/translations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"API Secret": "API-Secret",
"AR2 Forecasting": "AR2-Prognose",
"Allow unauthorized users": "Nicht autorisierte Benutzer zulassen",
"BG Delta": "BG Delta",
"BG Direction": "BG Richtung",
"Basal Profile": "Grundprofil",
"Battery": "Batterie",
"Battery Age": "Batteriealter",
"Bolus Wizard": "Bolus-Zauberer",
"Bolus Wizard Preview": "Bolus Wizard Vorschau",
"CGM Error Codes": "CGM-Fehlercodes",
"CORS": "CORS",
"Cannula Age": "Alter der Kanüle",
"Carbs-on-Board": "Kohlenhydrate an Bord",
"Careportal": "Pflegeportal",
"Chained certificate:": "Kettenzertifikat",
"Clock": "Uhr",
"Components": "Komponenten",
"Custom Foods": "Benutzerdefinierte Lebensmittel",
"Custom settings": "Benutzerdefinierte Einstellungen",
"Device": "Gerät",
"Device Status": "Gerätestatus",
"Disclaimer": "Haftungsausschluss",
"Have read and understood": "Gelesen und verstanden",
"Insulin Age": "Insulin-Alter",
"Insulin-on-Board": "Insulin an Bord",
"Language": "Sprache",
"Listen on all IPs": "Alle IPs zulassen",
"Loop": "Schleife",
"MiniMed Connect bridge": "MiniMed Connect-Brücke",
"Mongo connection string": "Mongo Verbindungszeichenfolge",
"OpenAPS": "OpenAPS",
"Override Mode": "Override-Modus",
"Port": "Port",
"Private certificate:": "Privatzertifikat",
"Public certificate:": "Publikzertifikat",
"Pump Monitoring": "Pumpenüberwachung",
"Raw BG": "Raw BG",
"Reservoir": "Reservoir",
"Secure(HTTPS)": "Verschlüsselung(HTTPS)",
"Sensor Age": "Sensor Alter",
"Settings": "die Einstellungen",
"Share2Nightscout bridge": "Share2Nightscout Brücke",
"Simple BG Alarms": "Einfache HG-Alarme",
"Status": "Status",
"Time Ago": "Zeit vor",
"Treatment Notifications": "Behandlungsbenachrichtigungen",
"Treatment Profile": "Behandlungsprofil",
"Units": "Einheiten",
"Uploader Battery": "Uploader-Batterie",
"Use Lets Encrypt certificates": "Benutzen Let's Encrypt Zertifikate",
"agree": "Zustimmen",
"license_text_1": "Verwenden Sie niemals die Informationen von Nightscout, ioBroker oder Programmcode, um medizinische Entscheidungen zu treffen.",
"license_text_2": "Alle Informationen und Gedanken der hier beschriebenen Programmcodes dienen nur zu Informations- und Bildungszwecken. Die Verwendung von Programmcodes von www.github.com erfolgt ohne jegliche Garantie oder Unterstützung. Jedes Element dieses Systems kann jederzeit ausfallen und das System unbrauchbar machen! Dies ist kein Projekt der Firma Dexcom oder der ioBroker GmbH. Nightscout hat keine Verbindung zu Dexcom oder anderen hier genannten Unternehmen, Dienstleistungen oder Produkten. Alle hier erwähnten Produkt- und Firmennamen sind Marken ihrer jeweiligen Eigentümer oder Hersteller.",
"license_text_3": "Alle Informationen und Gedanken der hier beschriebenen Programmcodes dienen nur zu Informations- und Bildungszwecken. Die Verwendung von Programmcodes der Homepage www.github.com ist ohne Gewähr und ohne jegliche Unterstützung. Jedes Element dieses Systems kann jederzeit ausfallen und das System unbrauchbar machen! Es gibt keinen passwortgeschützten Datenschutz oder eine Sicherheit der hier bereitgestellten Tools. Alle Daten, die Sie hochladen, sind für jeden im Internet lesbar, wenn Sie die bestimmte URL (Internetadresse) freigeben oder übermitteln. Dies ist kein Projekt der Firma Dexcom. Nightscout hat keine Beziehung zu Dexcom oder anderen Unternehmen, Dienstleistungen oder Produkten, die auf dieser Website erwähnt werden. Alle hier erwähnten Produkt- und Firmennamen sind Marken ihrer jeweiligen Eigentümer oder Hersteller.",
"license_text_4": "Die Übersetzer / Autoren / Entwickler übernehmen keinerlei Gewähr für die Aktualität, Korrektheit und Vollständigkeit der in dieser Dokumentation bereitgestellten Informationen und derjenigen der aufgeführten Links. Haftungsansprüche gegen die Übersetzer / Autoren, die sich insbesondere auf Schäden materieller oder ideeller Art beziehen, die durch die Nutzung oder Nichtnutzung der dargebotenen Informationen bzw. durch die Nutzung fehlerhafter und unvollständiger Informationen verursacht wurden, sind grundsätzlich ausgeschlossen, sofern der Übersetzer / Die Autoren sind nicht vorsätzlich oder grob fahrlässig. Alle Angebote sind freibleibend. Die Übersetzer / Autoren behalten es sich ausdrücklich vor, Teile der Seiten oder das gesamte Angebot ohne gesonderte Ankündigung zu verändern, zu ergänzen, zu löschen oder die Veröffentlichung zeitweise oder endgültig einzustellen.",
"license_text_5": "Mach es selbst. DIY-Projekt bedeutet in unserem Fall, dass es keine Firma gibt, bei der man ein fertiges, funktionierendes System kaufen kann. Elemente des Systems werden von den Projektteilnehmern entwickelt und zusammengestellt. Sie werden Ihnen kostenlos zur Verfügung gestellt. DIY bedeutet für Sie, dass Sie Ihren Teil dazu beitragen müssen, dass das System für Sie funktioniert. Wir hoffen, dass Sie DIY ebenso wie wir inspirieren wird. Sie können also irgendwann einen kleinen Beitrag dazu leisten, das System für alle zu verbessern.",
"mg/dl": "mg/dl",
"minimum 12 characters": "mindestens 12 Zeichen",
"mmol": "mmol",
"name": "Name",
"remote nightscout URL": "Externe Nightscout URL",
"system": "System",
"use integrated nightscout server": "Den integrierten Nightcout-Server verwenden",
"value": "Wert",
"xDrip-js": "xDrip-js",
"remote API secret": "Remote-API-Secret",
"Local IP": "Lokale IP",
"The possible environment variables could be found here": "Die möglichen Umgebungsvariablen finden Sie hier"
}
71 changes: 71 additions & 0 deletions admin/i18n/en/translations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"API Secret": "API Secret",
"AR2 Forecasting": "AR2 Forecasting",
"Allow unauthorized users": "Allow unauthorized users",
"BG Delta": "BG Delta",
"BG Direction": "BG Direction",
"Basal Profile": "Basal Profile",
"Battery": "Battery",
"Battery Age": "Battery Age",
"Bolus Wizard": "Bolus Wizard",
"Bolus Wizard Preview": "Bolus Wizard Preview",
"CGM Error Codes": "CGM Error Codes",
"CORS": "CORS",
"Cannula Age": "Cannula Age",
"Carbs-on-Board": "Carbs-on-Board",
"Careportal": "Careportal",
"Chained certificate:": "Chained certificate",
"Clock": "Clock",
"Components": "Components",
"Custom Foods": "Custom Foods",
"Custom settings": "Custom settings",
"Device": "Device",
"Device Status": "Device Status",
"Disclaimer": "Disclaimer",
"Have read and understood": "Have read and understood",
"Insulin Age": "Insulin Age",
"Insulin-on-Board": "Insulin-on-Board",
"Language": "Language",
"Listen on all IPs": "Listen on all IPs",
"Loop": "Loop",
"MiniMed Connect bridge": "MiniMed Connect bridge",
"Mongo connection string": "Mongo connection string",
"OpenAPS": "OpenAPS",
"Override Mode": "Override Mode",
"Port": "Port",
"Private certificate:": "Private certificate",
"Public certificate:": "Public certificate",
"Pump Monitoring": "Pump Monitoring",
"Raw BG": "Raw BG",
"Reservoir": "Reservoir",
"Secure(HTTPS)": "Secure(HTTPS)",
"Sensor Age": "Sensor Age",
"Settings": "Settings",
"Share2Nightscout bridge": "Share2Nightscout bridge",
"Simple BG Alarms": "Simple BG Alarms",
"Status": "Status",
"Time Ago": "Time Ago",
"Treatment Notifications": "Treatment Notifications",
"Treatment Profile": "Treatment Profile",
"Units": "Units",
"Uploader Battery": "Uploader Battery",
"Use Lets Encrypt certificates": "Use Let's Encrypt certificates",
"agree": "Agree",
"license_text_1": "Never use the information from Nightscout, ioBroker or program code to make medical decisions.",
"license_text_2": "All information and thoughts of the program codes described here are for informational and educational purposes only. The use of program codes from www.github.com is without any guarantee or support of any kind. Any element of this system can fail at any time, making the system unusable! This is not a project of the Dexcom company or ioBroker GmbH. Nightscout has no affiliation with Dexcom or other companies, services or products mentioned here. All product and company names mentioned herein are trademarks of their respective owners or manufacturers.",
"license_text_3": "All information and thoughts of the program codes described here are for informational and educational purposes only. The use of program codes from www.github.com is without any guarantee or support of any kind. Any element of this system can fail at any time, making the system unusable! There is no password protected privacy or any security of the tools provided here. Any data that you upload will be readable by anyone on the Internet when you share or submit the specific URL (Internet address). This is not a project of the Dexcom company. Nightscout has no affiliation with Dexcom or other companies, services or products mentioned on this website. All product and company names mentioned herein are trademarks of their respective owners or manufacturers.",
"license_text_4": "The translators / authors / developers accept no responsibility for the topicality, correctness and completeness of the information provided in this documentation and those of the listed links. Liability claims against the translators / authors, which relate in particular to physical, material or immaterial damages caused by the use or non-use of the information provided or by the use of incorrect and incomplete information, are excluded in principle, provided that the translator / The authors are not proven to be intentionally or grossly negligent. All offers are non-binding. The translators / authors expressly reserve the right to change, supplement or delete parts of the pages or the entire offer without prior notice, or to discontinue publication temporarily or permanently.",
"license_text_5": "Do-It-Yourself. DIY project means in our case, that there is no company from which one can buy a finished, functioning system. Elements of the system are developed and put together by participants of the project. They will be provided to you free of charge. DIY means to you that you have to do your part to make the system work for you. We hope that DIY will inspire you as much as we do - so at some point you can make a small contribution to making the system better for everyone.",
"mg/dl": "mg/dl",
"minimum 12 characters": "minimum 12 characters",
"mmol": "mmol",
"name": "Name",
"remote nightscout URL": "Remote nightscout URL",
"system": "system",
"use integrated nightscout server": "use integrated nightscout server",
"value": "Value",
"xDrip-js": "xDrip-js",
"remote API secret": "Remote API secret",
"Local IP": "Local IP",
"The possible environment variables could be found here": "The possible environment variables could be found here"
}
Loading

0 comments on commit 63ac50f

Please sign in to comment.