Other

Description

Other questions about the HAH platform

Forums

This one for Brett I suspect,

I'm quite happy using nano to edit files directly on the HAH (BBB version) but recently I tried using Textwrangler to edit a file. I can estabish a connection and see all the files but if I try to write, I get...

You have insufficient permissions to perform this operation on the server (application error code: 22803)

I can edit if I issue sudo from the terminal via ssh. It seems that textwrangler works with the OSX way of doing things but without giving me the option of sudo.

Is there any way around this Brett?

Cheers

Mark

p.s. feel free to email me if you think it would be safer

Forums

Last week for some unknown reason iServer suddenly stopped working on my HAH.

It's been working fine and out of the blue just stopped.

 

Restarting it manually gets the following...

#  iServer -i br0 -d 9

 

iServer for xAP v12

Copyright (C) DBzoo 2010

[inf][init.c:98:discoverBroadcastNetwork] 2 interfaces found

[inf][init.c:102:discoverBroadcastNetwork] 1) interface: lo

[inf][init.c:102:discoverBroadcastNetwork] 2) interface: br0

[inf][init.c:109:discoverBroadcastNetwork] address: 192.168.2.100

[inf][init.c:121:discoverBroadcastNetwork] broadcast: 192.168.2.255

[ntc][init.c:55:discoverHub] Broadcast socket port 3639 in use

[inf][init.c:56:discoverHub] Assuming a hub is active

[ntc][init.c:65:discoverHub] Socket port 3640 in use

[ntc][init.c:65:discoverHub] Socket port 3641 in use

[ntc][init.c:65:discoverHub] Socket port 3642 in use

[ntc][init.c:65:discoverHub] Socket port 3643 in use

[ntc][init.c:65:discoverHub] Socket port 3644 in use

[ntc][init.c:65:discoverHub] Socket port 3645 in use

[inf][init.c:67:discoverHub] Discovered port 3646

[dbg][timeout.c:18:xapAddTimeoutAction] Add timeout. interval=60

[dbg][init.c:237:xapAddSocketListener] socket=4

Segmentation fault

 

Has anyone else come accross this or know of a fix?

Forums

He, I just power cylced my HAH and now it is stuck on "NTP Sync". I can ping the static IP address assigned but can access the HAH via the Webgui.

Forums

I am getting the errors below in the /var/xap-xively.log.

 

The strange thing is, xively is still being updated but twitter stops working (no errors in the twitter log). This is happening 3 -4 times a month.

If I restart xively, no change. If I power cycle HAH all is working again.

I have HAH relay 4, connected to HAH input 4, which runs a Twitter script when the relay operates. Every morning a cron command is sent to operate HAH relay 4 at 09:00 for 5 minutes, this is detected by the twitter script and xively. Xively passes this change onto Zapier, Zapier passes this on to my Twitter account. I Then receive two SMS text messages one from Twitter and one from Zapier via Twitter. Hope this makes sense. When I get the error data in the xively.log the SMS stops reporting from Twitter but the Xively to Zapier to Twitter still works. Also if I Tweet “hah rf 1 on”, this does not work, but an SMS is generated. So it would appear that Twitter has stopped.

 

Xively Connector for xAP v12

 

Copyright (C) DBzoo 2009-2013

[err][pachulib.c:101:resolve_host] errno 22 (Invalid argument)

 

[err][pachulib.c:101:resolve_host] Err!! gethostbyname

[err][pachulib.c:101:resolve_host] errno 22 (Invalid argument)

[err][pachulib.c:101:resolve_host] Err!! gethostbyname

[err][pachulib.c:101:resolve_host] errno 22 (Invalid argument)

[err][pachulib.c:101:resolve_host] Err!! gethostbyname

[err][pachulib.c:101:resolve_host] errno 22 (Invalid argument)

[err][pachulib.c:101:resolve_host] Err!! gethostbyname

[err][pachulib.c:101:resolve_host] errno 22 (Invalid argument)

[err][pachulib.c:101:resolve_host] Err!! gethostbyname

[err][pachulib.c:101:resolve_host] errno 22 (Invalid argument)

[err][pachulib.c:101:resolve_host] Err!! gethostbyname

[err][pachulib.c:101:resolve_host] errno 22 (Invalid argument)

[err][pachulib.c:101:resolve_host] Err!! gethostbyname

[err][pachulib.c:101:resolve_host] errno 22 (Invalid argument)

[err][pachulib.c:101:resolve_host] Err!! gethostbyname

[err][pachulib.c:101:resolve_host] errno 22 (Invalid argument)

[err][pachulib.c:101:resolve_host] Err!! gethostbyname

[err][pachulib.c:101:resolve_host] errno 22 (Invalid argument)

[err][pachulib.c:101:resolve_host] Err!! gethostbyname

 

[err][pachulib.c:101:resolve_host] errn

 

Any help or advice on this would be much appreciated.

Many thanks kema

Forums

I received the above error trying to install any version of XfXViewer or the Hub onto Win7 x64 desktop.

I knew the apps ran on Win7 as they are on my laptop.

Apparently this is caused by inconsistent performance counters.

 

By running:

lodctr /R

in a command window resolves the issue.

Forums

Brett,

 Have recently noticed that whilst twitter is working it's not deleting last tweet. Looking at repo the portable branch missing this .c file? Is this correct?

I will try adding and remaking but just wondered as it may affect others using portable version.

thanks

Garry. 

 

EDIT: just noticed this is test code only so doesn't explain lack of tweet deletion. Twitter messing again? I'll have a dig

ANOTHER EDIT: looks like twitter haven't changed anything!  I've rebuilt twitter deamon using most recent portable code but still the same. Twitter works other than deleting tweet. 

Can somebody else verify it works for them? I've run debug level 7 but no errors that I could see.

 

thanks Garry

Forums

Someone a while ago said I should look at OpenHAB.

I did look at this and I thought, hmm that's interesting.  At the time I could not find a Java based xAP framework which you are going to need before you even think about integrating with this.  After much deliberation I finally got around to writing one.  Its a little LUA like in its API calls just because familarity breeds content and the API has worked so well.

A very simple demo that uses the framework is posted below.
Those who have coded in LUA for a while should see some resemblance in the API calls, its dead simple.

package com.dbzoo.xap;
import com.dbzoo.xaplib.*;
public class Demo {
    public static void main(String args[]) {
        Filter f = new Filter();
        f.add("xap-header", "class", "xapbsc.event");
        f.callback(new FilterCallback() {
            public void filterAction(Frame f) {
                System.out.println("BSC event from " + f.getValue("xap-header", "source"));
            }
        });    
        XapManager.setSource("dbzoo.demo.system");
        XapManager.setUID("FF456700");
        XapManager.process();
    }
}

If anybody is interested in the library code at this point let me know and I'll commit it for general consumption and browsing.

With a java xAP library under my belt I can look at OpenHAB integration which is a Java based thing.   I'm not sure if the xPL code already written is going to help but its start so I can peek at what they have done.   I won't have to use any of their xPL4Java framework which I found overly complicated.

https://github.com/openhab/openhab/wiki/xPL-Binding

@Vincent:  I also made this java framework spit out the compliant packets that HomeSeer needs, that is sequence xap-headers and its keys in a particular order, which is still their bug btw  :)

I should write a Python one as well just to round my set; C, Lua, Java, Python

Brett

Forums

we had a major power incident a couple of weeks ago in the village and it hurt my HAH, so far the basenode (or lead) has failed and the cc usb lead and hah main PCB

 

well i had a spare hour or so today so built another HAH.

only thing i cannot get working is the pvoutput script, and i know not where to start!

 

Dean