-
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
New Adapter iobroker.emporia #2194
Conversation
new name |
New adapter iobroker.emporia |
Its at least unusual to add an Adapter to latest and stable at the same time. Please see README.md describing the normal sequence. I would suggerst to remove addition to stable und create a second PR after this adapter is reviewed and added to latest and at leaset some users have tested it using latest repo. But feel free to wait for any response from @Apollon77 - he will finally decide this topic |
Adapter repo: https://github.com/Chris-656/ioBroker.emporia |
First of all - THANK YOU for the time and effort you spend to maintain this adapter. I would like to give some (preliminary) feedback based on my personal oppinion. This is NOT an offical review and @Apollon77 might have several additional suggestions or even a different oppinion to one or the other statement. Please feel free to contact him (or wait for a response from him) if you cannot follow my suggestsions or before you spend major effort.
Thanks for reading and evalutaing this suggestions. |
See questions below in your text
regards Chris
…________________________________
First of all - THANK YOU for the time and effort you spend to maintain this adapter.
I would like to give some (preliminary) feedback based on my personal oppinion. This is NOT an offical review and @Apollon77<https://github.com/Apollon77> might have several additional suggestions or even a different oppinion to one or the other statement. Please feel free to contact him (or wait for a response from him) if you cannot follow my suggestsions or before you spend major effort.
* consider using adapter.setTimeout / this.setTimeout instead of (standard) setTimeout :Done
The adapter package provides wrapper routines for native setTimeout, setInterval, clearTimeout and clearInterval. Using those routines ensures that timers are cancelled on on load. Additional checks on thomse limits might be performed, too. So consider replacing native setTimeout/clearTimeout by adapter.setTimeout/adapter.clearTimeout or this.setTimeout/this.clearTimeout. The same refers to setInterval/clearInterval.
* check and limit configurable timeouts / intervals
Node setTimeout/setInterval routines have a maximum allowed value of 2,147,483,647 ms. Using delays larger than 2,147,483,647 ms (about 24.8 days) result in the timeout being executed immediately. So all (user configurable) values passed to setTimeout / setInterval should be checked and limited.
Not clear to me. In index_m.html there is the limitation implemented
<input type="number" class="value" id="refresh" min="5" max="1000" />
Is this not sufficient ?
* check and limit intervals used to access cloud services
Limit all intervals used to access cloud services to a reasonable value. If users configure an inapprobiate access rate this could lead to suspending the service by the provider for all ioBroker users.
Ok understand. Try to implement a time out for the state active
* Please remove addition to stable repository until your adapter has passed some time at latest repository. Done
Thanks for reading and evalutaing this suggestions.
McM1957
regards Chris
|
OK, I did not check index_m.html. Limiting could be OK there. But users could change the value within objects too (manually). So personally I prefer to check the limits insode code too. But its your decision whether a double check is appropiate. I do not think, this would be blocking at Apollons check.
No I think my comment was misleading. I do not think that a timeout is required. The important point is to limit polls from cloud to a maximum rate. The user should not be allowed to poll i.e. every second while a poll every minute would be more than sufficient (i.e. when polling whether data od currency exchange rates, ...) As notes above you limit to 5 (seconds I assume) so this limit ist low but might be ok. The problem which should be addressed is, that we already had situations where the cloud provider access from iobroker was blocking due to inappropiate high load caused by few but much to heavy polling. Thanks for reading and reacting on the suggestions. McM |
Please remove node 14 from test-and-release.yml and (optionally) add node 20 to testing matrix. Thanks |
I would like to give some additional (preliminary) feedback based on my personal oppinion. This is NOT an offical review and @Apollon77 might have several additional suggestions or even a different oppinion to one or the other statement. Please feel free to contact him (or wait for a response from him) if you cannot follow my suggestsions or before you spend major effort.
Thanks for reading and evaluating this suggestions. Please add a comment when you have reviewed and fixed the suggestionsor at least commented the suggestions and you think the adapter is ready for a re-review! |
How shall we continue? |
Automated adapter checkerioBroker.emporia👍 No errors found
Add comment "RE-CHECK!" to start check anew |
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.
New adapter iobroker.emporia
I changed the role names and added V 20.x in the tests. How we can now proceed ? |
Why did you add the adapter to stable (again) ? Please add a comment when done! |
@Chris-656 |
RE-CHECK! |
This adapter has been released to latest repository and should be visible within 24h maximum. Please create a thread at https://forum.iobroker.net/category/91/tester titled like "Test Adapter " to collect some user feedback and provide a link to this topic when requesting addition to stable repository later. Note: If an other testing topic already exists, ist OK to continue using this topic too. |
New adapter iobroker.emporia
Checklist
[ ] All requirements to bring a new adapter into Stable repository are fulfilled (see https://github.com/ioBroker/ioBroker.repositories#requirements-for-adapter-to-get-added-to-the-stable-repository)
[ ] Please add a link to Forum testing thread, if existing.
What will happen after creating this request?
Thank you for your new adapter in ioBroker!