Custom Code: Write custom trigger to play beep sound when speeding

The contents of this guide have been moved to our documentation website here.

This thread will remain open for discussion.

4 Likes

I keep getting validation errors when attempting to create the hook

Hi JVteam,

Can you state what specific validation error you are experiencing? Please send a screenshot showing the error to support@autopi.io.

I got this working, now I’d like to add more. Which ones of these are one time only and which do I have to recreate each time? Is there an API to show all the different types of commands you can create sounds for?

No update? hello???

I want to raise an event. The event will have a field that will contain a json field. I understand I can use something like
__salt__["event.fire"]({}, "vehicle/speeding")

but how do i specify the field and its value like {“pax”:10}

__salt__["event.fire"]({"pax":10, "another_data": variable_name}, "vehicle/speeding")

that’s how

That’s cool. AutoPi documentation is seriously degrading my ability to use it.