Skip to content

ping-42/server

Repository files navigation

Ping42 Telemetry Server

To run the local dev server:

cd server
go run .Flags

BigQuery Development

To clean up the BQ datasets, one can has to delete the functions that are using it first:

gcloud functions list
gcloud functions delete server

Then figure out which datasets to delete.

gcloud alpha bq datasets list
gcloud alpha bq datasets delete clients --remove-tables

Note: In some cases a web based session could be causing the above to fail. Tough luck - delete the datasets from the BigQuery part of the GCP console.

The Generator

The generator/ folder contains boilerplate code that dispatches generated events to the function for testing purposes. To run it, try go run . in that folder.

CLI

Create new sersor:

 go run . mksensor -n SensorName -l SensorLocaltion