toniebox-reverse-engineering / teddycloud

teddyCloud is an open source server replacement for the Boxine Cloud
https://toniebox-reverse-engineering.github.io/docs/tools/teddycloud/
GNU General Public License v2.0
478 stars 36 forks source link

MQTT: missing image/title on webstream assigned (custom) Tonies #194

Open ks61625 opened 4 months ago

ks61625 commented 4 months ago

Whenever I place a (custom) tonie on a box, with radio-web-stream assigned, mqtt points to default "teddy" picture. Although there is a record in tonies.custom.json with an available image-source path, it wont get transfered via mqtt.

I guess it has to do with the missing "audio_id" in tonies.custom.json. Since the audio_id seems to change every time you place the webstream-tonie on the box, there is no chance to define one in tonies.custom.json.

So...maybe mqtt should use the path directly (if there is one), instead of using a maping by audio_id (just guessing)??

Also: sensor.box_content_title shows just "Unknown". It should be the title or series defined in tonies.custom.json as well, I guess.

meiser79 commented 1 month ago

Could you maybe use "StreamTitle" from the ffmpeg output as title?

SciLor commented 1 month ago

Could you maybe use "StreamTitle" from the ffmpeg output as title? This is not possible, as we do not have that within teddyCloud.

We need two separate blocks: One for the model selected, one for the actual content.