Commit Graph

45 Commits

Author SHA1 Message Date
Fabian Schlenz 913a64d465 Die Position in einer Playlist beilbt beibehalten, solange die Papabox nicht neu gestartet wird. 2022-08-25 14:52:12 +02:00
Fabian Schlenz b2cf9d6277 Systeminfos werden via mp3-Dateien in /system abgespielt. 2022-08-25 14:51:18 +02:00
Fabian Schlenz 13e62fea19 Shuffle the playlist before playing if "[random]" is in the rfid data. 2022-08-22 13:59:00 +02:00
Fabian Schlenz 15a65f7391 Added reaing of RFID contents. 2022-08-22 13:58:22 +02:00
Fabian Schlenz b9df55012f Better handling of eof_mp3 events: Keep playing as long as there is data remaining. 2022-08-22 13:57:46 +02:00
Fabian Schlenz fb6b5bced6 Test for button press every 50ms. That's more than enough. 2022-08-22 13:56:43 +02:00
Fabian Schlenz cf433a48b2 Support for http(s) links in _mapping.txt 2022-08-22 08:51:19 +02:00
Fabian Schlenz 9a39b00a65 Lautstärke-Änderungen in 2er-Schritten. 2022-08-21 17:42:58 +02:00
Fabian Schlenz 3272921db2 Daten von RFID-Karten (versuchen zu) lesen. 2022-08-21 17:40:22 +02:00
Fabian Schlenz 4840c150c2 Button handling implemented. 2022-08-21 14:00:52 +02:00
Fabian Schlenz 9c31f70c57 It's working more or less... 2022-08-21 11:37:42 +02:00
Fabian Schlenz 978b25c34d Started rewrite for using an I2S amplifier with less unnecessary features. 2022-08-19 10:37:03 +02:00
Fabian Schlenz fe2a209e44 Debug and Trace modes can now be (de)activated via API commands and are persisted across reboots. 2019-11-30 13:53:50 +01:00
Fabian Schlenz 38d48ab0e4 Controller: Only read sector 1 from RFID cards. That's big enough and much faster. 2019-11-29 21:22:35 +01:00
Fabian Schlenz 51bef05465 Fixed advent mode and persistence stuff. 2019-11-29 21:20:19 +01:00
Fabian Schlenz 4eef69516e Made TRACE a bit less talkative. 2019-11-29 21:18:28 +01:00
Fabian Schlenz 8e15f87cd3 Moved index.html from SPIFFS to program memory. Removed dependencies to SPIFFS. Also, we can use a different partition scheme with much more program space instead of reserving some of it for SPIFFS. 2019-11-29 06:10:17 +01:00
Fabian Schlenz 001e275131 Include information about versions and WiFi connection to controller's json. 2019-11-29 05:46:26 +01:00
Fabian Schlenz 196021bef5 Try to (re)connect to WiFi every 5 minutes. (Only when not playing at the moment.) 2019-11-29 05:45:21 +01:00
Fabian Schlenz 5fe66fdaef Added a command `update` to run the update check. 2019-11-29 05:35:47 +01:00
Fabian Schlenz 07b1ea3a5c Added Updater to automatically perform OTA updates without user interaction. 2019-11-28 06:42:30 +01:00
Fabian Schlenz 20041dd483 Extended http_server to provide new endpoints:
/_mapping.txt, /player.json, /playlist_manager.json, /controller.json and /position.json to get the matching data as well as /cmd to send commands to.
2019-11-19 20:48:11 +01:00
Fabian Schlenz 68ecc05712 Made player and playlist_manager pubilc members of Controller. 2019-11-19 20:46:04 +01:00
Fabian Schlenz 37df309127 Removed MQTT client. Was more or less unused, anyways. 2019-11-17 17:38:41 +01:00
Fabian Schlenz e1dd004cf5 Reload folder mappings after modifying a mapping. 2019-11-17 14:26:23 +01:00
Fabian Schlenz 5c15a7d4cb index.html is now served from SPIFFS. You can add rfid tag -> folder mappings via the webinterface. And I've added the missing controller json data messages. 2019-11-17 00:35:23 +01:00
Fabian Schlenz b9a4770ff2 Massive changes. Added a quite nice webinterface with live data using WebSockets. Removed the FTP server (wasn't that useful anyways). JSON creating using ArduinoJson instead of String concatenation. Ans, and, and. 2019-11-16 23:03:13 +01:00
Fabian Schlenz e471a57578 Changed the playing code to use Playlists managed by a PlaylistManager. This allows you to have randomized playlists and stuff. Also, you can now access special functions via the contents of RFID tags. See the README for a list of available modes. 2019-11-14 20:42:02 +01:00
Fabian Schlenz 15f6d78128 RFID reading now includes RFID data, enabling you to save additional data (still to come...) to the rfid card. 2019-11-14 06:48:21 +01:00
Fabian Schlenz b32f7d1228 Experimental code to read RFID card data. 2019-11-13 20:14:09 +01:00
Fabian Schlenz e20e6b7d3e Added serial command ids; id-to-folder mapping now works. 2019-11-13 06:51:38 +01:00
Fabian Schlenz 6d00474315 ID of album to play now comes from a file ids.txt within the folder. This is as of yet untested. 2019-11-12 19:29:55 +01:00
Fabian Schlenz 2d1f049444 Changed from ESP8266 to ESP32. Works much better.
HTTP server is disabled (for now).
2019-11-11 05:32:41 +01:00
Fabian Schlenz c313f6eb72 Changed from MCP23S17 to MCP23017. Lots of changes.
Doesn't really work because of timing stuff.
2019-11-10 14:45:33 +01:00
Fabian Schlenz 429979c6d1 Start Wifi after initializing VS1053 - faster bootup when multiple tries setting up VS1053 are needed. 2019-09-03 06:06:51 +02:00
Fabian Schlenz 5f682c303f Added MQTT client, better speaker handling, fixed bug in FTP server, ... 2019-08-14 21:01:01 +02:00
Fabian Schlenz 4d59c66354 Format changes. 2019-08-13 06:16:08 +02:00
Fabian Schlenz 25fa963752 Added sleep mode for VS1053, HTTP server, tar upload, JSON status, RFID card removal debouncing, ... 2019-08-12 20:15:00 +02:00
Fabian Schlenz 7695e6196c Use correct actions for buttons. 2019-08-12 06:20:52 +02:00
Fabian Schlenz f29e38160a Added MCP23S17 support as well as changed some pins and added more de-bouncing for the buttons. 2019-08-11 17:15:22 +02:00
Fabian Schlenz 842d7becf0 You can now have INFO output, but not DEBUG output. Added support for commands via Serial. 2019-08-09 06:27:33 +02:00
Fabian Schlenz 417421ae31 Fixed RFID scanning and implemented calling actions on Player. 2019-08-08 06:49:35 +02:00
Fabian Schlenz 393db24175 Do RFID scans only at specified intervals. System sounds are now supported, as well as more sound formats (.ogg, .mp4...). 2019-08-08 05:31:27 +02:00
Fabian Schlenz 815f11591c Playing and controlling MP3s works great. \o/ 2019-08-06 20:50:11 +02:00
Fabian Schlenz 8ba724e682 Initial commit. 2019-08-02 23:48:36 +02:00