huginn_airparif_agent 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/huginn_airparif_agent/airparif_agent.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f0a364c3a6980565af4e013d607764ad13b3c0b3f11bed17a9056b8b0bcbe62
|
4
|
+
data.tar.gz: 28bbb782ad1764156026a3f6f62f8166231496eda43372ec79fc448abcb700ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8eea702e13cb843ed75765619e0513f833a73cdc761b1104f258accade97a120ed2a0588c0200f6be5ee52163a21398374360ca9f27f466eb4af5ba5c1bb146
|
7
|
+
data.tar.gz: 4939685ea99608bd012d05f731157ae334a4140026b5573d2ee0f04d0db809028bf3cff98e194c2187e297a53be3363101bff5466e0b0356c9867dc9eedfc69b
|
@@ -122,7 +122,7 @@ module Agents
|
|
122
122
|
|
123
123
|
def version()
|
124
124
|
|
125
|
-
uri = URI.parse("https://api.airparif.
|
125
|
+
uri = URI.parse("https://api.airparif.fr/version")
|
126
126
|
request = Net::HTTP::Get.new(uri)
|
127
127
|
request["Accept"] = "application/json"
|
128
128
|
|
@@ -153,7 +153,7 @@ module Agents
|
|
153
153
|
|
154
154
|
def planned_pollution_colors()
|
155
155
|
|
156
|
-
uri = URI.parse("https://api.airparif.
|
156
|
+
uri = URI.parse("https://api.airparif.fr/indices/prevision/couleurs")
|
157
157
|
request = Net::HTTP::Get.new(uri)
|
158
158
|
request["Accept"] = "application/json"
|
159
159
|
request["X-Api-Key"] = interpolated['apikey']
|
@@ -175,7 +175,7 @@ module Agents
|
|
175
175
|
|
176
176
|
def prevision_bulletin()
|
177
177
|
|
178
|
-
uri = URI.parse("https://api.airparif.
|
178
|
+
uri = URI.parse("https://api.airparif.fr/indices/prevision/bulletin")
|
179
179
|
request = Net::HTTP::Get.new(uri)
|
180
180
|
request["Accept"] = "application/json"
|
181
181
|
request["X-Api-Key"] = interpolated['apikey']
|
@@ -199,7 +199,7 @@ module Agents
|
|
199
199
|
|
200
200
|
def pollens_bulletin()
|
201
201
|
|
202
|
-
uri = URI.parse("https://api.airparif.
|
202
|
+
uri = URI.parse("https://api.airparif.fr/pollens/bulletin")
|
203
203
|
request = Net::HTTP::Get.new(uri)
|
204
204
|
request["Accept"] = "application/json"
|
205
205
|
request["X-Api-Key"] = interpolated['apikey']
|
@@ -223,7 +223,7 @@ module Agents
|
|
223
223
|
|
224
224
|
def planned_pollution_indices()
|
225
225
|
|
226
|
-
uri = URI.parse("https://api.airparif.
|
226
|
+
uri = URI.parse("https://api.airparif.fr/indices/prevision/commune?insee=#{interpolated['insee']}")
|
227
227
|
request = Net::HTTP::Get.new(uri)
|
228
228
|
request["Accept"] = "application/json"
|
229
229
|
request["X-Api-Key"] = interpolated['apikey']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: huginn_airparif_agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolas Germain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|