is this still working ? whenever i do a get on babies I get
“message”: “not authorized”
is this still working ? whenever i do a get on babies I get
“message”: “not authorized”
Nvm got it working, is there any ways to use the rest of the sensors (motion, temp, humidity, sound, etc) using this ?
Can this be done on HA OS ? since I have the home assistant yellow, I’d like to keep everything on that box.
Yep. I’m running haos on a vm and it works.
I mean VS Code, node, and npm all on HAOS
Apologies for the misunderstanding. No, I installed those on my laptop.
Which guide did you follow to get this working? I’m a bit confused on where to start.
Thanks!
Edit: Found this thread but can’t get this up and running. Looks like 2FA requirement killed it
Edit 2: Ok, I got this working! For those interested here is what I had to do:
docker run --rm \
-e [email protected] \
-e NANIT_PASSWORD=PASSWORD \
-e NANIT_RTMP_ADDR=IPOFDOCKERCONTAINER:1935 \
-e NANIT_REFRESH_TOKEN=REFRESH_TOKEN \
-p 1935:1935 \
registry.gitlab.com/adam.stanek/nanit:dev
camera:
- name: Nanit
platform: ffmpeg
input: rtmp://xxx.xxx.xxx.xxx:1935/local/{your_baby_uid}
I haven’t explored the mqtt features or the docker-compose but I will and report back.
Edit 3:
Wow! Nanit Baby Monitor Integration - #301 by zone99 → very simple setup.
Wow just read through this whole thread and this is awesome, great work to everyone involved. Is there any word on when this may be added to HACS? I am trying to set it up based on the advice here but I am having some trouble, and it would be nice for it to be an easy HACS install.
With that said, the problem I’m currently having is that I setup the docker container and my configuration.yaml file as instructed in the previous post, but now in my container log I get the following error:
26 Jul 23 19:15 UTC INF Application started gitversion=22bd4b27
26 Jul 23 19:15 UTC INF No .env file found. Using only environment variables path=/app/.env
26 Jul 23 19:15 UTC INF Setting log level to info
26 Jul 23 19:15 UTC INF Directory created ./video dir=/app/data/video
26 Jul 23 19:15 UTC INF Directory created ./log dir=/app/data/log
26 Jul 23 19:15 UTC INF Authorized token=********************************************
26 Jul 23 19:15 UTC INF Retreived refresh_token=***********************************************
26 Jul 23 19:15 UTC INF Fetching babies list
26 Jul 23 19:15 UTC INF RTMP server started addr=:1935
26 Jul 23 19:15 UTC INF Successfully connected to MQTT broker broker_url=mqtt://hass:Ranger03261992!@xxx:xxx:xxx:xxx:1883
26 Jul 23 19:15 UTC INF Connected to websocket url=wss://api.nanit.com/focus/cameras/xxxxxxxxxxxxxxxx/user_connect
26 Jul 23 19:15 UTC INF Requesting local streaming target=rtmp://xxx.xxx.xxx.xxx:1935/local/<baby_id>
26 Jul 23 19:15 UTC WRN Too many app connections, waiting for local connection to become available... error="Forbidden: Number of Mobile App connections above limit, declining connection"
Can anyone help resolve this issue?
Getting error=“websocket: bad handshake” after I authenticate with Nanit.
I’m having this same handshake error. Anyone have some suggestions?
Got it, had to set up HA on hyper v, rpi just wasn’t cutting it. I see the video now, thank you everyone.
For those just finding this thread, the Scrypted plugin works great in HAOS with Scrypted as an add-on. Make sure you use the local terminal inside the Scrypted add-on, create a second admin user with a password, and remove the ScryptedInterface.Battery
from the main.ts before building it. Then, I had to hardcode in my username/password, but it works great.
Has anyone implemented the scrypted plugin running outside of HAOS? I have a scrypted server separate from HA and would love to get this functioning
Trying to do the same. I do not have MFA enabled, but I get a 401 unauthorized error when trying to log in from the Scrypted instance.
Almost got this working. I have the steam on my remote server, but trying to bring it into HA. Can anyone help with the following instructions from the writeup?
- Under the camera, make sure the rebroadcast plugin is enabled.
- In the Camera settings go to the Stream and there should be a “RTSP Rebroadcast URL” box. Copy that value
Is this in Scrypted? If so, any direction on where to find these? When I access the camera, I can get the stream, but I don’t see anything about RTSP Rebroadcast or a rebroadcast plugin.
I got the same issue as it was not clear. You need to install the plugin with the same name that is available in scrypted and then it gives you the stream tab. Until you do that there is no stream link or the options do not show.
Scripted, great solution, but I have approx 15s delay, is there a way to reduce it?
Forgive me for not catching it but is there a reason to not put it as a HACS plugin?
If the delay is in the HA front end, take a look at go2rtc.
I am following your instructions and am stuck on the hardcoding the username and password to get past the npx scrypted login error. In the Scrypted Home Assistant add-on’s terminal (like you suggested using) I am only able to open the index.js file using the “open” command. This is of course after navigating to the cd scrypted-nanit/node_modules/@scrypted/sdk/bin folder.
I have tried nano, vim, vi, and ed to open the file and edit it but to no avail. A more detailed explanation would be MUCH appreciated. Thanks in advance!
I just opened the file in VS Code, made the change, and saved.