Hi, I want to insert some Python script into the farmbot OS so that I can control some extra tools to assist farmbot with its raspberry pi. I added the script to a new file inside the source code however does not find a way to produce an img file so that I can install the modified version of farmbot OS into my farmbot. Could I just simply convert the source code into an img file with Dockerfile or other tools are needed?
Python3 source has been deprecated in favour of Lua code.
A FarmbotOS distribution artefact is a self-contained physical disk image file, not a container.
FarmbotOS is constructed as a Nerves image (Buildroot Linux + Erlang OTP + compiled Elixir)
(see Nerves Project · GitHub)
The FarmBot Inc online Documentation has more detail
FarmBot OS | FarmBot Developer Documentation
thank you for your reply.
so what language does it support, could I code with Java or I have to learn lua?
thank you for your reply.
so what language does it support, could I code with Java or I have to learn lua?
By the way, I followed instructions on farmbot-OS CONTRIBUTING.md and tried to run run_all.sh, It fails with an error: Error 1
could not compile dependency:vintage_net_wifi. However when I use mix depts.get to check dependencies inside mix.exs, vintage_net_wifi 0.10.9 dependency is already up to date. This really confused me.
@dikaiz For contributing innovations to the core FarmbotOS you’d likely be using Elixir (
maybe some Erlang as well ).
Depending on your skills you might see whether you could bundle your functionality into a Mix dependency package. You’d be using C/C++ and Elixir mainly in that situation.
For contributing useful tools or routines for enhancing Farmbot functionality, you’d likely be using Lua code to run in the so-called Lua Sandbox inside FarmbotOS.
There’s currently no Java VM support in the Buildroot Linux environment ( but could possibly be added ).
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.