Dashboard shows no peers

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
ingoiot
Normal user
Posts: 83
Joined: 15 Aug 2019, 22:09

Dashboard shows no peers

#1 Post by ingoiot » 20 Aug 2019, 21:08

hi,

how to configure peer to peer network in espeasy?
i just enabled the p2p controller of both espeasy units and gave them 2 different numbers.
in dashboard i cant choose nodes.

something forgotten to activate?

TD-er
Core team member
Posts: 8749
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Dashboard shows no peers

#2 Post by TD-er » 20 Aug 2019, 23:13

Did you reboot the nodes after setting the UDP port in the advanced settings?
If you need to chose an UDP port, you may use 8266 as port, since that's the one officially assigned for this protocol.
But you may use any port you like as long as it is the same on all nodes that need to communicate with eachother.

ingoiot
Normal user
Posts: 83
Joined: 15 Aug 2019, 22:09

Re: Dashboard shows no peers

#3 Post by ingoiot » 21 Aug 2019, 00:19

tnx,
UDP port was set to 0.
couldnt find that in the docs.

TD-er
Core team member
Posts: 8749
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Dashboard shows no peers

#4 Post by TD-er » 22 Aug 2019, 10:27

Can you help me to clarify the documentation? https://espeasy.readthedocs.io/en/lates ... /C013.html

Or maybe should I also add a link to this part from the description of the Advanced settings page?

ingoiot
Normal user
Posts: 83
Joined: 15 Aug 2019, 22:09

Re: Dashboard shows no peers

#5 Post by ingoiot » 22 Aug 2019, 16:46

sry, didnt find that.

normally there is a link to the doc and to the wiki on the config pages.
Here it is missing. why are these setings in he advanced tab anyway?
maybe they should be moved to the controller config.(the RPIeasy fork does this)

also even if set in advanced menu, the controllerlist overview shows port 0.
so its unclear to me what port is meant.

TD-er
Core team member
Posts: 8749
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Dashboard shows no peers

#6 Post by TD-er » 23 Aug 2019, 12:45

It is a bit of legacy.
The settings on a page are almost always reflecting where they are stored.
But the ESPeasy p2p controller has a bit more legacy.

At first it wasn't even a controller, but more like an option for plugins called "global share".
But that led to all kinds of strange code flows with a lot of statements like "if global share"... etc.
That's a clear indication the design is flawed.
So that's why it was moved into a new controller, but still a bit strange one since it doesn't have a lot of settings.
But I guess adding a remark on the controller page to set the UDP port (and even have it set there) does make things a bit easier.

The ESPeasy p2p controller will also need a lot of TLC to make it more intuitive.
Even I have to look into the code myself to see how things ought to be done and that's also a clear sign it isn't intuitive at all :)

Post Reply

Who is online

Users browsing this forum: No registered users and 129 guests