AI-on-the-edge-device icon indicating copy to clipboard operation
AI-on-the-edge-device copied to clipboard

When Autostart is disabled, the Web UI always shows the "Initialization" image.

Open caco3 opened this issue 2 years ago • 7 comments

The Feature

Instead we should show another image mentioning "Ready"

caco3 avatar May 01 '23 20:05 caco3

Note: in case the autostart is disabled, the REST API "flow_start" also does not work. It simply returns WARNING: Flow start triggered by REST API, but flow is not active

@Slider0007 @jomjol Is this on purpose?

caco3 avatar May 01 '23 20:05 caco3

Note: in case the autostart is disabled, the REST API "flow_start" also does not work. It simply returns WARNING: Flow start triggered by REST API, but flow is not active

@Slider0007 @jomjol Is this on purpose?

The API only responds how the actual autoflow task is designed and with this design it's not possible to restart the round if autostart is disabled. An updated autoflow task is needed...

Slider0007 avatar May 02 '23 15:05 Slider0007

Note: in case the autostart is disabled, the REST API "flow_start" also does not work. It simply returns WARNING: Flow start triggered by REST API, but flow is not active

I noticed this too while debugging https://github.com/jomjol/AI-on-the-edge-device/discussions/2390#discussioncomment-6430819. I wanted to disable the automatic flow and only triggering it manually, but it didn't work. I never tried triggering a flow through MQTT though, but maybe that would not work either?

slovdahl avatar Jul 13 '23 05:07 slovdahl

I never tried triggering a flow through MQTT though, but maybe that would not work either?

no it wouldn't

caco3 avatar Jul 13 '23 05:07 caco3

Its also not possible to set a new reference image with autostart disabled, Just getting a notice like "Device is busy, please wait until round is finished" or something like that even though the device isnt actually busy

Lackmake avatar Nov 12 '23 20:11 Lackmake

Note: in case the autostart is disabled, the REST API "flow_start" also does not work. It simply returns WARNING: Flow start triggered by REST API, but flow is not active @Slider0007 @jomjol Is this on purpose?

The API only responds how the actual autoflow task is designed and with this design it's not possible to restart the round if autostart is disabled. An updated autoflow task is needed...

Then I think the documentation is incorrect. It says: "The main reasons to set it to false (autostart disabled) is when you want to trigger it manually using the REST API or MQTT-API or for debugging.". But if set to false, the trigger with the REST API will NOT work. I wanted to control the flow completely myself at regular intervals from outside with the REST API. Is this possible in another way or should I set the interval to 1.440, for example (1 x per 24 hours) so that the autoflow starts automatically and I trigger the other flows myself?

BobKooistra avatar Jan 22 '24 16:01 BobKooistra

should I set the interval to 1.440, for example (1 x per 24 hours) so that the autoflow starts automatically and I trigger the other flows myself?

I think this could work, just try it. Maybe you even can set the interval higher so it literally never triggers.

caco3 avatar Jan 28 '24 21:01 caco3