Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Raspberry pi hardware support questions (X10 and IR)

  1. #1
    Join Date
    Dec 2004
    Posts
    23

    Default Raspberry pi hardware support questions (X10 and IR)

    I've been a long time girder user since version 3. Recently my computer running my girder and home automation hardware has died. I like the idea of replacing it with a raspberry pi. Will girder 6 for raspberry pi work with my USB-UIRT for infrared? Will it work with a CM17A (using a usb-to-serial cable) or a CM19A to send X10 signals? If not what alternatives exist to control both IR and X10 devices from a raspberry pi?

  2. #2
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,553

    Default

    I don't have the USB-UIRT driver ported to Linux. The Windows code uses the USB-UIRT supplied library which doesn't exists for Linux. So we'd need to program that.

    The X11 support on Linux would have to be a CM11a (or compatible) and hopefully soon the RFXCom X10.

    Of course the PIR-1 is supported on Linux.
    Ron
    No support through PM

  3. #3
    Join Date
    Dec 2004
    Posts
    23

    Default

    Great, thanks, I placed an order for a PIR-1 from your site and for a CM11a I found on ebay. I'm assuming I'll need the Girder 6 Pro to get both of these to work? I last purchased Girder 5 less than a year ago. Do you offer discounts for upgrades to version 6?

  4. #4
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,553

    Default

    Yeah there are upgrade discounts, just contact sales@promixis.com and we'll sort it out.
    Ron
    No support through PM

  5. #5
    Join Date
    Dec 2004
    Posts
    23

    Default

    I purchased Girder 6 and finally got around this weekend on working with the Raspberry Pi. I installed Girder on the Pi and configured the CM11a correctly. I setup a few actions to control my HVAC and a few other X10 devices. It works when I manually trigger these actions from the front end on the Pi. However, I'm trying to setup so these events trigger from the web server. It doesn't seem to work. I edited the triggerEvent_html file that came with the install to control my actions. For example:
    <button onclick="gir.triggerEvent('Test', 55 );">Test</button>

    I setup a corresponding event with the string "Test" and 55 device id. Nothing happens when I open this file in a web browser and click this button. Nothing appears in the girder log. If I open the Lua console and type gir.triggerEvent("Test", 55) then the action runs just fine, but nothing from the browser. Is there anything I'm doing wrong?

  6. #6
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,553

    Default

    change that line to

    Code:
    <button onclick="gir.triggerEvent('Test', 55 ); return false;">Test</button>
    Now reload the web page, and press the test button again, please use FF and have the developer console open ( F12 ). I have a feeling something is wrong on that end. And by not having the "return false;" at the end the error is lost during the page load...

    Also post the whole HTML file you are using, that might give us an idea.
    Ron
    No support through PM

  7. #7
    Join Date
    Dec 2004
    Posts
    23

    Default

    Here's the current contents of my triggerEvent. html file:
    Code:
    <html>
            <head>
                    <title>Girder - IR Codes on Webpage / gir.triggerEvent example</title>
                    <script src="gir/triggerEvent.lhtml"></script>
            </head>
            <body>
    
            <button onclick="gir.triggerEvent('Test', 55 );return false;">Test</button>
    
            </body>
    </html>
    I clicked the button 4 times and still saw no activity from Girder. Here's the output of the Firefox's dev console:

  8. #8
    Join Date
    Dec 2004
    Posts
    23

    Default

    The forum is not letting me paste the debug log since I am under 10 posts and it detects a link. This post should bring me to 10.

  9. #9
    Join Date
    Dec 2004
    Posts
    23

    Default

    And here's the debug log:
    Code:
    GET http://192.168.0.162/triggerEvent.html [HTTP/1.1 200 OK 5ms]
    GET http://192.168.0.162/gir/triggerEvent.lhtml [HTTP/1.1 200 OK 9ms]
    The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol. triggerEvent.html
    GET http://192.168.0.162/gir/triggerEvent.lhtml [HTTP/1.1 200 OK 18ms]
    GET http://192.168.0.162/gir/triggerEvent.lhtml [HTTP/1.1 200 OK 10ms]
    GET http://192.168.0.162/gir/triggerEvent.lhtml [HTTP/1.1 200 OK 9ms]
    GET http://192.168.0.162/gir/triggerEvent.lhtml [HTTP/1.1 200 OK 11ms]

  10. #10
    Join Date
    Jan 1998
    Location
    Jupiter, FL
    Posts
    13,553

    Default

    Hmm alright, that looks fine. Tried your file here on a Windows build and that triggers events just fine.

    Here's a thought, when you say you RPI Girder is not triggering events are you 100% sure you are looking at the correct Girder instance? Exit your Girder instance and try to load that webpage again,... if it loads without having your Girder instance running you might be looking at the wrong one. ( Girder could be started by init.d as a service, in that case you should connect using "Local Network" )
    Ron
    No support through PM

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •