HTTP Get to dashboard issue

I have 6 Nodemcu's programmed to return data both via MQTT and via HTTP. One is working correctly. I send a get command


that feeds into a template node
template
and it's supposed to display data.
I can connect via firefox
node mcu page
and it displays but the dashboard doesn't

the debug shows data
debug
and one does work.
So far it's man versus machine and the machine is winning 6 to 1.
I have recreated all the nodes, deleted, set it up again and still no go.
Pi 4b running Pi OS.
Node red ver 3.02
Node js ver 16.XX
installed node red from the command line using the script with -node16
Any thoughts appreciated.

The big question I see is what is your flow? Maybe someone else might see it, but I'm reading through this a couple of times and I can't see what is working and what isn't, besides the output of the data working and the dashboard not. Having more detail about your flow would help identify what's working and what's not.

Off-the-cuff, I see a few things that make me wonder. They may not be your issue, but then again...

  • You're sending a GET command. Are you pulling data from somewhere to use in your flow or is something getting data from your flow to use where it's at? This may be setup correctly, but I don't know what it's trying to do.
  • Template node. I see nothing inside of it besides displaying msg.payload. Apparently that's working enough to display the light data passed into it. I also see it passing the same message out, but don't know where it's going.
  • Your dashboard generally may have problems displaying if it hasn't received data to render objects yet. What objects do you have setup? Are they set to display on this dashboard group? There are spots setup for them so I assume so. But I'm not assuming very strongly. The dashboard objects need to be setup for the tab/group you want to see them in, then they need data or something else to render. It could also be that the spot you've given them is too small to display, which can cause issues as well.
  • Your debug is showing what looks to be a correct web page transaction. No issues there. Has to be something else outside of that.

Again, that's just off-the-cuff answers. Perhaps I landed on something that can solve your problem. Perhaps I'm out in left field running towards the foul line. I don't know. If you could post your flow, or even a part that you think isn't working, that would help tremendously.

