Page 1 sur 2

Ecran Led RGB : horloge météo

Posté : 21 avr. 2019, 16:03
par Jeff
J'adore fabriquer des projets DIY pour des besoins propre à moi et j'aime bien les partager, voici l'écran horloge /météo
Horloge_meteo_LED_RGB.jpg
Horloge_meteo_LED_RGB.jpg (59.4 Kio) Vu 593 fois
Celui est fait à partir d'un ecran led rvb P4 de 256mm par 128 mm] de 64 pixels x 32 pixels.
Equipé d'un esp8266 et d'une alimentation 5V, 10A

J'ai imprimé 2 boitiers en 3D pour intégrer l'alim en 220v et l'esp8266
Boitier_3D_led_rvb.jpg
Boitier_3D_led_rvb.jpg (55.04 Kio) Vu 593 fois
La librairie est https://github.com/2dom/PxMatrix

Je suis parti à l'origine de ce site
J'ai réalisé ce câblage sans le "E" en respectant les conseils de la librairie Px matrix. Je n'ai pas connecté D3.
Cablage.jpg
Cablage.jpg (134.97 Kio) Vu 593 fois
On a le choix de la police, de la couleur, de toute son imagination.

Les infos sont issues :
D'une sonde de température de domoticz retravaillé par node red
L'heure, la date par node red
Les icônes météo sont récupérés via openweather sous node red.

Tout le dossier est ici :

https://github.com/Jeffodilo/Screen-led ... ather-.git

Voici le flow nodered :

Code : Tout sélectionner

