-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Home Assistant Add-On #6
Comments
Hello @AnthonyPluth , Thank you for your contributions. From the feedback I have received so far, many users uses this project as a standalone container in some remote machine, like myself. I have my HA instance running in a NUC in my Living Room and I have an Orange Pi running this docker container in my basement. That Pi in the basement doesn't have HA. How this would work been a HA Add-On in a machine without HA? Unless I create some sort of API to make it possible to configure it remotely what would open a new world of work and security problems that I don't want to deal with... |
@allangood It should be possible to use the same docker image for both a standalone service and an Add-On. By doing this, there shouldn't be any change in maintainability |
I don't have experience creating HA Add-ons. |
Yeah sorry about that, that was a bit aggressive. Now that I understand your use case, I think a better solution would be to add the option to configure via json with the default being yaml |
Let me create a new branch and we can work on this together, what do you thing? |
let's do it! |
I have been fixing a few problems reported in the last days, the project has changed a bit since the last PR. A new branch |
Merged your PR and merged main with ha-addon branch. Thank you for your contribution! |
Travis is happy again. Let's see how it goes! |
Finally I've managed to fix my Github action to build multi-arch containers using only new actions. All deprecated action have been removed. |
@AnthonyPluth , the first image has been pushed to Dockerhub and it is ready to be tested! https://hub.docker.com/r/allangood/rtlamr2mqtt/tags?page=1&name=ha-addon Thank you very much for all your effort! :) |
@AnthonyPluth ,I don't have or use HASSIO, could test the image, please? |
Sorry for the delay - this does work, we just need to update the json config schema to match the updated yaml config. I'll try to get a PR in for this tomorrow. One more thing - you don't need to build an image for the addon; this gets built locally when installed |
Works just fine - Hassio Home Assistant OS 6.4 supervisor-2021.09.6 on core-2021.9.7 Took the directory in this branch https://github.com/allangood/rtlamr2mqtt/tree/ha-addon/rtlamr2mqtt-addon and dropped it in add-ons. I had to update config.json to (was complaining about normal,test) loaded it up and away she went.
I assume we are terminating and just relaunching after 5 mins?
|
Yes, this behavior can be controlled by the |
Thank you very much @AnthonyPluth for your contribution! Regards |
Oh man, you two are doing exactly what I was working on today. Small world, I guess. I was looking at the config.json and the dockerfiles. I will try your add on shortly, but I just wanted to point a few things out I saw. These are either very clever critiques, or most likely, something you know that I don't 😄 In the config.json, you have uart: true, udev: true and usb: true. In the testing I've done, I only needed usb: true. Are those other permissions needed for other platforms? Other sdrs? The docker file I wrote uses
That's only for the add on. I wasn't planning on making a standalone docker image. I hope I can quit doing it. It looks like you two have done a lot of the hard work already. I am just hoping something I learned in the last few days is useful somehow 🤷 |
@jeffeb3 Some of the changes I made were inspired by this repo. With that said, I'll defer to @allangood regarding using tarball over go |
hi @jeffeb3 , the main reason for downloading the tar.gz is because a problem in the rtlamr (see: bemasher/rtlamr#57). During my tests I've experienced the same issue and the CPU was pinned during the execution. The first try to fix this was when I've introduced the As said by @AnthonyPluth , the addon build itself in the client machine, using the native tools. Probably the problem would not happen this way. My first version had both |
@jeffeb3 you can check my first Dockerfile version here: |
Great. You are all over it then. I'll keep poking at it and hopefully I can add value to the project. |
@jeffeb3 your question made me to investigate this a bit further, I am doing more tests with compiling everything (the old Dockerfile) and see if the error persists after I changed the Github actions to ditch dockerx and use qemu instead. I may revert the Dockerfile to what it was before! :) Thank you for your suggestion! |
Would you open to making your project installable as a Home Assistant Add-On? The amount of work to do so is pretty minimal and if I can get a better understanding of your use-case, I think I can put this together in a way that works with your existing workflow.
The text was updated successfully, but these errors were encountered: