Comments (4)
Thanks for the lesson. I'm just starting with JS and node so please be patient. I'm still learning.
I will use your example to refactor the plugin.
from pimatic-hap.
No worries. Promises are very hard to get, if you are new to the js development. Everyone struggles with them. If you have further questions or unsure with some statements, feel free to ask or ping me.
from pimatic-hap.
I refactored the plugin according to your comments (8598134), please have a look into the changes.
from pimatic-hap.
Looks good now! Thanks again for creating this great plugin. I think this helps pimatic a lot to get more attraction.
from pimatic-hap.
Related Issues (20)
- uncaught exception related to pimatic-hap HOT 1
- Deleting device in Pimatic doesn't seem to delete it also in Homekit HOT 13
- Change garage doors to windows shades HOT 4
- Q: Does pimatic-hap plugin require node.js 4.3 to run? HOT 2
- Q: Does this work on iOS 9 using Eve? HOT 2
- error [pimatic]: A uncaught exception occured: Error: dns service error: unknown HOT 1
- accessories/milight.coffee line 24 contains incorrect method name HOT 1
- Cannot find module 'hap-nodejs/node_modules/debug' HOT 2
- Feature request: Tradfri integration (color change) HOT 5
- uncaught exception HOT 4
- Does not work 100% on iOS 11 HOT 9
- [Feature request] Please support Netatmo rain and wind gauge HOT 1
- Error when pressing TradfriPlug switch in homekit on iPhone HOT 7
- dockerized pimatic HOT 4
- add raspbee lights to the supported template list HOT 25
- promise.then(...).catch(...).done is not a function HOT 10
- v0.12.0 - plugin does not start HOT 6
- Support for RaspBeeMultiDevice (Aqara door/window sensors) HOT 2
- [pimatic] error: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode HOT 1
- Devices allow only service selection of Lightbulb and Switch HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pimatic-hap.