Nextion - Value from a P2P Unit
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 11
- Joined: 10 Mar 2019, 16:09
Nextion - Value from a P2P Unit
Hello guys,
I have 2 x ESP8266 NodemMCU for testing.
The first one is running outside (Unit1 - BM280) and the second one (Unit 2) is getting the Informations va P2P Network and should display this informations on a Nextion display.
The communication between the 2 NodeMCUs is working right now. I am also able to send Informations from the NodeMCU to the Nextion display.
For example:
page0.t0.txt= "[Output#Analog]"
But i am not able to send the values from the "Unit1", which are received in "Unit2", to the Nextion.
page0.t0.txt= "[Wetter_draußen#Temperature]" is not working. The textbox in the Nextion is still empty.
Do you maybe know how I can fix this? Is there an other command needed?
Thank you in advance!
I have 2 x ESP8266 NodemMCU for testing.
The first one is running outside (Unit1 - BM280) and the second one (Unit 2) is getting the Informations va P2P Network and should display this informations on a Nextion display.
The communication between the 2 NodeMCUs is working right now. I am also able to send Informations from the NodeMCU to the Nextion display.
For example:
page0.t0.txt= "[Output#Analog]"
But i am not able to send the values from the "Unit1", which are received in "Unit2", to the Nextion.
page0.t0.txt= "[Wetter_draußen#Temperature]" is not working. The textbox in the Nextion is still empty.
Do you maybe know how I can fix this? Is there an other command needed?
Thank you in advance!
- Attachments
-
- NodeMCU.png (23.01 KiB) Viewed 15627 times
Re: Nextion - Value from a P2P Unit
The plugin looks to be disabled.
Also please test with renaming the task to use only standard ASCII characters (no ß )
Also please test with renaming the task to use only standard ASCII characters (no ß )
-
- Normal user
- Posts: 11
- Joined: 10 Mar 2019, 16:09
Re: Nextion - Value from a P2P Unit
Also updated the name in the places where you refer to it?
-
- Normal user
- Posts: 11
- Joined: 10 Mar 2019, 16:09
Re: Nextion - Value from a P2P Unit
This doesn't sound correct to me. It's been awhile since I've used P2P, but unless the feature has changed the task should be enabled. Furthermore, the receiving unit's task is not configured by the user. Instead, the task spot is left blank (must be same task spot as sending unit) and the software automatically populates the task via P2P's data sharing.The task is disabled because this information is coming from the Unit1 via P2P.
There's some good info in the "Sharing Plugins among Nodes" section found here: https://espeasy.readthedocs.io/en/lates ... /C013.html
- Thomas
-
- Normal user
- Posts: 11
- Joined: 10 Mar 2019, 16:09
Re: Nextion - Value from a P2P Unit
Hello Thomas,ThomasB wrote: ↑15 Nov 2019, 18:58This doesn't sound correct to me. It's been awhile since I've used P2P, but unless the feature has changed the task should be enabled. Furthermore, the receiving unit's task is not configured by the user. Instead, the task spot is left blank (must be same task spot as sending unit) and the software automatically populates the task via P2P's data sharing.The task is disabled because this information is coming from the Unit1 via P2P.
There's some good info in the "Sharing Plugins among Nodes" section found here: https://espeasy.readthedocs.io/en/lates ... /C013.html
- Thomas
I already did it as in the TUT in your link.
The Task on the receiving was created automatically and is working great. It updates the values as it should to. And also the lead developer of ESPeasy showed it the same way
https://github.com/letscontrolit/ESPEas ... -518608621
Maybe it is because of the "Display - Nextion [TESTING]" Firmaware version?
- Attachments
-
- NodeMCU.png (51.4 KiB) Viewed 15584 times
Re: Nextion - Value from a P2P Unit
But if you look at the example there, the "receiving" plugin is shown enabled. Yours appears as disabled. A disabled plugin may still show real-time data, but not share it.The Task on the receiving was created automatically and is working great. It updates the values as it should to. And also the lead developer of ESPeasy showed it the same way
https://github.com/letscontrolit/ESPEas ... -518608621
I suppose it could be related to the Nextion plugin. To check for that, create a dummy variable using the dummy plugin. Then use a rule to copy the P2P received temperature data to the dummy variable. Does the copied value appear in the dummy value?Maybe it is because of the "Display - Nextion [TESTING]" Firmaware version?
- Thomas
-
- Normal user
- Posts: 11
- Joined: 10 Mar 2019, 16:09
Re: Nextion - Value from a P2P Unit
Ok I´ve tried it but I don´t really know if this should work like this. I've done very little with rules and dummies so farI suppose it could be related to the Nextion plugin. To check for that, create a dummy variable using the dummy plugin. Then use a rule to copy the P2P received temperature data to the dummy variable. Does the copied value appear in the dummy value?
- Attachments
-
- NodeMCU.png (135.29 KiB) Viewed 15572 times
Re: Nextion - Value from a P2P Unit
I'm still confused by the red X in Task #1's Enabled box.
It would be great if you clicked its [Edit] button and grabbed a screenshot of the plugin's settings. Seems to me there should be a checkbox to Enable it and the snapshot will finally convince me that I'm wrong.
Regarding your dummy rule, it should look like this:
The taskvalue will not update until the Wetter#Temperature changes. So you may have to get out a hair dryer to make things happen.
And perhaps your Nextion temperature printing problem is related to the rules you are using. So it might be wise to post the rule file.
- Thomas
It would be great if you clicked its [Edit] button and grabbed a screenshot of the plugin's settings. Seems to me there should be a checkbox to Enable it and the snapshot will finally convince me that I'm wrong.
Regarding your dummy rule, it should look like this:
Code: Select all
on Wetter#Temperature do
TaskValueSet 5,1,[Wetter#Temperature]
endon
And perhaps your Nextion temperature printing problem is related to the rules you are using. So it might be wise to post the rule file.
- Thomas
-
- Normal user
- Posts: 11
- Joined: 10 Mar 2019, 16:09
Re: Nextion - Value from a P2P Unit
Oh lord. Shame on me. The received task wasn´t enabled in the options *facepalm*It would be great if you clicked its [Edit] button and grabbed a screenshot of the plugin's settings. Seems to me there should be a checkbox to Enable it and the snapshot will finally convince me that I'm wrong.
After activating everything is running well.
Thank you so much for your help! Now I can go to sleep without nightmares tonight.
- Attachments
-
- NodeMCU_2.png (27.27 KiB) Viewed 15555 times
-
- NodeMCU.png (60.22 KiB) Viewed 15555 times
Re: Nextion - Value from a P2P Unit
It's good to hear you solved the problem.
- Thomas
- Thomas
Who is online
Users browsing this forum: No registered users and 19 guests