Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - CentralMedia

Pages: 1 ... 6 7 [8] 9 10 11
106
Users / Re: Best Approach to Controlling a Network Device
« on: October 31, 2013, 10:48:59 pm »
Thanks, will play with that for now, trying to organize in my head how all this work. I currently have a shell script that accepts one input and does basic navigation. The media control, was doing that at the command prompt, all in a effort to rap my head around this.

Investigating, as I do not know how, using curl within c++, following tschak900 suggestion, found including libcurl.h, but really trying to use the executable directly. I believe that what he suggested, the system will handle all sending the file to play to the PI, I just need to be able to process it.


107
Users / Re: Best Approach to Controlling a Network Device
« on: October 30, 2013, 12:36:19 am »
Ok, figured out how to use curl to send the commands, even figured out how to play a file, LNMCE shares not working, feel I need to pass the password along with the smb call, hopefully will figure out how to.

Working
Quote
curl -i -X POST -H "Content-Type: application/json" -d "{\"jsonrpc\": \"2.0\", \"method\": \"Player.Open\", \"params\": { \"item\": { \"file\": \"/home/pi/Video/skyfall.mp4\"} , \"options\":{ \"resume\":true } }, \"id\": 1}" http://192.168.80.150:80/jsonrpc
curl -i -X POST -H "Content-Type: application/json" -d "{\"jsonrpc\": \"2.0\", \"method\": \"Player.GetActivePlayers\", \"id\": 1}" http://192.168.80.150:80/jsonrpc
curl -i -X POST -H "Content-Type: application/json" -d "{\"jsonrpc\": \"2.0\", \"method\": \"Player.PlayPause\", \"params\": { \"playerid\": 1}, \"id\": 1}" http://192.168.80.150:80/jsonrpc
curl -i -X POST -H "Content-Type: application/json" -d "{\"jsonrpc\": \"2.0\", \"method\": \"Player.Stop\", \"params\": { \"playerid\": 1}, \"id\": 1}" http://192.168.80.150:80/jsonrpc
curl -i -X POST -H "Content-Type: application/json" -d "{\"jsonrpc\": \"2.0\", \"method\": \"Input.Home\", \"id\": 1}" http://192.168.80.150:80/jsonrpc
curl -i -X POST -H "Content-Type: application/json" -d "{\"jsonrpc\": \"2.0\", \"method\": \"Input.Left\", \"id\": 1}" http://192.168.80.150:80/jsonrpc
curl -i -X POST -H "Content-Type: application/json" -d "{\"jsonrpc\": \"2.0\", \"method\": \"Input.Right\", \"id\": 1}" http://192.168.80.150:80/jsonrpc
curl -i -X POST -H "Content-Type: application/json" -d "{\"jsonrpc\": \"2.0\", \"method\": \"Input.Down\", \"id\": 1}" http://192.168.80.150:80/jsonrpc
curl -i -X POST -H "Content-Type: application/json" -d "{\"jsonrpc\": \"2.0\", \"method\": \"Input.Select\", \"id\": 1}" http://192.168.80.150:80/jsonrpc

Not Working, think I need to pass the password some how, not figured out as yet.
Quote
curl -i -X POST -H "Content-Type: application/json" -d "{\"jsonrpc\": \"2.0\", \"method\": \"Player.Open\", \"params\": { \"item\": { \"file\": \"smb://DCEROUTER/public/videos/DespicableMe2Test.mkv\"} , \"options\":{ \"resume\":true } }, \"id\": 1}" http://192.168.80.150:80/jsonrpc
curl -i -X POST -H "Content-Type: application/json" -d "{\"jsonrpc\": \"2.0\", \"method\": \"Player.Open\", \"params\": { \"item\": { \"file\": \"smb://192.168.80.1/public/videos/DespicableMe2Test.mkv\"} , \"options\":{ \"resume\":true } }, \"id\": 1}" http://192.168.80.150:80/jsonrpc

Can anymore can shed some light how tothe capture the response by curl, in a shell script, need to get the player id seen below

Quote
linuxmce@dcerouter:~/CodingWork/XBMC$ curl -i -X POST -H "Content-Type: application/json" -d "{\"jsonrpc\": \"2.0\", \"method\": \"Player.GetActivePlayers\", \"id\": 1}" http://192.168.80.150:80/jsonrpc
HTTP/1.1 200 OK
Content-Length: 65
Content-Type: application/json
Date: Tue, 29 Oct 2013 23:15:30 GMT

