Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!
Angel Hunter
Published

Magic-Chat

This project is just like WhatsApp

BeginnerFull instructions provided1 hour133
Magic-Chat

Things used in this project

Hardware components

Magicbit
×1

Software apps and online services

Magicblocks.io

Story

Read more

Custom parts and enclosures

Mqqt input node

This node is used to send messages from the sender to the reciver
[ Important = set one device topic as sender & other one to reciver

Text input node

This node is used to input the text

Mqqt output node

This node is used to recive messages from the sender to the receiver
[ Important = set one device topic as receiver & other one to sender

Text node

This allows the reciver to see the senders messages

Video of outcome

Here is a small video of my outcome

Schematics

Final block diagram

Small picture of the final block diagram

Code

Code for my project

JSON
Here is the code for my project
[{"id":"c502b906.c2ed88","type":"tab","label":"Magic_Chat","disabled":false,"info":""},{"id":"f058b9ab.1fa3d8","type":"ui_tab","z":"","name":"Smart Clock","icon":"dashboard","order":2},{"id":"5d884a8.c4ac4b4","type":"ui_group","z":"","name":"Input","tab":"ebdf9fec.099a1","disp":true,"width":"6","collapse":false},{"id":"37a1f72f.4fb928","type":"ui_base","theme":{"name":"theme-light","lightTheme":{"default":"#0094CE","baseColor":"#005c40","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"reset":false},"darkTheme":{"default":"#097479","baseColor":"#00ffb3","baseFont":"Impact,Impact,Charcoal,sans-serif","edited":true,"reset":false},"customTheme":{"name":"Untitled Theme 1","default":"#4B7930","baseColor":"#4B7930","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"},"themeState":{"base-color":{"default":"#0094CE","value":"#005c40","edited":true},"page-titlebar-backgroundColor":{"value":"#005c40","edited":false},"page-backgroundColor":{"value":"#fafafa","edited":false},"page-sidebar-backgroundColor":{"value":"#000000","edited":false},"group-textColor":{"value":"#00a875","edited":false},"group-borderColor":{"value":"#ffffff","edited":false},"group-backgroundColor":{"value":"#ffffff","edited":false},"widget-textColor":{"value":"#111111","edited":false},"widget-backgroundColor":{"value":"#005c40","edited":false},"widget-borderColor":{"value":"#ffffff","edited":false},"base-font":{"value":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"}},"angularTheme":{"primary":"indigo","accents":"blue","warn":"red","background":"grey"}},"site":{"name":"Node-RED Dashboard","hideToolbar":"false","allowSwipe":"false","allowTempTheme":"none","dateFormat":"Date","sizes":{"sx":48,"sy":48,"gx":6,"gy":6,"cx":6,"cy":6,"px":0,"py":0}}},{"id":"9e84892f.093188","type":"mqtt-broker","z":"","name":"","broker":"broker.hivemq.com","port":"1883","tls":"511bab4c.fcc1c4","clientid":"30bbdc3287c0cff4","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"2","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"87fca91e.8ee478","type":"ui_tab","z":"","name":"Weather","icon":"dashboard","order":3},{"id":"ebdf9fec.099a1","type":"ui_tab","z":"","name":"Clock","icon":"dashboard","order":4},{"id":"7853db4b.14b364","type":"ui_tab","z":"","name":"Exam Grading System","icon":"dashboard"},{"id":"9fbaa417.283388","type":"ui_tab","z":"","name":"Clock","icon":"dashboard"},{"id":"511bab4c.fcc1c4","type":"tls-config","z":"","name":"","cert":"","key":"","ca":"","certname":"","keyname":"","caname":"","servername":"","verifyservercert":false},{"id":"23b0d73b.7189c8","type":"ui_group","z":"","name":"Pressure (hPa)","tab":"87fca91e.8ee478","disp":false,"width":"6","collapse":false},{"id":"32b803d0.882ddc","type":"ui_group","z":"","name":"100","tab":"2fb16c53.21a054","disp":false,"width":"6","collapse":false},{"id":"af55b367.7cbe","type":"ui_tab","z":"","name":"Smart  Reader","icon":"dashboard"},{"id":"e82cff6f.203a1","type":"ui_group","z":"","name":"Sender","tab":"227796cc.f7774a","disp":true,"width":"6","collapse":false},{"id":"5a2fa370.d30dfc","type":"ui_group","z":"","name":"Millisecond ","tab":"f058b9ab.1fa3d8","disp":false,"width":"6","collapse":false},{"id":"ff7f450b.b0ceb8","type":"ui_tab","z":"","name":"WEATHER ","icon":"dashboard"},{"id":"264659ba.ef2326","type":"ui_group","z":"","name":"Temperature (k)","tab":"87fca91e.8ee478","disp":false,"width":"6","collapse":false},{"id":"3ebc3319.1edd1c","type":"ui_group","z":"","name":"Wind speed","tab":"87fca91e.8ee478","disp":false,"width":"6","collapse":false},{"id":"62806cca.8340f4","type":"ui_group","z":"","name":"H","tab":"f058b9ab.1fa3d8","disp":false,"width":"6","collapse":false},{"id":"d43ad2c8.38b1e","type":"ui_tab","z":"","name":"Exam grading system1","icon":"dashboard"},{"id":"3775c3b.a40ee3c","type":"ui_group","z":"","name":"INPUT","tab":"d43ad2c8.38b1e","disp":false,"width":"6","collapse":false},{"id":"3591a1dd.5c864e","type":"ui_group","z":"","name":"Output","tab":"d43ad2c8.38b1e","disp":true,"width":"6","collapse":false},{"id":"d43ae7cd.864988","type":"ui_group","z":"","name":"Home","tab":"ebdf9fec.099a1","disp":true,"width":"6","collapse":false},{"id":"230a04a4.a3d43c","type":"ui_group","z":"","name":"Input","tab":"ebdf9fec.099a1","disp":true,"width":"6","collapse":false},{"id":"994665ca.0d2d08","type":"mqtt-broker","z":"","name":"","broker":"8fe3a15fdaac45afa81e6764ce16dd52.s1.eu.hivemq.cloud","port":"8883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"bf33ff11.bdd2d","type":"ui_group","z":"","name":"Humidity (%)","tab":"87fca91e.8ee478","disp":false,"width":"6","collapse":false},{"id":"2fb16c53.21a054","type":"ui_tab","z":"","name":"My Project ","icon":"dashboard"},{"id":"6cc77955.99fe38","type":"ui_group","z":"","name":"nn","tab":"2fb16c53.21a054","disp":true,"width":"6","collapse":false},{"id":"3f6694fa.ddfa9c","type":"mqtt-broker","z":"","name":"","broker":"test.mosquitto.org","port":"1883","clientid":"20192","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"22f5039e.d316fc","type":"ui_tab","z":"","name":"Mobile-based applications","icon":"dashboard"},{"id":"4a2ba460.1e294c","type":"ui_group","z":"","name":"Text","tab":"22f5039e.d316fc","disp":false,"width":"6","collapse":false},{"id":"519f03f4.fb2fec","type":"mqtt-broker","z":"","name":"","broker":"broker.hivemq.com","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"227796cc.f7774a","type":"ui_tab","z":"","name":"Magic_Chat","icon":"dashboard"},{"id":"1b23346f.5fdd1c","type":"ui_group","z":"","name":"Reciver","tab":"227796cc.f7774a","disp":true,"width":"6","collapse":false},{"id":"919b502e.42c48","type":"mqtt-broker","z":"","name":"","broker":"broker.emqx.io","port":"8083","clientid":"mqttx_e7d1b828","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"b3a9905f.a5d77","type":"ui_text","z":"c502b906.c2ed88","group":"1b23346f.5fdd1c","order":0,"width":0,"height":0,"name":"","label":"","format":" {{msg.payload.main.reply}}","layout":"row-center","x":970,"y":200,"wires":[]},{"id":"dde60ff7.e0ed2","type":"ui_text_input","z":"c502b906.c2ed88","name":"","label":"Type your message","group":"e82cff6f.203a1","order":0,"width":0,"height":0,"passthru":true,"mode":"text","delay":300,"topic":"","x":410,"y":200,"wires":[["2d39e68a.a5ffba"]]},{"id":"2d39e68a.a5ffba","type":"mqtt out","z":"c502b906.c2ed88","name":"","topic":"Tesla Model S","qos":"1","retain":"","broker":"3f6694fa.ddfa9c","x":600,"y":200,"wires":[]},{"id":"ec491e39.40d52","type":"mqtt in","z":"c502b906.c2ed88","name":"","topic":"Range Rover","qos":"1","broker":"3f6694fa.ddfa9c","x":790,"y":200,"wires":[["b3a9905f.a5d77"]]}]

Credits

Angel Hunter

Angel Hunter

10 projects • 3 followers
I am a student of Zahira College Colombo
Thanks to Magic Bit.

Comments