Weather / Humidty / Wind with Animated Icons #38
Replies: 4 comments 13 replies
-
How do I send this to my clock? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
any one else having issues with Wind being displayed? My screen mostly doesn't display it. I do see it occasionally, not sure why. also is there a good character for the degree symbol on the pixelit? can't seem to find one that displays correctly. Additionally thank you for this development! |
Beta Was this translation helpful? Give feedback.
-
With better image IMHO (awtrix style) [{"id":"7a385145.cb8ce","type":"function","z":"fc438176d22e3654","d":true,"name":"Text","func":"\nvar windspeed = msg.payload.windspeed*3.6;\nmsg.windspeed = windspeed.toFixed(0) + \"kmh\";\n\nnode.status({ fill: \"green\", shape: \"ring\", text: \"Current windspeed:\" + msg.windspeed });\nreturn msg;\n\n","outputs":1,"noerr":0,"x":830,"y":360,"wires":[["cbeab066.5b87"]]},{"id":"7c55b23a.28ea9c","type":"function","z":"fc438176d22e3654","d":true,"name":"Text","func":"msg.humidity = msg.payload.humidity.toFixed(0) + \"%\";\nnode.status({ fill: \"green\", shape: \"ring\", text: \"Current humidity:\" + msg.humidity });\nreturn msg;\n\n","outputs":1,"noerr":0,"x":830,"y":420,"wires":[["e0863644.8e7ff8"]]},{"id":"f4b801e5.b70b6","type":"Screen Init","z":"fc438176d22e3654","d":true,"name":"Screen Init","inscreenName":"weather_wind","induration":"20","x":690,"y":360,"wires":[["7a385145.cb8ce"]]},{"id":"6a6e93c5.9c5a0c","type":"Screen Init","z":"fc438176d22e3654","d":true,"name":"Screen Init","inscreenName":"weather_humi","induration":"20","x":690,"y":420,"wires":[["7c55b23a.28ea9c"]]},{"id":"d0139e9d.ba73f","type":"Switch Animation","z":"fc438176d22e3654","name":"Switch Animation","aktiv":"true","animation":"random","indata":"","inwidth":"","incolorHex":"","incolorR":"","incolorG":"","incolorB":"","x":510,"y":300,"wires":[["f4b801e5.b70b6","6a6e93c5.9c5a0c","67f2797e.c18f38"]]},{"id":"f1a21097.ccdf7","type":"Text","z":"fc438176d22e3654","d":true,"name":"Text","intextString":"{{windspeed}}","inbigFont":"false","inscrollText":"false","inscrollTextDelay":"0","incenterText":"true","inposX":"7","inposY":"1","incolorR":"255","incolorG":"255","incolorB":"255","x":1150,"y":360,"wires":[["55f6ce03d22d1d3e"]]},{"id":"95b6452.cc9a0b8","type":"Text","z":"fc438176d22e3654","d":true,"name":"Text","intextString":"{{humidity}}","inbigFont":"false","inscrollText":"false","inscrollTextDelay":"0","incenterText":"true","inposX":"7","inposY":"1","incolorR":"255","incolorG":"255","incolorB":"255","x":1150,"y":420,"wires":[["55f6ce03d22d1d3e"]]},{"id":"cbeab066.5b87","type":"Bitmap Animation","z":"fc438176d22e3654","d":true,"name":"Bitmap","indata":"65","inanimationDelay":"120","inrubberbanding":"false","inlimitLoops":"1","x":1020,"y":360,"wires":[["f1a21097.ccdf7"]]},{"id":"e0863644.8e7ff8","type":"Bitmap Animation","z":"fc438176d22e3654","d":true,"name":"Bitmap","indata":"66","inanimationDelay":"120","inrubberbanding":"false","inlimitLoops":"1","x":1020,"y":420,"wires":[["95b6452.cc9a0b8"]]},{"id":"67f2797e.c18f38","type":"Screen Init","z":"fc438176d22e3654","name":"Screen Init","inscreenName":"weather_temp","induration":"20","x":690,"y":300,"wires":[["48ead813.5738d8"]]},{"id":"48ead813.5738d8","type":"function","z":"fc438176d22e3654","name":"Bitmap + Text","func":"var icon = msg.payload.icon;\n//\tclear sky\nif (icon == \"01d\")\n{msg.bmp = '551'}\nif (icon == \"01n\")\n{msg.bmp = '560'}\n\n// few clouds\nelse if (icon == \"02d\")\n{ msg.bmp = '552'}\nelse if (icon == \"02n\")\n{msg.bmp = '561'}\n\n// scattered clouds\nelse if (icon == \"03d\")\n{msg.bmp = '553'}\nelse if (icon == \"03n\")\n{msg.bmp = '562'}\n\n// broken clouds\nelse if (icon == \"04d\")\n{msg.bmp = '554'}\nelse if (icon == \"04n\")\n{msg.bmp = '563'}\n\n// shower rain\nelse if (icon == \"09d\")\n{msg.bmp = '555'}\nelse if (icon == \"09n\")\n{msg.bmp = '564'}\n\n// rain\nelse if (icon == \"10d\")\n{msg.bmp = '556'}\nelse if (icon == \"10n\")\n{msg.bmp = '565'}\n\n// thunderstorm\nelse if (icon == \"11d\")\n{msg.bmp = '557'}\nelse if (icon == \"11n\")\n{msg.bmp = '566'}\n\n//Snow\nelse if (icon == \"13d\")\n{msg.bmp = '558'}\nelse if (icon == \"13n\")\n{msg.bmp = '567'}\n\n// FOG\nelse if (icon == \"50d\")\n{msg.bmp = '559'}\nelse if (icon == \"50n\")\n{msg.bmp = '568'}\n\n\nmsg.temp = msg.payload.tempc.toFixed(1) + \"°\"\n\nnode.status({ fill: \"green\", shape: \"ring\", text: \"Current temperature:\" + msg.payload.tempc.toFixed(1) + \"°C\" });\nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":860,"y":300,"wires":[["9f2804e.ca7aef8"]]},{"id":"9f2804e.ca7aef8","type":"Bitmap Animation","z":"fc438176d22e3654","name":"Bitmap","indata":"{{bmp}}","inanimationDelay":"150","inrubberbanding":"false","inlimitLoops":"0","x":1020,"y":300,"wires":[["b839bbf2.8b4c88"]]},{"id":"b839bbf2.8b4c88","type":"Text","z":"fc438176d22e3654","name":"Text","intextString":"{{temp}}","inbigFont":"false","inscrollText":"false","inscrollTextDelay":"0","incenterText":"true","inposX":"7","inposY":"1","incolorR":"255","incolorG":"255","incolorB":"255","x":1150,"y":300,"wires":[["55f6ce03d22d1d3e"]]},{"id":"26489071.9b90d","type":"openweathermap in","z":"fc438176d22e3654","name":"Get Weather","wtype":"current","lon":"2.5","lat":"48.8","city":"","country":"","language":"fr","x":110,"y":300,"wires":[["d0139e9d.ba73f"]]},{"id":"070ffe38f02ee299","type":"comment","z":"fc438176d22e3654","name":"Show weather","info":"","x":110,"y":260,"wires":[]}] |
Beta Was this translation helpful? Give feedback.
-
by dd_internetagentur
Hier einmal der Wetterflow mit Animierten Icons für die jewilige Tageszeit und Wetterbedingungen sowie Humidty / Wind
With better image IMHO (awtrix style)
Beta Was this translation helpful? Give feedback.
All reactions