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>
While on it, add a missing entry for the cc93 in the 'network.html' file.
https://onedigi.atlassian.net/browse/CCS-8
Signed-off-by: David Escalona <david.escalona@digi.com>
The position of the LED on the dashboard wasn't matching the real position of
the LED on the DVK
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@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>
This commit replaces the sample audio file for a short version with a lowest
bitrate to reduce the size.
https://onedigi.atlassian.net/browse/DEL-8335
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit reduce the size of the ccmp1 platform images to save space on disk.
https://onedigi.atlassian.net/browse/DEL-8335
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
This commit renames the platform image files to match with the yocto machine
names, so non-platform image files can be removed and the root file system size
is reduced.
https://onedigi.atlassian.net/browse/DEL-8335
Signed-off-by: Arturo Buzarra <arturo.buzarra@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>
- Removed CPU core sections from 'index.html'
- Fixed missing div in 'index.html'
- Added missing 'errno' import in 'demoserver.py'
- Reposition components when new data is received in 'dashboard.js'
- Improved display resolution read for multiline files.
Signed-off-by: David Escalona <david.escalona@digi.com>
Ethernet and Wi-Fi IPs may not be assigned when the demo is launched.
Ask for its values everytime the status is requested until they are initialized.
https://onedigi.atlassian.net/browse/DEL-7742
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
Download all required javascript and stylesheets not to need Internet access
to properly run the demo locally.
https://onedigi.atlassian.net/browse/DEL-7742
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>