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 - bherbie

Pages: [1] 2 3 4
1
Users / Re: RAID in 12.04
« on: January 14, 2015, 10:00:02 pm »
Quote
and from LinuxMCE's point of view, you have a single big disk.

Correct - except for 12.04 does not show the disk at all.  10.04 and 14.04 both show the disk as 1 big drive which is fine but it does not appear in 12.04...

-herb

2
Users / Re: RAID in 12.04
« on: January 14, 2015, 06:22:46 pm »
Quote
is the raid setup using mdadm, or is the raid setup using the fakeraid of intel?

Using the fake RAID.  It works in other versions of LMCE and that way I don't lose media when upgrading.

-herb

3
Users / Re: RAID in 12.04
« on: January 14, 2015, 03:30:18 pm »
Thank you for the reply!

Quote
It does not show any MD device. Does mdadm run?

Code: [Select]
mdadm: no raid-devices specified.
Its an intel motherboard using fake RAID if that matters.  If I try to create the raid using mdadm, I receive the same error.

-herb

4
Users / RAID in 12.04
« on: January 14, 2015, 02:41:35 am »
I have been playing around with 14.04 and 12.04 builds and this project sure has come a long way!  I have a 10.04 system in which I utilize an SSD as my main drive and then a RAID 5 setup to store media and in previous versions this works fine when upgrading - just use the SSD as the install drive and then LMCE detects the RAID and my media is right where I left it. 

Now before installing the newer versions I remember reading a post that 12.04 does not detect RAID and of course it does not (I looked for the post again before writing this one and of course, cannot seem to locate it).  Installing 14.04 it did detect the RAID and appears ok - so my question is - can someone point me in the direction to get RAID detection working in 12.04 as 14.04 has dependency issues that are out of my league to correct.

Code: [Select]
@dcerouter:~$  cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
unused devices: <none>

Does this not mean the raid is present?

any suggestions would be appreciated!

-herb


5
Developers / Re: Developing a Weather Plugin, videos
« on: December 10, 2014, 10:00:40 pm »
Quote
I couldn't get your test script to work at all.
could I get your help making one for weather.com based

This is not my script but I did try it out and made some improvements to it as it did not work for me as listed.  First, if you aren't running the script from /var/www/lmce-admin directory, you will need to change the required file path to find the included file.  Also, if your city name has a space in it, like my city does and many others (i.e. San Antonoio, Las Vegas, etc.) you will need to urlencode the city name returned from the database query or the script fails.

Other then that, the script works fine in my testing...

HTH,
herb

6
Users / Re: Need some dedicated testers.
« on: November 12, 2014, 02:32:27 am »
I uninstalled and re-installed qorbiter and it didn't seem to change anything for me... using qt4 btw...

-herb

7
Users / Re: Need some dedicated testers.
« on: November 11, 2014, 05:05:15 am »
Quote
did this help?
No.  I added it to the tablet skin and did a quick reload and nada on those commands.

-herb

8
Users / Re: Need some dedicated testers.
« on: November 09, 2014, 05:25:27 pm »
Quote
Can you be more specific?

I updated to the latest version and I have mute capabilities but no volume control (up or down) - red, green, blue, yellow buttons - page up, page down.

-Herb

9
Users / Re: Need some dedicated testers.
« on: November 01, 2014, 05:10:42 pm »
I started working on my own qml skin and noticed a lot of the commands have yet to be implemented.  How can I help with the commands?

Herb

10
Developers / Re: [SOLVED] Device Template using SOAP
« on: October 23, 2014, 03:03:39 am »
Quote
Reading the thread above I can't see any mention of the registration process - without it you may get intermittent or unreliable control capability.
Correct.  I did this simply by using php cURL from the command line. The issues I was running into is my particular model does not use the same ports as the Sonys that I could find the protocols for. I did register my core as a device before I began setting up the template for the device itself and I still have some kinks to work out such as hard coding in the magic packet for WOL.

-herb

11
Developers / Re: [SOLVED] Device Template using SOAP
« on: September 23, 2014, 11:56:15 pm »
Quote
Any progress on the subject?

I have been able to build a template that works using SOAP although I am a ways from being finished.  The code provided by mkbrown69 was enough to get me pointed in the right direction as the Sony interface expects information in its header that is different then what mkbrown69 needed for his.  Also, I am not sure if it is just my setup, but the buttons work intermittently with the this template.  I see a lot of 'Could Not Handle This Message' errors in the logs and after a quick reload it works fine for a click or two and then it does it again.  Once again - not sure if it is my lack of knowledge in Ruby or if there is another issue at play.

