-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to download or change Tonie content #5
Comments
Thanks for the excellent bug report! |
Hi mrueg Does the Maybe interesting: Inside the Teddycloud Code at the suspected content download resource https://github.com/toniebox-reverse-engineering/teddycloud/blob/9e05ef8fc4a7d66f1e38db6a444c4a0d49af991f/src/handler_api.c#L1749, there is an ToDo saying something about rewrite |
I added a few more filters to the nginx config, please try again with the edge version. :) |
i installed the edge addon - copied over the certs folder from the old addon dir to the new one, uninstalled the stable addon and started the edge one - Setting the radio does seem to work, the POST to IP:PORT/api/hassio_ingress/ZqlUipbpq2X-KnZyoxcBlKBP8Yhen3U9pBfsJu-Qlho/content/json/set/c62ca116500304e0?overlay=10082C71290C responses 200. However, even after a freshness check, the actual Tonie content is being played. |
Probably this is missing one or two changes in the javascript. Hopefully get some time next week. |
I see this when trying to test the webradio with a freshness check.
looks like there's some segfault? |
I switched the base to ubuntu toniebox-reverse-engineering/teddycloud#160 seems like it's working now :) Please give it another try. |
I think we are getting closer - I think the rewrites however do not work as they are intended. When trying to download a tonie, still such an URL is used e.g.
When manipulating and resending with the ingress URL like this:
The download works and a .taf file is inside the library folder. (Note: i am on the latest Edge Build 0f17acb) |
Just investigated the filters: The http method is missing from my descriptions - but the download (and play) of content is a GET call. I suspect, this is why there is no rewrite currently:
|
Please try again with 8c07169 or v0.3.1, I think the download should work now. The encoder upload still has some issues, that's more on the nginx side of things I believe. |
Download still does not work. |
yes, you're right I was fixing audioUrl, and it should have been downloadTriggerUrl. af48891 this should add a filter for it as well. If toniebox-reverse-engineering/teddycloud#245 gets fixed, we won't need all the nginx rewrites anymore. |
works now - thank you very much :) |
@mrueg, can you release that last commit to stable? |
@mmslakr v0.3.2 is released. |
Problem/Motivation
After successful flashing and adding a CC2300 Box to Teddycloud (running as this HA Addon Container on HAOS on an RPi 4) i wanted to verify, that an original Tonie (that is playable, i think only because it was already downloaded and played pre-flashing) gets automatically downloaded and cached inside Teddycloud (which enables the possibility to play it inside the browser.
Expected behavior
Download starts automatically and after it finishes, I am able to play it in the browser.
Actual behavior
Download started but after a second, this error is shown:
Additionally, when trying to change the source of a model to a radio stream, the following error happens:
with the following addon logs produced:
Logs when starting the Toniebox:
Logs when doing a freshness check:
Steps to reproduce
Here is my config:
The content of the Homeassistant addon dir:
The ngCfg.json on SD-Card:
I double checked, that the ca.der inside teddycloud client dir is the one from the Toniebox backup.
Proposed changes
I have no current lead - however - the connection to the Boxine cloud server does not seem to work.
The text was updated successfully, but these errors were encountered: