Coder Social home page Coder Social logo

Comments (5)

i3creations avatar i3creations commented on September 9, 2024 2

I had the same issue. Turns out when you look at the index.js the BlynkPlatform.prototype.hardwareWrite method code is commented out. This means that in fact nothing will happen when you try to use this plugin. I hacked some code in there just to get things working end to end but it only works for a "switch":
BlynkPlatform.prototype.hardwareWrite = function(pinString, value) { value = value ? 1:0; request('https://' + this.server + ':' + this.httpsPort + '/' + this.token + '/update/' + pinString + '?value=' + value, function (error, response, body) { if (response) { console.log('Status:', response.statusCode); console.log('Headers:', JSON.stringify(response.headers)); console.log('Response:', body); } else { console.log('Error during performing request : ', error); } } ) };

from homebridge-blynk.

jaminNZx avatar jaminNZx commented on September 9, 2024

Awesome I'll give this a go.

from homebridge-blynk.

jaminNZx avatar jaminNZx commented on September 9, 2024

hey i3creations.. is this working for you at all now? seems to just crash when I try and run the node

from homebridge-blynk.

henriqcf avatar henriqcf commented on September 9, 2024

Hi. I have the same issue. Is there a solution already? Thank you.

from homebridge-blynk.

andrey-goryunov avatar andrey-goryunov commented on September 9, 2024

i3creations, you are ROCK! Your solution work for SWITCH mode great!

from homebridge-blynk.

Related Issues (20)

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.