GithubHelp home page GithubHelp logo

udi-poly-airscape's People

Contributors

billbinaz avatar einstein42 avatar exking avatar jimboca avatar

Watchers

 avatar

Forkers

billbinaz

udi-poly-airscape's Issues

Missing name and host option

Hi, I know I had this working at some point... but it isn't anymore. I've tried deleting everything, uninstalling and reinstalling it. When I add it now, there is no option to set the name or hostname of the fan.

https://i.imgur.com/71VrSci.png

What am I doing wrong? Can I just add a "custom option" w/ the right name and value?

How to tell if you have a Gen 2 controller?

I think my Airscape fan is too old, the logs are failing to query status.json.cgi and when I try to get to http://whf/status.json.cgi, it doesn't exist. But fanspd.cgi does, which I see in the forum thread from someone's script.

A screenshot of the webui showing my model and version: https://i.imgur.com/4vu0ssR.png

Is there a way to update the software on the controller? Or do I need to contact them about a newer controller? I think your older version of this node server worked w/ my whf, because I'd replaced my dumb url queries with it. :(

2020-05-12 19:42:05,847 Controller urllib3.connectionpool DEBUG    connectionpool:_new_conn: Starting new HTTP connection (183): whf:80
2020-05-12 19:42:05,943 Controller polyinterface      ERROR    pgSession:l_error: Airscape whf:get: Connection error for http://whf/status.json.cgi: HTTPConnectionPool(host='whf', port=80): Max retries exceeded with url: /status.json.cgi (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x802ddf5d0>: Failed to establish a new connection: [Errno 8] hostname nor servname provided, or not known'))
2020-05-12 19:42:05,944 Controller polyinterface      DEBUG    Airscape2:l_debug: airscape2_F:Airscape whf:set_from_response: In: False
2020-05-12 19:42:05,945 Controller polyinterface      DEBUG    Airscape2:l_debug: airscape2_F:Airscape whf:set_from_response: Out: {}

server_response some times contains a " in content breaking json parsing: "server_response": "ÈÝ$Þ³Pjpae5àÝËùý©t"9",

From the log:

2019-10-27 14:14:56,192 [Controller] [ERROR] Airscape whf5300:reponse:get: Failed to convert json {    "fanspd": 0,    "doorinprocess": 0,    "timeremaining": 0,    "macaddr": "60:CB:FB:00:80:3F",    "ipaddr": "192.168.0.23",    "model": "5300 WHF",    "softver": "2.17.1",    "interlock1":0,    "interlock2": 1,    "cfm": 0,    "power": 0,    "inside":-99,    "attic": 63,    "oa":-99,    "server_response": "ÈÝ$Þ³Pjpae5àÝËùý©t"9",    "dip_switches": "11110",    "remote_switch": "1111",    "setpoint": 0,    "dns": "192.168.0.1"    }: Expecting ',' delimiter: line 1 column 332 (char 331)
Traceback (most recent call last):
  File "/home/pi/.polyglot/nodeservers/Airscape/pgSession.py", line 80, in response
    rdata = json.loads(rtxt)

Ended up putting in a bandaid hack in pgSession.py

                rtxt = remove_control_characters(response.text)
                # cleanup will leave an extra " in the content
                start = rtxt.find("\"server_response\"")
                end = rtxt.find("\"dip_switches\"")
                rtxt = rtxt.replace(rtxt[start:end], "")
                rdata = json.loads(rtxt)

Not pretty. If I find a good way to pair up the " in regex will try that.

No module named polyinterface

I finally updated my Polisy from FreeBSD 12 -> 13 and Airscape is broken. It was also broken on 12, but for Python broken reasons. Any idea?

7/2/2021, 13:08:21 [polyglot] error: NSChild STDERR: Airscape: Traceback (most recent call last):
  File "./airscape-poly.py", line 5, in <module>
    import polyinterface
ModuleNotFoundError: No module named 'polyinterface'

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.