Giter VIP home page Giter VIP logo

Comments (15)

miguelsasso avatar miguelsasso commented on July 19, 2024 3

It seems HOOBS stores the plugins in a different location. I found them here:

/home/hoobs/.hoobs/node_modules/homebridge-panasonic-air-conditioner

Just commented out that line. Hopefully it works. Thanks

from homebridge-panasonic-air-conditioner.

miguelsasso avatar miguelsasso commented on July 19, 2024

I posted the same issue a couple of weeks back (issue #18).

The index.js script runs the following every 3 hours (10800000 milliseconds):

// Refresh the login token every 3 hours
setInterval(function() {this._login();}, 10800000);

Which somehow causes the script to crash. I don't know how to code in node.js so I wouldn't know how to go about fixing it.

from homebridge-panasonic-air-conditioner.

miguelsasso avatar miguelsasso commented on July 19, 2024

That semicolon after this.login() doesn't look right...

from homebridge-panasonic-air-conditioner.

EvertJob avatar EvertJob commented on July 19, 2024

Just remove the line (or make it a comment). Works fine for me

from homebridge-panasonic-air-conditioner.

miguelsasso avatar miguelsasso commented on July 19, 2024

Any idea where I can find the index.js? I'm running HOOBS on a Pi

from homebridge-panasonic-air-conditioner.

EvertJob avatar EvertJob commented on July 19, 2024

You can check this location:
/usr/local/lib/node_modules/homebridge-panasonic-air-conditioner

Than restart the service, working fine for over a day right over here without any issue.

from homebridge-panasonic-air-conditioner.

EvertJob avatar EvertJob commented on July 19, 2024

@miguelsasso does it work?

from homebridge-panasonic-air-conditioner.

ursusHU avatar ursusHU commented on July 19, 2024

@miguelsasso does it work?

Hi! Thanks for the solution, it works since 2 days for me. :)

from homebridge-panasonic-air-conditioner.

ursusHU avatar ursusHU commented on July 19, 2024

My colleague checked the script. A small modification seems to solve the problem. I make a PR.

from homebridge-panasonic-air-conditioner.

codyc1515 avatar codyc1515 commented on July 19, 2024

Can you please try with the latest update? 5c4262a

Note: that this update has a fairly major change. The plugin used to call the server every time you open the Home app (which delays all plugins responses) and will now poll the server every 10 minutes or so. If you are using just the Home app (i.e. not the Comfort Cloud app or the remote) then your information will always be current and this will not be an issue, otherwise it will refresh every ten minutes.

from homebridge-panasonic-air-conditioner.

ursusHU avatar ursusHU commented on July 19, 2024

It is up and running since 12 hours, so the previously reported problem doesn’t exist anymore. Thank you very much for your efforts!

from homebridge-panasonic-air-conditioner.

codyc1515 avatar codyc1515 commented on July 19, 2024

Glad I could help :)

from homebridge-panasonic-air-conditioner.

miguelsasso avatar miguelsasso commented on July 19, 2024

Noted the latest version is configured to poll the server every "10 minutes or so".

I have multiple users in my household so 10 minutes may not be frequent enough. Could you perhaps provide a user configured parameter to define polling frequency?

from homebridge-panasonic-air-conditioner.

codyc1515 avatar codyc1515 commented on July 19, 2024

That’s only necessary if you’re using the remote or the Panasonic app. If they’re all using the Home app it should be updated live. Can you please confirm?

from homebridge-panasonic-air-conditioner.

miguelsasso avatar miguelsasso commented on July 19, 2024

Some members of my household still use the remote control. Also, the current temperature is required to be fetched from the Panasonic servers.

Is there any reason why Panasonic wouldn't allow us to poll their server say, every minute?

from homebridge-panasonic-air-conditioner.

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.