Skip to content

Json type is not an array error #17

Description

@wirelessphreak

I apologize is this is an obvious issue, I am sort of a coding rookie. I am running an icecast server and I wanted to leverage your module to show currently playing tracks on my magic mirror. I dont feel the icecast server provides the best formatted json hence not correctly identifying an array parameter. I was curious if you could point me in the right direction to get your Module to display the currently playing track. it is the title: nested in the Json response. Thanks you for your wonderful module.

Here is the json output.
{
"icestats": {
"admin": "host@local.com",
"host": "radio.phreakn.tel",
"location": "Earth",
"server_id": "Icecast 2.4.4",
"server_start": "Mon, 21 Dec 2020 02:41:56 -0500",
"server_start_iso8601": "2020-12-21T02:41:56-0500",
"source": {
"genre": "Science and Technology",
"listener_peak": 4,
"listeners": 0,
"listenurl": "http://radio.station.com:8000/stream",
"server_description": "Defcon talks and live performaces",
"server_name": "WirelessPhreak Radio",
"server_type": "audio/mpeg",
"server_url": "https://www.wirelessphreak.com",
"stream_start": "Thu, 24 Dec 2020 19:40:44 -0500",
"stream_start_iso8601": "2020-12-24T19:40:44-0500",
"title": "DEF_CON_Safe_Mode_-_Shadowvex",
"dummy": null
}
}
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions