Hi forum, I have been following the VanPi project for a while and I am finally about to start tinkering with my relayboard. I am still waiting for a Raspberry Pi to arrive in my mail, therefore I couldn’t yet try out the system itself.
One thing I noticed though is that, with the current setup, custom mods to the open source software don’t appear to be straightforward because of the lack of a sane version control system (please correct me if I’m wrong).
Since I know I will want to modify flows myself, but also be able to keep up with updates coming from the main repo, this is the ideal workflow I envision:
- I want to fork the main repo so I can build custom functionality on it through Node RED
- I want to be able to occasionally open a PR to the original repo, in case I should develop anything that might be of interest to the rest of the community
- I want to be able to merge changes from the main repo, in order to not miss out on updates
I did some reading (I’m a complete newbie to Node RED, Raspberry Pi and everything else) and I found out the standard solution for this is Node RED’s “Projects”.
So I set out and built a little wrapper that should allow me to do what described above. I packaged it into a small repo with a README detailing how to set things up.
I’m honestly not sure if this is anything new or if everyone is just doing it on their own. I couldn’t find clear guidelines in this forum or in the docs, so I thought I’d share what I did.
The next steps would be to somehow parametrize the init
and update
scripts, so they would pull files from one’s fork rather than the main repo - the reference to which is currently hardcoded. I’ll get to that once I have the hardware those scripts execute on.
Happy for any feedback / suggestion.