apprise: Kodi not working

Notifications are not working on Kodi 17 (Krypton). Here is the command and error message:

apprise -t 'my title' -b 'my notification body' 'kodi://user:pass@kodi:8080'
17:15:14.490 T:2424492960   ERROR: JSONRPC: Failed to parse '{"id":1,"image":"http://nuxref.com/apprise/themes/default/apprise-info-128x128.png","jsonrpc":"6.0","method":"GUI.ShowNotification","params":{"displaytime":12000,"message":"my notification body","title":"my title"},"type":"info"}'

Changing jsonrpc from 6.0 to 2.0 seems to do the trick. I am not sure if this would break older and EOL versions of Kodi. Is backward compatibility important? The kodi team does not plan another 17 release and 18 (Leia) alpha 1 was released in March.

Also FYI, the apprise image is not being displayed in the notification, but the theme info icon is. I am not sure if this is due to Kodi’s themes I tested, including the default. Personally, I prefer the icon over the image.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (9 by maintainers)

Commits related to this issue

Most upvoted comments

For now, I can use xbmc://. Feel free to push a new release when you think it is best. Seeing that the _payload_20 and _payload_60 are the same, some code clean up might be in order.