Also, my device uses WOL as its 'power on' and I have hard coded the device number into the template (i.e. system('sudo /usr/pluto/bin/WakeMD.sh --dev 125') and once I get a more elegant solution, I will add it (or could this be part of the issue noted above?)

So long story short, see if you can make any progress using the code snippets outlined in this thread or post back if you need more of a start as I am in the middle of getting a wiki page put together once I know more myself.

-herb

12
Developers / Re: [SOLVED] Device Template using SOAP
« on: September 08, 2014, 04:36:46 am »
Quote
Are we putting this in a wiki page? :)

Absolutely.  Just need to work out a few more kinks...

-herb

13
Developers / Re: Device Template using SOAP
« on: September 08, 2014, 03:06:23 am »
it always comes down to the details

Code: [Select]
s+= "Content-Type: text/xml; charset=\"utf-8\" \x0D\x0A"
changed to
Code: [Select]
s+= "Content-Type: text/xml; charset=utf-8 \x0D\x0A"
fixes my problem and it now works as expected.  Thanks for the help!

-herb

14
Developers / Re: Device Template using SOAP
« on: September 06, 2014, 06:20:27 pm »
I made the suggested changes and still get the same bad request error.  Here is the log:

Code: [Select]
06-09-2014  10:05:50  *****sending AAAAAwAAHFoAAAAWAw== ******
06-09-2014  10:05:50  POST /upnp/control/IRCC HTTP/1.1
Host: 192.168.80.151:50001
User-Agent: MediaRemote
Content-Type: text/xml; charset="utf-8"
Content-Length: 374
Content-Transfer-Encoding: text
SOAPAction: "urn:schemas-sony-com:service:IRCC:1#X_SendIRCC"
Connection-Close: close

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><m:X_SendIRCC xmlns:m="urn:schemas-sony-com:service:IRCC:1"><IRCCCode xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">AAAAAwAAHFoAAAAWAw==</IRCCCode></m:X_SendIRCC></SOAP-ENV:Body></SOAP-ENV:Envelope>
06-09-2014  10:05:50  HTTP/1.1 400 Bad Request
Connection: close
Date: Sat, 06 Sep 2014 16:05:49 GMT
Server: Linux/2.6
06-09-2014  10:05:50  UPnP/1.0 Sony-BDP/2.0

and sending the code from my php script works fine and it looks identical to the ruby code so I am not sure where to go.  I tried pulling up your template and when I click on the ruby codes it kicks me out to the admin home page - I completed an sqlCVS update and get the same thing so I am not sure if I am missing something in the initialize section or not.

any help you can provide is greatly appreciated!

-herb

15
Developers / Re: Device Template using SOAP
« on: September 05, 2014, 04:10:01 am »
thanks for the help!  I know it is close and probably something I am overlooking as I am a noob in ruby.

here is the code

Code: [Select]
def log(word)
   logTime = Time.now
   timeStr = logTime.strftime("%d-%m-%Y  %H:%M:%S  ")
   $logFile.print(timeStr + word + "\n" )
   $logFile.flush()
   print(word + "\n")
end

def RemoteKey(key)

soapBody ='<?xml version="1.0"?>'
soapBody ='<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">'
soapBody+='<SOAP-ENV:Body>'
soapBody+='<m:X_SendIRCC xmlns:m="urn:schemas-sony-com:service:IRCC:1">'
soapBody+='<IRCCCode xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">' +key+ '</IRCCCode></m:X_SendIRCC>'
soapBody+='</SOAP-ENV:Body>'
soapBody+='</SOAP-ENV:Envelope>'

s = "POST /upnp/control/IRCC HTTP/1.0 \x0D\x0A"
        s+= "User-Agent: MediaRemote \x0D\x0A"
s+= "SOAPAction: \"urn:schemas-sony-com:service:IRCC:1#X_SendIRCC\" \x0D\x0A"
s+= "Content-Type: text/xml; charset=\"utf-8\" \x0D\x0A"
s+= "Content-Length: "+soapBody.length.to_s+" \x0D\x0A"
        s+= "Content-Transfer-Encoding: text \x0D\x0A"
        s+= "Connection-Close: close \x0D\x0A\x0D\x0A"
s+= soapBody.to_s

log("*****sending " +key+ " ******")
        log(s.to_s)
conn_.Send(s.to_s)
end

and then to send the key:
Code: [Select]
RemoteKey("AAAAAwAAHFoAAAAWAw==")

Pages: [1] 2 3 4