Save money on your dorm AC by automatically cycling it on and off during the night time.
夜间自动循环开关空调,节省宿舍电费。
English:
HKUST accommodation charges AC fee by the time instead of power consumed.
This tool automatically switches your AC on and off at regular intervals, keeping your room cool while significantly reducing costs.
中文:
科大宿舍空调按时间而不是电量计费。本工具自动循环开关空调,保持房间凉爽的同时,使电费电费减半。
English:
- Download
HKUST_AC_Controller.exefrom the Releases page - Double-click to run
- Fill in your Token(see the tutorial below) and start it
中文:
- 从 Releases 页面下载
HKUST_AC_Controller.exe - 双击运行
- 填入Token(按下方教程获取)并运行
English:
git clone https://github.com/Nook001/HKUST_AC_CONTROLLER.git
cd HKUST_AC_CONTROLLER
pip install -r requirements.txt
python main.pyEnglish:
- Log in to HKUST AC Control Website
- Press
F12to open Developer Tools - Go to the Network tab
- Refresh the page (press
F5) - Click any request like
ac-statusorac-balance - In the Headers tab, find
Authorization - Copy the token after
Bearer(don't include "Bearer ")
中文:
- 登录 科大空调控制网站
- 按
F12打开开发者工具 - 切换到 Network(网络) 标签
- 刷新页面(按
F5) - 点击任意请求,如
ac-status或ac-balance - 在 Headers(请求头) 中找到
Authorization - 复制
Bearer后面的 token(不要复制 "Bearer ")
English:
- Paste your token into the application
- Set your desired interval (default: 30 minutes)
- Click Start
- The program will automatically cycle your AC
中文:
-
将 token 粘贴到应用中
-
设置开关间隔时间(默认:30 分钟)
-
点击 Start(开始)
-
程序将自动循环开关空调
-
程序将自动循环开关空调
English:
- Token: Your authorization key (keep it private!)
- Switch Interval: How often to toggle AC on/off (in minutes)
- Status Display: Shows current AC state (ON/OFF)
- Next Check: Shows when the next toggle will happen
- Log Area: View all operations in real-time
中文:
- Token(令牌):您的授权密钥(请妥善保管!)
- Switch Interval(切换间隔):空调开关间隔时间(单位:分钟)
- Status Display(状态显示):显示当前空调状态(开/关)
- Next Check(下次检查):显示下次切换的时间
- Log Area(日志区域):实时查看所有操作记录
English:
Running AC continuously: ~$200 HKD/month
Using this controller: ~$100 HKD/month
Savings: ~$100 HKD/month or $1,200 HKD/year(suppose we have student from North/South Pole that uses AC even in the winter)!
中文:
持续启动空调:约 200 港币/月
使用控制器:约 100 港币/月
节省:每月约 100 港币,每年约 1,200 港币!
English:
- Keep your computer running for the program to work
- Your token expires periodically—re-login to get a new one
- Use responsibly and comply with HKUST accommodation policies
- The program must stay open to continue cycling
中文:
- 程序运行期间请保持电脑开机
- Token 会定期过期,需重新登录获取
- 请合理使用,遵守科大宿舍管理规定
- 程序需要保持打开状态才能继续工作
English:
- Check if your token is valid (log in again if needed)
- Verify your internet connection (don't use VPN)
- Check the log area for error messages
中文:
- 检查 Token 是否有效(如需要请重新登录)
- 确认网络连接正常 (不要使用VPN)
- 查看日志区域的错误信息
English:
- Make sure you're running the latest version
- Try running as administrator
- Check if antivirus is blocking it
中文:
- 确保使用最新版本
- 尝试以管理员身份运行
- 检查杀毒软件是否拦截
English:
If you encounter any issues, please open an issue on GitHub.
中文:
如遇到问题,请在 GitHub 上提交 issue。
This project is licensed under the MIT License.
Made with ❤️ by HKUST students, for HKUST students
由科大学生制作,为科大学生服务
