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.js

Description

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.

Live Training Center View

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?

  • onLoad method is called as soon as the page is loaded
  • OnLoad does the following
    • initiates Equetronic Helper
    • calls getAssets
    • calls setLiveStatus
  • getAssets also calls getHorseProfile method
  • getHorseProfile method fetches the profile of the horse to display details on the page and then calls the subscribeToLiveHorse method which connects to the pusher channel to get live data and the setMarkersAndPointers which sets the markers and pointers of the map for calculations.
  • The map is rendered using the GoogleMapForHorse component
  • 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