Sony TV Network Remote Control Plugin

Questions and comments specific to a particular plugin should go here.
User avatar
kgschlosser
Site Admin
Posts: 4204
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Sony TV Network Remote Control Plugin

Post by kgschlosser » Sun Dec 31, 2017 6:18 am

this sony plugin is getting rather large.

But it is going to be able to control TV's, AVR's, Camera's, Home Theatre in a box, some standalone media speakers. well I guess whatever responds to a UPNP SSDP discovery packet and supports the methods that are built into the API.

11343 lines of code so far. and I have the TV and about 1/2 of the AVR done. I started working on the actual EG plugin a while ago I will have to change some things about on it. The count above does not include the plugin for the API.
If you like the work I have been doing then feel free to Image

User avatar
kgschlosser
Site Admin
Posts: 4204
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Sony TV Network Remote Control Plugin

Post by kgschlosser » Mon Jan 01, 2018 5:22 am

ok so I have finished up with the AVR.... stuff.. only the camera left to do.

Number of Files: 31
Commented Lines: 592
Doc String Lines: 4232
Code Lines: 6044
Blank Lines: 1337
Total Lines: 12205
If you like the work I have been doing then feel free to Image

blaher
Experienced User
Posts: 481
Joined: Thu Nov 17, 2011 1:27 am

Re: Sony TV Network Remote Control Plugin

Post by blaher » Wed Jan 03, 2018 3:32 am

Sounds like quite the epic plug-in. :)

User avatar
kgschlosser
Site Admin
Posts: 4204
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Sony TV Network Remote Control Plugin

Post by kgschlosser » Wed Jan 03, 2018 6:50 am

It's getting quite large.

I have been working on the documentation for it. I still have more work to do with it. but essentially if i format all of my doc strings a specific way and set up the files needed to parse and organize those doc stings it will generate the HTML code for documentation web pages.

here is the tally thus far after getting together the documentation (well most of it. still doing some reformatting)

Commented Lines: 1155
Doc String Lines: 4988
HTML Lines: 47572
Restructured Text Lines: 431
Code Lines: 8104
Blank Lines: 1920
----------------------------------------
Totals:
Number of Files: 139
Python Code Lines: 16167
Documentation Code Lines: 52991
Lines: 64170
If you like the work I have been doing then feel free to Image

User avatar
kgschlosser
Site Admin
Posts: 4204
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Sony TV Network Remote Control Plugin

Post by kgschlosser » Wed Jan 03, 2018 6:55 am

attached is a copy of the documentation. Have a read through if ya like. You will get to see some of the things you are going to be able to do with it.


open up the index.html in your browser.
Attachments
SonyAPI_docs.zip
(1.69 MiB) Downloaded 55 times
If you like the work I have been doing then feel free to Image

blaher
Experienced User
Posts: 481
Joined: Thu Nov 17, 2011 1:27 am

Re: Sony TV Network Remote Control Plugin

Post by blaher » Thu Jan 04, 2018 3:21 am

Looks pretty cool.

class SonyAPI.browser.BookmarkItem(sony_api, url='', title='', type='', favicon='')[source]

icon

load()

Loads this website.

Using this combined with Alexa to load a YouTube video of a fireplace when you say, Alexa, turn on fireplace, would be pretty novel. :-)

User avatar
kgschlosser
Site Admin
Posts: 4204
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Sony TV Network Remote Control Plugin

Post by kgschlosser » Thu Jan 04, 2018 3:54 am

a youtube yule log. (search it you'll laugh!!)
If you like the work I have been doing then feel free to Image

User avatar
zian
Site Admin
Posts: 551
Joined: Wed Jun 24, 2009 3:54 pm

Re: Sony TV Network Remote Control Plugin

Post by zian » Thu Jan 04, 2018 1:59 pm

Please tell me AVR stands for Audio Video Reciever and not A Video Recorder.

Pretty please.
Cherry on top too.
;)
eventghost.net
Be there or be square.

User avatar
kgschlosser
Site Admin
Posts: 4204
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Sony TV Network Remote Control Plugin

Post by kgschlosser » Thu Jan 04, 2018 4:54 pm

I am going to say yes.. But you are going to be all hurt about it tho.

It presently works with this audio devices. They do not list any other ones.

HT-CT800 2.1
STR-DN1080 7.2
SRS-ZR5
If you like the work I have been doing then feel free to Image

User avatar
zian
Site Admin
Posts: 551
Joined: Wed Jun 24, 2009 3:54 pm

Re: Sony TV Network Remote Control Plugin

Post by zian » Sat Jan 06, 2018 2:29 pm

No big whoop. Not for me anyways.
I have this Sony... STRDN1030
And along with EG & USBirt It does most all I want.

It would just be neat if the Sony could "talk" to my other gear.
Maybe someday.

Still... appreciate all your work on this.
Your A Good Man.
eventghost.net
Be there or be square.

User avatar
kgschlosser
Site Admin
Posts: 4204
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Sony TV Network Remote Control Plugin

Post by kgschlosser » Sat Jan 06, 2018 3:54 pm

Well I doubt that Sony is going to add the API to already existing equipment. They will add it to new products. I am not sure if there is any means of network control.


Here are 2 things you can do to see.

Download the Intel UPNP developers tools

And Angry IP Scanner


The UPNP tools you will want to use the device sniffer application. In one of the drop-down menu there will be an item to scan root devices. Once it finishes go through the list and see if you can locate your AVR. It's easier if you know it's IP. But if you look at the data sent from each device you should see something under the ST: section (I think) that will have Sony in it.

Angry IP Scanner is a port scanner. Simply input the IP of your AVR and have it scan all ports (may take a while to do) and see if any are open angry IP I think shows you some information about the connection .

Does your AVR have a serial port?
If you like the work I have been doing then feel free to Image

Post Reply