Nowplaying track in embedded container

You have a question or need an advice about how to do something? Ask it here!
User avatar
radio42
Site Admin
Posts: 8926
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Nowplaying track in embedded container

Post by radio42 »

Probably an issue with the config.php file and/or database connection.
But please, ask a web designer or as hdradio suggested go to fiverr.com and ask someone to do that for you for $5.

No more web design question please !
DirkB
Posts: 10
Joined: 26 May 2012 15:55
Re: Nowplaying track in embedded container

Post by DirkB »

friso wrote:Bernd

I'm still struggling with the code you give me.
Creating the mysql from the code give an error, and now i manually created the database and the tables in it. Also i found the most settings of the collums. But when created the php files gives me errors during test in proppfrexx.
Also i think that the database connection settings is the config.php file?
Friso,

I've been following this discussion and think that it is not fair that you keep bothering Bernd with your webdesign questions.
Bernd is a software programmer and not a webdesigner. Below you see a screenshot of the settings that you can use your nowplaying on the website. Goto Events/Commands ==> Streaming ==> OnSongTitleChanged and use the code below.

Be sure to create a file called template.html with the following code, this will atomatically be uploaded by ftp tp your site when the songtitle changes.

Current Track: ${currentartist} - ${currenttitle}

Next: ${nextartist} - ${nexttitle}


Previous played:

${02artist} - ${02title}
${03artist} - ${03title}
${04artist} - ${04title}
${05artist} - ${05title}

This is all help i can offer you, so the rest is up to you to find out.

Good luck !
Attachments
Settings Nowplaying.png
Settings Nowplaying.png (173.81 KiB) Viewed 13047 times
friso
Posts: 173
Joined: 10 Apr 2012 10:05
Re: Nowplaying track in embedded container

Post by friso »

DirkB
Yoe are a bit right about bordering Bernd, but it's an command that's in proppfrexx available. And Bernd does do a great job with proppfrexx, but documentation and tech people don't walk together. So if he had a good manual about using commands and macro's i didn't hava to ask those questions.
Look in the manual and see that a lot of features aren't documented at all.

So it's not strange questions arise, i think

About your solution. I work with that one. That was an easy one, but it doesn't get the track data out of an embedded track. Therefore i had to use another aproach. Try it yourself.

Friso
User avatar
radio42
Site Admin
Posts: 8926
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Nowplaying track in embedded container

Post by radio42 »

The command does its job perfectly and I already showed you how to use it!
That command it is just an interface to the web, which doesn't mean that I need to explain the whole web stuff to you.
There are also control commands available to communicate with electronic contact closure interfaces (GPIOs), which also doesn't mean, that I need to explain how to build electronic contact closure devices.

The posted web code above is even working fine as well - but if you don't know how to use it...then please ask someone with some web skills to help you out...
This post is closed now.
friso
Posts: 173
Joined: 10 Apr 2012 10:05
Re: Nowplaying track in embedded container

Post by friso »

Bernd

I'm sorry to borther again, but it's just not working for me. I had 2 guys looking at the script, and i actually got working that it's creating a new entry in my mysql table, but no data is stored in that record. I have tested it with the POST and GET command. Also i saw that your command wasn't ok, because u used a ? and you have to use the | character

EXEC_SEND_HTTP_POST http://frisotrip.nl/proppfrexx/insert_d ... le=${title}

I think that the command above should be ok, but i don't know if the parsing is going ok, simply because i can't test it.
So by executing the command in proppfrexx by the streaming on song change it creates a new record with no data in it.

Any tips?

Thanx
Friso
User avatar
radio42
Site Admin
Posts: 8926
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Nowplaying track in embedded container

Post by radio42 »

Sorry, yes, for EXEC_HTTP_POST it must the command separator character '|'.
For EXEC_HTTP_GET it needs to be the '?' to separate the query string from the url within the complete Uri.

Have you tried EXEC_HTTP_GET instead? Maybe this working better for you (it is even easier to use I guess)...?!
friso
Posts: 173
Joined: 10 Apr 2012 10:05
Re: Nowplaying track in embedded container

Post by friso »

Bernd

Finally i got it working with the _get command.
Last thing is now to get the albumart in the sql table. Can you confirm that i can use the ${currentalbumart} in the title change command?
Is the actual albumart then passed thrue or do i have to add some more things?

Thanx
Friso
User avatar
radio42
Site Admin
Posts: 8926
Joined: 05 Apr 2012 16:26
Location: Hamburg, Germany
Contact:
Re: Nowplaying track in embedded container

Post by radio42 »

No, a ${currentalbumart} macro does not exist for regular Track command! See the User Manual Appendix for a list of valid macros to use.

But you can try the ${albumart} macro!

Note: AlbumArt pictures will result in a base64 encoded string. To convert that back to an image on a receiver side you can simply decode that string back to a byte array and take the data to create a JPEG image. The original album art picture will in any case automatically be scaled to a max. 200x200 image and converted to JPEG (keeping the original aspect ratio, as such the resulting image might be smaller but either the width or height will be 200 pixel).

However, be aware, that a HTTP GET has a certain maximum length limit (which depends on your web-server settings); but is often something like 4K or 8K; this might easily exceeded when transmitting base 64 encoded images...
friso
Posts: 173
Joined: 10 Apr 2012 10:05
Re: Nowplaying track in embedded container

Post by friso »

Bernd
Yes yes yes, got it all working now. I'm going to cleanup code now and will post the solution for other users, so they don't have to struggle like i did :)
Again thanx, and sorry for constantly asking :)
Attachments
screenshot.jpg
screenshot.jpg (32.81 KiB) Viewed 13013 times
djanji
Posts: 67
Joined: 13 Dec 2013 09:06
Re: Nowplaying track in embedded container

Post by djanji »

friso wrote:Bernd
Yes yes yes, got it all working now. I'm going to cleanup code now and will post the solution for other users, so they don't have to struggle like i did :)
Again thanx, and sorry for constantly asking :)
I'm still waiting code? I have the same problem : D

Post Reply