@@ -130,7 +130,7 @@ def send_to_luftdaten(values, id):
130130
131131 try :
132132 resp_pm = requests .post (
133- "https://api.luftdaten.info /v1/push-sensor-data/" ,
133+ "https://api.sensor.community /v1/push-sensor-data/" ,
134134 json = {
135135 "software_version" : "enviro-plus 0.0.1" ,
136136 "sensordatavalues" : pm_values_json
@@ -144,15 +144,15 @@ def send_to_luftdaten(values, id):
144144 timeout = 5
145145 )
146146 except requests .exceptions .ConnectionError as e :
147- logging .warning ('Luftdaten PM Connection Error: {}' .format (e ))
147+ logging .warning ('Sensor.Community ( Luftdaten) PM Connection Error: {}' .format (e ))
148148 except requests .exceptions .Timeout as e :
149- logging .warning ('Luftdaten PM Timeout Error: {}' .format (e ))
149+ logging .warning ('Sensor.Community ( Luftdaten) PM Timeout Error: {}' .format (e ))
150150 except requests .exceptions .RequestException as e :
151- logging .warning ('Luftdaten PM Request Error: {}' .format (e ))
151+ logging .warning ('Sensor.Community ( Luftdaten) PM Request Error: {}' .format (e ))
152152
153153 try :
154154 resp_bmp = requests .post (
155- "https://api.luftdaten.info /v1/push-sensor-data/" ,
155+ "https://api.sensor.community /v1/push-sensor-data/" ,
156156 json = {
157157 "software_version" : "enviro-plus 0.0.1" ,
158158 "sensordatavalues" : temp_values_json
@@ -166,11 +166,11 @@ def send_to_luftdaten(values, id):
166166 timeout = 5
167167 )
168168 except requests .exceptions .ConnectionError as e :
169- logging .warning ('Luftdaten Climate Connection Error: {}' .format (e ))
169+ logging .warning ('Sensor.Community ( Luftdaten) Climate Connection Error: {}' .format (e ))
170170 except requests .exceptions .Timeout as e :
171- logging .warning ('Luftdaten Climate Timeout Error: {}' .format (e ))
171+ logging .warning ('Sensor.Community ( Luftdaten) Climate Timeout Error: {}' .format (e ))
172172 except requests .exceptions .RequestException as e :
173- logging .warning ('Luftdaten Climate Request Error: {}' .format (e ))
173+ logging .warning ('Sensor.Community ( Luftdaten) Climate Request Error: {}' .format (e ))
174174
175175 if resp_pm is not None and resp_bmp is not None :
176176 if resp_pm .ok and resp_bmp .ok :
0 commit comments