For a weather station integration, I need to modify RTL433.
I don’t understand how to compile RTL433?
I’ve retrieve all sources of RTL433 on my own github and configure HA to point to this github as complementary module.
However, I’ve tried to make some changes in source code and installed it from this github but my changes seems to not be taken into account.
After you clone the add-on repo, you need to modify all the references to refer to your GitHub URL, and upload your own container image. Then you need to add your GitHub as a repository in HA.
The code is compiled as part of the container image build. You can see the normal add-on is hard-coded to a specific tag, which you would need to modify or override.
# Build a specific commit or tag.
ARG rtl433GitRevision=22.11
RUN git checkout ${rtl433GitRevision}
WORKDIR ./build
RUN cmake ..
RUN make -j 4
If you use the rtl_433-next add-on, then it should just pick up the latest change from the master branch. That would support a different version than the hard-coded tag, as it provides the build arg to override:
I have a lot of difficulties with all those configuration
I’ve changed the Git Revision, however, in config.json, it seems that a pre-built file is called instead of compiling my own release on the line “image” and I don’t understand how to regenerate this image locally?
unfortunately, Github workflow and packaging are too arcane for me, I’ve tried all sort of things but I haven’t been able to make it compile.
if I let the “image” line in config.json, HA won’t recognized the package, but if I let him, HA download the package from the adress without compiling anything.
Do you have a way to force HA to compile RTL433 from my sources?
Compiling the code is done during the container build. The application is packaged in the container image. HA is not doing anything with your source code.
I think you’re going to need to either modify the GitHub workflow to build the images automatically, or you’re going to have to build the images locally and push them to your own GitHub account.