Migrating to github

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-cod…

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

Member for

13 years 11 months

AndrewJ

11 years 8 months ago

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

Member for

16 years 10 months

brett

11 years 8 months ago

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

Member for

14 years 6 months

magill

11 years 8 months ago

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

Member for

16 years 10 months

brett

11 years 8 months ago

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/livebo…

Member for

14 years 6 months

magill

11 years 8 months ago

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

Member for

16 years 10 months

brett

11 years 8 months ago

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

Member for

14 years 6 months

magill

11 years 8 months ago

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.

Member for

15 years 7 months

garrydwilms

11 years 8 months ago

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

Member for

14 years 6 months

magill

11 years 8 months ago

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

Member for

17 years

derek

11 years 8 months ago

>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.


Member for

14 years 6 months

magill

11 years 8 months ago

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

Member for

16 years 10 months

brett

11 years 8 months ago

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