This codebase contains FarmBot's web based user interface, a RESTful JSON API, and a Dockerized MQTT server. The API stores data such as user account information, farm designs, sequences, authorization tokens, and a variety of other resources. The MQTT server facilitates realtime messaging from the browser to the device.
No. If you are an owner of a FarmBot kit, you do not need to download or self-host this software. FarmBot Inc provides a free-to-use instance of the web app at my.farm.bot which we recommend to all FarmBot owners. Get started with these instructions.
Hosting your own server requires an understanding of how Ruby on Rails applications (and databases) operate. Self-hosting the web app will not provide you with a more stable user experience and may result in accidental security issues or data loss. There are only a handful of use cases where running a third party server may be necessary:
- Development of new features, bug fixes, and pull requests.
- Independent security research and auditing.
⛔ Technical support for self hosting is beyond the scope of the basic technical support that FarmBot Inc provides with each FarmBot kit. If you or your organization pursue self hosting, you will need to operate your server independently of FarmBot Inc technical support. We do not have the resources available to help novice developers learn to setup servers, environments, configurations, or perform basic Linux command line instructions.
We recommend all self hosted installations be installed on a fresh Ubuntu server using the instructions provided in ubuntu_example.sh. These instructions are regularly checked and updated to ensure they work. At this time we cannot provide assistance for running the web app in different environments.
If you raise an issue indicating that you haven't followed the setup instructions, looked through past issues, or done a cursory internet search for basic help, expect the issue to be closed and we'll point you to the setup instructions. Again, if you do not have at least intermediate Linux and Ruby experience, please use my.farm.bot. Running a self-hosted server is not easy!
Your server won't run without setting ENV variables first. Set the ENV variables directly from your shell / server management tool or by writing a .env
file in the server's base directory. See example.env for a list of all the variables that must be set.
Encryption keys will be auto-generated if not present. They can be reset using rake keys:generate
. If ENV['RSA_KEY']
is set, it will be used in place of the *.pem
files. This is useful for environments like Heroku and Docker, where file system access is not allowed.
We update main
roughly every 2 to 4 weeks. If you self host the application you will need to manually update the software to get the latest updates. Technical support for self hosting is beyond the scope of the basic technical support that we provide with each FarmBot kit.
See our documentation for a list of example API requests and responses. If you wish to write an add-on application that uses the FarmBot API, please let us know in an issue. We are happy to answer any specific questions you may have.
There are many ways in which you can contribute to the FarmBot web app:
📝 Browse the open issues and make thoughtful suggestions or just let us know if something is particularly important to you.
📚 Check out our developer documentation for writing add-ons and plugins for FarmBot.
🔍 Search the repository for TODOs. Sometimes these are simple tasks suitable for new contributors.
🌐 Help translate the web app into your language! There are FarmBot owners in over 90 countries who speak a wide range of primary languages.
🔒 Responsibly disclose a security vulnerability. We take security seriously and value the input of independent researchers.
💡 Open an issue to report a non-security related problem or propose a new feature or improvement idea.
Thanks for your interest in internationalizing the FarmBot web app! To add translations:
- Fork this repo
- Navigate to
/public/app-resources/languages
and run the commandnode _helper.js yy
whereyy
is your language's language code. Eg:ru
for Russian. - Edit the translations in the file created in the previous step:
"phrase": "translated phrase"
. - When you have updated or added new translations, commit/push your changes and submit a pull request.