{"id":1,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}

As I learn how to communicate with devices on the network, the next device is the WD live HD, borrowed a switch from a friend, where I can mirror the port, so I can see how the Andriod app connects and send commands, by collecting the data with wireshark, doing that tomorrow. Had written WD about an API, but got no definitive feedback from them

Fun times

108
Users / Re: Best Approach to Controlling a Network Device
« on: October 17, 2013, 01:59:54 pm »
tschak909
The question should be how to send this type of HTML from a shell script, or what device has this feature that I can attempt to familiarize.

My programming languages are non existent, but plan on getting this to work.

Seth

You have this figured out much better than I, actually my focus now, is just getting navigation, once done, move from there, did not want to bit of more than I can cope with.

109
Users / Best Approach to Controlling a Network Device
« on: October 16, 2013, 02:14:24 am »
I have a PI running raspbmc, finally figured out some of the JSON RPC code, this afternoon.

Got the TCP connection to work, once, but work, its output is like, no separation for response

Quote
{"id":1,"jsonrpc":"2.0","result":"OK"}{ "jsonrpc": "2.0", "method": "Input.Down", "id": 1 }
{"id":1,"jsonrpc":"2.0","result":"OK"}{ "jsonrpc": "2.0", "method": "Input.Select", "id": 1 }
{"id":1,"jsonrpc":"2.0","result":"OK"}{ "jsonrpc": "2.0", "method": "Input.Home", "id": 1 }
{"id":1,"jsonrpc":"2.0","result":"OK"}

Also got the html request to work, also did the right, left, down

Quote
http://192.168.80.149:80/jsonrpc?request={ "jsonrpc": "2.0", "method": "Input.Select", "id": 1 }

Have not tried the websocket option, honestly have not wrapped my head around initiating or using it.

My question is, how best to implement the HTML  feature and if there are any example devices using this?

Would websocket be preferable and any example code.

Suggestions are also welcomed

 

110
Users / Re: Remote Codes Issue HT-CT150
« on: October 12, 2013, 08:43:09 pm »
Ok got it, found the following

Quote
http://wiki.linuxmce.org/index.php/Extending_the_repeat_duration_of_raw_Pronto_IR_codes

Had to quadruple it to, double was insufficient and it worked

Quote
0000 0067 0000 0040 0060 0019 0030 0019 0018 0019 0030 0019 0018 0019 0030 0019 0018 0019 0018 0019 0018 0019 0018 0019 0018 0019 0018 0019 0030 0019 0030 0019 0018 0019 0018 0364 0060 0019 0030 0019 0018 0019 0030 0019 0018 0019 0030 0019 0018 0019 0018 0019 0018 0019 0018 0019 0018 0019 0018 0019 0030 0019 0030 0019 0018 0019 0018 0364 0060 0019 0030 0019 0018 0019 0030 0019 0018 0019 0030 0019 0018 0019 0018 0019 0018 0019 0018 0019 0018 0019 0018 0019 0030 0019 0030 0019 0018 0019 0018 0364 0060 0019 0030 0019 0018 0019 0030 0019 0018 0019 0030 0019 0018 0019 0018 0019 0018 0019 0018 0019 0018 0019 0018 0019 0030 0019 0030 0019 0018 0019 0018 0364


Original Code is

Quote
0000 0067 0000 0010 0060 0019 0030 0019 0018 0019 0030 0019 0018 0019 0030 0019 0018 0019 0018 0019 0018 0019 0018 0019 0018 0019 0018 0019 0030 0019 0030 0019 0018 0019 0018 0364

111
Users / Re: Remote Codes Issue HT-CT150
« on: October 12, 2013, 08:22:07 pm »
Ok, that did not help, seems it still transmitting just a small flash as when I set repeat count to 2 in learn helper, unlike the longer flash through learn helper, when set to 4 as the device template.

Also, I created my own Codeset for the device, but if I go through device templates, it adds additional codes to my Codeset, is there a way to fix this, I only want the ones I added.


