my trafficlights - mets le feu avec ton ruby
DESCRIPTION
Comment connecter un feu tricolore à un système de supervision ou d'intégration continue.TRANSCRIPT
![Page 1: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/1.jpg)
MET LE FEU AVECTON RUBY
Des feux tricolores, Arduinos, Raspberry π & co.
![Page 2: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/2.jpg)
NICOLAS LEDEZ
Orange Business Services / IT&L@bs
DevCamp Rennes
Rennes On Rails
Rennes DevOps
Graphotec Cloud
![Page 3: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/3.jpg)
IL ÉTAIT UNE FOIS
• @gcollic me montre / prête son feu tricolore
![Page 4: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/4.jpg)
IL ÉTAIT UNE FOIS
• @gcollic me montre / prête son feu tricolore
• Sauf que :
![Page 5: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/5.jpg)
IL ÉTAIT UNE FOIS
• @gcollic me montre / prête son feu tricolore
• Sauf que :
• DLL
![Page 6: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/6.jpg)
IL ÉTAIT UNE FOIS
• @gcollic me montre / prête son feu tricolore
• Sauf que :
• DLL
• Pas franchement Open Source
![Page 7: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/7.jpg)
IL ÉTAIT UNE FOIS
• @gcollic me montre / prête son feu tricolore
• Sauf que :
• DLL
• Pas franchement Open Source
• Ruby ?
![Page 8: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/8.jpg)
LISTE DE COURSE
![Page 9: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/9.jpg)
LISTE DE COURSE
![Page 10: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/10.jpg)
LISTE DE COURSE
![Page 11: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/11.jpg)
Arduino en 5
minutes
TDD JS / @gcollic22 juillet 2012
![Page 12: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/12.jpg)
VERSION USB/ARDUINO
![Page 13: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/13.jpg)
VERSION USB/ARDUINO
https://github.com/nledez/traffic_light -> Code Arduino / Librairie Ruby
![Page 14: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/14.jpg)
VERSION USB/ARDUINO
https://github.com/nledez/traffic_light -> Code Arduino / Librairie Ruby
https://github.com/nledez/traffic_light_server -> Serveur ultra simple (Sinatra)
![Page 15: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/15.jpg)
VERSION USB/ARDUINO
https://github.com/nledez/traffic_light -> Code Arduino / Librairie Ruby
https://github.com/nledez/traffic_light_server -> Serveur ultra simple (Sinatra)
https://github.com/nledez/rspec_traffic_light_formater -> Formateur Rspec
![Page 16: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/16.jpg)
ET APRÈS ?
![Page 17: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/17.jpg)
ET APRÈS ?
Discutions avec @organicweb
![Page 18: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/18.jpg)
ET APRÈS ?
Discutions avec @organicweb
Comment industrialiser ?
![Page 19: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/19.jpg)
ET APRÈS ?
Discutions avec @organicweb
Comment industrialiser ?
Etc.
![Page 20: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/20.jpg)
ET APRÈS ?
Discutions avec @organicweb
Comment industrialiser ?
Etc.
Version Ethernet pour l'entreprise
![Page 21: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/21.jpg)
ACHAT MATÉRIEL
![Page 22: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/22.jpg)
ACHAT MATÉRIEL
Arduino -> 20€
![Page 23: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/23.jpg)
ACHAT MATÉRIEL
Arduino -> 20€
+ Ethernet ?
![Page 24: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/24.jpg)
ACHAT MATÉRIEL
Arduino -> 20€
+ Ethernet ?
Arduino Ethernet shield -> 33€ (total 53€)
![Page 25: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/25.jpg)
ACHAT MATÉRIEL
Arduino -> 20€
+ Ethernet ?
Arduino Ethernet shield -> 33€ (total 53€)
Raspberry π -> 37€ -> hummm
![Page 26: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/26.jpg)
RASPBERRY Π
![Page 27: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/27.jpg)
RASPBERRY Π
![Page 28: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/28.jpg)
RASPBERRY Π
![Page 29: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/29.jpg)
RASPBERRY Π
Raspberry π -> 37€
![Page 30: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/30.jpg)
RASPBERRY Π
Raspberry π -> 37€
Un vrai OS (sur carte SD)
![Page 31: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/31.jpg)
RASPBERRY Π
Raspberry π -> 37€
Un vrai OS (sur carte SD)
Un port HDMI + RCA
![Page 32: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/32.jpg)
RASPBERRY Π
Raspberry π -> 37€
Un vrai OS (sur carte SD)
Un port HDMI + RCA
USB (Clavier, Souris, etc.)
![Page 33: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/33.jpg)
RASPBERRY Π
Raspberry π -> 37€
Un vrai OS (sur carte SD)
Un port HDMI + RCA
USB (Clavier, Souris, etc.)
Ethernet !
![Page 34: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/34.jpg)
RASPBERRY Π
Raspberry π -> 37€
Un vrai OS (sur carte SD)
Un port HDMI + RCA
USB (Clavier, Souris, etc.)
Ethernet !
GPIO !
![Page 35: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/35.jpg)
UNE LED ?
![Page 36: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/36.jpg)
UNE LED ?
![Page 37: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/37.jpg)
UNE LED ?
![Page 38: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/38.jpg)
UNE LED ?
![Page 39: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/39.jpg)
![Page 40: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/40.jpg)
ENCORE UN PEU ?
![Page 41: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/41.jpg)
![Page 42: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/42.jpg)
![Page 43: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/43.jpg)
![Page 44: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/44.jpg)
![Page 45: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/45.jpg)
![Page 46: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/46.jpg)
![Page 47: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/47.jpg)
![Page 48: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/48.jpg)
![Page 49: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/49.jpg)
![Page 50: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/50.jpg)
API V1.0
![Page 51: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/51.jpg)
API V1.0
/devant/green/0
![Page 52: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/52.jpg)
API V1.0
/devant/green/0
![Page 53: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/53.jpg)
API V1.0
/devant/green/0
/devant/red/1
![Page 54: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/54.jpg)
API V1.0
/devant/green/0
/devant/red/1
![Page 55: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/55.jpg)
API V1.0
/devant/green/0
/devant/red/1
/gauche/green/0
![Page 56: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/56.jpg)
API V1.0
/devant/green/0
/devant/red/1
/gauche/green/0
![Page 57: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/57.jpg)
API V1.0
/devant/green/0
/devant/red/1
/gauche/green/0
/gauche/red/1
![Page 58: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/58.jpg)
API V1.0
/devant/green/0
/devant/red/1
/gauche/green/0
/gauche/red/1
![Page 59: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/59.jpg)
DEMO
Parce que ça marche pour de
vrai !!!
![Page 60: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/60.jpg)
CHEZ VOUS
![Page 61: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/61.jpg)
CHEZ VOUS
https://github.com/nledez/traffic_light_pi_server
![Page 62: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/62.jpg)
CHEZ VOUS
https://github.com/nledez/traffic_light_pi_server
https://github.com/nledez/traffic_light_pi_server_example
![Page 63: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/63.jpg)
CONCLUSION
![Page 64: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/64.jpg)
CONCLUSION
Ø Ethernet -> Arduino faible consommation, etc.
![Page 65: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/65.jpg)
CONCLUSION
Ø Ethernet -> Arduino faible consommation, etc.
Si besoin Ethernet / WiFi -> Raspberry π -> "Plus de boulot"
![Page 66: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/66.jpg)
RÉFÉRENCES
https://projects.drogon.net/raspberry-pi/gpio-examples/tux-crossing/gpio-examples-1-a-single-led/
![Page 67: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/67.jpg)
QUESTIONS ?
![Page 68: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/68.jpg)
MERCI
![Page 69: My trafficlights - Mets le feu avec ton Ruby](https://reader038.vdocument.in/reader038/viewer/2022110309/558e68501a28ab7c218b47c5/html5/thumbnails/69.jpg)
@NLEDEZ
NICOLAS.LEDEZ.NET