Nanit Baby Monitor Integration

First run with docker compose configured, getting the following error:
WRN Failed to request local streaming, awaiting stream health check error=“Forbidden: Number of Mobile App connections above limit, declining connection”

Searched here and docs but didn’t see a cause. Did I miss something?

What seems to be working for me, is most of the time resetting the container. However i came across a similar situation, where just rebooting didn’t work. One of my cams was offline for over a week (only the videofeed in the container, the actual Nanit app worked fine). What seemed to be working is power cycle the device, so turn it off and on. after that it worked fine again.

If someone can help me out and just explain how exactly im supposed to run this command in docker…

I installed docker in windows

I can get dockers to run using the test commadns like the helo world. However when i try and run the copy and past command with my login info and IP for the host computer it comes back and gives me an error saying wrong docker command.

Am i doing this wrong? can this not be done within windows?

C:\WINDOWS\system32>docker run --rm
docker: invalid reference format.
See ‘docker run --help’.

It appears Nanit will force everyone onto 2FA soon - they already are not allowing you to disable it if you enable it (I did without thinking about this integration and it broke). So make sure you don’t enable it if you want to keep using this integration.

1 Like

Thanks for the heads up. Hopefully a workaround will be available.

Hi all – totally embarrassed to ask, but can someone help navigate me to get the local feed running via docker?

I installed docker on my Windows machine.
Opened Command Prompt as admin, and used

  docker run --rm \
  -e [email protected] \
  -e PASSWORD=abc123 \
  -e NANIT_RTMP_ADDR=xxx.xxx.xxx.xxx:1935 \
  -p 1935:1935 \
  registry.gitlab.com/adam.stanek/nanit:latest

But I’m getting an error:

docker: invalid reference format.

I must be doing something wrong, but I honestly have no idea what. Should I be using powershell instead? What am I missing??

any help would be really appreciated.

@sirdizzle I don’t think backslash will work as a line continuation in Windows. Maybe in PowerShell, but I’m not sure. Maybe try removing all the newlines and backslashes and make the command a single line.

Thanks @binarymelon ! I got it working further with ^ rather than a backslash.

now getting another issue.

FTL Unable to fetch auth token error="Post \"https://api.nanit.com/login\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"

I am having the same exact error as @sirdizzle If anyone knows how to proceed please advice I am somewhat of a beginner.

Thanks,
Tommi

I was able to get passed this error by using Docker Desktop for Windows Edge after a quick google search.

Ohhh I’m trying to do it off of a Raspberry pi. I guess ill have to try from laptop tomorrow.

Were you able to get to the stream?

Tommi

Hello everyone, I am stuck at the following step.

"WRN No stream publisher registered yet, closing subscriber stream baby_uid=xxxxxxxx client_addr=10.0.0.153:52940"

I ran the "docker port c199e428c759 1935/tcp -> 0.0.0.0:1935"

and it shows the port open. Don’t really know what else to try.

Tommi

I don’t get that error message on my raspberry pi.
Seems like the stream should be working, but VLC is saying:

Your input cant be opened: 
VLC is unable to open the MRL 'rtmp://xxx.xxx.xxx.xxx:1935/local/{redacted}'. Check the log for details.

I can’t find a way to get the streaming. Did you manage to get the streaming showing on VLC?

I might be doing something wrong, most likely on the -e NANIT_RTMP_ADDR=xxx.xxx.xxx.xxx:1935
I have tried my Router IP, My raspberry Pi IP, My camera IP.

No luck so far. I keep getting
WRN No stream publisher registered yet, closing subscriber stream baby_uid=XXXXXXXX client_addr=10.0.0.153:60898

NANIT_RTMP_ADDR should be the ip of the nanit cam as far as I’m aware.

I tried it and still get the same WRN

It should be the LAN IP of your pi or wherever is hosting the container.

1 Like

Thank you! That was my issue. I now have it working as expected. Huge huge thanks to everyone.

I just set up a Nanit camera and tried to run the docker container, but got a 401 due to the 2FA. Tried to turn it off in the app, but it won’t let me. Hopefully there will be some kind of workaround soon.

If you’ve just set it up you can probably make another account within nanit and make sure you don’t enable 2FA on that one (not sure if they are forcing yet on account creation)

follow up on this - just email their help desk and they can disable it :grinning:

2 Likes