Hi
Can someone please check my code and tell me why the text on the dashboard for the sporadic E entry is not changing.
[{"id":"d78a34f9.756958","type":"tab","label":"Weather","disabled":false,"info":""},{"id":"ee142ab8.569928","type":"inject","z":"d78a34f9.756958","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"60","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":135,"y":197,"wires":[["f408a168.a2bd5"]]},{"id":"c8da45e2.bfb458","type":"function","z":"d78a34f9.756958","name":"weather","func":"msg.payload = msg.payload.weather;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":,"x":625,"y":197,"wires":[["2f70a9c8.4389c6"]]},{"id":"7a0ca6ba.0ba8b8","type":"ui_text","z":"d78a34f9.756958","d":true,"group":"58a2d79b.5d99d8","order":2,"width":0,"height":0,"name":"","label":"Weather","format":"{{msg.payload}}","layout":"row-spread","x":1005,"y":197,"wires":},{"id":"e4e538ac.821fc8","type":"function","z":"d78a34f9.756958","name":"Wind Speed","func":"msg.payload = msg.payload.windspeed\nreturn msg;\n\n\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":,"x":635,"y":257,"wires":[["cad06bcf.b070c8"]]},{"id":"a426f875.fa2b58","type":"function","z":"d78a34f9.756958","name":"Air Pressure","func":"msg.payload = msg.payload.pressure;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":,"x":635,"y":317,"wires":[["7882f071.099ed","3bbbd649d89d9768","dac3710b.50257"]]},{"id":"7882f071.099ed","type":"ui_text","z":"d78a34f9.756958","group":"58a2d79b.5d99d8","order":4,"width":0,"height":0,"name":"","label":"Air Pressure","format":"{{msg.payload}} hPa","layout":"row-spread","x":815,"y":317,"wires":},{"id":"38c113c9.9229ec","type":"ui_text","z":"d78a34f9.756958","group":"58a2d79b.5d99d8","order":6,"width":0,"height":0,"name":"","label":"Wind Speed","format":"{{msg.payload}} km/h","layout":"row-spread","x":1210,"y":240,"wires":},{"id":"f408a168.a2bd5","type":"openweathermap","z":"d78a34f9.756958","name":"Pietermaritzburg","wtype":"current","lon":"","lat":"","city":"Pietermaritzburg","country":"south Africa","language":"en","x":375,"y":197,"wires":[["c8da45e2.bfb458","e4e538ac.821fc8","a426f875.fa2b58","2abda9e4.60dc46","46bebf67e8878ff2","d0388692e630b305","a1f9e76418a018bb","12efb553.7c997b","ec782a50.410ad8","c35063d1.a57ae"]]},{"id":"2abda9e4.60dc46","type":"function","z":"d78a34f9.756958","name":"Wind direction","func":"msg.payload = msg.payload.winddirection;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":,"x":620,"y":480,"wires":[["b98c475e.30aa28","3158e6826850effb"]]},{"id":"7d07405.331d1c","type":"ui_text","z":"d78a34f9.756958","group":"58a2d79b.5d99d8","order":5,"width":"0","height":"0","name":"","label":"Wind Direction","format":"{{msg.payload}} °","layout":"row-spread","x":1040,"y":420,"wires":},{"id":"dda93c21.74e17","type":"function","z":"d78a34f9.756958","name":"Round up","func":"msg.payload = msg.payload.toFixed(1).replace('.', ',');\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":,"x":1005,"y":257,"wires":[["38c113c9.9229ec","1f2f29ce1ede2ec5","a7fa4832.01e428"]]},{"id":"b98c475e.30aa28","type":"function","z":"d78a34f9.756958","name":"Round up","func":"msg.payload = msg.payload.toFixed(1).replace('.', ',');\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":,"x":860,"y":460,"wires":[["7d07405.331d1c","6325b3ac6109faa6"]]},{"id":"a1f9e76418a018bb","type":"function","z":"d78a34f9.756958","name":"Humidity","func":"msg.payload = msg.payload.humidity;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":,"x":630,"y":160,"wires":[["688f6d5647c0250c","4b79ee48.00f37"]]},{"id":"d0388692e630b305","type":"function","z":"d78a34f9.756958","name":"Temperature","func":"msg.payload = msg.payload.tempc;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":,"x":630,"y":120,"wires":[["dde0c8a0aa62e554","b2310e46505477c4","8f08daf6.ea07e8"]]},{"id":"dde0c8a0aa62e554","type":"ui_text","z":"d78a34f9.756958","group":"58a2d79b.5d99d8","order":3,"width":0,"height":0,"name":"","label":"Temperature","format":"{{msg.payload}} °C","layout":"row-spread","x":1020,"y":120,"wires":,"icon":"font-awesome/fa-thermometer-three-quarters"},{"id":"688f6d5647c0250c","type":"ui_text","z":"d78a34f9.756958","group":"58a2d79b.5d99d8","order":8,"width":0,"height":0,"name":"","label":"Humidity","format":"{{msg.payload}}%","layout":"row-spread","x":1200,"y":140,"wires":},{"id":"46bebf67e8878ff2","type":"debug","z":"d78a34f9.756958","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":460,"y":60,"wires":},{"id":"1f2f29ce1ede2ec5","type":"ui_gauge","z":"d78a34f9.756958","name":"Wind Speed","group":"939e0c720acfc3e1","order":2,"width":"5","height":"5","gtype":"gage","title":"Wind Speed","label":"KM/H","format":"{{value}}","min":0,"max":"50","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1210,"y":300,"wires":},{"id":"3bbbd649d89d9768","type":"ui_gauge","z":"d78a34f9.756958","name":"","group":"939e0c720acfc3e1","order":1,"width":"5","height":"5","gtype":"gage","title":"Air Pressure","label":"hPa","format":"{{value}}","min":0,"max":"1200","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1010,"y":340,"wires":},{"id":"b9f0e59728902186","type":"ui_text","z":"d78a34f9.756958","group":"58a2d79b.5d99d8","order":7,"width":0,"height":0,"name":"","label":"Wind Direction","format":"{{msg.payload}}","layout":"row-spread","x":1360,"y":460,"wires":},{"id":"a13eca44225cf8d4","type":"function","z":"d78a34f9.756958","name":"","func":"msg.payload=msg.payload.description\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":,"x":1200,"y":520,"wires":[["b9f0e59728902186"]]},{"id":"6325b3ac6109faa6","type":"ui_gauge","z":"d78a34f9.756958","name":"","group":"b8dfc66aedd6ced2","order":2,"width":"5","height":"5","gtype":"compass","title":"Wind Direction","label":"Degrees","format":"{{value}}","min":0,"max":"365","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1040,"y":480,"wires":},{"id":"b2310e46505477c4","type":"ui_gauge","z":"d78a34f9.756958","name":"","group":"b8dfc66aedd6ced2","order":1,"width":"5","height":"5","gtype":"gage","title":"Temperature","label":"°C","format":"{{value}}","min":0,"max":"48","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1030,"y":80,"wires":},{"id":"2f70a9c8.4389c6","type":"google-translate","z":"d78a34f9.756958","name":"Translate","to":"en","x":805,"y":197,"wires":[["7a0ca6ba.0ba8b8"]]},{"id":"cad06bcf.b070c8","type":"unit-converter","z":"d78a34f9.756958","category":"speed","inputUnit":"m/s","outputUnit":"km/h","inputField":"payload","outputField":"payload","inputFieldType":"msg","outputFieldType":"msg","roundOutputField":false,"outputFieldDecimals":"","name":"Convert","x":805,"y":257,"wires":[["dda93c21.74e17"]]},{"id":"3158e6826850effb","type":"compass-point","z":"d78a34f9.756958","direction":"toCompass","subset":"principal","language":"en","inputField":"payload","outputField":"payload","name":"","x":1020,"y":520,"wires":[["a13eca44225cf8d4"]]},{"id":"12efb553.7c997b","type":"function","z":"d78a34f9.756958","name":"Weather Description","func":"let descr = msg.payload.description.split(" ",4).join(" ");\nlet descr1 = msg.payload.description.split(" ").slice(-4).join(" ");\nmsg.payload= descr.concat(" ",descr1);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":,"x":640,"y":560,"wires":[]},{"id":"dac3710b.50257","type":"ui_chart","z":"d78a34f9.756958","name":"","group":"5e7ff3c7.d2db8c","order":9,"width":"7","height":"7","label":"Air Pressure","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"x":770,"y":400,"wires":[]},{"id":"8f08daf6.ea07e8","type":"ui_chart","z":"d78a34f9.756958","name":"","group":"5e7ff3c7.d2db8c","order":3,"width":"7","height":"5","label":"Temperature Variation","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"x":910,"y":40,"wires":[]},{"id":"a7fa4832.01e428","type":"ui_chart","z":"d78a34f9.756958","name":"","group":"5e7ff3c7.d2db8c","order":9,"width":"7","height":"5","label":"Wind Speed Variation","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"x":1250,"y":360,"wires":[]},{"id":"4b79ee48.00f37","type":"ui_gauge","z":"d78a34f9.756958","name":"Humidity","group":"939e0c720acfc3e1","order":3,"width":0,"height":0,"gtype":"wave","title":"Humidity","label":"%","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1210,"y":180,"wires":},{"id":"ec782a50.410ad8","type":"function","z":"d78a34f9.756958","name":"Dew Point","func":"e = msg.payload.tempc-((100-msg.payload.humidity)/5);\nmsg.payload = e.toFixed(2);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":,"x":580,"y":640,"wires":[["54eed1b5.1d278"]]},{"id":"54eed1b5.1d278","type":"ui_text","z":"d78a34f9.756958","group":"58a2d79b.5d99d8","order":8,"width":0,"height":0,"name":"","label":"Dew Point","format":"{{msg.payload}} °C","layout":"row-spread","x":810,"y":640,"wires":},{"id":"2c194341.460ccc","type":"debug","z":"d78a34f9.756958","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":970,"y":680,"wires":},{"id":"c35063d1.a57ae","type":"function","z":"d78a34f9.756958","name":"","func":"\n\ne = msg.payload.tempc- ((100-msg.payload.humidity)/5);\nvp = msg.payload.tempc * (msg.payload.humidity/100);\np = msg.payload.pressure;\nk = msg.payload.tempk;\nn = ((77.6p)/k)+((3.73310^5*e)/k^2);\nif (n=>157){\n \n msg.payload = "Open";\n msg.color = "red";\n} else {\n \n msg.payload = "Closed";\n msg.color = "green" ;\n}\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":,"x":560,"y":720,"wires":[["2c194341.460ccc","1ea99888.c4a7a7"]]},{"id":"1ea99888.c4a7a7","type":"ui_text","z":"d78a34f9.756958","group":"58a2d79b.5d99d8","order":8,"width":0,"height":0,"name":"","label":"Sporadic E","format":"{{msg.payload}}","layout":"row-spread","x":1020,"y":740,"wires":},{"id":"58a2d79b.5d99d8","type":"ui_group","name":"Current Weather","tab":"e823fcf3.f66dd","order":1,"disp":true,"width":"7","collapse":false},{"id":"939e0c720acfc3e1","type":"ui_group","name":"Gauges","tab":"e823fcf3.f66dd","order":2,"disp":false,"width":"7","collapse":false},{"id":"b8dfc66aedd6ced2","type":"ui_group","name":"gauges1","tab":"e823fcf3.f66dd","order":3,"disp":false,"width":"7","collapse":false},{"id":"5e7ff3c7.d2db8c","type":"ui_group","name":"Graphs","tab":"e976065e.5ee3d8","order":1,"disp":true,"width":"18","collapse":false},{"id":"e823fcf3.f66dd","type":"ui_tab","name":"Weather","icon":"dashboard","order":2,"disabled":false,"hidden":false},{"id":"e976065e.5ee3d8","type":"ui_tab","name":"Graphs","icon":"dashboard","disabled":false,"hidden":false}]
Thank you
Shaun