Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

The cloud server that receives data from the Arduino and allows the pit laptop to access it

Notifications You must be signed in to change notification settings

KU-Solar-Car/TelemetryServer

Repository files navigation

Telemetry Server

KU Solar Car

Initial setup

Link to Medium Article on Deploying

Setup GCloud Terminal

Make sure you are in the TelemetryServer Repo in terminal before continuing

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

  1. Make sure your app.yaml file is correct
runtime: python37
entrypoint: gunicorn -b :8080 main:app

Command to push your changes to GCloud (like git push)

  1. Then to deploy gcloud app deploy

Creates the URL: https://ku-solar-car-b87af.appspot.com

Interacting with server

  1. 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
}

About

The cloud server that receives data from the Arduino and allows the pit laptop to access it

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •