dhermanns / rpi-nightscout

CGM Remote Monitor aka Nightscout for the Raspberry Pi 1/2.
35 stars 49 forks source link

Unsupported config option for service service: 'nightscout' #32

Open sergiotome opened 2 years ago

sergiotome commented 2 years ago

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

sedy89 commented 2 years ago

Hi, I was trying the same the last couple of days and the problem is that rpi 2 (and below) don't have a 64bit architecture. Starting with RPi3 it is possible to run this project as described. In fact, there is a section in the Readme which informs about that, and it points to the 32bit docker compose file that should work.

I think this requires you to:

  1. Flash the official Rpi OS
  2. Setup the environment for docker/docker compose
  3. Use the docker compose file for 32bit which will use cgm 14.0.6 version (because of the dependency to mongodb < version 4, starting with version 4 it requires 64bit)

I had a look at this too, but I got another issue after setting it up and I did not investigate further...

sergiotome commented 2 years ago

Thanks for the reply @sedy89 , I got confused with the very first sentence that indicates this is for Raspberry PI 2/3/4.... I do have a Pi 3 also, but I use it for something else, so I'm not sure if I want to mess it up with this now. I'll find some time to play around with the instructions for 32bit and see how far I get