neolink
neolink copied to clipboard
Can this app co-exist with HA?
Hi there,
Great work on this application by the way, you seem to be the only person that has figured out a solution to this issue.....and apologies for my relatively noob question.
I'd noticed someone else is also looking to deploy your software to bridge their ipcamera to Home Assistant, but would your software require a dedicated rpi? Or could it be run on the HA pi.
My rpi4 is utilising little to no resources so far and this would be an ideal outcome, next question is of course, how do i go about installing it on the same pi?
I presume you installed HA as a preinsalled image rather than as a python package.
This HA image is just a normal Linux OS thats already been setup. The first step you'd need to do is get more direct access.
In the HA settings there's a way to enable SSH. Please check the HA guides and documentation to learn how to enable SSH on the image.
Once that's done SSH into the rpi and follow the guides in this repo under docs/unix_setup.md
.
Test the neolink works at this point using vmd.
Then follow the guide in the same folder about setting up a service.
Once done we can connect HA to neolink as an rtsp camera.
Hi Andrew,
You've presumed correctly and I already have SSH enabled as I used it to install some of my very early custom installs.
Thank you so much that's been really helpful.
Regards,
Ricci
On Fri, 27 Aug 2021 at 09:13, Andrew King @.***> wrote:
I presume you installed HA as a preinsalled image rather than as a python package.
This HA image is just a normal Linux OS thats already been setup. The first step you'd need to do is get more direct access.
In the HA settings there's a way to enable SSH. Please check the HA guides and documentation to learn how to enable SSH on the image.
Once that's done SSH into the rpi and follow the guides in this repo under docs/unix_setup.md.
Test the neolink works at this point using vmd.
Then follow the guide in the same folder about setting up a service.
Once done we can connect HA to neolink as an rtsp camera.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/thirtythreeforty/neolink/issues/202#issuecomment-906803952, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQU24FUEBK3ZJXJHDZUNGXLT63DAXANCNFSM5C4FMD3Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Let me know how it goes. Maybe you could document your steps so we can add it to the documentation?
Not overly well so far, it looks like I have a different directory structure in my HA on Raspi.
The commands aren't working overly well, and I have tried substituting folders for the standard Home Assistant custom_components folder but with little joy. I have been able to unzip the neolink package but the sudo chmod command isn't working. Probably beyond my technical capabilities.
Send me the screenshot of the error and I can probably diagnose it for you.
I assume be differnt file structure you mean missing /usr/local/bin
If that's the case you can try /bin
that should be present
So I looked into it and haos has changed since I last used it. It now uses BuildRoot as its OS and has the ha as a docker image in that
Do you know how to add a docker component to HA?
No I'm actually trying to research that now, I can see plenty of resources for Docker on Windows or Mac, but nothing for deploying on HassOS.
Have done some further research and I was playing around with the idea of adding the Portainer Add-On to HA, then installing Neolink, but then I found some documentation for it and Home Assistant don't recommend nor will they support adding additional containers or installs to the HassOS unless it's via Custom Components or Integrations. I even went to eh extent of reading this: https://community.home-assistant.io/t/tutorial-for-creating-a-custom-component/204793 but then come to immediate realisation that I am beyond my depths. :( Looks like I'm at a dead end but thank you for trying to help Andrew.
I did a little reading too and it seems to be all geared towards writing an integration. These integrations are in python which makes it a bit of a snag for neolink to integrate with since it's in rust. One day I hope to have working c and python bindings in neolink and I might try and work up an integration then for my own homeassistant. But that's a long way away
My homeassistant is not the hasos but it's a standard rasbian I installed ha on. So I've got a bit more control of it making it easier install neolink and other fun stuff on it too.
Sorry it seems difficult to do for the haos version :(
No apology necessary Mate, hats off to you for writing this, I read your blog that shared your experience and was truly impressed. I'm now thinking of purchasing a used pi and running Neolink on its own, its a fine line though....if I spend too much on hardware I could just as easily migrate to a cam with RTSP. May reach out to you for help with that if I find one. :)
The blog post is @thirtythreeforty's which I agree is a nice read.
You could just use your current pi but change it from haos to Debian and install ha on that. Just need to back up and restore your haos stuff first. Still a new pi might be easier if you don't mind the expense. Your call.
Curious, would it be possible to run your app on a standalone box and then use this library https://github.com/fwestenberg/reolink_dev to read it from HA? Also any chance your library will work on an argus 2?
I don't think that integration will work in the way your suggesting (if I understand what your saying). But if you run it on a standalone box you can just add it as a generic rtsp camera instead of using that reolink integration.
We are currently working on Argus 2 support, it should work once #199 is merged.
I created an Add-on for HAOS that runs neolink. Cannot confirm 100% that its working due to lack of according Reolink cam. Cam is on its way to me. Let me know if you are interested in the Add-on. I will maybe donate that to the HA community.
@dm82m Did you get your issue with file not found sorted. If you can ensure that the file exists (which should be based on what I saw) then it is likely the interpreter of your os is in a different location then where it was when it was built.
Your choices are build it yourself or use patch elf to change the expected location of the interpreter in the neolink binary or use the same os it was built with (Debian).
Yes it’s solved. I switched from alpine container to Debian. Add-on starts neolink. Plugin is working, I would label it as experimental. You need to place the config named "neolink.toml" into "/config/addons" folder.
https://github.com/dm82m/hassio-addons