Things used in this project

Software apps and online services:
node-red
Punch Through bean loader

Code

Code snippet #1Plain text
[{"id":"89e8d4d3.761728","type":"bean led","name":"Mood light LED","bean":"","x":671,"y":528,"z":"273f009f.d8c1","wires":[]},{"id":"e7f572ab.180a9","type":"function","name":"sentiment to LED val","func":"var score = msg.sentiment.score;\n\nif(score > 2){\n    //Good, turn LED green\n    msg.payload = \"Green\";\n}\nelse if(score < -2){\n    //Bad, turn LED red\n    msg.payload = \"Red\";\n}else{\n    //Neutral, turn LED blue\n    msg.payload = \"Blue\";\n}\nreturn msg;","outputs":1,"noerr":0,"x":470,"y":529,"z":"273f009f.d8c1","wires":[["89e8d4d3.761728"]]},{"id":"cf36b031.30c95","type":"twitter in","twitter":"","tags":"","user":"false","name":"Bean tweets","topic":"tweets","x":121,"y":530,"z":"273f009f.d8c1","wires":[["d0414c8.f2fbeb"]]},{"id":"d0414c8.f2fbeb","type":"sentiment","name":"","x":292,"y":531,"z":"273f009f.d8c1","wires":[["e7f572ab.180a9"]]},{"id":"e8ba696c.174598","type":"inject","name":"","topic":"","payload":"You're great!","payloadType":"string","repeat":"","crontab":"","once":false,"x":134,"y":575,"z":"273f009f.d8c1","wires":[["d0414c8.f2fbeb"]]},{"id":"df800905.207ff8","type":"inject","name":"","topic":"","payload":"You're awful!","payloadType":"string","repeat":"","crontab":"","once":false,"x":137,"y":614,"z":"273f009f.d8c1","wires":[["d0414c8.f2fbeb"]]},{"id":"4906be85.b6f94","type":"inject","name":"","topic":"","payload":"I'm neutral.","payloadType":"string","repeat":"","crontab":"","once":false,"x":136,"y":654,"z":"273f009f.d8c1","wires":[["d0414c8.f2fbeb"]]}]

Credits

11014907 917762441613247 2463536654633089299 o
Punch Through

We’ve been building connected products since 2009. Our diverse team has expertise in every layer from hardware to software to web.

Replications

Did you replicate this project? Share it!

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

RadBit
Intermediate
  • 822
  • 16

FitBit-type bluetooth radiation sensor for tracking radiation exposure (for working around X-rays in the hospital, or just life in general).

Web-controlled BoE-Shield Robot with the LightBlue Bean[+]
Intermediate
  • 726
  • 21

Full instructions

Have you ever wanted to control a robot from a web browser? Use the LightBlue Bean[+] (LBB[+]) to control a BoE-Shield Robot using BLE.

Handy BLE app / Bean Car
Intermediate
  • 3,930
  • 28

Work in progress

Remote control bean powered car driven with an iPhone running the Handy BLE app.

Data Pyrotechnics
Intermediate
  • 517
  • 7

Full instructions

What happens when you strap a LightBlue Bean to some fireworks?

Water Detection System
Intermediate
  • 2,394
  • 23

Full instructions

Send email alerts with LightBlue Bean using Node-RED on Raspberry Pi

Too Much IoT - Tweeting Pregnancy Test
Intermediate
  • 3,412
  • 17

Full instructions

A connected pregnancy test that tweets your results instantly, and text messages your mom. May also be used as a light switch.

ProjectsCommunitiesContestsLiveAppsBetaFree StoreBlogAdd projectSign up / Login
Respect project
Feedback