Hello
Thank you for your reply.
I tried the code but I had a separate problem with the kodi app so changed the json to put a message on to the screen. So I could still test the HG code.
http://192.168.***.***:80/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22GUI.ShowNotification%22,%22params%22:{%22title%22:%22Front%20Doorbell%22,%22message%22:%22Someone%20at%20the%20door!%22},%22id%22:1}%22
I could not get your code to work but I looked at the link you suggested and used the other code on the site. That gave me this:
using (var webClient = new WebClient())
{
var json = "{\"jsonrpc\":\"2.0\",\"method\":\"GUI.ShowNotification\",\"params\":{\"title here\":\"Title\",\"message\":\"Door\"},\"id\":1}";
var response = webClient.UploadString("http://192.168.***.***:8080/jsonrpc", "POST", json);
}
And it worked. It put a 2 line Text popup onto the TV screen with line 1 being “title here” and on the second line “Door”.
When I have the Kodi app working I hope to test it with code above adjusted with the required json = command as in my first post of this thread above and will report back but this could take some time sorry,
Thank you for your help.
IanR