-
Notifications
You must be signed in to change notification settings - Fork 290
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 adapter webcal #2219
add adapter webcal #2219
Conversation
Link to adapter: https://github.com/dirkhe/ioBroker.webcal |
@dirkhe |
@mcm1957 [W504] setInterval found in "build/main.js", but no clearInterval detected BTW: Bluefox is invited |
Its correct that the cleanup code is technically not required. But @Apollon77 statefd lately that's good praxis to cleanup anyway. I cannot decide if this is recommended or required when using adapter.setTimer/this.setTimer. I suggest to wait for Apollon77's official review. |
In a earlier Version the clearTimeout was in, but than I saw the internal adapter setTimeout and thought this is better Variant and removed the manually clearTimeout. So for me it is ok, but than I would no longer used the adapter. setTimeout, because doubled clearTimeout is not needed. |
Will be done by Apollon77 when he has time for review. |
First of all - THANK YOU for the time and effort you spend to maintain this adapter. I would like to give some (updated but 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! Additional info for @Apollon77 |
Hi @mcm1957 Thank you very much for your detailed feedback.
I add additional housekeeping for setInterval and setTimeout
if I read the doc again, it is is ok, to set read to false. But for me it is not always clear, what have to use when. And if I check a lot of adapters, it will be handled differently.. But it is ok, With other states I tried to read the doc and find out the correct one. For the "fetchCal" button I thought, it could be useful to see, that button is pressed an released. But it is ok, no matter to discuss about
You are right here. I set a min-flag in the JSON for 10 minutes, so user input should be validated, but I didn't check this in the code afterward. I added a check and set to 10 minutes if value is lower. btw. Default is 60 minutes.
is in place now
I used this, because this is the entry point of different events, created by userinput in config. An also, perhaps better solution, could be "folder" here. |
Automated adapter checkerioBroker.webcal👍 No errors found
Add comment "RE-CHECK!" to start check anew |
ad buttons / switches Yes, many adapters use it in different and often in a non planned way. BUTTON SWITCH Hope this makes it more clear. |
Thanks, lgtm now @Apollon77 |
I changed type to "folder" instead of "group". If I see the icon in admin, it seems more like user-groups |
@Apollon77 - ping, this adapter is waiting for a review by you |
2 similar comments
@Apollon77 - ping, this adapter is waiting for a review by you |
@Apollon77 - ping, this adapter is waiting for a review by you |
RE-CHECK! |
RE-CHECK! |
As Apollon77 is still short of free time, I'll release this adapter now. |
Please add new Adapter to ioBroker.
Test diskussion in forum https://forum.iobroker.net/topic/62479/test-neuer-adapter-webcal