[{"id":"645b326a.c1138c","type":"inject","z":"e647780a.f49558","name":"Forcage manuel","topic":"","payload":"","payloadType":"date","repeat":"180","crontab":"","once":false,"onceDelay":"","x":290,"y":140,"wires":[["cadd42ef.b3964"]]},{"id":"aabba443.546358","type":"inject","z":"e647780a.f49558","name":"Time 1 min","topic":"","payload":"","payloadType":"date","repeat":"60","crontab":"","once":false,"onceDelay":"","x":290,"y":360,"wires":[["979ec109.a1ccd"]]},{"id":"33f7a3a8.059b9c","type":"mqtt in","z":"e647780a.f49558","name":"","topic":"domoticz/out","qos":"2","broker":"f0e0a1f2.be3d4","x":350,"y":220,"wires":[["e45fd364.1469d"]]},{"id":"e45fd364.1469d","type":"json","z":"e647780a.f49558","name":"","property":"payload","action":"","pretty":false,"x":510,"y":220,"wires":[["f47fc647.bb3b08"]]},{"id":"f47fc647.bb3b08","type":"function","z":"e647780a.f49558","name":"Temperature","func":"//msg.topic = \"domoticz/out/\"+msg.payload.name+\"/Temperature\";\n\nif  (msg.payload.name === \"Exterieure\") \n{\nmsg.payload = msg.payload.svalue1\nmsg.topic = \"afficheur/temp\";\nreturn msg;\n}\n\n\n\n","outputs":1,"noerr":0,"x":650,"y":220,"wires":[["3ba6784d.4c1b68","a502d837.d64b78"]]},{"id":"3ba6784d.4c1b68","type":"mqtt out","z":"e647780a.f49558","name":"","topic":"","qos":"","retain":"","broker":"ee3b0af6.711048","x":1210,"y":220,"wires":[]},{"id":"cadd42ef.b3964","type":"http request","z":"e647780a.f49558","name":"Exterieure","method":"GET","ret":"txt","url":"192.168.1.100:8080/json.htm?type=devices&rid=13","tls":"","x":530,"y":140,"wires":[["b563fc38.16538"]]},{"id":"b563fc38.16538","type":"json","z":"e647780a.f49558","name":"","property":"payload","action":"","pretty":false,"x":670,"y":140,"wires":[["eb4ddbb4.fa0f28"]]},{"id":"a502d837.d64b78","type":"debug","z":"e647780a.f49558","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":1210,"y":140,"wires":[]},{"id":"eb4ddbb4.fa0f28","type":"function","z":"e647780a.f49558","name":"Temperature","func":"msg.payload = String(msg.payload.result[0].Temp)\nmsg.topic = \"afficheur/temp\";\nreturn msg;\n\n","outputs":1,"noerr":0,"x":810,"y":140,"wires":[["a502d837.d64b78","3ba6784d.4c1b68"]]},{"id":"a0697f72.4401d","type":"function","z":"e647780a.f49558","name":"Luminosite","func":"if  (msg.payload.name === \"Afficheur\")\n{\n   \nmsg.topic = \"afficheur/brightness\";\nmsg.payload = msg.payload.nvalue\nreturn msg;\n    //}\n}\n\n\n\n","outputs":1,"noerr":0,"x":690,"y":580,"wires":[["17677295.611c4d","dcceeda7.cb0cc"]]},{"id":"3e53c710.4a4c18","type":"mqtt in","z":"e647780a.f49558","name":"","topic":"domoticz/out","qos":"2","broker":"f0e0a1f2.be3d4","x":330,"y":580,"wires":[["ac4af43c.a2fdc8"]]},{"id":"17677295.611c4d","type":"debug","z":"e647780a.f49558","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":1190,"y":580,"wires":[]},{"id":"ac4af43c.a2fdc8","type":"json","z":"e647780a.f49558","name":"","property":"payload","action":"","pretty":false,"x":510,"y":580,"wires":[["a0697f72.4401d"]]},{"id":"dcceeda7.cb0cc","type":"change","z":"e647780a.f49558","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$number(payload)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":900,"y":540,"wires":[["a14cc821.f08008","17677295.611c4d"]]},{"id":"82dc9d90.31525","type":"inject","z":"e647780a.f49558","name":"","topic":"afficheur/meteo","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"","x":170,"y":920,"wires":[["43aaa9e2.5dea88"]]},{"id":"43aaa9e2.5dea88","type":"function","z":"e647780a.f49558","name":"Meteo 1","func":"msg.payload = \"Clear\";\nmsg.topic = \"afficheur/meteo\";\nreturn msg;\n\n","outputs":1,"noerr":0,"x":600,"y":920,"wires":[["c5c4109b.ebe9a"]]},{"id":"54ef70b.f70589","type":"mqtt out","z":"e647780a.f49558","name":"","topic":"","qos":"","retain":"","broker":"ee3b0af6.711048","x":1210,"y":400,"wires":[]},{"id":"d01d1ef0.575db","type":"inject","z":"e647780a.f49558","name":"","topic":"afficheur/meteo","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"","x":170,"y":1000,"wires":[["366a13e3.cbe0ec"]]},{"id":"366a13e3.cbe0ec","type":"function","z":"e647780a.f49558","name":"Meteo 3","func":"msg.payload = \"Mist\";\nmsg.topic = \"afficheur/meteo\";\nreturn msg;\n\n","outputs":1,"noerr":0,"x":600,"y":1000,"wires":[["c5c4109b.ebe9a"]]},{"id":"1d362df7.657172","type":"inject","z":"e647780a.f49558","name":"","topic":"afficheur/meteo","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"","x":170,"y":960,"wires":[["987d3766.a9bc78"]]},{"id":"987d3766.a9bc78","type":"function","z":"e647780a.f49558","name":"Meteo 2","func":"msg.payload = \"Rain\";\nmsg.topic = \"afficheur/meteo\";\nreturn msg;\n\n","outputs":1,"noerr":0,"x":600,"y":960,"wires":[["c5c4109b.ebe9a"]]},{"id":"c5c4109b.ebe9a","type":"mqtt out","z":"e647780a.f49558","name":"","topic":"","qos":"","retain":"","broker":"ee3b0af6.711048","x":990,"y":1080,"wires":[]},{"id":"a2e3ddad.59a2b","type":"debug","z":"e647780a.f49558","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":1250,"y":740,"wires":[]},{"id":"b94b3d9.cb833c","type":"inject","z":"e647780a.f49558","name":"Forcage manuel","topic":"","payload":"","payloadType":"date","repeat":"7200","crontab":"","once":false,"onceDelay":"","x":310,"y":740,"wires":[["c255a371.c7cef"]]},{"id":"b49c7ff4.f4126","type":"function","z":"e647780a.f49558","name":"Icon meteo","func":"//msg.payload = String(msg.data.currently.icon)\nmsg.payload = String(msg.payload.weather)\nmsg.topic = \"afficheur/meteo\";\nreturn msg;\n\n","outputs":1,"noerr":0,"x":1070,"y":740,"wires":[["a2e3ddad.59a2b","77068299.ef7b6c"]]},{"id":"bda08d98.ed7bf","type":"inject","z":"e647780a.f49558","name":"","topic":"afficheur/meteo","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"","x":170,"y":1040,"wires":[["b1d456b9.a14dd8"]]},{"id":"b1d456b9.a14dd8","type":"function","z":"e647780a.f49558","name":"Meteo 4","func":"msg.payload = \"Clouds\";\nmsg.topic = \"afficheur/meteo\";\nreturn msg;\n\n","outputs":1,"noerr":0,"x":600,"y":1040,"wires":[["c5c4109b.ebe9a"]]},{"id":"af4f0546.c861d8","type":"inject","z":"e647780a.f49558","name":"","topic":"afficheur/meteo","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"","x":170,"y":1120,"wires":[["98e4130d.65bb1"]]},{"id":"98e4130d.65bb1","type":"function","z":"e647780a.f49558","name":"Meteo 6","func":"msg.payload = \"Drizzle\";\nmsg.topic = \"afficheur/meteo\";\nreturn msg;\n\n","outputs":1,"noerr":0,"x":600,"y":1120,"wires":[["c5c4109b.ebe9a"]]},{"id":"f38b672.183ed98","type":"inject","z":"e647780a.f49558","name":"","topic":"afficheur/meteo","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"","x":170,"y":1080,"wires":[["9a34681c.36d8a8"]]},{"id":"9a34681c.36d8a8","type":"function","z":"e647780a.f49558","name":"Meteo 5","func":"msg.payload = \"Snow\";\nmsg.topic = \"afficheur/meteo\";\nreturn msg;\n\n","outputs":1,"noerr":0,"x":600,"y":1080,"wires":[["c5c4109b.ebe9a"]]},{"id":"96599607.13abf8","type":"inject","z":"e647780a.f49558","name":"","topic":"afficheur/meteo","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"","x":170,"y":1160,"wires":[["8ab7cd0e.29b23"]]},{"id":"8ab7cd0e.29b23","type":"function","z":"e647780a.f49558","name":"Meteo 7","func":"msg.payload = \"Thunderstorm\";\nmsg.topic = \"afficheur/meteo\";\nreturn msg;\n\n","outputs":1,"noerr":0,"x":600,"y":1160,"wires":[["c5c4109b.ebe9a"]]},{"id":"57c0cc97.0572c4","type":"inject","z":"e647780a.f49558","name":"","topic":"afficheur/meteo","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"","x":170,"y":1240,"wires":[["5eab5708.59c508"]]},{"id":"5eab5708.59c508","type":"function","z":"e647780a.f49558","name":"Meteo 9","func":"msg.payload = 9;\nmsg.topic = \"afficheur/meteo\";\nreturn msg;\n\n","outputs":1,"noerr":0,"x":600,"y":1240,"wires":[["c5c4109b.ebe9a"]]},{"id":"6db898ca.385758","type":"inject","z":"e647780a.f49558","name":"","topic":"afficheur/meteo","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"","x":170,"y":1200,"wires":[["e6b2adab.5c453"]]},{"id":"e6b2adab.5c453","type":"function","z":"e647780a.f49558","name":"Meteo 8","func":"msg.payload = 8;\nmsg.topic = \"afficheur/meteo\";\nreturn msg;\n\n","outputs":1,"noerr":0,"x":600,"y":1200,"wires":[["c5c4109b.ebe9a"]]},{"id":"f67e2efa.f23e1","type":"inject","z":"e647780a.f49558","name":"","topic":"afficheur/meteo","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"","x":170,"y":1280,"wires":[["ddf2299a.9f52f8"]]},{"id":"ddf2299a.9f52f8","type":"function","z":"e647780a.f49558","name":"Meteo 10","func":"msg.payload = 10;\nmsg.topic = \"afficheur/meteo\";\nreturn msg;\n\n","outputs":1,"noerr":0,"x":600,"y":1280,"wires":[["c5c4109b.ebe9a"]]},{"id":"18a02b3b.0afc45","type":"debug","z":"e647780a.f49558","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":1010,"y":960,"wires":[]},{"id":"c4595dbb.24345","type":"inject","z":"e647780a.f49558","name":"","topic":"afficheur/meteo","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":"","x":170,"y":1320,"wires":[["56617fdf.a1f66"]]},{"id":"56617fdf.a1f66","type":"function","z":"e647780a.f49558","name":"Meteo 11","func":"msg.payload = 11;\nmsg.topic = \"afficheur/meteo\";\nreturn msg;\n\n","outputs":1,"noerr":0,"x":600,"y":1320,"wires":[["c5c4109b.ebe9a"]]},{"id":"c255a371.c7cef","type":"openweathermap","z":"e647780a.f49558","name":"Bain ","wtype":"current","lon":"","lat":"","city":"Bain-de-bretagne","country":"FR","language":"en","x":690,"y":740,"wires":[["b49c7ff4.f4126"]]},{"id":"95325f3a.df2a5","type":"comment","z":"e647780a.f49558","name":"Temperature domoticz","info":"","x":380,"y":80,"wires":[]},{"id":"4810bb49.907134","type":"debug","z":"e647780a.f49558","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":1210,"y":360,"wires":[]},{"id":"a14cc821.f08008","type":"mqtt out","z":"e647780a.f49558","name":"","topic":"","qos":"","retain":"","broker":"ee3b0af6.711048","x":1190,"y":540,"wires":[]},{"id":"a0572d57.0fff4","type":"comment","z":"e647780a.f49558","name":"Gestion l'heure","info":"","x":360,"y":300,"wires":[]},{"id":"21864724.250f38","type":"comment","z":"e647780a.f49558","name":"Gestion luminosite","info":"","x":350,"y":520,"wires":[]},{"id":"dd0d4e08.975e7","type":"comment","z":"e647780a.f49558","name":"Gestion meteo","info":"","x":340,"y":660,"wires":[]},{"id":"77068299.ef7b6c","type":"mqtt out","z":"e647780a.f49558","name":"","topic":"","qos":"","retain":"","broker":"ee3b0af6.711048","x":1250,"y":680,"wires":[]},{"id":"86215599.7d6cd8","type":"mqtt in","z":"e647780a.f49558","name":"","topic":"afficheur/boot","qos":"2","broker":"f0e0a1f2.be3d4","x":90,"y":400,"wires":[["cadd42ef.b3964","c255a371.c7cef","979ec109.a1ccd","dcd3d68b.b6b9e8","518bf840.1924a8"]]},{"id":"979ec109.a1ccd","type":"moment","z":"e647780a.f49558","name":"Heure","topic":"afficheur/time","input":"","inputType":"date","inTz":"Europe/Paris","adjAmount":0,"adjType":"days","adjDir":"add","format":"HH:mm","locale":"fr_FR","output":"","outputType":"msg","outTz":"Europe/Paris","x":530,"y":360,"wires":[["54ef70b.f70589","4810bb49.907134"]]},{"id":"dcd3d68b.b6b9e8","type":"moment","z":"e647780a.f49558","name":"Day","topic":"afficheur/day","input":"","inputType":"date","inTz":"Europe/Paris","adjAmount":0,"adjType":"days","adjDir":"add","format":"DD","locale":"fr_FR","output":"","outputType":"msg","outTz":"Europe/Paris","x":530,"y":420,"wires":[["54ef70b.f70589","4810bb49.907134"]]},{"id":"bd686247.160a2","type":"inject","z":"e647780a.f49558","name":"Minuit","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"01 00 * * *","once":false,"onceDelay":"","x":280,"y":440,"wires":[["dcd3d68b.b6b9e8","518bf840.1924a8"]]},{"id":"518bf840.1924a8","type":"moment","z":"e647780a.f49558","name":"Month","topic":"afficheur/month","input":"","inputType":"date","inTz":"Europe/Paris","adjAmount":0,"adjType":"days","adjDir":"add","format":"MM","locale":"fr_FR","output":"","outputType":"msg","outTz":"Europe/Paris","x":530,"y":460,"wires":[["54ef70b.f70589","4810bb49.907134"]]},{"id":"bb6308b4.5b30f8","type":"comment","z":"e647780a.f49558","name":"Test icon meteo","info":"","x":120,"y":840,"wires":[]},{"id":"f0e0a1f2.be3d4","type":"mqtt-broker","z":"","name":"","broker":"192.168.1.100","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"15","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"ee3b0af6.711048","type":"mqtt-broker","z":"","name":"","broker":"192.168.1.100","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"15","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

Re: Ecran Led RGB : horloge météo

Posté : 21 avr. 2019, 20:38
par le belge
Au top , c'est super propre et visuellement réussi ...
du coup on peut faire défiler n'importe quel texte?

Re: Ecran Led RGB : horloge météo

Posté : 21 avr. 2019, 21:18
par Jeff
Dans le principe oui, moi j'ai décidé de dédier des zones d'affichage à l'heure, la date, la temperature... mais si tu ne veux qu'un texte qui défile, il suffit de choisir sa position et de prendre une fonction scroll text !

Re: Ecran Led RGB : horloge météo

Posté : 21 avr. 2019, 21:19
par Jeff
Je viens d'ajouter la mise à jour par OTA : Over The Air (sans fil).
L'extinction complète de l'afficheur selon un interrupteur domoticz (avec planning et via Alexa) :D
Le github sera à jour demain.

Re: Ecran Led RGB : horloge météo

Posté : 21 avr. 2019, 22:14
par dokho
Il m'en faut absolument un

Faut que je trouve un autre revendeur parce que là il y a autant de frais de port que d'affichage

Re: Ecran Led RGB : horloge météo

Posté : 22 avr. 2019, 09:05
par Jeff
dokho a écrit :
21 avr. 2019, 22:14
Il m'en faut absolument un

Faut que je trouve un autre revendeur parce que là il y a autant de frais de port que d'affichage
Si j'avais trouvé mieux, j'aurais pris :?
Tu le reçois dans 1 carton bien emballé.
Le "P" est l'espace entre les leds, P4 = 4 mm.

Re: Ecran Led RGB : horloge météo

Posté : 24 avr. 2019, 10:43
par dokho
Salut,

Tu aurais les fichiers pour l'impression 3D du boîtier stp ?

Re: Ecran Led RGB : horloge météo

Posté : 24 avr. 2019, 12:54
par jackslayter
pas mal, je suis en train d'agrandir mon Nextion 3.5 en 5.0 avec sonde de T° et CO2

le lien insctructable est mort

Re: Ecran Led RGB : horloge météo

Posté : 24 avr. 2019, 14:44
par vil1driver
Lien corrigé ;)

Re: Ecran Led RGB : horloge météo

Posté : 24 avr. 2019, 14:52
par jackslayter
vil1driver a écrit :
24 avr. 2019, 14:44
Lien corrigé ;)
ah oui c'est vrai que je peux aussi :D