Old 21st June 2018, 21:59   #1
Jannes01
Junior Member
 
Join Date: Aug 2017
Posts: 11
Create own JSON

I want to have a JSON with all the shoutcast data of my server on my site, but it needs to run over SSL (https)
Is it possible to have a copy of shoutcastIPort/ /statistics?json=1 thats runs on my own server (not the shoutcast server)
Can someone help me with this?
Jannes01 is offline   Reply With Quote
Old 22nd June 2018, 04:30   #2
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,289
So, your site runs over SSL?

Just grab the data from statistics?json=1 using whatever front end language your current server is using

Is it just me or are shoutcast users getting dumber?
jaromanda is offline   Reply With Quote
Old 22nd June 2018, 13:31   #3
Jannes01
Junior Member
 
Join Date: Aug 2017
Posts: 11
oke and how do i turn that into a "new" json?
Jannes01 is offline   Reply With Quote
Old 22nd June 2018, 13:42   #4
NJK
Frisian Spamfighting Mod
 
NJK's Avatar
 
Join Date: Sep 2003
Location: a real Frisian hometown
Posts: 14,709
you can start here
http://forums.winamp.com/showthread.php?t=246636

Each Thursday a new show on Celtica Radio with Darkwave music.
NJK is offline   Reply With Quote
Old 22nd June 2018, 18:51   #5
Jannes01
Junior Member
 
Join Date: Aug 2017
Posts: 11
Quote:
Originally Posted by NJK View Post
That aint helpful at all
Jannes01 is offline   Reply With Quote
Old 22nd June 2018, 19:20   #6
neralex
Major Dude
 
Join Date: Mar 2011
Posts: 546
PHP, file_get_contents(), escape special characters in the json-string, build json file header(), get the callback and echo your own masked and escaped string.
neralex is offline   Reply With Quote
Old 22nd June 2018, 19:34   #7
NJK
Frisian Spamfighting Mod
 
NJK's Avatar
 
Join Date: Sep 2003
Location: a real Frisian hometown
Posts: 14,709
Quote:
Originally Posted by Jannes01 View Post
That aint helpful at all
It was just a hint to let you know that answers can be found if you take the time to read
but instead you expect to have it handed to you on a silver plate......

Each Thursday a new show on Celtica Radio with Darkwave music.
NJK is offline   Reply With Quote
Old 24th June 2018, 03:39   #8
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,289
Quote:
Originally Posted by Jannes01 View Post
oke and how do i turn that into a "new" json?
what is "a new JSON"?

Is it just me or are shoutcast users getting dumber?
jaromanda is offline   Reply With Quote
Old 24th June 2018, 07:03   #9
neralex
Major Dude
 
Join Date: Mar 2011
Posts: 546
I guess he means the warning for non-encrypted elements, which you will get, when you load a file from a http-connection in an https-document because the DNAS provides only http and his website runs with https. So I guess he wants a copy of the DNAS JSONP-stats. PHP ftw
neralex is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > SHOUTcast > SHOUTcast Technical Support

Tags
json shoutcast metadata

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump