Automate ntu hall aircon with pure python. This is legal cuz requests are authorized.
The only thing you need to get is your personal authorization token. If you have your own ways to get it, ignore everything below.
Prereq:
- rooted android machine (VM, physical device, or Windows Subsystem for Android). Magisk is recommended for rooting. For me, I simply downloaded a rooted version of WSA.
- an android program to intercept network traffic (e.g. Reqable)
Steps to get the token:
- Follow the steps in Reqable to download the root system certificate.
- Add Hall Aircon app to Reqable. Open Hall Aircon app.
- Control Hall Aircon app. You will see different requests in Reqable, depending on what you do.
- Find your personal bearer token in the request. Do not leak it.
How to control:
- Simple way: just check auto.py and modify what you want to do.
- More: check the requests and explore yourself.
Somehow you can bypass the frontend to set the temperature to 19, but idk if it really feels like 19.