According to the API, navigator.platform is unreliable and not recommended
for runtime detection. As our platforms are ARM based, we were using it
to get the platform and grep for a literal arm. That fails for example
when using chromium browser on the ConnectCore devices, as it is reporting
'Linux x86_64' even running on an arm64 device.
Instead use the already implemented is_local_access function to detect
whether the browser is running locally in the target.
https://onedigi.atlassian.net/browse/DEL-9838
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
- When launching an NPU demo, display a black screen below the loading spin to avoid
the transparent window of some demos to display part of the ConnectCore application
in the background.
- Create a polling mechanism after an NPU demo is launched to check when the demo is
closed in order to hide the black screen and the loading spin.
Signed-off-by: David Escalona <david.escalona@digi.com>
Most of device boards have blue PCBs, but there are some products with green PCBs. In these cases,
the green panels have very poor contrast, so the color needs to be changed dynamically. This commit
adds a mechanism to automatically change the color of the dashboard panels based on the new device
property "PCB_COLOR".
https://onedigi.atlassian.net/browse/DEL-8719
Signed-off-by: David Escalona <david.escalona@digi.com>
- Improve error messages.
- Fix resizing issues with dashboard image.
- Add generic message when video resolution cannot be read.
- Fix change volume action and include a confirmation message.
- Add confirmation message when LED state is changed.
- Remove execution bit from images.
Signed-off-by: David Escalona <david.escalona@digi.com>
Remove the multimedia section when the demo is being rendered in a computer using the
LAN connection. In this scenario, the computer browser will be the one doing all the 3D
and video rendering and not the device, so this section has no sense in this case.
Signed-off-by: David Escalona <david.escalona@digi.com>