Pit-side client software to allow the user to navigate though historical and real time telemetry data from the car
The root folder needs to have google_maps_key.py
, headerKey.json
, and ku-solar-car-b87af-firebase-adminsdk-ttwuy-0945c0ac44.json
files with the necessary contents.
Link to Medium Article on Deploying
Make sure you are in the TelemetryServer Repo in terminal before continuing
- Once you get GCloud setup on your terminal, make sure you have the correct project by default
gcloud config set project MY-PROJECT-ID
In this case 'MY-PROJECT-ID' is ku-solar-car-b87af
- Make sure your app.yaml file is correct
- Then to deploy
gcloud app deploy
Creates the URL: https://ku-solar-car-b87af.appspot.com
- Post To Server (endpoint is
/car
)
Make sure your POST Request body is in the following format with timeInSecondsSinceMidnight
being the key to the values of each sensor at said time in seconds. POST request can take multiple times in seconds at a time. Make sure values are in the following order as well to ensure correct order of values.
{
"battery_voltage": 400,
"battery_current": 400,
"battery_temperature": 400,
"bms_fault": 1,
"gps_time": 400,
"gps_lat": 400,
"gps_lon": 400,
"gps_velocity_east":400,
"gps_velocity_north": 400,
"gps_velocity_up": 400,
"gps_speed": 400,
"solar_voltage": 400,
"solar_current": 400,
"motor_speed": 400
}