Thread Rating:
  • 1 Vote(s) - 5 Average
Work in Progress - amx control module
#16
hi lumiknight Smile

you have me interested now and i think i will have a go at writing a module unless you would be willing to share it so i can learn and possibly contribute to it as i want t to make it possibly do multiple kodi instances as i have about 4 in my house and would like to be able to transfer from one to another. For example i do this using multiroom audio and live TV . where the touch panel knows its me in the room if i go to the bedroom and turn the TV on it asks me who is watching and if i want to move to this room . it then switches TV on and sets channel to what i was watching in other room in the bedroom.... Hense why you have me so interested with this .
Reply
#17
(2017-08-22, 13:43)death__hound Wrote: hi lumiknight Smile

you have me interested now and i think i will have a go at writing a module unless you would be willing to share it so i can learn and possibly contribute to it as i want t to make it possibly do multiple kodi instances as i have about 4 in my house and would like to be able to transfer from one to another. For example i do this using multiroom audio and live TV . where the touch panel knows its me in the room if i go to the bedroom and turn the TV on it asks me who is watching and if i want to move to this room . it then switches TV on and sets channel to what i was watching in other room in the bedroom.... Hense why you have me so interested with this .

totally doable in amx. here are some links to resources and info you will need to get started.
https://forum.kodi.tv/showthread.php?tid...pc+example (has a lot of ready to use commands, absolutely invaluable thread)
JSON-RPC_API (wiki) (make sure you use the right api version for the version of kodi you are trying to control, also read the documentation in this link befor you start, it will explain how kodi communicates)
Development (wiki)
Remote_controls (wiki)
http://www.putty.org/ (use this to direct connect to kodi via telnet on port 9090, you can test your command strings this way)

i would recommend starting out with bsic nav functions. hope that helps you get a start.
Reply
#18
(2017-08-25, 17:25)lumiknight Wrote:
(2017-08-22, 13:43)death__hound Wrote: hi lumiknight Smile

you have me interested now and i think i will have a go at writing a module unless you would be willing to share it so i can learn and possibly contribute to it as i want t to make it possibly do multiple kodi instances as i have about 4 in my house and would like to be able to transfer from one to another. For example i do this using multiroom audio and live TV . where the touch panel knows its me in the room if i go to the bedroom and turn the TV on it asks me who is watching and if i want to move to this room . it then switches TV on and sets channel to what i was watching in other room in the bedroom.... Hense why you have me so interested with this .

totally doable in amx. here are some links to resources and info you will need to get started.
https://forum.kodi.tv/showthread.php?tid...pc+example (has a lot of ready to use commands, absolutely invaluable thread)
JSON-RPC_API (wiki) (make sure you use the right api version for the version of kodi you are trying to control, also read the documentation in this link befor you start, it will explain how kodi communicates)
Development (wiki)
Remote_controls (wiki)
http://www.putty.org/ (use this to direct connect to kodi via telnet on port 9090, you can test your command strings this way)

i would recommend starting out with bsic nav functions. hope that helps you get a start.
Ok thanks I will give that a go. Do you just talk via HTTP or do you use websockets I think I know how to do control via HTTP never done feedback( how do you paras the results of a command) but never done websockets. Did you manage to get library to display "l"On your touch panel and display now playing to display like cover art and stuff? That would be cool
Reply
#19
Hi all.
I have made some progress on this front have basic navigation ( doing this event/ button based in netlinx at the moment but will write a module when i get more time)and can retrive the title of what is playing but im having trouble with getting art work or ar least thumbnail for what is playing . I can send the json to my kodi box but get back a http string with %3 %2 and other odd characters Confused . If i past it in chrome to tells me the file was not found or sends ne to google coz it cant find it. I think its the same with retriving the file it is playing..

Im running emby on my nas and the latest kodi install on a pi3 sending json to port 9099.

Thanks in advance for any help..
Kind regards jon
Reply
#20
hi all
 just wondering if anyone has any ideas on how to display the artwork from what is playing on an amx touch panel?

Kind regards jon
Reply



amx control module51