alex9849/CocktailPi

Feature: Event system - Actions

Closed this issue · 0 comments

This issue should cover the event triggers. These actions should be:

  • Play a sound file
  • Call an URL
  • Execute a python script

Play sound file:
The sound file should be stored in the database.

Python script:
The python script should get uploaded and be stored on disk. This feature should be disabled if the application runs in demo mode.
Alternatively, it may be possible to store the file in the database and write it on a disk temporarily for execution. Depending on the action, the context should be passed as an argument.

Call an URL:
URLs should be callable per GET, POST, DELETE and PUT. Header parameters should be editable. Depending on the action, the context should be submitted in the body