This commit is contained in:
e2002
2022-03-03 21:08:28 +03:00
parent 2fffe0d8bf
commit 06c004c16d
2 changed files with 2 additions and 46 deletions

View File

@@ -218,6 +218,8 @@ download _http://\<yoradioip\>/data/playlist.csv_ and _http://\<yoradioip\>/data
**stop** - stop playing \
**start, play** - start playing \
**boot, reboot** - reboot \
**volm** - step vol down \
**volp** - step vol up \
**vol x** - set volume \
**play x** - play station x
---

View File

@@ -1,46 +0,0 @@
#include "options.h"
#define MQTT_HOST "192.168.7.3"
#define MQTT_PORT 1883
#define MQTT_USER ""
#define MQTT_PASS ""
/*
* HWID's:
* 0: with yellow-blue SSD1306
* 1: white SSD1306 without controls
* 2: ST7735 with encoder
* 3: Nokia 5110 dev board
* 4: VS1053 dev
* 5: VS1053 UNO3 Shield
*/
#if HWID==0
#define MQTT_ROOT_TOPIC "yoradio/tv/"
#elif HWID==1
#define MQTT_ROOT_TOPIC "yoradio/work/"
#elif HWID==2
#define MQTT_ROOT_TOPIC "yoradio/st7735/"
#elif HWID==3
#define MQTT_ROOT_TOPIC "yoradio/nokia5110/"
#elif HWID==4
#define MQTT_ROOT_TOPIC "yoradio/vs1053dev/"
#elif HWID==5
#define MQTT_ROOT_TOPIC "yoradio/kitchen/"
#endif
/*
Topics:
MQTT_ROOT_TOPIC/command // Commands
MQTT_ROOT_TOPIC/status // Player status
MQTT_ROOT_TOPIC/playlist // Playlist URL
MQTT_ROOT_TOPIC/volume // Current volume
Commands:
prev // prev station
next // next station
toggle // start/stop playing
stop // stop playing
start, play // start playing
boot, reboot // reboot
vol x // set volume
play x // play station x
*/