Hi,
You could just do an HTTP request retrieveing the info you need.
You can define your own .json file with the info you need.
Here's the template I defined for my Android app:
config file:
[foo_httpcontrol]
url=/index.html
playlist_row={"artist": "$replace(%artist%,\,\\,",\")", "album": "$replace(%album%,\,\\,",\")", "track": "$replace(%title%,\,\\,",\")", "len": "%length%", "rating": "%rating%", "queued":"$if(%queue_indexes%,'('%queue_indexes%') ',)","playCount": "%play_count%"}
helper1=[%rating%]
helper2=[$replace(%artist%,\,\\,",\") - $replace(%title%,\,\\,",\") - $replace(%album%,\,\\,",\")]
helper3=[%codec% | %bitrate%kbps | %samplerate%Hz |[ %__bitspersample%-bit |] %channels%]
albumart=$directory_path(%path%)\Cover.jpg|$directory_path(%path%)\Cover.png|$directory_path(%path%)\%artist%*-*%album%*front*.*|$directory_path(%path%)\%artist% - %album%*.jpg|$directory_path(%path%)\%artist% - %album%*.png|$directory_path(%path%)\%artist%*.jpg|$directory_path(%path%)\%artist%*.png|$directory_path(%path%)\$if(not(%album%),%artist%*,%album%*.jpg)|$directory_path(%path%)\$if(not(%album%),%artist%*,%album%*.png)|$directory_path(%path%)\*front*.jpg|$directory_path(%path%)\*front*.png|$directory_path(%path%)\*.jpg|$directory_path(%path%)\*.png
albumart_not_found=foobar2000controller/img/nocover.png
albumart_not_available=foobar2000controller/img/nocover.png
albumart_prefer_embedded=1
albumart_limit_size=15728640
playlist_items_per_page=60
example of .json file:
{
"codec":"[HELPER3]",
"helper2":"[HELPER2]",
"isPlaying":"[IS_PLAYING]",
"isPaused":"[IS_PAUSED]",
"elapsedTime":"[ITEM_PLAYING_POS]",
"trackLength":"[ITEM_PLAYING_LEN]",
"volume":"[VOLUME]",
"volumeDB":"[VOLUME_DB]",
"order":"[PLAYBACK_ORDER]",
"albumArt":"[ALBUMART]",
"itemplaying":"[PLAYLIST_ITEM_PLAYING]",
"page":"[PLAYLIST_PAGE]",
"itemsPage":"[PLAYLIST_ITEMS_PER_PAGE]",
"search":"[SEARCH_REQUEST]",
"sac":"[SAC]",
"nowPlayingRating":"[HELPER1]"
}
Then you would do an http request as:
http://IP:PORT/templateName/?param3=yourfile.json
You can try that from the browser to read the response. You'll have to repeat that query every X seconds to be updated.
If you need that to be in a browser page you should have to do an AJAX request, parse the response and print it in html.
Recommended reading:
http://www.w3schools.com/jquery/ajax_ajax.asp
https://developer.mozilla.org/ca/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse
jQuery will help you also print the json in html.
Let me know if you have any help.