I think mum would have been fascinated that the Christmas tree lights are HomeKit-enabled. But equally, happy that as ever we have the star from a Nepal market in pride of place.
from flask import Flask
import explorerhat as eh
app = Flask(name)
@app(‘/on’) def on(): eh.motor.two.forwards(50) return ‘ON’
@app(‘/off’) def off(): eh.motor.two.forwards(0) return ‘OFF’