Comments (5)
Got the fix:
- interface.js
setDatetime: (date) => {
var b = Buffer.alloc(7);
b[0] = 3;
b[1] = (date.getFullYear() % 100);
b[2] = (date.getMonth() + 1);
b[3] = date.getDate();
b[4] = date.getHours();
b[5] = date.getMinutes();
b[6] = date.getSeconds();
return b;
}
- index.js
Proper getting info:
getInfo() {
return this.writeAndGetNotification(payload.setDatetime(new Date())).then(info => parseInfo(info))
}
And parsing status for setTemperature (BT return status for this, maybe for more too):
setTemperature(temperature) {
return this.writeAndGetNotification(payload.setTemperature(temperature)).then(info => parseInfo(info))
}
from node-eq3ble.
@JacekDob looks legit. would you be so kind and open a PR? :)
from node-eq3ble.
hey @maxnowack, because of this issue I can't use your homebridge-eq3ble plugin. It keeps changing the dates on the eq3. :( I already lost hours trying to implement @JacekDob's fork, but can't get it to work (node-noob here). I would greatly appreciate you pulling the changes and updating the package on npm. 👍
from node-eq3ble.
@maxnowack pull request #6 contains the changeset. Could you merge it into this package? If not, how can I help to get this merged?
from node-eq3ble.
finally, #6 was merged and released in v1.2.0 😊
from node-eq3ble.
Related Issues (5)
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 node-eq3ble.