PowerHat API exapmles

Hi there, iv’e bought the new power hat (v2).
I’d like to see and customize an example of scheduled poweroff via hardware and power on with an hour later.

I tried to use the api docs but couldn’t get it to work.

Thanks.
Kashio.

Hi Kashio,

Here is an example of creating an event. Also notes on the parameters are available in the API docs.