Trump/Clinton/Johnston Tweet 'o' meter

Count the tweets for each candidate and display on a meter. use your own twitter id in the twitter node.

[{"id":"2b756238.2d38ae","type":"subflow","name":"tweet counter","info":"","in":[{"x":111,"y":124,"wires":[{"id":"44952f0c.c7585"}]}],"out":[{"x":507.99998474121094,"y":314,"wires":[{"id":"338c10e3.949d5","port":0}]}]},{"id":"44952f0c.c7585","type":"counter","z":"2b756238.2d38ae","inc":1,"name":"counter","x":394.44769287109375,"y":125.88888549804688,"wires":[["338c10e3.949d5"]]},{"id":"f57059cc.abcfb8","type":"change","z":"2b756238.2d38ae","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":378.0101318359375,"y":227.66666412353516,"wires":[["44952f0c.c7585"]]},{"id":"b4acae00.f8016","type":"inject","z":"2b756238.2d38ae","name":"","topic":"","payload":"true","payloadType":"bool","repeat":"1","crontab":"","once":false,"x":200.99998474121094,"y":229.94092559814453,"wires":[["f57059cc.abcfb8","44952f0c.c7585","338c10e3.949d5"]]},{"id":"338c10e3.949d5","type":"trigger","z":"2b756238.2d38ae","op1":"","op2":"","op1type":"nul","op2type":"payl","duration":"1","extend":false,"units":"s","reset":"true","name":"","x":371.9999237060547,"y":316.3437194824219,"wires":[[]]},{"id":"37d420b1.07d69","type":"tab","label":"prezometer"},{"id":"b56175b6.d0dd28","type":"ui_gauge","z":"37d420b1.07d69","name":"","group":"efd40c2e.a2f7b","order":0,"width":0,"height":0,"gtype":"gage","title":"Trump-o-Tweeter","label":"Tweets per second","format":"{{value}}","min":0,"max":"60","colors":["#00b500","#e6e600","#ca3838"],"x":744.9479141235352,"y":387.34725189208984,"wires":[]},{"id":"c5f6c203.926da","type":"ui_gauge","z":"37d420b1.07d69","name":"","group":"efd40c2e.a2f7b","order":0,"width":0,"height":0,"gtype":"gage","title":"Clinton-o-Tweeter","label":"Tweets per second","format":"{{value}}","min":0,"max":"60","colors":["#00b500","#e6e600","#ca3838"],"x":736.4964981079102,"y":592.812614440918,"wires":[]},{"id":"47607eda.266f5","type":"ui_gauge","z":"37d420b1.07d69","name":"","group":"efd40c2e.a2f7b","order":0,"width":0,"height":0,"gtype":"gage","title":"Johns-o-meter","label":"Tweets per second","format":"{{value}}","min":0,"max":"60","colors":["#00b500","#e6e600","#ca3838"],"x":736.1875076293945,"y":805.6111392974854,"wires":[]},{"id":"fccb5cfb.cc416","type":"twitter in","z":"37d420b1.07d69","twitter":"","tags":"","user":"false","name":"","topic":"tweets","inputs":1,"x":391.8958282470703,"y":803.222225189209,"wires":[["89cbad7e.94f43"]]},{"id":"7908b255.36c4fc","type":"twitter in","z":"37d420b1.07d69","twitter":"","tags":"","user":"false","name":"","topic":"tweets","inputs":1,"x":363.3958282470703,"y":598.2222213745117,"wires":[["2021b7c2.8b1098"]]},{"id":"2066c6c7.ded51a","type":"twitter in","z":"37d420b1.07d69","twitter":"","tags":"","user":"false","name":"","topic":"tweets","inputs":1,"x":385.8958282470703,"y":389.22221851348877,"wires":[["562cd821.e08e88"]]},{"id":"562cd821.e08e88","type":"subflow:2b756238.2d38ae","z":"37d420b1.07d69","x":542.4392356872559,"y":383.9192638397216,"wires":[["b56175b6.d0dd28"]]},{"id":"2021b7c2.8b1098","type":"subflow:2b756238.2d38ae","z":"37d420b1.07d69","x":527.4218788146973,"y":595.1605758666992,"wires":[["c5f6c203.926da"]]},{"id":"89cbad7e.94f43","type":"subflow:2b756238.2d38ae","z":"37d420b1.07d69","x":539.9392242431641,"y":802.6648959407098,"wires":[["47607eda.266f5"]]},{"id":"8c17c257.84219","type":"inject","z":"37d420b1.07d69","name":"","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"x":513.6762199401855,"y":316.7578020095825,"wires":[["546ac4a7.7d80fc","8e205398.835d7","383b7dfb.f928a2"]]},{"id":"546ac4a7.7d80fc","type":"trigger","z":"37d420b1.07d69","op1":"trump","op2":"","op1type":"str","op2type":"nul","duration":"250","extend":false,"units":"ms","reset":"","name":"","x":209.921875,"y":392.96874046325684,"wires":[["2066c6c7.ded51a"]]},{"id":"8e205398.835d7","type":"trigger","z":"37d420b1.07d69","op1":"clinton","op2":"","op1type":"str","op2type":"nul","duration":"250","extend":false,"units":"ms","reset":"","name":"","x":206.18489837646484,"y":596.7230768203735,"wires":[["7908b255.36c4fc"]]},{"id":"383b7dfb.f928a2","type":"trigger","z":"37d420b1.07d69","op1":"johnston","op2":"","op1type":"str","op2type":"nul","duration":"250","extend":false,"units":"ms","reset":"","name":"","x":239.93054962158203,"y":802.9774112701416,"wires":[["fccb5cfb.cc416"]]},{"id":"3ffd19e1.e62616","type":"ui_button","z":"37d420b1.07d69","name":"","group":"efd40c2e.a2f7b","order":0,"width":0,"height":0,"label":"button","color":"","icon":"","payload":"1","payloadType":"str","topic":"","x":487.4262161254883,"y":946.7882680892944,"wires":[["383b7dfb.f928a2","8e205398.835d7","546ac4a7.7d80fc"]]},{"id":"efd40c2e.a2f7b","type":"ui_group","z":"","name":"Default 2","tab":"f3e210b0.bc595","order":1,"disp":false,"width":"6"},{"id":"f3e210b0.bc595","type":"ui_tab","z":"","name":"Dwarf","icon":"Default","order":1}]

Flow Info

Created 8 years, 1 month ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • change (x1)
  • inject (x2)
  • trigger (x4)
Other
  • counter (x1)
  • subflow (x1)
  • subflow:2b756238.2d38ae (x3)
  • tab (x1)
  • twitter in (x3)
  • ui_button (x1)
  • ui_gauge (x3)
  • ui_group (x1)
  • ui_tab (x1)

Tags

  • trump
  • clinton
  • johnston
  • election
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option