-
Notifications
You must be signed in to change notification settings - Fork 15
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
URL Decode needed? #13
Comments
I don't use the FPP plugin that was created by Daniel Kulp. So I might not be able to solve this issue. Here's some ideas:
BTW, it is not clear which RDS payload that is causing the grief. When you say "station text," is it the PSN (program station name) that is not working when you pad with %20. Or do you mean a different RDS payload? Keep in mind that PSN is typically the station call letters, but can be a very short name. Maximum 8 chars, including any encoding characters. |
It's probably best to check the plugin's code. It must handle any URL encoding before passing the text string to PixelRadio. I don't have any experience with the FPP plugin. But thinking about what it should do, one issue is that only 8 chars can be sent to PixelRadio's PSN command at a time. So if %20 encoding is used, and it does not fit in a single 8 char payload, it won't be decoded as a space. Sending that won't work correctly. So as a workaround, it might be best to use a single character to represent a space. Such as hyphens, underscores, periods, etc. Keep in mind that using the Station ID for messaging is not actually permitted in the RDS standards. It was intended for fixed station ID only. |
Yeah - that's kind of representative of what I saw on the radio. I think there's 2 parts of it that are seperate but connected - the sending via curl and the displaying and they're intertwined and its escaping me to think it through the easy solution. There's a simple solution I'm sure - let me continue messing around with it. Thanks Thomas! You've been helpful for sure. |
The FPP Plugin was failing in curl with malformed URLs. to make it suceed, the Content of the URLs needed to be url encoded so " " would travel across to the pixelradio device as "%20". This seems to work fine for Sont text, however, the station text is displaying at "%20" instead of being URL decoded. I coudlnt' figure out the correct plave to URL decode the strings correctly, so perhaps you could quickly update the correct line of code to properly URL Decode the strings and transmit them correctly.
The text was updated successfully, but these errors were encountered: