nanoraptor/pHorest ? reverse-engineered prompt
Reverse engineered prompt
Build me a Python app for monitoring soil and helping decide what to grow and what fertilizer to use. It should work in two modes, one with live Arduino sensor readings and one with a simulation mode for testing without hardware. I want a simple browser dashboard that shows pH, TDS, temperature, rainfall, the soil’s condition, the predicted crop, and a fertilizer recommendation in plain language.
Use a trained random forest model for crop prediction, and make sure it can take the soil inputs in the right order and load a saved model file. It should also be able to pull recent rainfall data from the internet using a location, and fall back gracefully if that fails. Please include the Arduino bridge, the main app, and a simulation script so I can demo it easily. If you need to look up current docs or best practices for any library, go ahead and do that.
Are you gonna build this?
make sure you review the code using coderabbit