Skip to content
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

Add new adapter ioBroker.rmb-bhkw to latest repository #1779

Closed
wants to merge 4 commits into from

Conversation

satchafunkilus
Copy link
Contributor

No description provided.

@ioBroker ioBroker deleted a comment from Apollon77 Apr 25, 2022
@Apollon77
Copy link
Collaborator

Meeh, ok the resorted adapters break the detection :-)

Results from a manual check at https://adapter-check.iobroker.in/

@Apollon77 Apollon77 added must be fixed The Adapter request got review/automatic feedback that is required to be fixed before another review REVIEW needed (apollon77) A developer from the ioBroker Team will review the adapter, will provide comments or require changes auto-checked This PR was automatically checked for obvious criterias labels Apr 25, 2022
@satchafunkilus
Copy link
Contributor Author

@Apollon77

  • Regarding the external icon: I have followed the folder structure by the adapter creation script and the external icon is located under ioBroker.rmb-bhkw/admin/rmb-bhkw.png. Is there any specific reason why this should be in an additional "main" subfolder?
  • I have added Bluefox as owner, already some days ago. It is showing as invitation pending in npm.

@Apollon77
Copy link
Collaborator

Is there any specific reason why this should be in an additional "main" subfolder?

The URLs of the Github "raw content" includes the branch!!

@satchafunkilus
Copy link
Contributor Author

@Apollon77 ok, since the branch is called master and not main, the icon is located under: https://raw.githubusercontent.com/satchafunkilus/ioBroker.rmb-bhkw/master/admin/rmb-bhkw.png. Do I need to rename the branch to main?

@Apollon77
Copy link
Collaborator

No, then lets consider it as false positive

@satchafunkilus
Copy link
Contributor Author

No, then lets consider it as false positive

Ok, understood. Is there any other to-do then on my end?

@Apollon77
Copy link
Collaborator

No, I will do a review soon

sources-dist.json Outdated Show resolved Hide resolved
@Garfonso
Copy link
Contributor

@Apollon77 I'll try a review here.

@Apollon77
Copy link
Collaborator

Apollon77 commented May 16, 2022

Hi,

here some review comments:

Thank you for checking and adjusting the comments

@Apollon77 Apollon77 added question Something needs to be done or answered by the adapter developer and removed REVIEW needed (apollon77) A developer from the ioBroker Team will review the adapter, will provide comments or require changes auto-checked This PR was automatically checked for obvious criterias labels May 16, 2022
@Apollon77
Copy link
Collaborator

@Garfonso
Copy link
Contributor

@satchafunkilus
Hi,

some things I noticed in addition to @Apollon77:

  • the icon and readme paths in your io-package.json are wrong and point to main-branch. Adjust them to master branch (might be connected to your PR here, see earlier comment).
  • Your README is nice, but completely in German. Please add at least a short description in English (even if the adapter should only be of interest in Germany, people all over the world still need to decide if they need this adapter or not).

@satchafunkilus
Copy link
Contributor Author

@Apollon77 @Garfonso thanks for your remarks, I have incorporated all your remarks and suggestions.

Regarding the schedule randomization: It appears to me that the approach suggested only works for randomizing an hourly poll of the data. As I need to poll the data every 5-15min, I added a random delay between 0-59 seconds, so not all polls are executed at the same time. I would assume that, taking into account the small number of devices of this type out there, this should be enough to prevent any major spikes on the servers.

@Apollon77
Copy link
Collaborator

Also a schedule like 1,6,11,16,... * * ... is a valid one ;-) but ok. I think it is still better then nothing, so ok for me ;-). Will check in depth later

@Apollon77
Copy link
Collaborator

Hi, you need to add one thi g if you now use such a delay option: You need to add a flag to your unload handler to remember that unload was called while delay was running ... and if then you need to stop your logic after the delay ... or you need to add a way that allows to cancel the delay in case of an unload.

500ms after your unload callback the database is gone and running your logic will give issues.

And please remove the german version from readme because readme get automatically translated and this will not work. You can add locatlized reme pages in (docs/de and docs/en) like https://github.com/iobroker-community-adapters/ioBroker.pvforecast/tree/main/docs and add it to io-package https://github.com/iobroker-community-adapters/ioBroker.pvforecast/blob/main/io-package.json#L119-L122

After this we should be ready

@Apollon77
Copy link
Collaborator

@satchafunkilus DO you need help for anything?

@satchafunkilus
Copy link
Contributor Author

@satchafunkilus DO you need help for anything?

Thanks, I'm currently on a longer vacation without my PC, so unfortunately I can't work on the code at the moment. I tried implementing the thing you mentioned wiith regards to the flag for the delay before I left, but I wasn't really able to get it working in the short time. If you have any example for such a flag, that would help a lot. Thanks.

@Apollon77
Copy link
Collaborator

Sure, just set a variable :-)) e.g. https://github.com/Apollon77/ioBroker.meross/blob/master/main.js#L169

and then check in the other places "if (stopped) return" to simply stop logic :-)

@Apollon77
Copy link
Collaborator

@satchafunkilus Any update?

