prusa3d / Prusa-Firmware-ESP32-Cam

Firmware for ESP32 Cam modules to be used in Prusa Connect
GNU General Public License v3.0
97 stars 10 forks source link

URL for control Light #41

Open Flavien06 opened 4 weeks ago

Flavien06 commented 4 weeks ago

Hi Would it be possible to add a simple URL request, for example, http://prusa-esp32cam.local/light?on and http://prusa-esp32cam.local/light?off to control the LED from a home automation application (to activate it automatically at night, for example)?

Same option for refreach snapshot
http://prusa-esp32cam.local/snapshot (to make a New snapshot for send with notification)

Thank

blurfl commented 4 weeks ago

This approach makes more sense than a control through PrusaConnect or PrusaLink.

johnyHV commented 4 weeks ago

Hello @Flavien06 . This is good idea. I can added requests

johnyHV commented 2 days ago

Hello @Flavien06 WEB API is already added here

Flavien06 commented 1 day ago

OK nice. I juste udate to v1.1.0-rc1

All commande works exept light and flash

For http://ip/light?on

URL not Found

URI: /light
Method: GET
Arguments: 1
 on: