officinearduinotorino / its-iot-2019-2021 Goto Github PK
View Code? Open in Web Editor NEWCorso di IoT tenuto presso l'ITS-ICT di Torino.
Corso di IoT tenuto presso l'ITS-ICT di Torino.
Come progetto Finale di Didattica Asincrona viene richiesto un progetto che veda l'utilizzo di:
questo prototipo / elemento tecnico deve soddisfare almeno una delle seguenti interazioni
Un plus per i progetti che
Warning: attenti a cose troppo artistiche :)
Modificare la Pagina SQ Min
Soluzione:
[{"id":"51ba57f8.a80ea8","type":"chatbot-telegram-receive","z":"e39d2e8d.ddea7","bot":"","botProduction":"","x":270,"y":380,"wires":[["bba14cea.d984c"]]},{"id":"bba14cea.d984c","type":"chatbot-inline-buttons","z":"e39d2e8d.ddea7","name":"","buttons":[{"type":"postback","label":"panini","value":"0","answer":"hai scelto panini","alert":false,"style":"primary"},{"type":"postback","label":"pizza","value":"1","answer":"hai scelto pizza","alert":false,"style":"primary"}],"message":"Ciao. Cosa vuoi ordinare?","x":460,"y":380,"wires":[["9db6c772.ef3648","5c9848f5.c30838","5163c121.48f88","b59a87e2.8f64c8"]]},{"id":"9db6c772.ef3648","type":"debug","z":"e39d2e8d.ddea7","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":610,"y":540,"wires":[]},{"id":"5c9848f5.c30838","type":"debug","z":"e39d2e8d.ddea7","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":590,"y":580,"wires":[]},{"id":"5163c121.48f88","type":"debug","z":"e39d2e8d.ddea7","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"originalMessage.text","targetType":"msg","x":650,"y":620,"wires":[]},{"id":"c7609497.6df788","type":"switch","z":"e39d2e8d.ddea7","name":"","property":"originalMessage.text","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":870,"y":380,"wires":[["5f90faad.484354"]]},{"id":"b59a87e2.8f64c8","type":"chatbot-telegram-send","z":"e39d2e8d.ddea7","bot":"","botProduction":"","track":true,"passThrough":true,"outputs":1,"x":660,"y":380,"wires":[["c7609497.6df788"]]},{"id":"553709b3.6b9d28","type":"chatbot-parse","z":"e39d2e8d.ddea7","name":"","parseType":"number-integer","parseVariable":"nPanini","x":1160,"y":320,"wires":[["727b6015.d2981"],[]]},{"id":"5f90faad.484354","type":"chatbot-message","z":"e39d2e8d.ddea7","name":"nPanini","message":[{"message":"Quanti?"}],"language":"it","x":910,"y":320,"wires":[["e0825fdf.4b88c"]]},{"id":"727b6015.d2981","type":"chatbot-message","z":"e39d2e8d.ddea7","name":"Done","message":[{"message":"Fatto!"}],"language":"it","x":1320,"y":320,"wires":[["ac619160.51336"]]},{"id":"e0825fdf.4b88c","type":"chatbot-telegram-send","z":"e39d2e8d.ddea7","bot":"","botProduction":"","track":true,"passThrough":true,"outputs":1,"x":1010,"y":240,"wires":[["553709b3.6b9d28"]]},{"id":"ac619160.51336","type":"chatbot-telegram-send","z":"e39d2e8d.ddea7","bot":"","botProduction":"","track":false,"passThrough":false,"outputs":0,"x":1490,"y":320,"wires":[]}]
Partendo dal codice di Di giovanni, creare una dashboard che permetta di controllare il colore dei Neopixel attaccati all'Arduino dal color picker di Node-Red.
Il protocollo di comunicazione tra il server ed il client, veicolato dall'MQTT e passato in json, può essere parsato usando la libreria Json di Arduino o il parsing dell'HEX colour.
Indentare dove possibile il codice
https://github.com/OfficineArduinoTorino/ITS-IoT-2019-2021/wiki/SQ-IN
Aggiornare come da titolo la pagine Between, oltre che aggiungere il suffisso SQ
Codice
[{"id":"8992adc4.05128","type":"chatbot-telegram-receive","z":"7cf5102e.d1a2e","bot":"","botProduction":"","x":290,"y":20,"wires":[["baf54f4b.32851"]]},{"id":"9d8abf6f.1067f","type":"chatbot-parse","z":"7cf5102e.d1a2e","name":"","parseType":"string","parseVariable":"pizze","x":1360,"y":160,"wires":[["46464dbb.ceaaf4"],[]]},{"id":"baf54f4b.32851","type":"chatbot-inline-buttons","z":"7cf5102e.d1a2e","name":"","buttons":[{"type":"postback","label":"panini","value":"0","answer":"","alert":false,"style":""},{"type":"postback","label":"pizza bianca","value":"1","answer":"","alert":false,"style":""},{"type":"postback","label":"non voglio niente","value":"2","answer":"","alert":false,"style":"danger"},{"type":"postback","label":"voglio il testo!","value":"3","answer":"","alert":false,"style":""}],"message":"Ciao. Cosa vuoi ordinare?","x":480,"y":20,"wires":[["a8a6f0ce.15316"]]},{"id":"ede04afe.9dc4a8","type":"chatbot-inline-buttons","z":"7cf5102e.d1a2e","name":"","buttons":[{"type":"postback","label":"1","value":"1","answer":"Hai scelto 1 Panino","alert":true,"style":"primary"},{"type":"postback","label":"2","value":"2","answer":"Hai scelto 2 Panini","alert":true,"style":"primary"},{"type":"postback","label":"3","value":"3","answer":"Hai scelto 3 Panini","alert":true,"style":"primary"},{"type":"postback","label":"4","value":"4","answer":"Hai scelto 4 Panini","alert":true,"style":"primary"}],"message":"Quanti panini vuoi?","x":1100,"y":20,"wires":[["e13a41b1.ed82d"]]},{"id":"e13a41b1.ed82d","type":"chatbot-telegram-send","z":"7cf5102e.d1a2e","bot":"","botProduction":"","track":false,"passThrough":false,"outputs":0,"x":1590,"y":60,"wires":[]},{"id":"69aa2ab9.f0c724","type":"chatbot-inline-buttons","z":"7cf5102e.d1a2e","name":"","buttons":[{"type":"postback","label":"1","value":"1","answer":"Hai scelto 1 pizza","alert":false,"style":"primary"},{"type":"postback","label":"2","value":"2","answer":"Hai scelto 2 pizze","alert":false,"style":"primary"},{"type":"postback","label":"3","value":"3","answer":"Hai scelto 3 pizze","alert":false,"style":"primary"},{"type":"postback","label":"4","value":"4","answer":"Hai scelto 4 pizze","alert":false,"style":"primary"}],"message":"Quanta pizza vuoi?","x":1120,"y":40,"wires":[["e13a41b1.ed82d"]]},{"id":"c0875a90.6e6438","type":"chatbot-message","z":"7cf5102e.d1a2e","name":"","message":[{"message":"Grazie, se cambi idea premi /start !"}],"language":"","x":1110,"y":80,"wires":[["e13a41b1.ed82d"]]},{"id":"a8a6f0ce.15316","type":"chatbot-telegram-send","z":"7cf5102e.d1a2e","bot":"","botProduction":"","track":true,"passThrough":false,"outputs":1,"x":670,"y":20,"wires":[["802d944d.67fff8","b4c50552.cc9b88"]]},{"id":"802d944d.67fff8","type":"debug","z":"7cf5102e.d1a2e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":890,"y":80,"wires":[]},{"id":"b4c50552.cc9b88","type":"switch","z":"7cf5102e.d1a2e","name":"","property":"payload.content","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"2","vt":"str"},{"t":"eq","v":"3","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":870,"y":20,"wires":[["ede04afe.9dc4a8"],["69aa2ab9.f0c724"],["c0875a90.6e6438"],["d6d984ec.519da8"]]},{"id":"d6d984ec.519da8","type":"chatbot-message","z":"7cf5102e.d1a2e","name":"","message":[{"message":"Ok Quante pizze vuoi?"}],"language":"it","x":1120,"y":120,"wires":[["5600b3db.f6000c"]]},{"id":"5600b3db.f6000c","type":"chatbot-telegram-send","z":"7cf5102e.d1a2e","bot":"","botProduction":"","track":true,"passThrough":false,"outputs":1,"x":1150,"y":160,"wires":[["9d8abf6f.1067f"]]},{"id":"46464dbb.ceaaf4","type":"chatbot-message","z":"7cf5102e.d1a2e","name":"","message":[{"message":"hai preso {{pizze}} pizze"}],"language":"","x":1410,"y":100,"wires":[["e13a41b1.ed82d"]]}]
Modificare come da titolo delete
Sto lavorando alla dashboard del progetto
[{"id":"b08848da.b189d","type":"template","z":"e4483aa5.964a98","name":"INSERT","field":"topic","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"INSERT INTO table1 VALUES({{payload.ID}} ,\"{{payload.name}}\",\"{{payload.tag}}\",\"{{payload.door1}}\",\"{{payload.door2}}\",\"{{payload.door3}}\" )","output":"str","x":860,"y":500,"wires":[["bec83b2a.2dab5","4fb7f09b.158e78"]]}]
sono riuscito a filtrare la data solo per la data ignnorando il tempo, tuttavia ancora non riesco a tirare fuori i dati della ricerca
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.