Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
XMPP Plus
-
HTPCanwender
- Experienced User
- Posts: 89
- Joined: Wed Feb 08, 2012 9:41 pm
- Location: Germany
Re: XMPP Plus
Kevin,
thank you for your help extracting the sender from the message. A new question occured for me. The sender has for example the structure like
[email protected]/mobile
The ressource (/mobile) is appendet to the JID ([email protected]). Is the JID accessable at its own? Or do I have to extract the JID from the sender by myself?
Arnd
thank you for your help extracting the sender from the message. A new question occured for me. The sender has for example the structure like
[email protected]/mobile
The ressource (/mobile) is appendet to the JID ([email protected]). Is the JID accessable at its own? Or do I have to extract the JID from the sender by myself?
Arnd
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: XMPP Plus
every 10 seconds it will attempt to make a a connection. i can set steps into that so for say the first 20 it will try every 10 seconds then after that it will try once every minute. or i can have it spit out an event every 6th time it tries. so this way it won't flood the log with connection attempts
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: XMPP Plus
ok so the actual sender property of the payload object is an object itself, so when you do a str(sender) it will spit out the whole string of the jid as you see it when you print it. (the print statement does the str() automatically).
so these are the available properties for the sender.
sender.resource
sender.user
sender.local
sender.node
sender.username
sender.server
sender.domain
sender.host
sender.full
sender.jid
sender.bare
i believe the one you want is bare
so these are the available properties for the sender.
sender.resource
sender.user
sender.local
sender.node
sender.username
sender.server
sender.domain
sender.host
sender.full
sender.jid
sender.bare
i believe the one you want is bare
-
HTPCanwender
- Experienced User
- Posts: 89
- Joined: Wed Feb 08, 2012 9:41 pm
- Location: Germany
Re: XMPP Plus
For me everything ist ok now. If you want to change the time between reconnection attempts, please make it configurable in the setup of the plugin so that every user can coose his individual time.
Re: XMPP Plus
this morning after I resumed my PC from sleep, it didn't reconnect.... and I don't see any reconnection attempt in the log... it's offline ! damn !!!!
-
HTPCanwender
- Experienced User
- Posts: 89
- Joined: Wed Feb 08, 2012 9:41 pm
- Location: Germany
Re: XMPP Plus
My home server is allways on and is never in Sleep, Hibernate or Hybrid Sleep mode. So I don't have this problem.
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: XMPP Plus
ok the sleep issue is now fixed.
- Attachments
-
- XMPPPlus-1.2.6b.egplugin
- (538.81 KiB) Downloaded 59 times
Re: XMPP Plus
thank you !! it worked !!
Re: XMPP Plus
I just wanted to let you know that this morning when I resumed my PC it has connected to xmpp server automatically, so I guess this time everything is fixed !!
THANK YOU !!
THANK YOU !!
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: XMPP Plus
no worries. I knew we would get down to the bottom of it. it simply takes time. i do get burnt out trying to solve a problem sometimes and i need a break from it. gives me a different perspective on what is going on.
-
HTPCanwender
- Experienced User
- Posts: 89
- Joined: Wed Feb 08, 2012 9:41 pm
- Location: Germany
Re: XMPP Plus
I'm sorry, but it seems the plugin does not establish a stable connection to a XMPP server. I tried two different servers: jabber.de and jabber.hot-chilli.net. With both servers its the same.
I think, my internet connection is not the reason, because the jabber client on my android phone does not have any problems with the servers.
The connection is established for about a half day. Then the connection gets lost. It takes several hours of attempts until a longer lasting connection is established again.
The connection to the server often lasts ony a few minutes, then it is lost again. In this time, messages can be sent and received.
Its very strange. During the day, when my house generates several messages the connection to the server seems to keep established.
I think, my internet connection is not the reason, because the jabber client on my android phone does not have any problems with the servers.
The connection is established for about a half day. Then the connection gets lost. It takes several hours of attempts until a longer lasting connection is established again.
The connection to the server often lasts ony a few minutes, then it is lost again. In this time, messages can be sent and received.
Its very strange. During the day, when my house generates several messages the connection to the server seems to keep established.
- Attachments
-
- Action log.txt
- (144.38 KiB) Downloaded 52 times
Re: XMPP Plus
Hi, that's funny I was about to report the exact same thing !
I've been getting this from time to time, it has to be related with the internet connection lost and reestablished, as if the connection is not closed properly when the connection is lost, that's my guess. But there is definitely something to tweak again, to be 100% reliable.
HTPCanwender wrote: Thu Jul 05, 2018 7:50 am The connection is established for about a half day. Then the connection gets lost. It takes several hours of attempts until a longer lasting connection is established again.
The connection to the server often lasts ony a few minutes, then it is lost again. In this time, messages can be sent and received.
Its very strange. During the day, when my house generates several messages the connection to the server seems to keep established.
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: XMPP Plus
Thanks for the report i will see what i can do with it.
In the meantime is there anyone way I can get someone to install an XMPP server locally and connect to that and see if you still have connection issues.
Also can I be provided with a free server that is having these issues as well. this way i may be able to replicate the exact same issue.
In the meantime is there anyone way I can get someone to install an XMPP server locally and connect to that and see if you still have connection issues.
Also can I be provided with a free server that is having these issues as well. this way i may be able to replicate the exact same issue.
-
HTPCanwender
- Experienced User
- Posts: 89
- Joined: Wed Feb 08, 2012 9:41 pm
- Location: Germany
Re: XMPP Plus
I installed the ejabberd package from the synology community on my synology NAS, but I don't know how to configure it. For me the web interface is a book with seven seals. I have a dual stack (IPv4 and IPv6) internet access with a dynamic IP address.
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: XMPP Plus
I know how to use this server software. it's for windows
https://www.igniterealtime.org/projects/openfire/
the setup is easy. this is what I have been using to test with i also installed a messaging app that i connected to the server. I never had any Kind of a connection issue. Not saying there is not a malfunction with the plugin.
I want to make sure that it is in fact a server software thing that is causing the problem and not some other variable we have not thought of. I know it stays connected to that server app. and if you install it and experience the exact same issue then we will have to start looking at other possible causes. Its a step that will give us a direction to go.
it could be that the API standards for something have changed and the servers accounted for the change and the authors of some of the code that is being used has not updated I know there is a fix for an issue with the library SleekXMPP that has been requested to be added for almost a year now and it has not been done. This kind of tells us that the author is no longer maintaining the code. we have to isolate exactly the bit that is causing the problem. because I am using code written by someone else there is going to be a learning curve to figure out what is going on.
so the more information you are able to give me the better.
what server are you using when connecting??
is it something that i can create an account on for free?
if it is a server you have to pay to access would you be willing to supply me with a username and password (temporary) to be able to test/replicate the problem?
I will be do very best to fix it.
https://www.igniterealtime.org/projects/openfire/
the setup is easy. this is what I have been using to test with i also installed a messaging app that i connected to the server. I never had any Kind of a connection issue. Not saying there is not a malfunction with the plugin.
I want to make sure that it is in fact a server software thing that is causing the problem and not some other variable we have not thought of. I know it stays connected to that server app. and if you install it and experience the exact same issue then we will have to start looking at other possible causes. Its a step that will give us a direction to go.
it could be that the API standards for something have changed and the servers accounted for the change and the authors of some of the code that is being used has not updated I know there is a fix for an issue with the library SleekXMPP that has been requested to be added for almost a year now and it has not been done. This kind of tells us that the author is no longer maintaining the code. we have to isolate exactly the bit that is causing the problem. because I am using code written by someone else there is going to be a learning curve to figure out what is going on.
so the more information you are able to give me the better.
what server are you using when connecting??
is it something that i can create an account on for free?
if it is a server you have to pay to access would you be willing to supply me with a username and password (temporary) to be able to test/replicate the problem?
I will be do very best to fix it.
