Page 2 of 4

Re: XBMC notify

Posted: Sunday 17 May 2015 21:48
by Raspberry Piet
Brutus wrote: Are there some settings to be made in Kodi?
In Kodi enable setting "Allow programs on other systems to control Kodi". (Setting > Services > Remote Control)
Then it would work i hope.

Re: XBMC notify

Posted: Sunday 17 May 2015 22:26
by pvm
Nice improvement on Domoticz. I did a quick test with the default settings. It did not work. So i changed the ip to one of my 2 Kodi installs and it works fine, nice!
I do not know how to configure it back to multicast... i do not remember the default setting. How should it be configured? My machines are 192.168.1.4 and 192.168.1.5, i would like to reach them both

Re: XBMC notify

Posted: Sunday 17 May 2015 22:33
by Brutus
Thanks for your reply. I have those options enabled already.

Still nothing hapens when you hit the test button.

The webserver has nothing to do with it? because that is usename and password protected.
You can not enter those in domoticz.

Re: XBMC notify

Posted: Sunday 17 May 2015 22:35
by pvm
Brutus wrote:Thanks for your reply. I have those options enabled already.

Still nothing hapens when you hit the test button.

The webserver has nothing to do with it? because that is usename and password protected.
You can not enter those in domoticz.
Do you have any firewalls enabled ? Running kodi on windows too?
(i'm running Domoticz on Pi and Kodi on Openelec , both non-windows, working fine (for 1 ip))

Re: XBMC notify

Posted: Sunday 17 May 2015 22:45
by Brutus
Both running on the same Windows Machine.
Firewall is the default from Windows.

Re: XBMC notify

Posted: Sunday 17 May 2015 22:52
by pvm
It might be the Windows firewall, check http://xbmc-commander.com/page2/page9/page9.html for some more info

Re: XBMC notify

Posted: Sunday 17 May 2015 22:54
by pvm
pvm wrote:Nice improvement on Domoticz. I did a quick test with the default settings. It did not work. So i changed the ip to one of my 2 Kodi installs and it works fine, nice!
I do not know how to configure it back to multicast... i do not remember the default setting. How should it be configured? My machines are 192.168.1.4 and 192.168.1.5, i would like to reach them both
Did some checking on the internet, should the multicast address be 224.0.0.0 ? (i tried but it did not work) I also tried 192.168.1.0, 192.168.1.255 and 192.168.1.* those did not work

Re: XBMC notify

Posted: Sunday 17 May 2015 22:59
by Brutus
pvm wrote:
pvm wrote:Nice improvement on Domoticz. I did a quick test with the default settings. It did not work. So i changed the ip to one of my 2 Kodi installs and it works fine, nice!
I do not know how to configure it back to multicast... i do not remember the default setting. How should it be configured? My machines are 192.168.1.4 and 192.168.1.5, i would like to reach them both
Did some checking on the internet, should the multicast address be 224.0.0.0 ? (i tried but it did not work) I also tried 192.168.1.0, 192.168.1.255 and 192.168.1.* those did not work
I had the same problem so I made a clean domoticz installation on another computer and looked for the default settings: IP adres: 224.0.0.1, port: 9777.

Re: XBMC notify

Posted: Sunday 17 May 2015 23:02
by pvm
Thnx, it does work for one system, other TV is in use so cannot check the other install, but expect this works (maybe I initially did not enable the notification before i changed the ip address... :roll: :oops: )

Re: XBMC notify

Posted: Sunday 17 May 2015 23:12
by Dnpwwo
Multicast will work on any address from 224... up to 239... as per the standard, there is no username or password involved.

I have only tested running Raspberry Pi to Raspberry Pis so not sure about the Windows firewall.

Make sure you look at the Domoticz log, that should give details of any errors.

Looks like I need to allow multiple specific IPs :( I'll do that over the next few days

Re: XBMC notify

Posted: Sunday 17 May 2015 23:22
by Brutus
Logfile gives me the following output. Also with other IP adresses.

2015-05-17 23:12:11.618 Kodi Notification (244.0.0.1:9777, TTL 5): Domoticz test, Domoticz test message!
2015-05-17 23:12:11.618 Kodi Notification Image: C:\Program Files (x86)\Domoticz\www\images\logo.png
2015-05-17 23:12:11.619 Notification sent (kodi) => Success

I have ruled out the Windows Firewall. I have given kodi.exe full access and still nothing.
Ruled out UDP port 9777 to kodi.exe still nothing.
Shutting down Windows Firewall also nothing.

EDIT:
I also installed kodi on another Windows 8.1 Machine on the netwerk. Enabled the remote control option. And opened the UDP port 9777. Still nothing.

Re: XBMC notify

Posted: Monday 18 May 2015 6:13
by Dnpwwo
I'm interested to know if anyone has it working on Windows (multicast or specific IP)? this may be a broader issue.

I don't have Domoticz or Kodi on Windows but can suggest some areas to investigate:
  • On the Kodi machine perform a 'netstat -a' and confirm that Kodi is listening on port 9777
  • Turn off windows firewall on source and destination machines and retest
  • If possible cable the machines together directly to make sure any switches/firewalls aren't dropping traffic
From the documentation (http://kodi.wiki/view/EventServer) it should work on Windows:
EventServer is the part of Kodi that accepts remote device input on all platforms.

Re: XBMC notify

Posted: Monday 18 May 2015 12:01
by Brutus
Dnpwwo wrote:I'm interested to know if anyone has it working on Windows (multicast or specific IP)? this may be a broader issue.

I don't have Domoticz or Kodi on Windows but can suggest some areas to investigate:
  • On the Kodi machine perform a 'netstat -a' and confirm that Kodi is listening on port 9777
  • Turn off windows firewall on source and destination machines and retest
  • If possible cable the machines together directly to make sure any switches/firewalls aren't dropping traffic
From the documentation (http://kodi.wiki/view/EventServer) it should work on Windows:
EventServer is the part of Kodi that accepts remote device input on all platforms.
Thanks for your reply. I think your are maybe right. To answer your questions:
  • netstat -a gives me an open UDP port: UDP 0.0.0.0:9777
  • When you disable the windows Firewall nothing works anymore, every connection is refused... (Microsoft Logic)
  • My Kodi / Domoticz is on the same Windows machine ;)

Re: XBMC notify

Posted: Monday 18 May 2015 14:29
by Dnpwwo
Okay so it looks like Kodi is listening which is a good, even better I think I may have worked this out.

The current code doesn't loop multicast back to the local host, I'll add that to the next version.

In the mean time, try using 127.0.0.1 as the IP Address rather that the machine's external IP. Can't hurt...

Re: XBMC notify

Posted: Monday 18 May 2015 16:00
by sincze
Dnpwwo wrote:Native Kodi notifications have been added to the Beta version from build 2448 onwards, tested against Kodi Helix.

By default it will multi-cast to all Kodi's on the local network (or you can target one specifically). Just enable it under Settings\Notifications and hit 'Test'. If you have a complicated network you may need to bump the number of 'Hops' so that the notification will go further.
:D Nice Will try this at home. Keep up the good work.

Re: XBMC notify

Posted: Monday 18 May 2015 19:23
by Brutus
Dnpwwo wrote:Okay so it looks like Kodi is listening which is a good, even better I think I may have worked this out.

The current code doesn't loop multicast back to the local host, I'll add that to the next version.

In the mean time, try using 127.0.0.1 as the IP Address rather that the machine's external IP. Can't hurt...
I also used the localhost IP yesterday. That didn't work also.
I now have the Domoticz and Kodi executables excluded in the Windows Firewall and still nothing even with the localhost IP

I have Domoticz running as a windows service and I saw it uses another executable (nssm.exe) also excluded this in the firewall for in and outgoing connections. Still nothing.

EDIT: Installed Kodi on my own computer. The broadcast didn't work the direct IP adress to my computer worked.
EDIT: Reinstalled kodi on the Domoticz machine. Still no luck.
EDIT: Installed Domoticz on my own computer. No notifications anymore. Even from server to host. This had worked.
After removing Domoticz on my own computer the notification works again frorm server to host...
EDIT: When installing domoticz as program and not as service I can receive notifications on my computer. (Kodi and Domoticz as program on same computer). So whats the differents...

Re: XBMC notify

Posted: Sunday 24 May 2015 14:56
by Dnpwwo
I uploaded a new version that has a change to the multicast to force messages to loopback and be visible to the machine that sends them. That should help people who run Kodi and Domoitcz on the same server.

Also added some logic to push the correct device icon with the message. Custom icons will be in the next version.

Re: XBMC notify

Posted: Monday 25 May 2015 15:26
by Brutus
Dnpwwo wrote:I uploaded a new version that has a change to the multicast to force messages to loopback and be visible to the machine that sends them. That should help people who run Kodi and Domoitcz on the same server.

Also added some logic to push the correct device icon with the message. Custom icons will be in the next version.
Thank you. When the a new Windows Domoticz Setup file is online I will test this.

Greetings.

Re: XBMC notify

Posted: Monday 25 May 2015 20:48
by Brutus
Dnpwwo wrote:I uploaded a new version that has a change to the multicast to force messages to loopback and be visible to the machine that sends them. That should help people who run Kodi and Domoitcz on the same server.

Also added some logic to push the correct device icon with the message. Custom icons will be in the next version.
It still will not work as I install Domoticz as a service... :roll:

Re: XBMC notify

Posted: Sunday 31 May 2015 4:12
by Dnpwwo
Beta version 2508 has added the ability to specify multiple IP addresses (semicolon delimited) to cover cases where multicast is being dropped on the network. Multicast and specific IPs can be mixed as required.

Icon support has been uplifted as well.