Got some time off coming up

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

A couple of weeks time I have some time off so I thought I'd find out what people would like to see the HAH do.  Mostly I just come up with my own ideas and hope that it turns out to be useful to others.  This time I thought I'd try another approach and offer my coding services to implement ideas that others have but don't have the skills to do the work.

I'm pretty flexible in terms of skills, although I do confess to not having a love web based things, unless pushed.

Some things I was thinking about

  • xAP PC service to expose endpoints to monitor, memory, cpu, disk, perhaps a shutdown endpoint, when combioned with the existing WOL (wake-on-lan) capabilty it would provide a nice startup/shutdown PC service.  A C# .NET program.
  • An interface to thingspeak.com. LUA classes (probably).
  • A local event scheduler daemon.  LUA applet
  • A restful API service for 3rd party integrations. see http://en.wikipedia.org/wiki/Representational_state_transfer
  • HTML5 websocket for the iServer to build external web interfaces.  C / Javascript
  • HAHNode extension - IR transmitter, IR receiver.

So there are some of my ideas lets here from you guys, what do you want!

Brett

kevin
Offline
Huddersfield, United Kingdom
Joined: 17 May 2010
Some thoughts

1)  Utilise the Joggler internal SMS via xAP

2) I have often thought that the ability to link xAP BSC nodes by drawing lines between outputs and inputs on a layout would be neat (rather like your plugboard) with HAH providing the link.  A visual designer if you like.  Maybe the links can include  logical 'gates' or a scheduler.

3) I like the LUA scheduler idea.

4) xAP counter endpoints eg for metering  (lots of digits)

5) There is already a xAP app (SpeedFan) that handles a lot of PC service information...

BodgeIT
Offline
London, United Kingdom
Joined: 10 Jun 2010
Oooh Developer for hire!

Mine:

Tiny feature - Multicalendar feature or at least be able to select a single calendar from an account with multiple in it.

Multical would be better as I'd like to get notifications from HAH for impending meetings etc from a different cal than that for my GoogleCal HAH events

Email monitor for plugboard.

CurrentCost detail display in gui

Gui based rule generator for events and endpoints...think this might be quite tricky but would make a big step toward making the HAH more accessible to laymen.

xAP enable my android device, there is an app called "Notifier" which runs on android and PP to notify user on pc of new messages, calls, battery low etc etc...if this worked(it doesn't) it would be brilliant, if it could interface with xAP it would be even better as no need for the PC element.

Yours that I liike:

Event scheduler

HAH Node extension

Restful API

 

How much time do you have?  I also need a hand repointing my front wall and painting the woodwork?

Oh...yes just remembered...some sort of Log window on GUI showing statuses of various selected endpoints...

And +1 on Pentala's appreciation...I got so excited I forgot my manners...

Pentala
Offline
Joined: 22 Oct 2011
Some ideas

First of all, thanks for the offer of the time to progress this excellent project forward :-)

Some ideas :-

 

  • HAHNode extension - how about multiple 1-Wire device support
  • Additional 1-Wire devices for the HAH, weather station support...?
  • xAP PC Service - something similar is available in xAP Watcher - http://mi4.biz/modules.php?name=Content&pa=showpage&pid=37
  • A method of fireing of Linux/PC Scripts via a xAP message would be good
  • xAP logging to MySQL or similar - historical recording of CurrentCost data

 

brett
Offline
Providence, United States
Joined: 9 Jan 2010
To the point raised so far

