ESP8266 with ultrasonic sensor PLAY VIDEO

Job ID: 31020161

Budget: $10 – $20 USD

There are two folders in a Raspberry (video1 and video2). When the Rasp starts up, a looping playlist of the videos contained in video1 is played. I have an HC-SR04 sensor with nodeMCU connected to an ESP8266. When a person walks in front of the sensor (dist < 30 cm) the playlist is interrupted and the first video contained in video2 is started. When this video finishes, playlist execution resumes with the video that was running at the time of the interruption. When a second person passes by, the playlist is interrupted again and the second film contained in video2 is played, and so on. When the movies in video2 finish, the first movie is played in the next step. I want to use Mqtt.

Translated with www.DeepL.com/Translator (free version)