-
-
Notifications
You must be signed in to change notification settings - Fork 25
Publishing new data points
Mat Schaffer edited this page Nov 9, 2018
·
1 revision
New data can be published into Safecast storage via our ingest API:
For example:
curl -v \
-H'Content-Type: application/json' \
-d'{"captured_at":"2017-01-23T00:50:18Z","device_id":1337,"latitude":42.564835,"longitude":-70.78382,"lora_snr":5,"lndc_cpm":13,"transport":"http:50.250.38.70:37661"}' \
"https://ingest.safecast.org/v1/measurements"
The data payload can be any JSON message. device_id
is currently required, device_urn
is also recommended as we begin to move away from purely numeric IDs.
latitude
and longitude
keys will be used to compute a geographical index for the data.
Please contact the Safecast Devices google group for assistance in assigning a numeric ID and URN for your device to avoid conflict with existing devices.
After publishing your data you can confirm via https://grafana.safecast.cc/dashboard/db/scnano-radiation (TODO: make less solarcast-specific dashboard here)