112
Users / Re: Remote Codes Issue HT-CT150
« on: October 12, 2013, 07:22:13 pm »
Ok seems that assessment is incorrect, decided to open the template, instead of going through, av equipment and choosing A/V properties. Then I realize that there are double codes for the toggle power and other codes I did not even specify, trying a clean up of the rough oodes and will advise if that helps

113
Users / Re: Remote Codes Issue HT-CT150
« on: October 12, 2013, 07:04:56 pm »
Do know if this will help

But I watched the flash from the USBUIRT connected to the CORE and in comparison with that from Learn Helper, the flash seems to be only repeating 2 times, not the 4 for general IR codes. Did this by adjusting the repeat count in Learn Helper and monitored the flash.

if this observation is the issue, how do I fix or work around?

114
Users / Re: Low energy MCE configuration?
« on: October 07, 2013, 01:25:23 pm »
Only the computers, TV etc I only keep on when I am using it.

For audio, I plan on using squeezeslaves with usb sound cards, lower foot print, honestly do not have any MD's at this time, used my sons machine once to help with an issue, but it was temporary.

Have a PI, which uses around 5W, that has Raspbmc, which I plan to put on LNMCE, when it becomes available.

Also a WD LIVE player, I did not check consumption, think the manufacturer rates it at 15W, but this is powered off when not in use, not controlled by LNMCE as yet.

I normally try to go with the most efficient equipment I can afford, in all aspects of my purchases.

115
Users / Re: Low energy MCE configuration?
« on: October 06, 2013, 11:04:37 pm »
The following

ASUS P8B WS LGA 1155 Intel C206 ATX

Intel Xeon E3-1220 Processor 3.1

8 GB MEMORY

GT 430

Hybrid hardrive consumes 55 W on average during a Orbitor reg, it normally at around 45 W

This was the best Hybrid/Core, but I re purposed for my desktop and used an old zotac micro atx board with a E7300, on board 9400 GRAPHICS, 4 G memory and a 500 GB harddrive WD RE4 and 3 TB WD red which idles at 53 W and Orbitor reg, at 62 W

Just for examples

Power supply is important I suppose, they all have 80% efficient bronze


116
Users / Re: Remote Codes Issue HT-CT150
« on: October 06, 2013, 10:47:04 pm »
Its 10.04

The device was not assigned to a room, but the corresponding USBUIRT for controlling it was assigned when creating the device.

I have the USBUIRT connected to distribution block, with emitters, which control my TV, Directv box and well hopefully this, you see the flashes when the code is transmitted.

117
Users / Remote Codes Issue HT-CT150
« on: October 06, 2013, 02:08:15 pm »
Morning

I bought a Sony HT-CT150 sound bar, was on sale.

Created a device and started with learning the IR codes. Unfortunately the learning function on my setup seems to be giving issues, the USBUIRT does not respond. Thus I am like ok, have another one, which I stuck into my laptop, install the windows drivers and downloaded the lrnhelper from the site.

The codes learned fine in lrnhelper, when you test from there also, the device responded, but when I put these codes into the device template, the device does not respond. Lrnhelper is learning the codes in pronto format.

Any ideas or thoughts, I checked the DCEROUTER.log and its sending the correct codes.

118
Users / Re: Not switching To Tv and CableBox
« on: September 26, 2013, 12:56:35 pm »
On my last re-install, same issue, had to add the MD. Its cool, I know what to do, box being controlled nicely.

119
Users / Re: Admin Site Issues
« on: September 26, 2013, 12:53:18 pm »
Did a re-install and it works, now back to where I left off

120
Users / Re: audio (dlna/upnp) client
« on: September 23, 2013, 07:43:17 pm »
For audio in multiple rooms (2), kitchen and patio, I am planning on using Squeezeslave on the core, piped to some computer speakers I have around, using some additional sound cards.

Have not sorted out as yet how to control the power on the speakers, but thinking of using a zwave plug, and there must be some scenario to turn on and off.

http://wiki.linuxmce.org/index.php/Squeezeslave_on_the_core

Have not gotten around to this as yet, as my install and I are in a wrestling match,

In connection with DLNA/UPNP, it works for me (UlPNP), as my collection are playable by the renders, WD live and PI running XBMC, not transcoding.


Pages: 1 ... 6 7 [8] 9 10 11