A Python library for interacting with the Timberborn HTTP automation API. Supports both direct API control and webhook-based event handling.
- Get the state of levers and adapters from Timberborn
- Change lever states
- Receive webhook events and trigger actions
pip install timberborn-httpfrom timberborn_http import TimberbornAPI
api = TimberbornAPI("http://localhost:8080")
# Get all levers
for lever in api.get_levers():
print(f"Lever {lever.name}is currently {lever.state}")
# Control a lever
api.switch_on("HTTP Lever 1")
api.set_color("HTTP Lever 1", "ff0000")import time
from timberborn_http import TimberbornWebhookServer
server = TimberbornWebhookServer(port=8081)
@server.on_event("HTTP Lever 1")
def handle_on(name):
print(f"{name} turned ON!")
while True:
time.sleep(1)More examples & details in the examples folder
- GitHub Issues
- Discord in
#⏱️automationor#🤖mod-creators