Git Product home page Git Product logo

Comments (5)

JacekDob avatar JacekDob commented on July 27, 2024

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.

maxnowack avatar maxnowack commented on July 27, 2024

@JacekDob looks legit. would you be so kind and open a PR? :)

from node-eq3ble.

gS32tom avatar gS32tom commented on July 27, 2024

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.

ccoenen avatar ccoenen commented on July 27, 2024

@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.

maxnowack avatar maxnowack commented on July 27, 2024

finally, #6 was merged and released in v1.2.0 😊

from node-eq3ble.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.