Plugin to allow controling Jarvis remotely using RestAPI
Python Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.


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.


$> jarvis
Starting RestAPI server on
Jarvis: Bonjour Alex

Now you can control Jarvis from another device.

From a browser, simply type in the URL to make Jarvis say something: World


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

From a terminal, you can use curl:

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

To have curl encoding the url for you, use two arguments:

  • -G to send data with GET method
  • --data-urlencode to encode special characters such as spaces in parameters
$> curl -G "" --data-urlencode "say=Hello World"
[{"answer":"Hello World"}]

You can make Jarvis listening directly for a command by simulating a hotword recognition:

$> curl ""

You can also send orders to Jarvis:

$> curl -G "" --data-urlencode "order=bonjour Jarvis"
[{"answer":"Bonjour Alex"}]

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

$> curl -G "" --data-urlencode "order=météo" --data-urlencode "mute=true"
[{"answer":"je regarde..."},{"answer":"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 -G "" --data-urlencode "say=I am secured" --data-urlencode "key=12345"
[{"answer":"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\", [...]}"}'