ENV AUTOMATION - CALIBRATION API - NEW SERVER

Target URL:
https://cctv.envautomation.com/calibration_api/

Upload/extract the calibration_api folder directly under the cctv.envautomation.com public_html root.

Expected database in db.php:
envcctv_envsales

Required tables before the API can return live data:
- calibration_certificates
- sim_subscriptions (only if SIM module is also used)

IMPORTANT:
1. Import/copy the old calibration_certificates table/data into the new database before final cutover.
2. If using the SIM subscription endpoints, also import/copy sim_subscriptions.
3. Actual certificate PDF files remain separate under /calibration_certificate/.
4. Do not modify /cctv or /dtu_ingest.

Test after upload:
https://cctv.envautomation.com/calibration_api/test.php
https://cctv.envautomation.com/calibration_api/get_calibrations.php
https://cctv.envautomation.com/calibration_api/get_calibration_due_alert.php

After testing, change the ERP frontend API base from the old api.envautomation.com endpoint to cctv.envautomation.com/calibration_api/.
