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

Thread: HTTPD plugin extension

Hybrid View

  1. #1
    Join Date
    Sep 2002
    Location
    Kenton, DE, USA
    Posts
    73

    Default HTTPD plugin extension

    Ron,

    By now you're probably heartily sick of my non-stop requests, but I have to ask:

    Is there any way to get some scripting capability into the HTTPD plugin? Lua, perhaps?

    Even if the scripts have to be "pure" Lua, as opposed to the way PHP can slip in and out of script mode, it would be fantastic.

    I dearly want to keep my remote control 100% web-based, rather than going with yet another program, like MainLobby.

    Regards,
    Paul

  2. #2
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,400

    Default

    Like I said before on this question, I do not have time to do everything :-) The source is available, the plugin API exposes the scripting language to the plugin,.. have fun :-)
    Ron
    No support through PM

  3. #3
    Join Date
    Sep 2002
    Location
    Kenton, DE, USA
    Posts
    73

    Default

    Ron,

    Where's the source? I can't find it anywhere ....

    Paul

  4. #4
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,400

    Default

    Argh,.. I really thought I released it,.. hang on, i'll upload it later today.
    Ron
    No support through PM

  5. #5
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,400

    Default

    I've uploaded the source on the developers page.
    Ron
    No support through PM

  6. #6
    Join Date
    Feb 2001
    Posts
    113

    Default Quick question Ron'

    I was the guy who originally aske dyou about this plugin you made 1 day later. (Thanx again, works like a charm :-)

    I couldn't think of anyone better to ask and i didn't find any other help in the forums, so. . .
    I noticed from another new recent post how easy it it to trigger an event through the website page using HTTPD plugin, however i also noticed that anything clicked on the page also seemed to trigger the same event.

    Question was is there any way to differentiate any links or say click marks on a page that could trigger different events? Or should i ask what Girder commands or options could be used in combination with the plugin so if i have say 2 different boxs (whichever type in htm they need to be i could make sure they comply and do it that way, i just don't know much which can work with girder and trigger apps.) one could trigger one event and if clicked on the other box/clickbox it would trigger another.

    I just wondered if this was easy and i just wasn't knowledgable enough about certain girder objects that will do it. Thanx Ron

  7. #7
    Join Date
    Jan 2000
    Location
    Jupiter, FL
    Posts
    11,400

    Default

    It does trigger different Eventstrings depending on the link you tap!!

    The eventstring is made up out of the requested page, the payload vars are filled with the CGI variables

    The question in the other thread was how to make girder react to all eventstrings from 1 device.
    Ron
    No support through PM

  8. #8
    Join Date
    Sep 2002
    Location
    Kenton, DE, USA
    Posts
    73

    Default

    Question was is there any way to differentiate any links or say click marks on a page that could trigger different events?
    worldrave,

    Here's what I'm doing, and it works very nicely, with a minimum of work. I create a UserEvent event string for each command or multigroup that I want to start from the web plugin.

    My links on the HTML pages take the simplest possible form:

    "http://dvd.cooldog.com/filename.html?*eventString"

    The script looks for the star, strips it off, and calls TriggerEvent with "eventString". That's it. One script, triggered by ALL web events. I did the bit with the '*', just in case I decided to do anything any different at a later date.

    Here's the LUA script:
    Code:
    if (strsub(pld1, 1, 1) == "*") then
    	TriggerEvent(strsub(pld1, 2), 142)
    end
    You need to be running the latest pre-release version to use this wonderfully simple method.

    Regards,
    Paul

  9. #9
    Join Date
    Feb 2001
    Posts
    113

    Default Hey thanks.

    I'll give that a try. Sounds perfect. I have no clue about this
    LUA script stuff but if the 1st part also works, i can use that. Thanx again.

  10. #10
    Join Date
    Feb 2001
    Posts
    113

    Default Darn, didn't work for me.

    Must not be doing it right. I'm new to scripting with girder.
    Do you have have a basic .GML file and simple index.html (or whatever html filname you want to name it) that has like 2-3 links/options
    and a simple .GML file that works it so i can take a look at it and see how it has to be set up???

    Pretty please?? I really do want to learn about this stripting stuff if thats what i need to do to accomplish my goals. Thanx.

Posting Permissions

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