Code Monkey home page Code Monkey logo

rpi-nightscout's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rpi-nightscout's Issues

https

Good evening,
Can you explain to me how to switch to https? It's not very clear to me and I have nightscout running smoothly on an rpi 4 with ssd but I'm stuck without https. (no nightscout reporter, no M5stack and lots of other stuff)
Thank you in advance for your help.

Update to Nightscout 0.10.3.1

Nightscout has version 0.10.3.1 by now. This docker image is still on 0.10.1 (mid 2017). Since this is by far the easiest installation of nightscout in the pi, we should update.

Since I have no experience with docker how could I help here?

Docker-Cmpose

Hello,
I'm not really good in Linux, I have a Pi 3, they ran Nightscout in the 32 bit version years ago. I then disabled it by unplugging it, and I can't get it to work anymore, now that we only use local profiles in aaps I only need Nightscout for my M5Stacks. So I want to run it on a Raspberry. I wrote the Hypriot 64 image to the SD and then went through the individual instructions with no error messages. After entering: docker-compose up -d this error message came up:
/usr/local/bin/docker-compose: line 1: Not: command not found
When checking with ls -l, you saw that the docker-compose file is very small, and when you read it, the first line only says: not found.

image

Multiple nightscouts on different port

Hi,

I like to run multiple nightscouts on a different port on a raspberry pi.
The reason for this is that I like to have a nightscout for xdrip and for androidAPS.
Also one for a second androidAPS running on my phone monitoring someone else.

I tried with copying the rpi-nightscout folder with different port settings
but did not manage to get it working.

Is this possible?

BZ-Values 2

I accidentally clicked wrong and closed it.

Hello, thanks for the quick answer, I'm pretty inexperienced in Linux. What is sgv-data? And how do I test if the Docker Daemon runs. How do I upload the data via curl?

Combining this with Jamorham's RPi/USB Wixel setup

Hey! First of all, thanks for the hard work of developing and maintaining this!
I'm working towards the goal of using a Pi 3b and a USB wixel to grab the G4 cgm data, then deposit that data into the MongoDB that is created using the docker application you've built, so that we can run Nightscout and access it remotely.

Jamorham's setup connects to an Android device working as the uploader with xDrip installed. I'm trying to keep everything isolated to the Pi, since this doesn't need to be portable.

Is this possible? Am I properly understanding what your project does, and do you know of anyone else doing it this way?
Thanks! -Ben

Manifest unknown

I'm running latest Raspberry Pi OS and I've installed docker, docker-compose and rpi-nightscout, however when running docker-compose -f docker-compose.armv7.yml up -d I get the error manifest for dhermanns/rpi-mongo:2.6. not found: manifest unknown: manifest unknown

I'm guessing this has to with armv7 (32 bit)?

docker-compose up not possible

All steps worked fine so far, but when i try "docker-compose up -d" i get:

