If you have not installed Node or Meteor, follow the steps in Setting up your development environment before running this application.
Download these files to your computer
Connect your Arduino to your computer via USB and run this Arduino sketch
How to find the path to your serial port
ls -al /dev/cu*
Edit the server/main.js
files on line 23 with your serial port from step 2
In Terminal, cd
into this directory (hwyd-led-ctrl-react/meteor) and then run the following commands:
meteor npm install
meteor add react-meteor-data
In Finder, navigation to hwyd-led-ctrl-react/node_modules/p5/lib/addons
and put p5.gif.js
, p5.gif.min.js
and supergif.js
in that folder. These files can be found here: https://github.com/kandizzy/p5.gif.js
In Terminal run
meteor
View the application in your browser at http://localhost:3000
View MQTT messages in Terminal by running this command
mosquitto_sub -h 127.0.0.1 -t {your-topic-here}