Haiku Beginners question about HaikuHelper and Haiku

paliony

New Member
Hi everybody.
A little info: I have an OmniPro2 with two expansion enclosures.
I've bought macMini as my server and now running HaikuHelper and Haiku on my iPhone.
I have few questions about this software:

-can i customize Haiku on my phone? for example: it wont display anything but Favorites list? My wife found it too crowded with buttons.
-Im planning on getting an iPad for my house but my cameras wont work on my iPhone when im using web interface.
Is it just the iPhone or it is the way HaikuHelper works? Bc eventually i wanted to upgrade from Omnitouch to iPads running haiku web interface.
- I can program automation with PC access but i have found it very difficult to do it with HaikuHelper.
I went through the documentation and found few examples here but i can not make them to work.
If someone can post here a simple script for example turning my "outsideLights" on, at 9 pm, every day of the week except for sat and sun. I will very much appreciate it.
Thank you for your time. Pavel.
 
-can i customize Haiku on my phone? for example: it wont display anything but Favorites list? My wife found it too crowded with buttons.

Not with Haiku, as a lot of functionality would be lost by doing so. However you could build a custom UI with HaikuHelper to have just the items you need (or even just favorites).

-Im planning on getting an iPad for my house but my cameras wont work on my iPhone when im using web interface.
Is it just the iPhone or it is the way HaikuHelper works? Bc eventually i wanted to upgrade from Omnitouch to iPads running haiku web interface.

Some cameras may not work because they have a non-standard MJPEG stream, there are probably ways around it or Apple hopefully will improve their MJPEG support (a lot of it was broken just recently with 10.8). We've already filed bug reports on this. What cameras do you use?

- I can program automation with PC access but i have found it very difficult to do it with HaikuHelper.
I went through the documentation and found few examples here but i can not make them to work.
If someone can post here a simple script for example turning my "outsideLights" on, at 9 pm, every day of the week except for sat and sun. I will very much appreciate it.

Programming is done via JavaScript, for which there is a lot of documentation and reference online. The API as you mentioned, is fully documented in the documentation included with HaikuHelper. I will post an example for you as you requested shortly.
 
Here's how to do the lighting automation you mentioned. There's many ways of doing it, this is just one way -- using the onSyncStart callback which executes every minute. You can also use your own JavaScript timers etc. Really, its a full scripting/programming environment and you can do a *lot* more than the regular controller rules allow.

Code:
function onSyncStart(forced, timestamp) {
    var date = new Date(timestamp);

    if(date.getHours() == 21 && date.getMinutes() == 0) { // This section runs at 9 PM to turn the lights on
        controller.unitWithNumber(4).on(); // Replace with number of unit or use unitWithName('unit name')
        // ... add more units here if you wish
    } else if(date.getHours() == 5 && date.getMinutes() == 0) { // This section runs at 5 AM to turn the lights off
        controller.unitWithNumber(4).off(); // Replace with number of unit or use unitWithName('unit name')
        // ... add more units here if you wish
    }
}
 
Back
Top