Krackerr154/pt-kit-backend — reverse-engineered prompt
Reverse engineered prompt
Build me a web app for running and monitoring photothermal lab experiments with an Arduino and ESP32.
I want a browser dashboard where an operator can set up an experiment with their name, sample name, duration, number of cycles, max temperature, target lux, and logging interval. The ESP32 should be able to receive start or stop commands from the backend and send sensor readings back as CSV style lines. Store the readings in a database and show live charts for IR temperature, thermocouple temperature, lux, experiment state, cycle number, and heating rate.
Please include a history page where I can review past experiments, compare samples, overlay charts, calculate regression and basic statistics like a T test. Also include a calibration page for finding the LED lux limit and visualizing thermal droop during calibration.
Use a simple HTML, CSS, and JavaScript frontend with a Python API backend and PostgreSQL. Make it runnable with Docker Compose, including the database and an admin database UI. Also include Arduino and ESP32 sketches that match the API. Look up current docs online if needed.
Want more depth? Deep Reverse