crowbarz / aiopioneer

Pioneer AVR API (asyncio)
Apache License 2.0
8 stars 6 forks source link

Is this web scrapping if you are accessing the json? #16

Closed D-Jeffrey closed 1 year ago

D-Jeffrey commented 1 year ago

Something of note. pioneer-receiver-notes The StatusHandlder.asp give Zone and channel names. Actually, it looks like a one stop current values page. File this other interesting to know, but we have all that.

http://[192.168.4.44/StatusHandler.asp](http://192.168.4.44/StatusHandler.asp)

{
    "S":1,
    "B":0,
    "Z":[
        {"P":1,"V":93,"M":0,"I":[4,25,5,15,10,14,19,20,21,17,1,3,2,27,26,33],"C":5},
        {"P":0,"V":-1,"M":0,"I":[4,5,15,10,14,1,3,2,33],"C":4}
    ],
    "L":1,
    "A":5,
    "IL":[
        "Wii           ",
        "Bluray        ",
        "TV/SAT",
        "DVR/BDR",
        "VIDEO 1",
        "VIDEO 2",
        "CabIe         ",
        "Computer      ",
        "Amazon FireTV ",
        "iPod/USB",
        "CD",
        "CD-R/TAPE",
        "TUNER",
        "SIRIUS",
        "INTERNET RADIO",
        "ADAPTER PORT"
    ],
    "H":0
}

And the radio stations is this link for me. InternetRadioSettingListHandler.asp

 http://192.168.4.44/InternetRadioSettingListHandler.asp
{
    "R":[
    {
        "C":1,
        "T":"CBC Radio One",
        "U":"http://origin.www.cbc.ca/mrl2/livemedia/cbcr1-calgary.asx"
    },
    {
        "C":2,
        "T":"CFFR - 660 News",
        "U":"http://38.99.208.186/660NEWS"
    },

...

    {
        "C":24,
        "T":"FM Nirai",
        "U":"http://www.simulradio.jp/asx/fm-nirai.asx"
    }
    ]
}