We have moved at community.getvera.com

Author Topic: XBMC Luua Notification script  (Read 1138 times)

Offline Wallace4793

  • Jr. Member
  • **
  • Posts: 95
  • Karma: +0/-2
XBMC Luua Notification script
« on: September 08, 2014, 04:07:31 pm »
Hi,

I've seen some posts regarding sending a notification to XBMC via the Luua engine but mine is failing. The XBMC code is :

192.168.0.8:8089/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22GUI.ShowNotification%22,%22params%22:{%22title%22:%22Motion%20Detected%22,%22message%22:%22Front%20Door%22},%22id%22:1}

This sends a message to XBMC (in this case saying motion detect front door)

To get it to work as a Luua script I've tried :

luup.inet.wget(?http://192.168.0.8:8089/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22GUI.ShowNotification%22,%22params%22:{%22title%22:%22Motion%20Detected%22,%22message%22:%22Front%20Door%22},%22id%22:1}?)


This added the luup script section and brackets but It doesn't work in the test page in develop apps. Can anyone point me int the right direction?

John


Offline Wallace4793

  • Jr. Member
  • **
  • Posts: 95
  • Karma: +0/-2
Re: XBMC Luua Notification script
« Reply #2 on: September 08, 2014, 05:58:29 pm »
Hi,

I worked it out, when I copied and pasted via email the " changed to a different font.