Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amytjea/crash on dash #174

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Amytjea/crash on dash #174

wants to merge 6 commits into from

Conversation

AmyTjea
Copy link

@AmyTjea AmyTjea commented Dec 20, 2023

Description

Adds a pop up modal alerting to the crash of V3 to all pages which monitor V3 (i.e Dashboard, Logs, Status, Boost and Camera system pages when observing V3)

The modal will appear when the crash detection topic (/v3/wireless_module/3/crash_detection) sends a true value.
It will provide the timestamp of the latest detected crash, along with the number of crashes which have occurred if the modal hasn't been dismissed and the bike has crashed again.

Screenshots

image

image

Steps to Test

Use the following command in the terminal to simulate a crash occurring:

mosquitto_pub -t "/v3/wireless_module/3/crash_detection" -m '{\"value\":true}'

To simulate a false value, simply change the above to false.

Use the command multiple times to check the counter works as intended

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant