Skip to content

Commit fa8feba

Browse files
authored
Switch API calls to use https (#75)
1 parent 0265a2e commit fa8feba

6 files changed

+10
-10
lines changed

packages/airgradient_api_d1_mini.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interval:
1010
# https://api.airgradient.com/public/docs/api/v1/
1111
# AirGradient URL with the last 6 of MAC address all lower case
1212
url: !lambda |-
13-
return "http://hw.airgradient.com/sensors/airgradient:" + get_mac_address().substr(6,11) + "/measures";
13+
return "https://hw.airgradient.com/sensors/airgradient:" + get_mac_address().substr(6,11) + "/measures";
1414
headers:
1515
Content-Type: application/json
1616
json:
@@ -48,7 +48,7 @@ esphome:
4848
# Return wifi signal -50 as soon as device boots to show activity on AirGradient Dashboard site
4949
# Using -50 instead of actual value as the wifi_signal sensor has not reported a value at this point in boot process
5050
url: !lambda |-
51-
return "http://hw.airgradient.com/sensors/airgradient:" + get_mac_address().substr(6,11) + "/measures";
51+
return "https://hw.airgradient.com/sensors/airgradient:" + get_mac_address().substr(6,11) + "/measures";
5252
headers:
5353
Content-Type: application/json
5454
json:

packages/airgradient_api_d1_mini_no_sgp41.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interval:
1010
# https://api.airgradient.com/public/docs/api/v1/
1111
# AirGradient URL with the last 6 of MAC address all lower case
1212
url: !lambda |-
13-
return "http://hw.airgradient.com/sensors/airgradient:" + get_mac_address().substr(6,11) + "/measures";
13+
return "https://hw.airgradient.com/sensors/airgradient:" + get_mac_address().substr(6,11) + "/measures";
1414
headers:
1515
Content-Type: application/json
1616
json:
@@ -46,7 +46,7 @@ esphome:
4646
# Return wifi signal -50 as soon as device boots to show activity on AirGradient Dashboard site
4747
# Using -50 instead of actual value as the wifi_signal sensor has not reported a value at this point in boot process
4848
url: !lambda |-
49-
return "http://hw.airgradient.com/sensors/airgradient:" + get_mac_address().substr(6,11) + "/measures";
49+
return "https://hw.airgradient.com/sensors/airgradient:" + get_mac_address().substr(6,11) + "/measures";
5050
headers:
5151
Content-Type: application/json
5252
json:

packages/airgradient_api_esp32-c3.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interval:
1010
# https://api.airgradient.com/public/docs/api/v1/
1111
# AirGradient URL with the MAC address all lower case
1212
url: !lambda |-
13-
return "http://hw.airgradient.com/sensors/airgradient:" + get_mac_address() + "/measures";
13+
return "https://hw.airgradient.com/sensors/airgradient:" + get_mac_address() + "/measures";
1414
headers:
1515
Content-Type: application/json
1616
json:
@@ -50,7 +50,7 @@ esphome:
5050
# Return wifi signal -50 as soon as device boots to show activity on AirGradient Dashboard site
5151
# Using -50 instead of actual value as the wifi_signal sensor has not reported a value at this point in boot process
5252
url: !lambda |-
53-
return "http://hw.airgradient.com/sensors/airgradient:" + get_mac_address() + "/measures";
53+
return "https://hw.airgradient.com/sensors/airgradient:" + get_mac_address() + "/measures";
5454
headers:
5555
Content-Type: application/json
5656
json:

packages/airgradient_api_esp32-c3_dual_pms5003t.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interval:
1111
# https://api.airgradient.com/public/docs/api/v1/
1212
# AirGradient URL with the MAC address all lower case
1313
url: !lambda |-
14-
return "http://hw.airgradient.com/sensors/airgradient:" + get_mac_address() + "/measures";
14+
return "https://hw.airgradient.com/sensors/airgradient:" + get_mac_address() + "/measures";
1515
headers:
1616
Content-Type: application/json
1717
# "!lambda return to_string(id(pm_2_5).state);" Converts sensor output from double to string
@@ -82,7 +82,7 @@ esphome:
8282
# Return wifi signal -50 as soon as device boots to show activity on AirGradient Dashboard site
8383
# Using -50 instead of actual value as the wifi_signal sensor has not reported a value at this point in boot process
8484
url: !lambda |-
85-
return "http://hw.airgradient.com/sensors/airgradient:" + get_mac_address() + "/measures";
85+
return "https://hw.airgradient.com/sensors/airgradient:" + get_mac_address() + "/measures";
8686
headers:
8787
Content-Type: application/json
8888
json:

packages/airgradient_d1_mini_board.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
substitutions:
2-
config_version: 4.0.1
2+
config_version: 4.0.2
33

44
esphome:
55
name: "${name}"

packages/airgradient_esp32-c3_board.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
substitutions:
2-
config_version: 4.0.1
2+
config_version: 4.0.2
33

44
esphome:
55
name: "${name}"

0 commit comments

Comments
 (0)