mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 19:26:37 +00:00
Merge pull request #16858 from Staars/webcam_widget
MI32 legacy: add webcam widget to dashboard
This commit is contained in:
commit
f5621b786d
@ -1910,6 +1910,14 @@ void MI32sendEnergyWidget(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif //USE_MI_ESP32_ENERGY
|
#endif //USE_MI_ESP32_ENERGY
|
||||||
|
#ifdef USE_WEBCAM
|
||||||
|
void MI32sendCamWidget(){
|
||||||
|
if (Wc.CamServer && Wc.up) {
|
||||||
|
WSContentSend_P(PSTR("<img class='box' id='cam' src='http://%_I:81/stream'>"),
|
||||||
|
(uint32_t)WiFi.localIP());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif //USE_WEBCAM
|
||||||
|
|
||||||
void MI32sendWidget(uint32_t slot){
|
void MI32sendWidget(uint32_t slot){
|
||||||
auto _sensor = MIBLEsensors[slot];
|
auto _sensor = MIBLEsensors[slot];
|
||||||
@ -2044,6 +2052,9 @@ void MI32InitGUI(void){
|
|||||||
#ifdef USE_MI_ESP32_ENERGY
|
#ifdef USE_MI_ESP32_ENERGY
|
||||||
MI32sendEnergyWidget();
|
MI32sendEnergyWidget();
|
||||||
#endif //USE_MI_ESP32_ENERGY
|
#endif //USE_MI_ESP32_ENERGY
|
||||||
|
#ifdef USE_WEBCAM
|
||||||
|
MI32sendCamWidget();
|
||||||
|
#endif //USE_WEBCAM
|
||||||
WSContentSend_P(PSTR("</div>"));
|
WSContentSend_P(PSTR("</div>"));
|
||||||
WSContentSpaceButton(BUTTON_MAIN);
|
WSContentSpaceButton(BUTTON_MAIN);
|
||||||
WSContentStop();
|
WSContentStop();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user