[{"id":"9585c934a7eb082f","type":"tab","label":"HTTP","disabled":false,"info":""},{"id":"7da4956fa95046d6","type":"http request","z":"9585c934a7eb082f","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"192.168.5.33","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":530,"y":360,"wires":[["2c6c0e1162a1748c"]]},{"id":"c14621b6a7ee771d","type":"http request","z":"9585c934a7eb082f","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"192.168.5.41","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":530,"y":440,"wires":[["3168117bd33fe826"]]},{"id":"009418dca40c9b86","type":"http request","z":"9585c934a7eb082f","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"192.168.5.42","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":530,"y":500,"wires":[["ffa9b7cc6909c4a8"]]},{"id":"ffa9b7cc6909c4a8","type":"ui_template","z":"9585c934a7eb082f","group":"e24b4a6b4a35be69","name":"Random2","order":1,"width":6,"height":"1","format":"<div ng-bind-html=\"msg.payload\"></div>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","className":"","x":800,"y":500,"wires":[[]]},{"id":"7085a890126416d1","type":"http request","z":"9585c934a7eb082f","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"192.168.5.43","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":530,"y":560,"wires":[["4480fef9c5d52d2f"]]},{"id":"4480fef9c5d52d2f","type":"ui_template","z":"9585c934a7eb082f","group":"43a0d22845c594a6","name":"Random3","order":1,"width":6,"height":"1","format":"<div ng-bind-html=\"msg.payload\"></div>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","className":"","x":800,"y":560,"wires":[[]]},{"id":"f8cce4a79cd4a87c","type":"http request","z":"9585c934a7eb082f","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"192.168.5.44","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":530,"y":620,"wires":[["af1b9f5d15649a3e"]]},{"id":"af1b9f5d15649a3e","type":"ui_template","z":"9585c934a7eb082f","group":"73e0e48ccc19d81b","name":"Random4","order":1,"width":6,"height":"1","format":"<div ng-bind-html=\"msg.payload\"></div>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","className":"","x":800,"y":620,"wires":[[]]},{"id":"ce5330d83059e771","type":"http request","z":"9585c934a7eb082f","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"192.168.5.45","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":530,"y":680,"wires":[["da130920e286fe8b"]]},{"id":"da130920e286fe8b","type":"ui_template","z":"9585c934a7eb082f","group":"776abc49e32d2efa","name":"Random5","order":1,"width":6,"height":"1","format":"<div ng-bind-html=\"msg.payload\"></div>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","className":"","x":800,"y":680,"wires":[[]]},{"id":"2c6c0e1162a1748c","type":"ui_template","z":"9585c934a7eb082f","group":"a90608a251d13282","name":"garage","order":1,"width":6,"height":"5","format":"<div ng-bind-html=\"msg.payload\"></div>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","className":"","x":800,"y":360,"wires":[[]]},{"id":"3168117bd33fe826","type":"ui_template","z":"9585c934a7eb082f","group":"d1562c3aad96e509","name":"Random1","order":2,"width":6,"height":"1","format":"<div ng-bind-html=\"msg.payload\"></div>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","className":"","x":800,"y":440,"wires":[[]]},{"id":"f226c75b1c389c07","type":"ui_template","z":"9585c934a7eb082f","group":"d6ccb8960d7c8818","name":"outside","order":1,"width":6,"height":"4","format":"<div ng-bind-html=\"msg.payload\"></div>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","className":"","x":800,"y":300,"wires":[[]]},{"id":"3f07ecee4886a6f1","type":"ui_template","z":"9585c934a7eb082f","group":"2175014b450956ad","name":"time","order":1,"width":6,"height":1,"format":"<div>\n   <md-button class=\"md-button mine-button\"\n    data-topic=\"target\"\n    data-payload=\"1\">{{msg.payload}}\n   </md-button>\n</div>","storeOutMessages":true,"fwdInMessages":false,"resendOnRefresh":true,"templateScope":"local","className":"","x":790,"y":140,"wires":[[]]},{"id":"28df657b52e3e479","type":"link in","z":"9585c934a7eb082f","name":"sensor time in","links":["8e746d1d4196bb7a"],"x":575,"y":120,"wires":[["3f07ecee4886a6f1","c04b03bd682775c7"]]},{"id":"c04b03bd682775c7","type":"ui_template","z":"9585c934a7eb082f","group":"d1562c3aad96e509","name":"time","order":1,"width":6,"height":1,"format":"<div>\n   <md-button class=\"md-button mine-button\"\n    data-topic=\"target\"\n    data-payload=\"1\">{{msg.payload}}\n   </md-button>\n</div>","storeOutMessages":true,"fwdInMessages":false,"resendOnRefresh":true,"templateScope":"local","className":"","x":790,"y":80,"wires":[[]]},{"id":"6043c6b803f4092a","type":"cronplus","z":"9585c934a7eb082f","name":"1","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule1","topic":"topic1","payloadType":"default","payload":"","expressionType":"cron","expression":"1/5 * * * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":210,"y":440,"wires":[["c14621b6a7ee771d","0a99418d594a2612"]]},{"id":"ae30189aaf5a6c08","type":"cronplus","z":"9585c934a7eb082f","name":"2","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule1","topic":"topic1","payloadType":"default","payload":"","expressionType":"cron","expression":"2/5 * * * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":210,"y":500,"wires":[["009418dca40c9b86","7da4956fa95046d6"]]},{"id":"fa5fbc082676edfe","type":"cronplus","z":"9585c934a7eb082f","name":"3","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule1","topic":"topic1","payloadType":"default","payload":"","expressionType":"cron","expression":"3/5 * * * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":210,"y":560,"wires":[["7085a890126416d1"]]},{"id":"1f9e688e3a6e448c","type":"cronplus","z":"9585c934a7eb082f","name":"4","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule1","topic":"topic1","payloadType":"default","payload":"","expressionType":"cron","expression":"4/5 * * * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":210,"y":620,"wires":[["f8cce4a79cd4a87c"]]},{"id":"206b4cb8f049de6d","type":"cronplus","z":"9585c934a7eb082f","name":"5","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule1","topic":"topic1","payloadType":"default","payload":"","expressionType":"cron","expression":"5/5 * * * * * *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":210,"y":680,"wires":[["ce5330d83059e771"]]},{"id":"a3c24e05f3070b18","type":"debug","z":"9585c934a7eb082f","name":"debug 1","active":false,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"payload","statusType":"auto","x":700,"y":220,"wires":[]},{"id":"0a99418d594a2612","type":"http request","z":"9585c934a7eb082f","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"192.168.5.34","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":530,"y":300,"wires":[["f226c75b1c389c07","a3c24e05f3070b18"]]},{"id":"e24b4a6b4a35be69","type":"ui_group","name":"Random2","tab":"dc4ccad3bf7ec8c9","order":2,"disp":false,"width":"6","collapse":false,"className":""},{"id":"43a0d22845c594a6","type":"ui_group","name":"Random3","tab":"dc4ccad3bf7ec8c9","order":3,"disp":false,"width":"6","collapse":false,"className":""},{"id":"73e0e48ccc19d81b","type":"ui_group","name":"Random4","tab":"dc4ccad3bf7ec8c9","order":4,"disp":false,"width":"6","collapse":false,"className":""},{"id":"776abc49e32d2efa","type":"ui_group","name":"Random5","tab":"dc4ccad3bf7ec8c9","order":5,"disp":false,"width":"6","collapse":false,"className":""},{"id":"a90608a251d13282","type":"ui_group","name":"Sensor Garage","tab":"2d33d94a4b675c46","order":3,"disp":true,"width":"6","collapse":false,"className":""},{"id":"d1562c3aad96e509","type":"ui_group","name":"Random1","tab":"dc4ccad3bf7ec8c9","order":1,"disp":false,"width":"6","collapse":false,"className":""},{"id":"d6ccb8960d7c8818","type":"ui_group","name":"Outside","tab":"2d33d94a4b675c46","order":4,"disp":false,"width":"6","collapse":false,"className":""},{"id":"2175014b450956ad","type":"ui_group","name":"Sensor","tab":"2d33d94a4b675c46","order":1,"disp":false,"width":"6","collapse":false,"className":""},{"id":"dc4ccad3bf7ec8c9","type":"ui_tab","name":"Lights","icon":"fa-eercast","order":17,"disabled":false,"hidden":false},{"id":"2d33d94a4b675c46","type":"ui_tab","name":"Sensors","icon":"fa-grav","order":18,"disabled":false,"hidden":false}]

here's the flow. So, the data out of the templates goes nowhere, I am getting the status from the nodemcu to display in the dashboard. As you can see from the flow it's pretty simple. The garage one works and none of the others display. I just triple checked to make sure that the pages had the correct template to display the data. If there is a problem there I am completely over looking it. As far as I can tell it should be good. Also, the garage data does show up on dashboard.
[EDIT]

So, figured out the problem, wasn't the pi, it was the nodemcu programming. However, something you said about the data coming in clued me onto the issue. I was looking at how long the HTTP node said requesting and for the garage which was working it took a lot longer than for the others. So I put a debug node on that data and it looked different from the others. Worked my way back to the nodemcu programming. Thanks for the mental kick in the pants.

Not quite what I was going for, but you're welcome! :laughing:

Glad you got it working.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.