You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix download in getData closes#325 (#349) (#350)
* initial auth for boxes
* auth for boxes that have not opt out
* fix spelling
* useAuth in updateBox
* update access_token via generate_access_token
* pass access_token to sketch templater
* bump node-sketch-templater version (beta)
* add authorization header anyways
* auth beta
* include useAuth in includeSecret requests
* remove default true for useAuth, set true for new Boxes
* update tests for auth feature, fix errors in auth code
* add access_token to getSketch of newSketch email
* update documentation 📜
* remove custom boxes from useAuth=true
* add onlyValue in measurement controller
* test for onlyValue feature
* remove console.log
Co-authored-by: Umut Tas <[email protected]>
* @apiParam (RequestBody) {String="hdc1080","bmp280","tsl45315","veml6070","sds011","bme680","smt50","soundlevelmeter", "windspeed"} [sensorTemplates] Specify which sensors should be included.
385
385
* @apiParam (RequestBody) {Object} [mqtt] specify parameters of the MQTT integration for external measurement upload. Please see below for the accepted parameters
386
386
* @apiParam (RequestBody) {Object} [ttn] specify parameters for the TTN integration for measurement from TheThingsNetwork.org upload. Please see below for the accepted parameters
387
+
* @apiParam (RequestBody) {Boolean="true","false"} [useAuth] whether to use access_token or not for authentication
Copy file name to clipboardExpand all lines: packages/api/lib/controllers/measurementsController.js
+24-3Lines changed: 24 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,7 @@ const
27
27
* @apiName getLatestMeasurementOfSensor
28
28
* @apiUse BoxIdParam
29
29
* @apiUse SensorIdParam
30
+
* @apiParam {Boolean="true","false"} [onlyValue] If set to true only returns the measured value without information about the sensor. Requires a sensorId.
* @apiParam (RequestBody) {String} value the measured value of the sensor. Also accepts JSON float numbers.
211
220
* @apiParam (RequestBody) {RFC3339Date} [createdAt] the timestamp of the measurement. Should conform to RFC 3339. Is needed when posting with Location Values!
212
221
* @apiParam (RequestBody) {Location} [location] the WGS84-coordinates of the measurement.
222
+
* @apiHeader {String} access_token Box' unique access_token. Will be used as authorization token if box has auth enabled (e.g. useAuth: true)
* @apiParam {String} [luftdaten] Specify whatever you want (like `luftdaten=1`. Signals the api to treat the incoming data as luftdaten.info formatted json.
265
279
* * @apiParam {String} [hackair] Specify whatever you want (like `hackair=1`. Signals the api to treat the incoming data as hackair formatted json.
280
+
* @apiHeader {String} access_token Box' unique access_token. Will be used as authorization token if box has auth enabled (e.g. useAuth: true)
0 commit comments