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
  • Viewing logs
  • More info on AutoGro Constants
  • Auto pH balance
  1. Setup Instructions
  2. File Index

AutoGro Logs

A brief overview of the various logging features

PreviousFile IndexNextWiring Schematics

Last updated 1 year ago

Description of AutoGro running logs (these are wrapped at midnight with default install)

AGerror.log - All AutoGro runtime errors
AGpump.log - Detailed pump status
AGsensors.log - Detailed sensor status
(TimeStamp, SoilSensor Raw Value, SoilSensor Percent….Water Quality pH)
AGsys.log - Main AutoGro log with brief logging
AutoGroStart.log - By default a copy of AGsys.log via stdout redirect)
sensor_json.log - JSON values being passed to sensor web API

AGpump.csv - CSV file with pump details AGsensors.csv - CSV file with sensor details last_start_time - the timestamp on this file indicates when AutoGro was auto started

Viewing logs

AutoGro logs are all plain text files. They can be viewed with any ASCII editor - nano

Logs can be monitor in real-time, run this command to view and example log we have provided.

cd ~/bin/Autogro/Example_logs && ls -l && tail -f sensor_json.log

AGconfig.py parms of note (these are at the top of AGconfig.py source file)

More info on AutoGro Constants

  • NUM_WATER_VALVES - number of water valves to run

  • WATER_CYCLE_TIME - how often to run the watering cycle in seconds

  • WATER_CYCLE_LENGTH - how long to run each water valve in a cycle in seconds

  • BALANCE_PH - This is how the software auto balances the pH (True or False parameter)

  • IDEAL_PH - The target pH value for auto balance PH_SPREAD - tolerance level of the pH level (+/-)

  • WEB_API - turn on web API reporting (True or False parameter)

  • PH_SPREAD - tolerance level of the pH level (+/-) WEB_API - True or False - turn on web api reporting

  • TDS_ENABLE - Turn on water quality measurement (True or False parameter)

  • SOIL_DRY - Raw value from soil sensors that is considered totally dry

  • SOIL_WET - raw value from soil sensors that is considered totally wet

  • NUM_SOIL_SENSORS - number of active soil sensors

  • BALANCE_PH - True or False - auto balance pH IDEAL_PH - the target pH value for auto balance

  • PH_BALANCE_INTERVAL - The minimum amount of time between pH balance attempts

Auto pH balance

If enabled, the system attempts to adjust the pH level automatically. If the minimum amount of time has elapsed as defined by PH_BALANCE_INTERVAL (in seconds) since the last auto balance attempt, then auto balance will be attempted after the next water cycle. The system does this after a water cycle to allow the pH adjustment liquid as much time as possible to dissolve in the water before the next water cycle.

πŸ“Ž
πŸ“’