@satchafunkilus
Copy link
Contributor Author

@satchafunkilus Any update?

I have added the check as you mentioned - however, I'm not 100% sure it's correct this way. Could you have a quick look?

Thanks

@GermanBluefox GermanBluefox added the auto-checked This PR was automatically checked for obvious criterias label Sep 6, 2022
@Apollon77
Copy link
Collaborator

@satchafunkilus near to correct :-) When stpped is set true now thenstop prpcess is already in progress. replace https://github.com/satchafunkilus/ioBroker.rmb-bhkw/blob/master/main.js#L54 by just a "return;". SP just make sure to not continue ...

And BTW: maybe fill in better tags? https://github.com/satchafunkilus/ioBroker.rmb-bhkw/blob/master/io-package.json#L76

Last but not least: Please also check the comments of the automatic checker above

@Apollon77
Copy link
Collaborator

@satchafunkilus Anything we can support?

@Apollon77
Copy link
Collaborator

@satchafunkilus

@Apollon77 Apollon77 removed the auto-checked This PR was automatically checked for obvious criterias label Jan 14, 2023
@satchafunkilus
Copy link
Contributor Author

satchafunkilus commented Feb 18, 2023

@Apollon77 I have finally found some time to make the changes requested above. I have tested it, and it seems to be working fine. For some reason, the automated checks on github are now failing, though – the error message is:

pm ERR! Cannot read property '@iobroker/adapter-core' of undefined

Any clue what I can do here?

@GermanBluefox GermanBluefox added the auto-checked This PR was automatically checked for obvious criterias label Feb 19, 2023
@ioBroker ioBroker deleted a comment from mcm1957 Feb 19, 2023
@Apollon77
Copy link
Collaborator

Ideally delete node-modules and also the package-lock.json and then execute "npm install". How is it then?

@satchafunkilus
Copy link
Contributor Author

That I already tried yesterday, unfortunately it didn't help. But I realized that the node-modules folder is not uploaded to github anyway, so that cannot really be the issue.

@Apollon77
Copy link
Collaborator

Did you really also deleted the package-lock.json???? Because this one IS uploaded

@satchafunkilus
Copy link
Contributor Author

Yes, both

@mcm1957
Copy link
Collaborator

mcm1957 commented Feb 20, 2023

https://t.me/ioBroker_development/26673 could be related to this.

Question:
Which npm version do you have installed?
Where exactly did you get the npm error? During tests?

@satchafunkilus
Copy link
Contributor Author

Yes, that sounds like the same issue. I get it during the github actions tests after uploading a new version. https://github.com/satchafunkilus/ioBroker.rmb-bhkw/actions/runs/4213085290

npm version is 9.5.0

@xXBJXx
Copy link
Contributor

xXBJXx commented Feb 20, 2023

Please remove the tests for Node 12, which are no longer supported as of ioBroker/Testing version 4.0.0.
Your version in package.json is 4.1.0

@xXBJXx
Copy link
Contributor

xXBJXx commented Feb 20, 2023

@satchafunkilus
I made you a PR where I updated some files and took out the test for node 12 / 14.
Check if everything still works for you.

@satchafunkilus
Copy link
Contributor Author

@satchafunkilus
I made you a PR where I updated some files and took out the test for node 12 / 14.
Check if everything still works for you.

Awesome, thanks. Much appreciated. Tests seem to have run through now without any issues.

@satchafunkilus
Copy link
Contributor Author

RE-CHECK!

@GermanBluefox
Copy link
Contributor

Automated adapter checker

ioBroker.rmb-bhkw

Downloads Number of Installations (latest)
NPM

👍 No errors found

  • 👀 [W400] Cannot find "rmb-bhkw" in latest repository

Add comment "RE-CHECK!" to start check anew

@satchafunkilus
Copy link
Contributor Author

Any to-do left here from my end?

@Apollon77 Apollon77 added the REVIEW needed (apollon77) A developer from the ioBroker Team will review the adapter, will provide comments or require changes label Mar 7, 2023
@Apollon77
Copy link
Collaborator

I will re-review soon

@mcm1957 mcm1957 removed the auto-checked This PR was automatically checked for obvious criterias label May 18, 2023
@mcm1957
Copy link
Collaborator

mcm1957 commented May 18, 2023

This PR MUST NOT try to update package-lock.json.
A PR requesting addition to latest must update exactly sources-dist.json only.

Please remove package-lock.jsosn from the PR or close this PR and create a new one. Feel free to use iobroker.dev support to create the PR with one or two clicks. When creating a ne PR, please reference this PR in it.

@satchafunkilus
Copy link
Contributor Author

Please remove package-lock.jsosn from the PR or close this PR and create a new one. Feel free to use iobroker.dev support to create the PR with one or two clicks. When creating a ne PR, please reference this PR in it.

I have created a new PR #2298

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
must be fixed The Adapter request got review/automatic feedback that is required to be fixed before another review question Something needs to be done or answered by the adapter developer REVIEW needed (apollon77) A developer from the ioBroker Team will review the adapter, will provide comments or require changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants