iOS and Android app
- nice setup experience
- connect to the right pi
- authorize Spotify
- then show the homeassistant interface
App interface
- checkpoint goals
- any sveltekit PWA
- areyourunning comms
- volume fader
- from Leo’s perspective
- she’s normally using the hardware module
- she might want the app
- from Janek’s perspective
- uses iOS/macOS shortcuts and kind of loves it, but not everything is exposed and there are annoyances
- needs access to settings like volume and max fade vol
- from Dave’s perspective
- suggested PWA
- HomeAssistant compatibility
- general ideas
- maybe the raspi server exposes what endpoints/settings it has, and the app reads and displays that?
- example settings
- fade lenghts
- final volume of alarm clock
- current music volume
Tasks
- playing files from the web, iterate over a folder
- a little open - if we pass it a radio stream, it would not need extra work on esp side
- would ease the requirements on the alarm clock
- would be a nice contribution from me
- would be a continuation of the youtube stream project
- with the added complication of DL’ing the tracks automatically
- would have to run somewhere (what’s the hosting/server? maybe it even goes over usage limits)
- is it going to be stable enough?
- 1: play like any other url
- where do the files live:
- 2: listen for a signal/callback when it ends
- later: maybe randomize
pros cons
Pro
Con
- web interface checks
- “esp32 http server”
- serve any index.html
- take input
- take input and save it to disk permanently
- wifimanager
Alarmfiles + voicedrop
alarm
- server side
can drop files into an s3 bucketcan send VMs that are later dropped into the s3 bucket- maybe add an endpoint “list” that lists s3 files? would be easy
- on the other hand,
listfilesis possible on the bucket itself - but getting a “address” of bucket and “list” endpoints would be quite convenient
- different playlists would be great
- spotify? youtube?
- alarm side
- run code on esp
- be able to read debugs from esp
- add callback in code to print when something is played
- then ideally when stops playing and we’re good
- add the possibility to list files from s3 bucket
can it play oga? otherwise need to convert <eyeroll> - maybe amazon mediaconvert would make it ok- checked as well as possible for now
- play any file from S3
- list files from folder, detect when they end and play the next one
- support different subfolders
- limit to specific extension
- bot
- deploy - make a new branch, make it a fresh deno project, deploy
Codebase intro
Overview

main.cpp functions

15.09
lq nts finden?
welche raspis gibts und kosten?
Costs
- main module:
- 20eur alles
- light:
- elektronik 20eur
- lichter selbst 10eur
- kaffee:
- elektrisches bialetti: 55eur
- elektronik: 15eur
- musik:
- esp32 version: 20eur
- zero w version: 20eur + 5eur
rpi3: 40-60eurrpi 70-90eur- billiges soundsystem: (nachschauen, aber ~30eur)
20 + 20 + 10 + 55 +15 + 25 + 30 = 175eur
Decisions
esp32 vs rpi for music modulewe want nts! can’t find lq audio for it
- do we need a web interface
- this is a “spotify playlist to online radio”, which is a submodule of svt youtube stream!
- with extra steps but maybe it’s good :)
- probably need to send signals to the azuracast server to play/pause
- I think it has webhooks which is good
