alexylem / jarvis-x10

jarvis plugin to control x10 devices using mochad

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Expecting , delimiter: line 1 column 51 (char 50)

alexylem opened this issue · comments

When using this plugin from Jarvis-UI, it works, but displays the following error instead of spoken text:

{"error": "Expecting , delimiter: line 1 column 51 (char 50)"}

This is because of the X10 text output by mochad not well formatted in JSON:

pi@jarvis:~/jarvis $ ./jarvis.sh -jx "éteins le chauffage de la véranda"
[{"Jarvis":"J'éteins le chauffage de la veranda"}02/22 11:20:16 Tx PL HouseUnit: A8
02/22 11:20:16 Tx PL House: A Func: Off
]