@@ -103,7 +103,7 @@ script:
103103 then :
104104 - http_request.post :
105105 url : https://api.sensor.community/v1/push-sensor-data/
106- headers :
106+ request_headers :
107107 Content-Type : application/json
108108 X-Pin : 1 # This tells Luftdaten that it is SDS011 data.
109109 X-Sensor : !secret luftdaten_x_sensor
@@ -121,7 +121,7 @@ script:
121121
122122 - http_request.post :
123123 url : https://api-rrd.madavi.de/data.php
124- headers :
124+ request_headers :
125125 Content-Type : application/json
126126 X-Sensor : !secret luftdaten_x_sensor
127127 json : |-
@@ -142,7 +142,7 @@ script:
142142 - http_request.post :
143143 # API documentation: https://docs.opensensemap.org/#api-Measurements-postNewMeasurements
144144 url : !secret opensensemap_url # https://api.opensensemap.org/boxes/YOUR_BOX_ID/data?luftdaten=1
145- headers :
145+ request_headers :
146146 Content-Type : application/json
147147 Authorization : !secret opensensemap_access_token
148148 json : |-
@@ -158,7 +158,7 @@ script:
158158 then :
159159 - http_request.post :
160160 url : https://api.sensor.community/v1/push-sensor-data/
161- headers :
161+ request_headers :
162162 Content-Type : application/json
163163 X-Pin : 11 # This tells Luftdaten that it is BME280 data.
164164 X-Sensor : !secret luftdaten_x_sensor
@@ -179,7 +179,7 @@ script:
179179
180180 - http_request.post :
181181 url : https://api-rrd.madavi.de/data.php
182- headers :
182+ request_headers :
183183 Content-Type : application/json
184184 X-Sensor : !secret luftdaten_x_sensor
185185 json : |-
@@ -203,7 +203,7 @@ script:
203203 - http_request.post :
204204 # API documentation: https://docs.opensensemap.org/#api-Measurements-postNewMeasurements
205205 url : !secret opensensemap_url # https://api.opensensemap.org/boxes/YOUR_BOX_ID/data?luftdaten=1
206- headers :
206+ request_headers :
207207 Content-Type : application/json
208208 Authorization : !secret opensensemap_access_token
209209 json : |-
0 commit comments