/usr/local/bin/docker-compose: line 1: $'\r': command not found
/usr/local/bin/docker-compose: line 2: html: No such file or directory
/usr/local/bin/docker-compose: line 3: head: No such file or directory
/usr/local/bin/docker-compose: line 4: meta: No such file or directory
/usr/local/bin/docker-compose: line 5: title: No such file or directory
/usr/local/bin/docker-compose: line 5: middot: command not found
/usr/local/bin/docker-compose: line 5: /title: No such file or directory
/usr/local/bin/docker-compose: line 6: meta: No such file or directory
/usr/local/bin/docker-compose: line 7: style: No such file or directory
/usr/local/bin/docker-compose: line 8: body: command not found
/usr/local/bin/docker-compose: line 9: background-color:: command not found
/usr/local/bin/docker-compose: line 10: syntax error near unexpected token (' 'usr/local/bin/docker-compose: line 10: color: rgba(0, 0, 0, 0.5);

can you give advise pls?

Installation issue with Rpi 1

Thx for this simple installation docker.
Using the same instructions :

  • On rpi1 :

nightscout_1 | Error connecting to MongoDB: {"name":"MongoError","message":"connect EHOSTUNREACH 172.17.0.3:27017"} - retrying in 51 sec

  • On Rpi 2 : No issue.
    Could be HypriotOS armv6 vs armv7 difference.

Unsupported config option for service service: 'nightscout'

I'm not sure if this repo is still being monitored. With the latest changes in Heroku some people might start trying a self hosting option os nightscout, including me... But I run into some problems with it.

I followed the steps listed in read.me (please note that I'm not an expert on linux or docker, so just followed the steps as they are listed, no changes), but ended up with the error listed in the title of this issue.

  1. First of all, I installed the Hypriot OS in my old Raspberry Pi 2. No problems with this, other than I couldn't find the IP address using Zenmap as documented in the instructions and had to use my router list of connected devices. Not a big deal though....
  2. I then installed docker-compose, and here I honestly need to admin that I didn't read the content of the link provided, and just executed the scripts documented in the readme of this repo.
  3. I then cloned the repo, updated the config (API Key, alarm treasholds, etc.) and finally run docker-compose up -d

At this point I get the error in the title. I initially thought it could be because of something that I changed in the yml config file, so I deleted everything and cloned the repo once again, and this time didn't change anything at all in the config. Run again the docker-compose command and got the exact same error.

Any help with this error would be really appreciated!

Thanks,
Sergio

RasPi Zero (W)?

Would this also run on a RPi0(w)? It's supposed to provide a hardware platform almost identical to the RPi1 (perhaps 2), and would be a great space-saver...

After reboot rpinightscout_mongo_1 keeps restarting

Hi dhermanns,

rpinightscout_mongo_1 keeps restarting

Everything works fine on the first install, but after a reboot nightscout is unable to connect to the database it seems

docker ps:
Restarting (100) 46 seconds ago rpinightscout_mongo_1

Thanks for your amazing work btw

BZ-Values

Hello, I did the project once on a Pi 1 and on a Pi 3 according to your description "rpi-nightscout". But on the Pi1 it doesn't work at all, and on the Pi3 it runs, the start page can be opened, the profile has to be edited, but no BZ values are displayed. The only things displayed are manual actions in AAPS. If you shut down the Pi and restart, the page is no longer accessible. Do you know a solution?

Greetings Harry

Translated with www.DeepL.com/Translator (free version)

Error response from daemon

Screenshot 2022-09-07 112342
Screenshot 2022-09-07 112722
I am using armbian arm64. I tried by default and when I delete the mongo part this happens:
Screenshot 2022-09-07 113124
sorry for bad English if any (i am bulgarian)

Port 1337 is not opened after deployment

docker ps

CONTAINER ID IMAGE COMMAND CREATE D STATUS PORTS NAMES
cb123e8eb876 dhermanns/rpi-nightscout:latest "docker-entrypoint.s…" 14 sec onds ago Restarting (1) 1 second ago rpinightscout_nightscout_1
0ca801edb4e6 dhermanns/rpi-mongo:2.6.4 "/opt/mongodb/bin/mo…" 16 sec onds ago Up 13 seconds 27017/tcp rpinightscout_mongo_1

I tried Pi1 and Pi2, but I still can't.

Error after reboot Pi

After rebooting the Pi I get this error:

Oops - Nightscout is having trouble

Don't panic, we can work this out! This happens to the best of us.

Check the errors below and then refer to the troubleshooting documentation.
Errors occurred during startup:

Unable to connect to Mongo
{"stack":"Error: MongoDB connection failed! Double check the MONGODB_URI setting in Heroku.
at /home/node/app/lib/storage/mongo-storage.js:63:32
at processTicksAndRejections (internal/process/task_queues.js:97:5)","message":"MongoDB connection failed! Double check the MONGODB_URI setting in Heroku."}

Anny idea?

Before rebooting it works fine.
It looks like the Mongo db is not running.
How to try to start the db

Add environment setting

Surely a newbie question :

I try to add some environment setting for plugins :
I add to docker-compose.yml :
ENABLE: careportal cob basal

But have some errors. How do you set these variables ? Thx in advance

cannot connect to server

Hi!

thanks for this work! I followed the instructions but get stuck when I try to connect to the server http://x.x.x.x:1337. It simply doesn't exist.

edit: I realize that it might be connected to the browser, replacing http always with https. Whitelisting it doesn't help. Is there a workaround?

this is what docker ps shows:

HypriotOS/armv7: pirate@black-pearl in ~/rpi-nightscout
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2604de9cc995 dhermanns/rpi-nightscout:latest "docker-entrypoint.s…" 15 minutes ago Up 15 minutes 0.0.0.0:1337->1337/tcp rpinightscout_nightscout_1
a180f24bbb7d dhermanns/rpi-mongo:2.6.4 "/opt/mongodb/bin/mo…" 15 minutes ago Up 15 minutes 27017/tcp rpinightscout_mongo_1
d6899398fc3d hypriot/rpi-busybox-httpd "/bin/busybox httpd …" 33 minutes ago Up 33 minutes 0.0.0.0:80->80/tcp distracted_wilson

Update for Nightscout 0.9 use Dev branch and including how to set options

This is an awesome ... going to attempt to deploy on a local Pi Zero I have....
One issue is for you to make it so that we can grab a newer version of NS and also if in the instructions you could note where the files are that configure NS so that we can set the various options (such as ENABLE Openaps) etc.

dhermanns/rpi-nightscout:latest keeps restarting

(Hi there. First of all a shoutout to the developer for giving so many people around the world a chance to have this low-cost solution to an otherwise complicated problem. Big thumbs up !)

I have an RPi 3 that has been hosting a nightscout instance for a friend of mine since last August.
I noticed the webpage was down this afternoon. The "dhermanns/rpi-nightscout:latest"-container is stuck in a restart loop.

I see this in the logfile:

Setting up new connection to MongoDB
the server/replset/mongos options are deprecated, all their options are supported at the top level of the options object [poolSize,ssl,sslValidate,sslCA,sslCert,sslKey,sslPass,sslCRL,autoReconnect,noDelay,keepAlive,connectTimeoutMS,family,socketTimeoutMS,reconnectTries,reconnectInterval,ha,haInterval,replicaSet,secondaryAcceptableLatencyMS,acceptableLatencyMS,connectWithNoPrimary,authSource,w,wtimeout,j,forceServerObjectId,serializeFunctions,ignoreUndefined,raw,bufferMaxEntries,readPreference,pkFactory,promiseLibrary,readConcern,maxStalenessSeconds,loggerLevel,logger,promoteValues,promoteBuffers,promoteLongs,domainsEnabled,keepAliveInitialDelay,checkServerIdentity,validateOptions,appname,auth]
GIT HEAD 9f7de63
Successfully established a connected to MongoDB
Mongo Storage system ready
/home/node/app/node_modules/mongodb/lib/mongo_client.js:433
throw err
^

SyntaxError: Error parsing /home/node/app/node_modules/jsonwebtoken/package.json: Unexpected token � in JSON at position 1042
at JSON.parse ()
at readPackage (module.js:116:52)
at tryPackage (module.js:126:13)
at Function.Module._findPath (module.js:208:20)
at Function.Module._resolveFilename (module.js:525:25)
at Function.Module._load (module.js:476:23)
at Module.require (module.js:568:17)
at require (internal/module.js:11:18)
at Object. (/home/node/app/lib/authorization/index.js:4:11)
at Module._compile (module.js:624:30)

I will admit I tried an apt-get update && upgrade right before the troubles started. This spits out:
The following packages have unmet dependencies: docker-ce-cli : Breaks: docker-ce (< 5:18.09) but 18.06.1~ce~3-0~raspbian is installed

Thanks for taking the time to look into this !

Upload not possible from xDrip+ / Glimp

I set up nightscout just as in the instructions described. I can access it via browser perfectly fine, but if I try to upload it by xDrip+ the error says "Please ensure careportal plugin is enablen on nightscout for treatment upload". I checked already and even gave all permissions to role "careportal", but no effect. I provide the address in this format: http://<api_secret>@<ip_address>:1337/api/v1/

The format in the instructions causes xDrip+ to show an error message about invalid format/characters. The API consists of legal characters only.

When providing Glimp with the address and the API, it says "Not Found!".

Using existing certificate

Hi,
Iam trying to use an already existing ssl certificate from rapidssl. But if iam entering the path to the private key and full server chain I cannot access nightscout anymore.
The site isn’t available, but in docker container ls the port is opened.
do you know what’s wrong ?

Error connecting to MongoDB

Hi there,

when running a fresh docker-compose up

I get Error connecting to MongoDB: {"name":"MongoNetworkError","errorLabels": "TransientTransactionError"]} - retrying in 3 sec

I'm using a Raspberry Pi 4 - 4GB with…

$ uname -a
Linux pi4 4.19.118-v8+ #1311 SMP PREEMPT Mon Apr 27 14:32:38 BST 2020 aarch64 GNU/Linux

It might have something to do with my v8+ Kernel, which I got after a recent update.

I attach my docker-compose logs
docker-ns.log

Do you have any suggestion how to deal with this error? I'm not able to start the application.

MongoDb with Nightscout

Working through the instructions on Nightscout with a Raspberry PI 1 it is not clear how to load the MongoDb. It's identified as a requirement on the ReadMe but is not clear in the set of procedures below that. When I run the docker logs it is clear that there is no connection possible to the MongoDb. Any assistance welcome.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.