-
Notifications
You must be signed in to change notification settings - Fork 289
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
Conversation
Meeh, ok the resorted adapters break the detection :-) Results from a manual check at https://adapter-check.iobroker.in/
|
|
The URLs of the Github "raw content" includes the branch!! |
@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? |
No, then lets consider it as false positive |
Ok, understood. Is there any other to-do then on my end? |
No, I will do a review soon |
@Apollon77 I'll try a review here. |
Hi, here some review comments:
Thank you for checking and adjusting the comments |
PS: regarding the main vs master ... https://github.com/ioBroker/ioBroker.repositories/pull/1779/files#diff-1384831e45cb5b5fc71b065c642c35169d0ee196221e07b4b81075a0d3b0aed8R1627 here you have it mixed up |
@satchafunkilus some things I noticed in addition to @Apollon77:
|
@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. |
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 |
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 |
@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. |
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 :-) |
@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 |
@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 |
@satchafunkilus Anything we can support? |
@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:
Any clue what I can do here? |
Ideally delete node-modules and also the package-lock.json and then execute "npm install". How is it then? |
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. |
Did you really also deleted the package-lock.json???? Because this one IS uploaded |
Yes, both |
https://t.me/ioBroker_development/26673 could be related to this. Question: |
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 |
Please remove the tests for Node 12, which are no longer supported as of ioBroker/Testing version 4.0.0. |
@satchafunkilus |
Awesome, thanks. Much appreciated. Tests seem to have run through now without any issues. |
RE-CHECK! |
Automated adapter checkerioBroker.rmb-bhkw👍 No errors found
Add comment "RE-CHECK!" to start check anew |
Any to-do left here from my end? |
I will re-review soon |
This PR MUST NOT try to update package-lock.json. 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 |
No description provided.