I am now able to use an ESP8266 module, or a board like the Wemos D1 Mini, to play MP3 directly - no external storage or decoder needed thanks to a library called ESP8266Audio. It is controlled by MQTT messages. I have also added the ability to do very basic TTS (kinda retro lol) and RTTL tones without any external dependencies.
I put everything in an easy to load bin file which creates an AP that asks for the Wi-Fi and MQTT credentials/info.
I created an Instructables page and demo-ed it on my YouTube channel.
Instructables page to get the bin file and step-by-step instructions:
Love it! Appreciate the video of ideas. Just needs another node with a mike and camera and a button for a remote door bell over mqtt! I might use an old phone for that. Keep it up!
Ok, done it. flashed, logged in via phone, added WiFi pass etc. now I see âmrdiynotifierâ in mqtt explorer. IP address is known of device.
I have some questions:
what is the username password for the web interface I am prompted with when connecting to my own WiFi.
How can it save the config? When I am able to ping the device on my home WiFi and I disconnect power and reconnect it is gone from my home WiFi and I have to go back to my phone to go to the MrDIY notifier SSID again⌠why not saved?
Canât play anything⌠see a topic appearing but no sound:
Not with:
topic: /mrdiynotifier/play
payload: http://192.168.1.142:8123/local/No Limit.mp3
username is âadminâ and password is the same as the AP password - if you didnât change it, it will be mrdiy.ca. When there is something playing it skips the web interface to give more priority to the real time audio - just make sure you are not playing anything before visiting the internal IP of the device.
It should save the wifi info to eeprom. When it is unable to connect to Wifi it opens the AP again. Make sure you disconnect from the âMrDIY Notifierâ wifi from your phone/laptop and mark it âdonât connect automaticallyâ - or it could get stuck in setup mode.
Good catch!! I had a mistake in my documentation. The MQTT topics should NOT have a leading â/â. So send to âmrdiynotifier/playâ and subscribe to âmrdiynotifier/statusâ.
**** UPDATE ****
I uploaded a new bin file version that uses the leading â/â in the MQTT topics. This way the video matches the bin file and everyone should be able to follow along the video without any issues.
Wow! Enough from the haters! If you donât like watching 10 minute YouTube videos, then donât. Some people here may not be as advanced as you are and find some value in it. This is a great idea complete with documentation and a video. Thanks Onada.
Just to be clear, I liked nickâs post for linking the source and I thought the 5 minute video was well paced and edited to be succinct without the revenue padding I was explaining to Wibbly.
Iâm certainly going to give this a try to replace my Chromecast Audio so as to have one less big-data collecting device (Iâll have none actually, if this works for me).
@MrDIY This looks great, Iâm certainly interested in the Google Mini conversion you are doing.
If you are able to utilise the microphones from the Google Mini then maybe it could be used with something like rhasspy (with rhasspy running remotely obviously) as a mic/speaker so that you have a fully offline smart speakerâŚ