Thought I'd get this started

3 replies [Last post]
BodgeIT
Offline
London, United Kingdom
Joined: 10 Jun 2010

Not sure if this is the best way to share these.  I've created a drop box repository for you to be able to download my scripts.  Some of these are still work in prgress and I warn you, I'm no developer!

Script to bind some of my RF devices together.

http://dl.dropbox.com/u/12119032/Plugboard%20Scripts/bind_rfs.lua

This script controls my Fans in loft when temp gets too high

http://dl.dropbox.com/u/12119032/Plugboard%20Scripts/loft_fans.lua

Script to cleanly shutdown windows PC (needs Airytech Swoff running)

http://dl.dropbox.com/u/12119032/Plugboard%20Scripts/shutdown_win.lua

Turns my Slimp3 off when the rf control the amp it's connected to turns off

http://dl.dropbox.com/u/12119032/Plugboard%20Scripts/slimp3.lua

Sends a WOL message for a PC, mac supplied by xAPFlash button

http://dl.dropbox.com/u/12119032/Plugboard%20Scripts/wake_pc.lua

My attempt to create something of a personality for my HAH through SMS.  Using my android phone as location

aware notifier, it sends sms to HAH depending on where it is (Car, Not at home etc), Hah then does somethings

based on that.   VERY much WIP and not really scratching the surface yet but have had problems on the android end.

http://dl.dropbox.com/u/12119032/Plugboard%20Scripts/incoming_sms.lux

Some of you may snigger at my attempts at scripting, some of you may find this useful, feel free to use/hack/improve and feedback.

BoxingOrange
Offline
United Kingdom
Joined: 11 Jun 2010
Sharing Scripts

Thanks for posting those Gary, they'll certainly encourage me to get going a bit more on the Plugboard. 

Perhaps if we can agree a format/style for the LUA scripts with Brett, meeting the standards he's already set, they could be held under the xap-plugboard/samples folder in the Google code repository.  I guess this might impact the space available on the Livebox file system and might not be such a good idea after all.  But it would be good to host them somewhere centrally.

The other simple alternative is to post the actual code here, this give people a quick view of the code, showing them what LUA looks like, and might encourage them to explore and contribute.

BodgeIT
Offline
London, United Kingdom
Joined: 10 Jun 2010
gulp, are you suggesting an

gulp, are you suggesting an appstore for the HAH?

brett
Offline
Providence, United States
Joined: 9 Jan 2010
That's pretty neat

That's a pretty impressive set of scripts.   I'm glad that the architecture is sufficently open enough that with a small amount of work you can "build" what you require.

Seeing people use the HAH for useful stuff gives me motivation to keep extending out the functinonality to make it even better.

Good job.

Brett

Hardware Info