-
Hello, I had the need to modify the starting time of an existing Sonos Alarm, without deleting and recreating it. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 2 replies
-
Hi. Ideally it would be:
and then I can directly pull your changes into the project. This usually only works if you use the same IDE, lint settings, style guides, ... But as you already had finished your work you can just send me the major part (from sonos-universal.js) and I will check it and most likely publish it in the next release next week. |
Beta Was this translation helpful? Give feedback.
-
Ok, so I've succeeded in cloning the repo, create a branch on my side, but I didn't succeed in pushing it to the main repo. |
Beta Was this translation helpful? Give feedback.
-
well done - looks good. I think I can copy it without any changes. Why did you add the helper.js - did you change anything there? |
Beta Was this translation helpful? Give feedback.
-
I copied the code and added a validation of the id and use a different REGEX as the original one do not allowed hours in range from 20 to 23. Have to add two more functions, do the testing and documentation and should finish that in the next 2 - 3 days. Thanks for your contribution! Feel free to add more :-) |
Beta Was this translation helpful? Give feedback.
-
Thanks, I will now learn how automated testing works. It would have helped me to see the REGEX was not the good one ... |
Beta Was this translation helpful? Give feedback.
-
Automated testing helps a lot. In VSCode I use mocha and chai with npm scripts:
I changed the REGEX name from |
Beta Was this translation helpful? Give feedback.
-
Hi. if you would like to create / request any further enhancements, let me also know. |
Beta Was this translation helpful? Give feedback.
-
thanks for your feedback and your contribution! |
Beta Was this translation helpful? Give feedback.
Hi.
Ideally it would be:
and then I can directly pull your changes into the project. This usually only works if you use the same IDE, lint settings, style guides, ...
But as you already had finished your work you can just send me the major part (from sonos-universal.js) and I will check it and most likely publish it in the next release next week.