To the points raised so far.

  • SMS on the joggler - yep this sounds like a winner, it would also require the xap-hub to be ported but that is a no brainer.  I don't think this would be a lot of work.
  • BSC endpoint graphical wiring control surface.  Kevin I see what you are thinking and I like the idea, not an overnighter but it sure would look pretty.  I've built some things like this before in Java and I've seen some nice libraries around to even do this in a browser using javascript.
  • Not sure I understand the xAP counter.  Is this just a schema?  Tell me more.
  • Sound like xAP Speedfan already does much of what I mentioned.  No point in reinventing the wheel.
  • google calendar multiple calendar support - my problem has always been that the underlying library libgcal didn't support it.  I know its since been added however I'm waiting for the developers to release a public library.  See issue - http://code.google.com/p/libgcal/issues/detail?id=87
  • email monitoring - already done along with email sending ... what was cool about this code is that I put together a really simple LUA template engine to generate the HTML web based emails.    This template engine may be useful for other things.   Such as building your own WEB GUI interfaces for your applets.  I'm sure I'm going to resuse that code at somepoint.
  • Currentcost display gui.  Well the problem with a WEB based interface is keeping it refreshed.  Static I could do without too much effort.  There are hacks to make it more dynamic but they all suck ... until HTML5 websockets (one of my suggestions) that would need to be put in place first.  Stuff you don't see but it enabled these kinds of things like the iServer and xap-hub invisible glue components.
  • Another suggestion for a GUI based xAP endpoint configuration wizard.  Yep the whole idea of having LUA as a scripting language was that once you get a framework in place you can have higher level tools generate the Applets for you.  This was one of the reasons I took the LUA framework approach I had these tools in the back of my mind for much later on.  See I do think ahead.
  • xAP enable an android - well there are several ways to do that.  xAPFlash, improve the existing HAH web gui or using HTML5 and a websocket enabled iServer with a webpage running javascript on the Android itself.  This last approach will also enable iPads which can't do flash.  Did I say this is a LOT of work!  Again websockets allow realtime updating of data with minimal overhead.
  • I'd love to fly back to the UK to help you repoint your wall and paint some wood or I can write cool things for the HAH :)
  • Log windows showing status of various endpoints.  What I would love to do here is come up with a generic framework whereby a plugboard applet could expose something that would allow it to bolt a webpage into the webserver.  My existing webserver can make CGI call outs, so using an LUA CGI-BIN library this should be possible by having it look for external webpage definitions and having a new top level "External" tab where user configured page can be hooked.  Some deeper thought is required here as it may even require a complete overhual of the existing web gui and that WOULD be a reasonable effort.
  • Multiple 1-wire support for HAHnode - actually this is doable now you don't even need me for this one.  Write some C code for your HAHNode build a new CLASS and job done.   The only thing stopping you perhaps is the documentation on how this would be done but it is doable if you browse the existing source code for the current nodes and grasp how they work, have a crack at it yourself.  The system has been architected to allow EXACTLY this kind of thing.
  • Interacting with linux from xAP can be done a number of way - I already have documented doing this with xAP Python - also the LUA library is platform agnostic so you can pick all this up and run it on windows, linux, android, macox what ever.  There are a few C libraries that are required, luasocket being the primary and lrexlib being the other see (plugboard LUA libraries)  I also have a linux based LUA development environment I can share luadev.tar.gz I used this for doing all my HAH LUA script development on a Linux box.  Once I get my Applet working I simply plonk it on the HAH and it just works.  This is how I fly.
  • mySQL logging, well this is kind of reinventing the wheel a little.  Pachube already serves as a remote database and I've documented using cacti which uses rrdtools as its database storage.  OK its not quite mySQL but by using the python stuff I mentioned above its a small step to gather data and push into a DB.   Logging data always then leads to graphing and a myriad of other task which may other products can do so although there is good value in perhaps having your own solution there is a lot of overlap already.

All good suggestions thanks.  Keep 'em coming.

Brett

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
Hmm

What i would like is a "config backup" on the webserver.

 

I have found many times a simple change causes untold damage and i end up looking for a backup of my HAH.

 

a button that on webpage backs up all important files to download (so a quick restore is possible would be nice)

Also ability to switch off wife in nagging/moaning mode about what you doing now would be nice.

 

Dean

BodgeIT
Offline
London, United Kingdom
Joined: 10 Jun 2010
Mute button already invented,

Mute button already invented, all you need to do is press it!

kevin9
Offline
Lincolnshire, United Kingdom
Joined: 24 May 2010
My pennys worth...

Can I add my vote for event scheduling, I was thinking of someing simple to enable a Central Heating programmer replacement. Something like "Mondays at 0700 x on, y on", "Weekdays at 1600 x on y on", "Weekends at 2300 x off y off", "Everyday at midnight x off y on"

I would prefer this to be a function of the HAH rather than rely on an external function like google calendar

Also I mentioned to derek that there appears to be an open project to hack wireless TRV's with RFM12's that it woul be worth keeping an eye on.

kevint

 

aivo
Offline
Tallinn, Estonia
Joined: 2 Mar 2011
Extending scheduler

I would extend Kevin's scheduler idea with a wish for smth like

"Weekdays at sunset x on y on"
"Weekends at sunrise x off y off"

Placed small script too at http://www.homeautomationhub.com/content/sunrise-sunset

Aivo

keith.m.chappell
Offline
Joined: 25 Oct 2011
Have you seen this ....!

Maybe some interesting reading for you rather than a development route, but how about developing some tools to ease SCADA deployment, these guys appear to have similar intrests to us and we (actually you) already have data aquistion part in the bag (xAP), so no need for the bits they sell, we can just leverage the free SCADA app.....sweet  :-)

 

https://sites.google.com/a/usapiens.com/opnode/products/myopenlab

http://www.myopenlab.de/      and the SCADA app

Keith C

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Two down

I've now tackled; the Scheduler and Backup/Restore configuration settings.  Two items which I think deserved attention first.  I'll take a little break and enjoy a few days of my holidays before diving into some of the other items - Brett

garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011
Thanks

Brett. on behalf of all hah users can i thank you for the time you have given to these updates. The scheduler is particularly great. Hope you enjoy you time off. Just a few days though eh ;) Garry.

kevin9
Offline
Lincolnshire, United Kingdom
Joined: 24 May 2010
The Scheduler is excelent....

The Scheduler is excelent, many thanks.... , i just need to get my head around it now.

 

If you were looking for other ideas, particularly now that its free, would it be possible to send to multiple pachube feeds?

 

cheers

kevint

brett
Offline
Providence, United States
Joined: 9 Jan 2010
Multiple pachube feeds

