This node.js app is following @cheerlights stream on twitter and sending the corresponding hex color code to a MQTT broker. WIP... This code will be used for IoT projects (more related code coming soon) with Aruino and ESP8266.
- Rename config-template.js to config.js
- Add your personal info in the config.js file (twitter keys, mqtt broker...)
- run
yarn
to install packages - Ready to run?
yarn run start
ornode index.js
If you are using a cloud service such as Heroku, add twitter keys and mqtt brokers info into your process.env.
- Cheerlights API: https://cheerlights.com/cheerlights-api/
- Twitter.js https://www.npmjs.com/package/twitter
- MQTT.js https://www.npmjs.com/package/mqtt