Live Training Centers View
URL: <base-url>/backend/hrc#/livetrainingcenters/view/{id}
Directory: VaahCms/Modules/HRC/Vue/pages/livetrainingcenters/View.vue
Controller: VaahCms/Modules/HRC/Http/Controllers/Backend/LiveTrainingCenter.php
Model: None
Store: VaahCms/Modules/HRC/Vue/store/modules/store-livetrainingcenters.jsDescription
The Live training Centers View page previews the live details of the selected horse during a training session or race. This includes horse's vital statstics. Live view on Google Map. It also provides features like taking notes and calling the Rider in real time.

Purpose
- To show the live location of the horse in map
- The map must also display the racecourse with it's checkpoint markers
- The page should fetch data from pusher and update it on the page
- Show vitals such as speed and heart rate on the chart.
- Should correctly identify whenever a marker is crossed
- User should be able to take text or audio notes
- User should be able to make call to the rider they selected
How it works?
onLoadmethod is called as soon as the page is loadedOnLoaddoes the following- initiates
Equetronic Helper - calls
getAssets - calls
setLiveStatus
- initiates
getAssetsalso callsgetHorseProfilemethodgetHorseProfilemethod fetches the profile of the horse to display details on the page and then calls thesubscribeToLiveHorsemethod which connects to the pusher channel to get live data and thesetMarkersAndPointerswhich sets the markers and pointers of the map for calculations.- The map is rendered using the
GoogleMapForHorsecomponent - The chart is rendered using
FushionRealTimeChartcomponent
Assumptions
- To display the list of live horses for the selected training center
- To give a dropdown for selecting training centers that must be stored in a session
- To give a dropdown for changing the speed unit that must be stored in a session
- Show the selected horse live GPS movements using google maps
- Display live pusher data
Acceptance Criteria
- User must be able to select and change Speed Unit
- Speed unit and Training Center must have default value set from session
- The page must display all live horses on the map
- The page must show horse vitals on the chart
- The page must display ehm data and it's calculated extensions on the list
- User must be able to take text or audio notes
- User must be able to call the Rider using WebRTC
Table of Contents