Wiser SDK?

Discussion in 'C-Bus Wiser 1 Controller' started by nickrusanov, Mar 4, 2010.

  1. nickrusanov

    ievolve

    Joined:
    Mar 20, 2010
    Messages:
    112
    Likes Received:
    1
    Location:
    Idaho
    Yea I just pulled up a screenshot and I see what you mean about the limited space. So my solution might be easier than I originally thought :)

    I'd still like to hack around on the integration between the 2 though. I've thought about building an iPad/iPod app to integrate the 2. What language are you working in? Perhaps we could tag team it.
     
    ievolve, Mar 23, 2010
    #21
  2. nickrusanov

    KevinH

    Joined:
    Aug 3, 2004
    Messages:
    171
    Likes Received:
    0
    Location:
    Yorkshire. UK
    I am working in ANSI C within an embedded controller and now using Ashleigh's #3 suggestion - the C-Bus module code. Originally I used #4 and wrote my own C-Bus drivers but #3 is much better with regard to C-Bus nuances, multiple application support and future enhancements. The PC side is via a WSC into Microsofts UPnP stack.

    I chose C-Bus (and Sonos) because they are best of breed solutions and work 100% 24/7 independent of any PC requirement. I think you've made a good choice and will be very happy with both. Trying to avoid a PC is also why I went the embedded C controller route, why Wiser is very interesting and C-Gate wasn't an option. I do supplement the core functionality with a PC for those extra smarts , especially where richer data eg text/graphics are involved - and the Sonos / C-Bus control requires that.

    I'm pretty complete in my Sonos/C-Bus integration and so not really wanting to delve into more coding on that - plus I've got a hundred other things on my 'todo' list.

    Just to keep this thread sort of on topic - a Wiser SDK would be very attractive in this respect giving a more flexible /alternative GUI to the touchscreens although I suspect the router hardware is pretty stretched already. The fact that C-Bus is rock solid but could be compromised is always a consideration the more you allow external coders inside ...

    PS There's a great Sonos iPod app already out there and a C-Bus one via the Wiser (plus a 3rd party direct to CNI one). Two distinct apps are very workable and will give much better functionality than anything I could envisage within one app. There are commercial HA apps with iPod clients that could do this however if you really were wanting to use iPods as your primary control for both.
     
    Last edited by a moderator: Mar 23, 2010
    KevinH, Mar 23, 2010
    #22
  3. nickrusanov

    ievolve

    Joined:
    Mar 20, 2010
    Messages:
    112
    Likes Received:
    1
    Location:
    Idaho
    I agree, and a simple http enpoint API to wiser to send commands to would tip me over the edge and I'd have to pick up a wiser, for now looks like I will be rolling my own.

    What I would like to see is the ability to:
    1) Send http requests to wiser to execute commands
    2) Register an http callback URL where it could notify me of stuff

    Pretty much exactly what C-Gate is doing now, except exposed as HTTP instead of the messy telnet stuff.
     
    ievolve, Mar 23, 2010
    #23
  4. nickrusanov

    KevinH

    Joined:
    Aug 3, 2004
    Messages:
    171
    Likes Received:
    0
    Location:
    Yorkshire. UK
    For C-Gate's role Telnet is ideal.. the data is very concise. You could just write an intermediary app that opens a socket to C-Gate and talks to Sonos via Microsoft's UPnP stack - or direct to Sonos via http if you are happy with base functionality ... or ambitious.

    K
     
    KevinH, Mar 23, 2010
    #24
  5. nickrusanov

    NickD Moderator

    Joined:
    Nov 1, 2004
    Messages:
    1,427
    Likes Received:
    64
    Location:
    Adelaide
    Do you guys have doco on the Sonos side of things?

    I personally don't have any Sonos gear, but I know plenty of our customers are using it, and at least one of the guys here has it himself... it would be interesting to see what an interface requires and how/if this could be integrated into C-Bus.

    Nick
     
    NickD, Mar 23, 2010
    #25
  6. nickrusanov

    KevinH

    Joined:
    Aug 3, 2004
    Messages:
    171
    Likes Received:
    0
    Location:
    Yorkshire. UK
    Hi Nick,

    For me I'm using a software component someone else authored and they just expose functions and callbacks that I hook into. Most of it was created by trial and error.

    I'll drop you a PM

    K
     
    KevinH, Mar 23, 2010
    #26
  7. nickrusanov

    mmd

    Joined:
    Jan 30, 2006
    Messages:
    42
    Likes Received:
    0
    Location:
    Melbourne
    KevinH has the best solution I believe, let the Sonos app do its thing and let the cbus app (whichever one) do its thing.

    Given the cost of a DLT vs an Ipod Touch, why not just whack some ipod touches on the walls around the house.
     
    mmd, Mar 23, 2010
    #27
  8. nickrusanov

    Newman

    Joined:
    Aug 3, 2004
    Messages:
    2,203
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Because in 30 years the DLT will still be working just fine.
     
    Newman, Mar 23, 2010
    #28
  9. nickrusanov

    Darpa

    Joined:
    Apr 30, 2006
    Messages:
    426
    Likes Received:
    0
    Location:
    Australia
    Very well said Newman.
     
    Darpa, Mar 23, 2010
    #29
  10. nickrusanov

    mmd

    Joined:
    Jan 30, 2006
    Messages:
    42
    Likes Received:
    0
    Location:
    Melbourne
    Seriously? Thats your reasoning? Sorry, but thats a copout, Darpa, not very well said at all. In 30 years I would hope Clipsal has come out with something better by then.

    Do you have any proof that the ipod touch will fail by that stage? Should I not download the Wiser app knowing that at any time it could fail?

    C'mon guys, lets get some reality here.

    We use Cbus and Ipod Touches all the time and I have had more failures of DLTs than I have had of Ipod touches, not wanting to get this topic off thread (way too late in any case), but for the price the Ipod touch offers way more.

    My point (which naturally has been misconstrued as Clipsal bashing, it wasn't) was to let products do what they are designed for rather than making an all in one box that does it all. Jack of all trades means a master of none. I was merely offering an alternative solution to the proposed problem.

    Let sonos do the music, let clipsal do the lighting.

    Michael
     
    mmd, Mar 23, 2010
    #30
  11. nickrusanov

    kjayakumar

    Joined:
    Oct 27, 2008
    Messages:
    448
    Likes Received:
    0
    A typical ipod touch kept in an indoor environment has a battery life of about 2 years. After that, it is dead and Apple don't accept that you could replace the battery yourself so it is a brick at that point. By the way, it isn't any fault of the Wiser app that causes ipod touch batteries to run down after 2 years. That happens all by itself thanks to the laws of physics and chemistry. :)
     
    kjayakumar, Mar 24, 2010
    #31
  12. nickrusanov

    kjayakumar

    Joined:
    Oct 27, 2008
    Messages:
    448
    Likes Received:
    0
    Wiser uses an XML socket interface to send/receive commands/events. I don't think you'll see a published XML API by Clipsal in the short term because the internal API itself continues to evolve. That's happening because Wiser is still getting new features and learning to talk to new devices. Once there's some stability to the API, I think it would make sense for Clipsal to share that with its customers, and then they'd be able to rely on it knowing it wouldn't change from month to month.
     
    kjayakumar, Mar 24, 2010
    #32
  13. nickrusanov

    mmd

    Joined:
    Jan 30, 2006
    Messages:
    42
    Likes Received:
    0
    Location:
    Melbourne
    Well, my gen 1 ipod touch is at least that old and works fine.

    On that note I assume since the Clipsal are confident there products will be working for another 30 years they'll be extending their warranty out a few more years? No?

    I take your point that some people would just like a simple interface, but in that case use MRA as its only good point is that it does integrate to cbus well.

    But for mine I'll stick with Sonos, having used (and extensively programmed) HAL, Opus, Axium, MRA and Nuvo to name a few I can happily say Sonos kills them all. Anyways thats enough off topic stuff.

    Why don't you just wait for the prontoscript sonos module. That (unless they lock it somehow) should give enough clues on what commands the sonos is looking for which you can then push out via some of the methods mentioned earlier in this thread
     
    mmd, Mar 24, 2010
    #33
  14. nickrusanov

    nickrusanov

    Joined:
    Aug 5, 2004
    Messages:
    308
    Likes Received:
    0
    Location:
    russia
    That's what I've been waiting to hear from the start of this topic =) thank you

    PS. is it a secret, what kind of devices does wiser learn to talk right now and plans for the future?
     
    nickrusanov, Mar 24, 2010
    #34
  15. nickrusanov

    kjayakumar

    Joined:
    Oct 27, 2008
    Messages:
    448
    Likes Received:
    0
    I don't think it is a serious secret, but I don't want to be the one to write it on the forum and then get scolded. :) I'll let the person who can't get beaten up for sharing secrets share it.
     
    kjayakumar, Mar 25, 2010
    #35
  16. nickrusanov

    ievolve

    Joined:
    Mar 20, 2010
    Messages:
    112
    Likes Received:
    1
    Location:
    Idaho
    Is anyone else out there interested in an embedded device like the wiser, WITH an simple http interface to receive commands, and the ability to push to an http callback URL you specify with stuff stuff happening on the network?

    Perhaps some sort of an open source development project? Making my iPad app talk http is going to be lots easier so I need this type of a shim anyway, anyone else out there interested?
     
    ievolve, Apr 3, 2010
    #36
  17. nickrusanov

    kjayakumar

    Joined:
    Oct 27, 2008
    Messages:
    448
    Likes Received:
    0
    I think you'll find that using XML is easier, that's what the Clipsal Wiser iPhone/iTouch (and presumably iPad) app does. Out of curiosity, does the Wiser app run on your iPad, how does it look?
     
    kjayakumar, Apr 4, 2010
    #37
  18. nickrusanov

    mich

    Joined:
    May 13, 2011
    Messages:
    14
    Likes Received:
    0
    Location:
    Sydney
    +1 for wanting an http/xml interface (basically a web service) via the wiser unit that you could hit with various vars in the URL string to get status info and give SET commands like you can with telnet. You can do this using telnet and i'm writing some code in php/ajax at the moment to do this based on greig's code mentioned in the c-gate forum, but that will then still require a pc running c-gate and when c-gate is running the wiser cant be used which since I have a wiser - is a bit of a waste.
     
    mich, May 31, 2011
    #38
  19. nickrusanov

    ben123

    Joined:
    May 6, 2010
    Messages:
    7
    Likes Received:
    0
    Location:
    adelaide
    +1
     
    ben123, Jun 7, 2011
    #39
  20. nickrusanov

    Bmcappion

    Joined:
    Jul 3, 2010
    Messages:
    12
    Likes Received:
    0
    Location:
    Cairns
    How did you get along with DLT integration of a sonos. I have a basic CBUS system with DLT's in living areas and bedrooms that have Sonos installed and i would like to have On/Off and volume control from the DLT. any other control i would like to have from my standard controller.

    Any advice tips or programming help would be greatly welcomed


     
    Bmcappion, Oct 8, 2011
    #40
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.