-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[airparif] New binding #17625
base: main
Are you sure you want to change the base?
[airparif] New binding #17625
Conversation
This is ready to review now. If someone has some spare time... :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this contribution. Reviewed all files. Don;t forget to run the i18n tool after all comments have been addressed. It already is in a good shape.
| aq-bulletin-tomorrow | pm10-max | Number:Density | R | Maximum level of PM 10 concentration | | ||
| aq-bulletin-tomorrow | pm25-min | Number:Density | R | Minimum level of PM 2.5 concentration | | ||
| aq-bulletin-tomorrow | pm25-max | Number:Density | R | Maximum level of PM 2.5 concentration | | ||
| daily | message | String | R | Today's daily general information ||| daily | tomorrow | String | R | Tomorrow's daily general information | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| daily | message | String | R | Today's daily general information ||| daily | tomorrow | String | R | Tomorrow's daily general information | | |
| daily | message | String | R | Today's daily general information | | |
| daily | tomorrow | String | R | Tomorrow's daily general information | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected.
| oh:airparif:urticaceae | Yes | ![](doc/images/urticaceae.svg) | | ||
| oh:airparif:willow | Yes | ![](doc/images/willow.svg) | | ||
| oh:airparif:wormwood | Yes | ![](doc/images/wormwood.svg) | | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
### Item Configurationn | ||
|
||
```java | ||
Example item configuration goes here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please extend with items file and optional sitemap file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Items added.
|
||
```java | ||
Example item configuration goes here. | ||
`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix code close tag
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@Activate | ||
public AirParifHandlerFactory(final @Reference HttpClientFactory httpClientFactory, | ||
final @Reference AirParifDeserializer deserializer) { | ||
this.httpClient = httpClientFactory.getCommonHttpClient(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is better to store the factory and each time a Handler is created you can grab the client from the factory
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed
updateState(new ChannelUID(pollensGroupUID, CHANNEL_COMMENT), Objects.requireNonNull( | ||
localPollens.getComment().map(comment -> (State) new StringType(comment)).orElse(UnDefType.NULL))); | ||
updateState(new ChannelUID(pollensGroupUID, CHANNEL_BEGIN_VALIDITY), Objects.requireNonNull( | ||
localPollens.getBeginValidity().map(begin -> (State) new DateTimeType(begin)).orElse(UnDefType.NULL))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The DateTimeType should be used with an Instant
.
For reference: #17725
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed all ZonedDateTime
s to Instant
s
operation = "Rescheduled"; | ||
cancelFuture(result); | ||
} | ||
getLogger().info("{} {} in {}", operation, jobName, duration); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getLogger().info("{} {} in {}", operation, jobName, duration); | |
getLogger().debug("{} {} in {}", operation, jobName, duration); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed.
</channel-group-type> | ||
|
||
<channel-group-type id="pollutant-mpc"> | ||
<label>Pollutant Concentration Information</label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<label>Pollutant Concentration Information</label> | |
<label>Pollutant Concentration</label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Respelled
</channel-group-type> | ||
|
||
<channel-group-type id="daily"> | ||
<label>Daily information for the region</label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<label>Daily information for the region</label> | |
<label>Daily Region Information</label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Respelled.
</channel-group-type> | ||
|
||
<channel-group-type id="dept-pollens"> | ||
<label>Pollen information for the department</label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<label>Pollen information for the department</label> | |
<label>Department Pollen Information</label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Respelled.
Signed-off-by: Gaël L'hopital <[email protected]>
Signed-off-by: Gaël L'hopital <[email protected]>
Signed-off-by: Gaël L'hopital <[email protected]>
Signed-off-by: Gaël L'hopital <[email protected]>
Signed-off-by: Gaël L'hopital <[email protected]>
Signed-off-by: Gaël L'hopital <[email protected]>
Signed-off-by: Gaël L'hopital <[email protected]>
Signed-off-by: Gaël L'hopital <[email protected]>
Signed-off-by: Gaël L'hopital <[email protected]>
Bulletproofed icon servlet Signed-off-by: Gaël L'hopital <[email protected]>
Signed-off-by: Gaël L'hopital <[email protected]>
Signed-off-by: Gaël L'hopital <[email protected]>
Signed-off-by: Gaël L'hopital <[email protected]>
Signed-off-by: Gaël L'hopital <[email protected]>
Signed-off-by: Gaël L'hopital <[email protected]>
Signed-off-by: clinique <[email protected]>
Signed-off-by: clinique <[email protected]>
The AirParif binding provides data coming from Air Parif.
This service gives air quality and pollen information for Paris Area