Page 3 of 60 FirstFirst 123451353 ... LastLast
Results 21 to 30 of 591

Thread: Native Android control client

  1. #21
    Join Date
    May 2004
    Location
    Dallas, TX
    Posts
    1,125

    Default

    Jumbodogs,

    In order to disarm/arm the system you will need to collect the digits on the phone then send them to Girder in one event. Once there you can run some Lua to disarm/arm the Elk.
    Rick

    Girder 6.0 - Elk M1 Gold - JRMC 11.1 w/ M-Audio Delta 410 - NetRemote - BlueIris DVR
    Girder 6 Plugins - Elk M1/EZ8, Pushover Connector and more on the way.


    Visit My Showcase

  2. #22
    Join Date
    Mar 2007
    Posts
    277

    Default

    I was just giving the variable/tokens architecture some thought, about being able to 'build' a compound parameter by stringing multiple presses together. You'd probably need to type in the number and then hit a 'send' button however...

  3. #23
    Join Date
    Mar 2004
    Posts
    316

    Default

    Glad to see you back! I'm really excited about this application!

  4. #24
    Join Date
    Mar 2004
    Posts
    316

    Default

    Any chance we might get local variable support soon?

  5. #25
    Join Date
    May 2008
    Posts
    119

    Default

    Quote Originally Posted by HTLuke View Post
    I was just giving the variable/tokens architecture some thought, about being able to 'build' a compound parameter by stringing multiple presses together. You'd probably need to type in the number and then hit a 'send' button however...
    That would work unless you could tell it before hand how long it should be. That way it just sends after 4 digits or 6 digits ... but adding send key would work if that is easier.

  6. #26
    Join Date
    Mar 2007
    Posts
    277

    Default

    I'm coding variable support right now actually, I'd like to have something ready to play with by the end of the weekend. I'm sorta blowing off fixing a few bugs in the newer stuff but I'm too excited about the variables (and something additional, see below) and want to get it out of my head while it's fresh.

    Great idea Jumbodogs, and I think I know a few ways you could implement such a thing without too much customization.

    Speaking of which, variables have some uses in and of themselves for conditional control, but they're far more powerful coupled with some form of parsing/logic functionality (conditionals, evaluations, etc.) which I had planned on, but hadn't really designed yet. I started to poke around for existing scripting interpreters and found something potentially amazing. Basically an open-source android multi-language script interpreter including lua, javascript, rhino, perl, python and others.

    Assuming I can integrate it, it means simple deterministic logic will be trivial, and in your favorite language to boot. Further, this project (SL4A) actually has a robust wrapper around Android APIs inside these languages. That means that Android functionality not wrapped natively as part of Andre would still be accessible through scripting. Everything from SMS send/listen, camera functionality, GPS, etc. is available (see the API reference here: http://code.google.com/p/android-scr...i/ApiReference).

    It's a lot to bite off for a weekend, but I'm game to give it a shot!

  7. #27
    Join Date
    May 2004
    Posts
    2,588

    Default

    Beware of the robot.

  8. #28
    Join Date
    Mar 2007
    Posts
    277

    Default

    Haha I should have known it was too good not to have been discovered before. It is the perfect cross-over interface to Tasker too, saves me time from having to do all the intent-oriented stuff we talked about.

  9. #29
    Join Date
    May 2004
    Posts
    2,588

    Default

    I think it's great that you discovered that stuff. I'd say you qualify as a "Girder master".
    I'm a little caught up again in trying to get this aquarium project set up, but I will be dedicating some time to Andre just as soon as I have a little more time. I should be able to tie the two together since the aquarium is being monitored/controlled by an Elk system, which is also being monitored/controlled by Girder.
    It'll be fun to build an interface for aquarium control and stats!
    Beware of the robot.

  10. #30
    Join Date
    Mar 2007
    Posts
    277

    Default

    Just an update, since I had hoped to have a new version with variables done tonight. I discovered that my recent re-factoring to improve performance and pave the way for a fully stateful design caused a few big bugs that I uncovered yesterday. The good news is the bugs go away when I make the next/final step toward the fully stateful design, but the bad news is variables/tokens would have to have been coded in such a way as to need to be re-written once that step was taken.

    So I decided to freeze the new fun stuff and just finish the re-write. I'm about half-way through already, but I don't know how much time I'll have to work on it this week. I'm targeting Friday or Saturday, and then another two or three days to get variables in place.

    The really good news though is that variables/tokens become infinitely more useful when the entire design is fully stateful.

Page 3 of 60 FirstFirst 123451353 ... 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
  •