Service Netatmo

Ok great, thanks for the reply.

Can I just ask you to take a quick look at the new PR: [WIP] - Netatmo add valves NRV by Terdious · Pull Request #2005 · GladysAssistant/Gladys · GitHub to confirm that it’s OK?
I’d like to be sure about the methodology when creating a PR from another branch and about the impact of the commit history, knowing that in this new PR we can see the history of the other PR. And that creating the new PR re-ran the tests on the previous one… always a bit worrying when you don’t do this often ^^

Thanks in advance!

I think you must have made a mistake, because I see exactly the same number of commits in one PR as in the other, and with exactly the same commits.

Hello @pierre-gilles !
Yes, so given the way I did it, that’s normal; for the moment I haven’t pushed anything, I did it locally.
That’s precisely why I’m asking. I started from my base branch netatmo-integration to create my new branch based on origin/gladys (to start from the code of that first PR and begin integrating the rest). I just pushed the new branch and then created the new PR linked to the GladysAssistant repo.
Is that the right method to keep things clean?

Ah ok, in that case it’s all good :slight_smile: Just remember to commit to the right branch

1 Like

Great, thanks for the confirmation reply ^^

Yes, about the pushes, it’s fine — after all the silly things I’ve done on my personal project, I’m better on that front :sweat_smile:

1 Like

New PR ready adding NRV valves:

Test image currently building: docker pull terdious/gladys:netatmo-add-valves

I’ll continue with the weather station.

4 Likes

There’s no stopping you now…

1 Like

New PR ready adding the indoor weather station bases:
[WIP] Add support for NAMain module type - Weather / Smart Home Weather Station #2010

Test image being built: docker pull terdious/gladys:netatmo-add-weather-station

I will continue with the weather station modules one by one.

:sweat_smile: hoping that the first PR is good enough anyway ^^ but I’ve attached the branches so updates will be simplified. It shouldn’t impact the other PRs too much if changes are requested during the review!!

Edit:

@PhilippeMA, I’ll let you know when I’ve finished the complete station so you can test if it’s still OK!

3 Likes

New PRs ready, adding :

Test image currently being built including all ongoing Netatmo PRs : docker pull terdious/gladys:netatmo-add-module-outdoor-weather-station


@Terdious Review completed on the first PR! It’s much better :slight_smile:

I have some feedback but nothing complicated!

2 Likes

Thank you very much @pierre-gilles !

Thanks for the feedback! For concurrency, I’d recommend staying at a maximum of 2 for things that run in the background like that. There are users on Raspberry Pis, we want to keep the software lightweight and avoid big spikes :slight_smile:

Let me know as soon as the docs are up to date. Retest everything thoroughly to make sure you haven’t broken anything while making the fixes, and for me we can deploy this first version to production :slight_smile:

1 Like

All good for me @pierre-gilles,

  • Concurrency set to 2 : :white_check_mark:
  • New full tests on a fresh installation following the review fixes: :white_check_mark:
  • Documentation updated with current images (en and fr) : :white_check_mark:
  • Added a Dashboard view in the conclusion : :white_check_mark:
  • Docker image terdious/gladys:netatmo-integration-dev updated if needed : :white_check_mark:

Edit: The following 4 PRs are ready for review with the updates from the first. You can look at them when you have time, but FYI they’re really very minor — you’ll see. For now I’ve only included what’s already there (except for the first one — the weather station — which required 1 or 2 additional constants but nothing major).

  • Docker image terdious/gladys:netatmo-add-module-outdoor-weather-station for those who want it : :white_check_mark:
  • Rain gauge (simple) and Anemometer (a bit more difficult - dashboard front-end addition) in progress :eight_pointed_black_star:
1 Like

Well of course codecov had to crash on the last push (I still can’t re-run them),

2 Likes

Excellent :smiling_face_with_sunglasses:

Thanks for your responsiveness!!

It’s fine with me, it’s accepted on GitHub and merged into master :rocket:

For the docs

3 Likes

In the end I went back a bit, I redid the branches and PRs from the up-to-date master. It was too much of a pain to update and it’s much cleaner.
So I have 2 PRs ready for review:

Fully tested:

2 Likes

We’re making progress on the weather station:

Rain gauge done and we’re all set to move on!

4 Likes

All good for the weather station :

@pierre-gilles could you review the 6 PRs (I made them independent but the order is important, at least for PRs 1 and 2).
And tell me which you prefer, I have a branch that integrates all six of these devices. It can make small fixes applied incrementally easier and especially the review (46 files on the single branch versus 6 PRs × ~20 files when split since most files are affected in each PR).

@PhilippeMA, if you’re up for testing the whole weather station: docker pull terdious/gladys:netatmo-features-nrv-weather

3 Likes

Ok great :slight_smile: Monday I think I’ll do a release, I’ll release the first version already

Then I’ll review the rest and it will go into the next version. Does that sound good to you?

Thanks for your responsiveness in any case — all these PRs are really great!!

1 Like

Great!! That seems very good ^^
I’ll open the PR grouping 1 to 6 as well (Grouping of PRs 2 to 6: Addition of Weather functionality by Terdious · Pull Request #2021 · GladysAssistant/Gladys · GitHub). That way you can see what is most interesting to review / merge.

My pleasure!! Thanks for your feedback!

1 Like