2014-10-18, 16:04
Well this is strange, the following curl request (based on what my script would use) over HTTP is working as expected:
but the following (based on @edrikk's command) is not:
Edit: Aha, looks like @edrikk hasn't included "displaytime" in params{}
Code:
curl --data-binary '{"jsonrpc": "2.0", "params": {"message": "message", "displaytime": 50000, "title": "title"}, "method": "GUI.ShowNotification", "id": "libNotification"}' -H 'content-type:application/json;' 'http://192.168.0.8:8080/jsonrpc'
but the following (based on @edrikk's command) is not:
Code:
curl --data-binary '{"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"Phone Call","message":"xxx"},"displaytime":50000,"id":1}' -H 'content-type:application/json;' 'http://192.168.0.8:8080/jsonrpc'
Edit: Aha, looks like @edrikk hasn't included "displaytime" in params{}