How to automate a camera PAN with a motion sensor (http commands)?

This thread may provide some help