Skip to content

JSON web interface

Luis Fernandes edited this page Apr 18, 2013 · 1 revision

GET http://192.168.1.250:9981/capabilities

["cwc","v4l","linuxdvb","imagecache","timeshift"]

GET http://192.168.1.250:9981/ecglist

{
"entries": [
  {"code": 0,"name": ""},
  {"code": 16,"name": "Movie/Drama"},
  {"code": 32,"name": "News/Current affairs"},
  {"code": 48,"name": "Show/Game show"},
  {"code": 64,"name": "Sports"},
  {"code": 80,"name": "Children's/Youth programmes"}, 
  {"code": 96,"name": "Music/Ballet/Dance"},
  {"code": 112,"name": "Arts/Culture (without music)"},
  {"code": 128,"name": "Social/Political issues/Economics"},
  {"code": 144,"name": "Education/Science/Factual topics"},
  {"code": 160,"name": "Leisure hobbies"}
 ]
}

POST http://192.168.1.250:9981/channeltags op listTags

{
 "entries": [
  {"identifier": 57,"name": "Missin"},
  {"identifier": 55,"name": "Desenhos Animados"},
  {"identifier": 8,"name": "Z"}
 ]
}

POST http://192.168.1.250:9981/channels op list

{ "entries" : [ 
     { "ch_icon" : "https://link.jpg",
        "chid" : 15,
        "epg_post_end" : 0,
        "epg_pre_start" : 0,
        "epggrabsrc" : "xmltv",
        "name" : "AXN",
        "number" : 60,
        "tags" : "32,8,20"
      },
      { "chid" : 114,
        "epg_post_end" : 0,
        "epg_pre_start" : 0,
        "name" : "AXD",
        "number" : 0,
        "tags" : "16,19,8"
      },
      
      { "ch_icon" : "https://linkjpg",
        "chid" : 80,
        "epg_post_end" : 0,
        "epg_pre_start" : 0,
        "epggrabsrc" : "xmltv",
        "name" : "VHc",
        "number" : 144,
        "tags" : "8,53"
      }
    ] 
}

POST http://192.168.1.250:9981/dvr_containers op list

{ "entries" : [ { "description" : "Matroska",
        "name" : "matroska"
      },
      { "description" : "Same as source (pass through)",
        "name" : "pass"
      },
      { "description" : "MPEG-TS",
        "name" : "mpegts"
      },
      { "description" : "MPEG-PS (DVD)",
        "name" : "mpegps"
      }
    ] }

POST http://192.168.1.250:9981/confignames op list

{"entries": 
  [
   {"identifier": "extra minutos","name": "extra minutos"},
   {"identifier": "","name": "(default)"}
  ]
}

POST http://192.168.1.250:9981/languages op list

{ "entries" : [ { "identifier" : "und",
        "name" : "Undetermined"
      },
      { "identifier" : "aar",
        "name" : "Afar"
      },
      { "identifier" : "abk",
        "name" : "Abkhazian"
      }
    ] }

POST http://192.168.1.250:9981/languages op config

{"entries": [{"identifier": "por","name": "Portuguese"},{"identifier": "eng","name": "English"}]}

POST http://192.168.1.250:9981/epg

limit 300 start 0

can also have: channel RTP 1 (it appears to be a string?)

{
 "totalCount": 4196,
 "entries": [
  {"channel": "T","channelid": 27,
   "chicon": "https://link.jpg",
   "title": "Sougal",
   "description": "A ro e Presunto…",
   "id": 391185,
   "start": 1359900000,
   "end": 1359921600,
   "duration": 21600
  },
 ]
}

http://192.168.1.250:9981/tv/adapter

{
   "entries":[
       {
         "identifier":"_dev_dvb_adapter1_Montage_Technology_DS3000_TS2020",
         "name":"s480 usb port2",
         "type":"dvb",
         "services":380,
         "muxes":16,
         "initialMuxes":0,
         "currentMux":"bla kHz Horizontal (hispasat)",
         "signal":71,
         "snr":0,
         "ber":0,
         "unc":0,
         "uncavg":0,
         "path":"/dev/dvb/adapter1",
         "hostconnection":"USB (480 Mbit/s)",
         "devicename":"Montage Technology DS3000/TS2020",
         "deliverySystem":"DVB-S",
         "satConf":1,
         "freqMin":950000,
         "freqMax":2150000,
         "freqStep":1011,
         "symrateMin":1000000,
         "symrateMax":45000000
      }
   ]
}

POST http://192.168.1.250:9981/tablemgr

op get table channeltags

{
   "entries":[
      {
         "enabled":0,
         "internal":0,
         "titledIcon":0,
         "name":"TV channels",
         "comment":"",
         "icon":"",
         "id":20
      }
   ]
}
Clone this wiki locally