Plugin to allow controling Jarvis remotely using RestAPI
Python Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This plugin embeds a lightweight RestAPI server to control Jarvis remotely. The HTTP Server is based on Python, so no dependency to install. There is no configuration needed, just install the plugin and start Jarvis normally.


$> ./
Starting RestAPI server on
Jarvis: Bonjour Alex

Now you can control Jarvis from another device.

Make Jarvis say something:

$> curl " World"
[{"Jarvis":"Hello World"}]

In the above example, Jarvis will say "Hello World" out loud.

You can also send orders to Jarvis:

$> curl ""
[{"Jarvis":"Bonjour Alex"}]

To prevent the remote Jarvis from speaking, use the mute option:

$> curl ""
[{"Jarvis":"je regarde..."},{"Jarvis":"Ciel plutôt dégagé. Minimales : 4 degrés."}]

You can easily extract the answer from the JSON, ex using jq:

$> curl "" | jq -r '.[1].Jarvis'
Ciel plutôt dégagé. Minimales : 3 degrés.

If you have defined an API Key for security, you have to pass it like this:

$> curl " am secured&key=12345
[{"Jarvis":"I am secured"}]

To retrieve the user commands:

$> curl ""
*MERCI*==say "De rien"
*COMMENT*APPELLE*==say "Je m'appelle $trigger"

To replace by a new set of commands (replace all):

$> curl -s -d '{"action":"set_commands","commands":"*MERCI*==say \"De rien\"\n*AIDE*==..."}'

To retrieve the user events:

$> curl ""
2       9       *       *       6,0     ~/jarvis/ -x "meteo"
0       7-20    *       *       1-5     ~/jarvis/ -x "quelle heure est-il"

To replace by a new set of events (replace all):

$> curl -s -d '{"action":"set_commands","commands":"2  9  *  *  6,0..."}'

To retrieve the user settings:

$> curl ""
{"username": "Alex", "version": "16.11.20", [...] }

To change settings (replace all):

$> curl -s -d '{"action":"set_config","config":"{\"username\":\"Alexylem\", [...]}"}'