A small Python tool/package to automate temperature control for Bambu Lab printers using TP-Link Smart Strips (HS300).
- Monitors the chamber temperature by subscribing to printer MQTT messages.
- Looks up desired temperature based on the currently loaded filament type.
- Automates turning on/off a TP-Link smart power strip outlet to maintain the target temperature.
-
Clone the repository:
git clone https://github.com/YourUsername/bambulabs_heater_mod.git cd bambulabs_heater_mod
-
Install in editable mode (so changes are reflected immediately):
pip install -e .
Or use poetry if you prefer:
poetry install
After installation, you can run the package in several ways:
-
Module mode:
python -m bambu_heater --help
You can pass
--host
and--password
arguments directly:python -m bambu_heater --host 192.168.42.87 --password 12345678
-
Console script (if you set one up in
pyproject.toml
—see below):bambu-heater --host 192.168.42.87 --password 12345678
If you don’t provide --host
or --password
on the command line, the tool looks for:
BAMBU_PRINTER_IP
BAMBU_PRINTER_ACCESS_CODE
export BAMBU_PRINTER_IP="192.168.42.87"
export BAMBU_PRINTER_ACCESS_CODE="12345678"
python -m bambu_heater
- Fork the repository and create your branch from
main
. - Make changes and ensure tests pass (add your own tests as needed).
- Submit a pull request for review.
BSD 3-Clause (or choose a license that suits your needs).