Adding HAH Livebox and HAH xAPFlash into xAPintranet

4 replies [Last post]
kevin9
Offline
Lincolnshire, United Kingdom
Joined: 24 May 2010

Long Post....

xAP Intranet applications have for many years been at the core of my Home network. xAPIntranet integrates multiple webservers, which can be on multiple hosts into one entity.

These hosts are windows based, and I know that there is a school of thought which says that windows is not suitable for Home Automation, which I understand, but for me xAPIntranet has always been about information first, any 'control' aspect being secondary or non critical

The principal applications in my intranet have been xAPSwitchboard which monitors my landline phone, xAPNews which collects my RSS news feeds into one place and xAPLibrary which collates my mainly pdf documents and manuals.

The xAPIntranet applications have a common header for each webserver which allows you to access the other webservers, and a "Groups" page which gives access to xAPintranet applications not in the "Home" Group as well. In addition there is a task bar based menu system called Intranet Launcher to allow easy access to each application as well

xAPIntranet Applications originate from James at mi4.biz (http://www.mi4.biz/modules.php?name=Content&pa=showpage&pid=39) and are based on the xAPIntranet ocx which I used to create some applications for myself. Some of these apps may no longer work, thinking about  TV in particular, because the data it relied on has changed.

This integration is achieved by each app broadcasting a periodic 'Web.Service" message:-

xap-header
{
v=12
hop=1
uid=FF555600
Class=Web.Service
Source=netcomp.Library.black1
}
Server.Start
{
Name=Library
Desc=xAPIntranet Document Library
Group=Home
PC=BLACK1
Config=yes
ConfigURL=http://192.168.253.100:51002/config.xsp
Icon=http://192.168.253.100:51002/images/icon.gif
URL=http://192.168.253.100:51002/
}

For convenience, I wanted to integrate my Livebox and the xAPFlash GUI hosted on the Livebox into my xAPIntranet setup. This could not be full , two way, integration since this would require modification to the HAH Web server, but access to HAH and xAPFlash from xAPIntranet could be achieved relatively easily with a couple of plugboard scripts and some icons.

In this screendump is the front page of the News application with clickable icons for the different xAPIntranet application that are running in the blue banner on the right. These icons are specified in the web service message.
From left to right these are xAPFlash, xAPSwitchboard, QUasar K3145 connector, Intranet, Library and WDLive. These applications are all in the Home group ( see the home key= above), to access xAPIntranet applications in other groups click on the + sign and you get an icon based menu as shown below

In the System group are the Livebox Web server, WXLink and another version of Intranet called Infrastructure. All full xAPIntarnet apps would have a page like this, but with diffrent background images.

To achieve this a Web.Service message is broadcast by two plugboard scripts once every 5 minutes


xap-header
{
uid=FF00D800
source=dbzoo.livebox.Plugboard
hop=1
class=Web.Service
v=12
}
server.start
{
config=no
name=LiveboxGUI
configurl=
group=hOME
url=http://192.168.253.5/flashgui.kl1
icon=http://192.168.253.5/live/xapflash.gif
desc=xAPFlash on HAH
}

 and

xap-header
{
uid=FF00D800
source=dbzoo.livebox.Plugboard
hop=1
class=Web.Service
v=12
}
server.start
{
config=no
name=Livebox
configurl=
group=System
url=http://192.168.253.5/automation.kl1
icon=http://192.168.253.5/live/hahlogo.gif
desc=Livebox Home Automation Hub
}

I confess to being a little artisticaly challenged, I have filched and modifed the icons from the HAH, and dbzoo websites, you could use these or make up your own

In addition to the xAPIntranet web servers there is also a taskbar resident menu application called IntranetLauincher which recognises the web.service messages and produces a pop up menu for applications in the home group

 

Easier to do than describe...

kevint

 

AttachmentSize
WebServiceApplet.lua514 bytes
WebServicexAPFlashApplet.lua501 bytes
dbzoo.gif1.46 KB
hahlogo.gif2.55 KB
xapflash2.gif1.34 KB
xapflash.gif1.84 KB
garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011
Thanks.

A nice write up on what xap can do apart from just pure automation, thanks Kevin. One question, what is the hardware requirements for switchboard. I like the caller ID prospect? Cheers Garry

kevin9
Offline
Lincolnshire, United Kingdom
Joined: 24 May 2010
xAP Switchboard

From James'  site mi4.biz

http://www.mi4.biz/modules.php?name=Content&pa=showpage&pid=37

xAP Switchboard
Switchboard logs all incoming and outgoing calls. It maintains it's own address book and matches all calls against this. It looks up the STD for the calls and also can associate an image to a contact. Using the optional Outlook plugin you can use your Outlook address book and it will sync up address lists from as many outlooks as you like. All interaction with this app is done through a fully featured web interface. Also can now monitor and log instant messenger events too. Google maps is used to display callers on either a map or satellite views.

Some time ago I produced a diagram showing some of this stuff fitted together:-

xAP and Telephones
How telephony is integrated with xAP
http://www.mi4.biz/modules.php?name=Content&pa=showpage&pid=58

My own seup is a serial Meteor Caller ID device monitored by the other Kevin's xAPTel telephony app, and then Switchboard

There may well be other hardware interfaces etc, I haven't been keeping track

hth

kevint

 

 

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
Caller Id

Last time I looked at this I found two main approaches. The first was to find a dedicated unit (like the Meteor device mentioned by kevin). These were pretty expensive and hard to find. 

The second (and cheaper) was to keep a lookout on eBay for somebody selling an old Hayes 'voicemodem'. If you find the correct model, it can be put into a mode where it spits out the CID info onto its serial port just before the first 'ring' of the incoming call. After that, it's just an exercise for the reader to parse it/do a lookup or whatever and take the desired action on the HAH.

The annoying part of this is that only certain Hayes viocemodems actually work. I'm not at home just now, so can't check which specific model worked for me. I'm sure that google might have more on this topic.

kevin9
Offline
Lincolnshire, United Kingdom
Joined: 24 May 2010
If you look at the diagram I

If you look at the diagram I referenced above you will see the Pace Solo modem. This is a very old UK modem and the application is similary old.

I did do some work with homeseer vesrion 1 and scripts with the zoom 3025C internal PCI modem with some success, but it became unreliable, I think as the homeseer host pc was worked harder

Looking at the config drop down of my xAPtel application it says it supports Meteor and Pegasus, from http://www.pathwaydata.co.uk/products/index.php, modem and TAPI.

I purchased my Meteor from ebay, but they are a rare thing there. 

I am not sure how far KevinH got with modem support. I know that dial out worked, that there were discussions on the Hayes modems and he also did some work on the Zoom modem, but i don't know how far that went. You would have to ask him. Certainly I know the reliability improved greatly when he swopped from xapax.ocx to xapintranet.ocx

Finding modems that support UK Caller ID have always been a problem

 The Linux hosted Asterix system was also popular but I never tried that, you should perhaps ask on the Yahoo groups

kevint

Hardware Info