mirror of
https://github.com/jomjol/AI-on-the-edge-device-docs.git
synced 2025-12-09 21:17:09 +03:00
fix enumeration
This commit is contained in:
@@ -6,13 +6,13 @@ To use it, just append them to the IP, separated with a `/`, e.g. `http://192.16
|
|||||||
Note: For more detailed information to the REST handler, have a look to the code in the repository: [registered handlers](https://github.com/jomjol/AI-on-the-edge-device/search?q=camuri.uri)
|
Note: For more detailed information to the REST handler, have a look to the code in the repository: [registered handlers](https://github.com/jomjol/AI-on-the-edge-device/search?q=camuri.uri)
|
||||||
|
|
||||||
## Control
|
## Control
|
||||||
* ### flow_start
|
### flow_start
|
||||||
Trigger a flow start (if not running)
|
Trigger a flow start (if not running)
|
||||||
+ Payload:
|
+ Payload:
|
||||||
- No payload needed
|
- No payload needed
|
||||||
|
|
||||||
|
|
||||||
* ### setPreValue
|
### setPreValue
|
||||||
Set the last valid value (previous value) to given value or the actual RAW value.
|
Set the last valid value (previous value) to given value or the actual RAW value.
|
||||||
+ Payload:
|
+ Payload:
|
||||||
- Set to given value (value >= 0), e.g. `/setPreValue?numbers=main&value=1234.5678`
|
- Set to given value (value >= 0), e.g. `/setPreValue?numbers=main&value=1234.5678`
|
||||||
@@ -23,7 +23,7 @@ Note: For more detailed information to the REST handler, have a look to the code
|
|||||||
* `numbers=` Provide name of number sequence, e.g. main
|
* `numbers=` Provide name of number sequence, e.g. main
|
||||||
* `value=` provide yna negative number
|
* `value=` provide yna negative number
|
||||||
|
|
||||||
* ### GPIO
|
### GPIO
|
||||||
- Control a GPIO output
|
- Control a GPIO output
|
||||||
- The `GPIO` entrypoint also support parameters:
|
- The `GPIO` entrypoint also support parameters:
|
||||||
- `/GPIO?GPIO={PinNumber}&Status=high`
|
- `/GPIO?GPIO={PinNumber}&Status=high`
|
||||||
@@ -35,16 +35,14 @@ Note: For more detailed information to the REST handler, have a look to the code
|
|||||||
- `/GPIO?GPIO={PinNumber}`
|
- `/GPIO?GPIO={PinNumber}`
|
||||||
- Example: `/GPIO?GPIO=12`
|
- Example: `/GPIO?GPIO=12`
|
||||||
|
|
||||||
* ### ota
|
### ota_page.html
|
||||||
|
|
||||||
* ### ota_page.html
|
|
||||||
Opens the Over-The-Air update html page
|
Opens the Over-The-Air update html page
|
||||||
|
|
||||||
* ### reboot
|
### reboot
|
||||||
Trigger a reboot of the device
|
Trigger a reboot of the device
|
||||||
|
|
||||||
## Results
|
## Results
|
||||||
* ### json
|
### json
|
||||||
Show result in JSON syntax
|
Show result in JSON syntax
|
||||||
- Example:
|
- Example:
|
||||||
`{
|
`{
|
||||||
@@ -59,7 +57,7 @@ Note: For more detailed information to the REST handler, have a look to the code
|
|||||||
}
|
}
|
||||||
}`
|
}`
|
||||||
|
|
||||||
* ### value
|
### value
|
||||||
Show single result values
|
Show single result values
|
||||||
- The `value` entrypoint also support parameters:
|
- The `value` entrypoint also support parameters:
|
||||||
- `http://<IP>/value?all=true&type=value`
|
- `http://<IP>/value?all=true&type=value`
|
||||||
@@ -67,69 +65,69 @@ Note: For more detailed information to the REST handler, have a look to the code
|
|||||||
- `http://<IP>/value?all=true&type=error`
|
- `http://<IP>/value?all=true&type=error`
|
||||||
- `http://<IP>/value?all=true&type=prevalue`
|
- `http://<IP>/value?all=true&type=prevalue`
|
||||||
|
|
||||||
* ### img_tmp/raw.jpg
|
### img_tmp/raw.jpg
|
||||||
Capture and show a new raw image
|
Capture and show a new raw image
|
||||||
|
|
||||||
* ### img_tmp/alg.jpg
|
### img_tmp/alg.jpg
|
||||||
Show last aligned image
|
Show last aligned image
|
||||||
|
|
||||||
* ### img_tmp/alg_roi.jpg
|
### img_tmp/alg_roi.jpg
|
||||||
Show last aligned image including ROI overlay
|
Show last aligned image including ROI overlay
|
||||||
|
|
||||||
## Status
|
## Status
|
||||||
* ### statusflow
|
### statusflow
|
||||||
Show the actual step of the flow incl. timestamp
|
Show the actual step of the flow incl. timestamp
|
||||||
- Example: `Take Image (15:56:34)`
|
- Example: `Take Image (15:56:34)`
|
||||||
|
|
||||||
* ### rssi
|
### rssi
|
||||||
Show the WIFI signal strength (Unit: dBm)
|
Show the WIFI signal strength (Unit: dBm)
|
||||||
- Example: `-51`
|
- Example: `-51`
|
||||||
|
|
||||||
* ### cpu_temperature
|
### cpu_temperature
|
||||||
Show the CPU temperature (Unit: °C)
|
Show the CPU temperature (Unit: °C)
|
||||||
- Example: `38`
|
- Example: `38`
|
||||||
|
|
||||||
* ### sysinfo
|
### sysinfo
|
||||||
Show system infos in JSON syntax
|
Show system infos in JSON syntax
|
||||||
- Example: `[{"firmware": "","buildtime": "2023-01-25 12:41","gitbranch": "HEAD","gittag": "","gitrevision": "af13c68+","html": "Development-Branch: HEAD (Commit: af13c68+)","cputemp": "64","hostname": "WaterMeterTest","IPv4": "192.168.xxx.xxx","freeHeapMem": "2818330"}]`
|
- Example: `[{"firmware": "","buildtime": "2023-01-25 12:41","gitbranch": "HEAD","gittag": "","gitrevision": "af13c68+","html": "Development-Branch: HEAD (Commit: af13c68+)","cputemp": "64","hostname": "WaterMeterTest","IPv4": "192.168.xxx.xxx","freeHeapMem": "2818330"}]`
|
||||||
|
|
||||||
* ### starttime
|
### starttime
|
||||||
Show starttime
|
Show starttime
|
||||||
- Example: `20230113-154634`
|
- Example: `20230113-154634`
|
||||||
|
|
||||||
* ### uptime
|
### uptime
|
||||||
Show uptime
|
Show uptime
|
||||||
- Example: `0d 00h 15m 50s`
|
- Example: `0d 00h 15m 50s`
|
||||||
|
|
||||||
## Camera
|
## Camera
|
||||||
* ### lighton
|
### lighton
|
||||||
Switch the camera flashlight on
|
Switch the camera flashlight on
|
||||||
|
|
||||||
* ### lightoff
|
### lightoff
|
||||||
Switch the camera flashlight off
|
Switch the camera flashlight off
|
||||||
|
|
||||||
* ### capture
|
### capture
|
||||||
Capture a new image (without flashlight)
|
Capture a new image (without flashlight)
|
||||||
|
|
||||||
* ### capture_with_flashlight
|
### capture_with_flashlight
|
||||||
Capture a new image with flashlight
|
Capture a new image with flashlight
|
||||||
|
|
||||||
* ### save
|
### save
|
||||||
Save a new image to SD card
|
Save a new image to SD card
|
||||||
- The `save` entrypoint also support parameters:
|
- The `save` entrypoint also support parameters:
|
||||||
- `http://<IP>/save?filename=test.jpg&delay=1000`
|
- `http://<IP>/save?filename=test.jpg&delay=1000`
|
||||||
|
|
||||||
## Logs
|
## Logs
|
||||||
* ### log
|
### log
|
||||||
Last part of todays log (last 80 kBytes))
|
Last part of todays log (last 80 kBytes))
|
||||||
|
|
||||||
* ### logfileact
|
### logfileact
|
||||||
Full log of today
|
Full log of today
|
||||||
|
|
||||||
* ### log.html
|
### log.html
|
||||||
Opens the log html page
|
Opens the log html page
|
||||||
|
|
||||||
## Diagnostics
|
## Diagnostics
|
||||||
* ### heap
|
### heap
|
||||||
print relevant memory (heap) information
|
print relevant memory (heap) information
|
||||||
- Example: `Heap info: Heap Total: 1888926 | SPI Free: 1827431 | SPI Larg Block: 1802240 | SPI Min Free: 758155 | Int Free: 61495 | Int Larg Block: 55296 | Int Min Free: 36427`
|
- Example: `Heap info: Heap Total: 1888926 | SPI Free: 1827431 | SPI Larg Block: 1802240 | SPI Min Free: 758155 | Int Free: 61495 | Int Larg Block: 55296 | Int Min Free: 36427`
|
||||||
|
|||||||
Reference in New Issue
Block a user