AutoGros Docs
  • 👋AutoGro Official Documentation
  • Overview
    • 💡About AutoGro
    • ✨Getting Started
      • 🛜 Setting up a static IP (Optional)
  • Setup Instructions
    • 📪Running the code
      • 🥬 Auto pH balance
    • 📎File Index
      • 📒AutoGro Logs
  • ⚡Wiring Schematics
    • 🔡Power Evaluation
  • 🛠️Parts List & Hardware
    • 🏗️3D Models
    • 📓Part List
  • 💻Backend Data Solutions
    • 🔵Discord Bot Development
    • 📲Web App & API Development
    • 🤖Ai Development
  • 🌐Join Our Community
    • Discord
    • LinkedIn
    • Twitter
    • AutoGro Github
  • 👷‍♂️Meet the Team
Powered by GitBook
On this page
  • AutoGro runtime configuration
  • Stopping and starting the code
  • How to Start / Stop AutoGro
  • Run this command to kill the scripts and processes:
  • Run this command to restart the scripts and processes:
  • Run this command to see how many instances of AutoGro are running
  1. Setup Instructions

Running the code

A step by step guide explaining how to use the software

Previous🛜 Setting up a static IP (Optional)Next🥬 Auto pH balance

Last updated 1 year ago

AutoGro runs as the Pi user (default user for Raspberry Pi installs). We recommend you leave your machine named Pi.

AutoGro runtime configuration

Basic AutoGro configuration can be done by changing constants at the top of AGconfig.py. Each constant is documented within the source code. There are additional configurations such as the amount of time between water cycles, how long each cycle runs, and more. Below is a screenshot of the config file where you can adjust the settings to your needs.

AutoGro must be restarted to pick up changes to AGconfig.py

Stopping and starting the code

If you already ran the installer, AutoGro will have started automatically via rc.local and various scripts.

Since AutoGro is restarted automatically when it is killed or crashes, special actions must be taken to turn AutoGro off for diagnostics or research.

How to Start / Stop AutoGro

Run this command to kill the scripts and processes:

cd ~/bin/AutoGro/Scripts && mv start .start && sudo reboot

Run this command to restart the scripts and processes:

cd ~/bin/AutoGro/Scripts && mv .start start && sudo reboot

Run this command to see how many instances of AutoGro are running

ps -ef | grep AutoGro -

----------------------------------------------------------------------------------------------------

Your Pi will make the changes and reboot the system. There should only be one instance of AutoGro running. If you see more than 1 instance, follow the stop scripts instructions.

Warning: AutoGro has no protection from multiple copies running at one time. Unpredictable results will occur if more than one copy is running.

📪