Migrating to github

13 replies [Last post]
brett
Offline
Providence, United States
Joined: 9 Jan 2010

Google has made the decision to shutdown code hosting, which is where the HAH project source currently live.

http://google-opensource.blogspot.com.au/2015/03/farewell-to-google-code...

Due to this I've migrated all the branches over to https://github.com/dbzoo

In time I will amend the wiki documentation on how to checkout and compile, once I figure it out myself.
Notes for the portable distribution have been updated.
http://www.dbzoo.com/livebox/portable

There will be no more commits happening against the SVN repository code base.

I still need to host the pre-built downloadables somewhere as well and I have not decided where to put these.
Probably a page on this site will do the trick
.

Downloadables: http://homeautomationhub.com/forum/23

Brett

AndrewJ
Offline
United Kingdom
Joined: 22 Nov 2012
Thanks Brett, I was only

Thanks Brett,

 

I was only using the SVN repo last night thinking this is all very good, little did i realise it was for the chop due to abuse!

All seems updated, can i ask are you patching the portable rather than updating the major revisions?

my BB is showing 313 not 317... just checking as the mqqt libs appear to be present as is the mqqt-xap gateway

 

Andrew

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Andrew,I actually work on the

Andrew,

I actually work on the portable distribution more than the trunk these days.  Once something is working on portable I backport it to the trunk.

The version number the portable distribution is never bumped as this is never distributed as a .rpm/.deb package so there is no stable release, its an ever moving baseline depending on when the source was checked out by the likes of yourselves.  I'm not sure what the 'build' number really means in this context. 
To make you happy I've bumped the portable build number to 317.
Rest assured thou the portable branch is as up to date as the trunk.

I've added a section on how to keep your portable distro up to date:

http://www.dbzoo.com/livebox/portable?&#keeping_up_to_date

magill
Offline
Joined: 27 Apr 2012
PI

Hi

I have been building up a PI and did an upgrade using GITHUB. Somewhere in the process of doing this, adding samba, adding ftp etc, not sure which.. I get ?err? all over the GUI screens. I don't know what this means. Strangely plugboard lua scripts are working.

John

brett
Offline
Providence, United States
Joined: 9 Jan 2010
The xap-livebox processes has

The xap-livebox processes has an internal web server that listens on port 79, I do this so that the kloned web front end can query it for the status of relays etc.. The alternative was to have kloned issue a BSC query and wait for a response which seemed messy so I took a shortcut and had it directly query the process itself.
If a query cannot be made kloned will serve up ?Err?

Which means that you probably don't have xap-livebox running or something else was stealing port 79 stopping the process from starting up.

FYI: Here in the code is where xap-livebox is setup to listen as a webserver
https://github.com/dbzoo/hah/blob/trunk/userapps/hah/xap-livebox/livebox...

magill
Offline
Joined: 27 Apr 2012
A bit lost

sudo lsof -i :79 shows nothing

I thought I would do another update to have a clean install.

$ cd portable
$ git pull
$ make arm-deb
$ sudo dpkg -i build/*.deb
Strangely this time I got no prompts about overwriting ini files?

I appear to have nothing running
pi@raspberrypi ~ $ ps
PID TTY TIME CMD
2278 pts/0 00:00:01 bash
2307 pts/0 00:00:00 ps

John

brett
Offline
Providence, United States
Joined: 9 Jan 2010
John,You have nothing running

John,

You have nothing running as your "logged in user" that is correct.  The xAP processes run as the "root" user.

The xap-livebox process is not started up by default in the portable distribution.  Which makes sense as you need to do some additional wiring to get the livebox additional hardware connected.  Something I've not personally done but other have.

In anycase xap-livebox process is not needed unless you have the external hardware attached.

Perhaps gets yourself as the root user and poke about as root things will become more clear.

$ sudo su -
# ps x

Brett

magill
Offline
Joined: 27 Apr 2012
BrettI am in the process of

Brett

I am in the process of adding the hardware and testing it. I will need the xap-livebox to start automatically. How do I do that. My first portable build was OK and only when I updated yesterday did it stop.

thanks

John

PS I realize that this post should be in the RaspPI 2 thread.

garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011
John the changes to the

John

 

the changes to the /etc/init.d/xap file we talked about will start livebox. Or should do. 

Type ps aux to see all running processes. 

Garry

magill
Offline
Joined: 27 Apr 2012
GarryI checked that, it looks

Garry

I checked that, it looks OK

subsystem="hub xively livebox iserver web sms serial currentcost twitter googlecal plugboard urfrx mail"
Also ps aux does not show anything recognisable as HAH stuff.

Just when I was slowly getting to grips with Livebox I am now tearing my hair out with this PI.

I seem to be battling with everything. I have no jeenode connectivity. Tried microcom -s 57600 /dev/ttyUSB0, not available, so downloaded it. It then says: cannot open device /dev/ttyS0

Should I surrender and buy another Livebox?

John

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
New-fangled stuff

>Should I surrender and buy another Livebox?
Absolutely! It's not a 'surrender'.

The Livebox is the 'original' platform for the HAH. Most all of the writeup is Livebox based. My Livebox setup is sooo very solid in operation. A year of uptime isn't unusual.

The Pi does have a bit more resource and is rather trendy but it doesn't:

Come with a PSU.
Come with a case.
Cost less than GBP 10, delivered.

Looking on eBay right now, you could buy a Livebox and have it for GBP8.99 including delivery.

Horses for courses.

Derek.


magill
Offline
Joined: 27 Apr 2012
Derek there's a lot of merit

Derek there's a lot of merit in what you say but I am looking for additional functionality. I want to host my own web site on it and also use it for off site data backup. Another plus is having all the intelligence on a memory card which can be backed up and simply plugged into another PI in the event of failure. (I have 3 PIs)

John

brett
Offline
Providence, United States
Joined: 9 Jan 2010
xap-livebox on the pi

John,

In you /etc/xap.d/xap-livebox.ini file you need to have at least these settings:

[livebox]
enable=1
port=/dev/ttyxxx
initserial=+++

You'll need to figure out what the TTY port is you are using on your PI.
Gary what do you use here?  I know /dev/ttyO0 is the console on the PI.

Brett

garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011
I use ttyAMA0 of the gpio

I use ttyAMA0 of the gpio header. You need to disable console access and startup info as per 

http://www.hobbytronics.co.uk/raspberry-pi-serial-port

 

Garry

Hardware Info