CS326 Final Project
- Daniel Kim, Jason Chew
- Set up your Raspberry Pi
This project adaptively plays different soundtracks depending on the current state of precipitation, sunrise/sunset times, lighting conditions, and/or temperature, based on a Raspberry Pi’s location. The music plays in a web frontend, through which the user can also specify what environmental factors should play a role in the tracks played.
Our system has two base tracks, one for “daytime” and one for “nighttime.” The base tracks are chosen based on time or light level. Each track has three variations: one for clear weather, one for rainy weather, and one for snowy weather. The variations are chosen based on local weather conditions or temperature.
git clonethis repositorycd frontendnpm installnpm run devnpm testto run tests
- install
mosquitto-client - Example message: (replace
<BROKER>,<PASSWORD>, and<USERNAME>with your broker credentials)- Note that it should match with RPi's mqtt broker
mosquitto_pub -h <BROKER> -P <PASSWORD> -u <USERNAME> -p 8883 -t "emp/environment" -m '{"pid": "0", "precipitation_status": "snow", "sunrise": "07:23", "sunset": "20:14", "timezone": "America/Detroit", "temperature": "25", "light_level": 0.5, "timestamp": "129403493423"}'- Icons: Freepik, UniconLabs - Flaticon
- Cursor: Freepik - Flaticon
- Music: Cobblestone5517

