jimboca / udi-poly-airscape Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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?
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: {}
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.
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'
This is working, but Google Home display does not work properly. Waiting response from Benoit.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.