Multiple pachube feeds - Yes it would be possible is there enough demand for people wanting to do this to warrant me spending time figuring out how to make this happen?  What is the use case for this?

I've been working on freeing up more Flash and RAM for things to come....

Brett

derek
Offline
Glasgow, United Kingdom
Joined: 26 Oct 2009
One pachube feed per HAH

Each HAH has a physical location which ties into its Pachube feed. The feed can have as many datastreams as you have sensors that require logging. A datastream can have tags to give a decent description/grouping name of the datastream.

I can't really see why any one HAH would need more than one feed. 

kevin9
Offline
Lincolnshire, United Kingdom
Joined: 24 May 2010
Hi guysI have a number of

Hi guys

I have a number of existing feeds which I want to migrate to HAH without losing my history

 

kevint

Alanmh
Offline
Reading, United Kingdom
Joined: 7 Jul 2010
host xAPFlash.swf on HAH?

 

Brett

 

Not sure if you still have some time?

 

would be good to have xAPFlash hosted on the HAH for mobile control if that is possible?

 

Ideally through another port or maybe as another tab on the standard interface? Ideally a mobile user would want to go to this interface first, so would need a direct link to save in bookmarks.

 

 

Many thanks

 

ALan

 

 

brett
Offline
Providence, United States
Joined: 9 Jan 2010
xapflash hosted on hah

Alan,

Actually that is not a bad idea.  I'm not sure I would want to embed it as seperate tab, I can try and see how this looks but I might just opt to have this and its files hosted as externally accessible content served up by the HAH webserver independantly.   The .SWF file can be flashed into the firmware and the user configuration files can be loaded from something like /etc/xapflash I'd need to play around a little and see how it flies.  Let me investigate this how best to make this happen. I like this idea a lot!

Brett

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
seconded

would love this functionality.

Alanmh
Offline
Reading, United Kingdom
Joined: 7 Jul 2010
xAPFLASH - Been thinking about this....

and the UX especially.

I would like to think that 99% of the time we go to the HAH to control something in our house or get some information. So, I would suggest that it should be possible to set the xAPFlash view as the default. Could a button be placed on the page or in the xAPFlash itself to get back to the current web experience to set stuff up? (sorry not so great at how flash integrates in broswers).

So, you would have the default web experience we have today with a radio button to select the xAPFlash view as standard, then a way of getting back to the standard view from xAPFlash to make setting changes etc.

Sorry, Brett, I dont think the external view works too well as I for one, would want to use my tablet or phone to control stuff while in the house too.

garrydwilms
Offline
United Kingdom
Joined: 31 Mar 2011
Clarification
Correct me if I'm wrong but by external I think Brett meant external to the web interface. This would still be accessible vla LAN (and WAN if dns etc is setup) I think this is best option as you could link directly to the specific xapflash address rather than nvigating through the interface. Either way this is a good idea. Even if I am an iPhone user that is flash deprived :(
brett
Offline
Providence, United States
Joined: 9 Jan 2010
Something like this ?

So I'm thinking something like this -- Oh yes this is not a mock up!

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
Perfect

What does your daughter think of you measuring the temp in her room (mine would put it on radiator or o/s windowsill to confuse me)

 

looks great how configurable is it? does it use a similar/same format as joggler? thinking of one config file etc.

 

Dean

Alanmh
Offline
Reading, United Kingdom
Joined: 7 Jul 2010
Looks good

My primary concern was that this comes up first as tabs may have been too small to select on a touch screen phone.

So release 300 soon?

kevin9
Offline
Lincolnshire, United Kingdom
Joined: 24 May 2010
My request is the same as Dan

My request is the same as Dan Wards, see issue 28 on googlecode

 

kevint

g7pkf
Offline
United Kingdom
Joined: 11 Jan 2011
hysterisis on 1wire and current cost temp

to reduce xap payload could you think about including some hysterisis on the temp/1wire stuff?

 

a 0.5 change would be fine a i know others will say i want to know about a 0.1 but the opttion to decide?

 

also a +/- calibration level as i have found the temp sensors do not read that reliably and can be a few degrees out, (i have a ir thermometer that is calibrated for testing)

 

Just an idea

Please?

EJ-Ambient
Offline
Ringwood, United Kingdom
Joined: 5 Aug 2011
CC fudge factor

Completely agree with everything above - and add my thanks to brett et al for doing incredile stuff....

Can I add my two-penneth for CC sensor/channel calibration - if possible two fields, one called 'FLOOR' in which you can put a value below which the channel reports zero (useful where you have an inverter that draws power on the same line that you're measuring generation) and another field called 'CALIBRATE' which allows you to put in a percentage (to two decimal places) so that you can increment/decrement the value on the channel (below 100% permits value reductions and over 100% provides for value increases).

Going to have a bash at Jogglering my HAH this week - what you've provided (xAP etc) looks amazing.  I'm going to have a go at displaying multiple .png files layered in a text box - well, I'll try!

Cheers...

EJ

 

PS If you're ever back in Blighty, there's a pint of the local brew with your name on it at the pub!

Hardware Info