News and announcements

Description

For news and announcements to the HAH community at large.

I'm not sure what is going on with my Site Provider but it must be pretty BAD as even their website is down too, so I can't even contact them.   I'm pretty sure lights are flashing somwhere.

As it so happens I just finished taking my yearly offline backup of the wiki before the whole lot disappeared.

This site runs elsewhere so its not affected.

Brett

Whats new in this release?

  • cron and crontab commands have been installed in the busybox
  • Removed a number of useless busybox commands (smaller footprint)
  • Start only one kloned process and removed https support (saves memory)
  • Added /usr/bin/bscmsg for command line sending of xAPBSC.cmd message, handy in crontabs. 
  • Added /usr/bin/aliasmsg also handy in crontabs.
  • Tweaked the way the webserver restarts its services.
  • DOS2UNIX all /usr/share/lua/5.1/pl penlight code.
  • Fixed penlight lapp.lua bug which broke bscmsg.
  • Time on web interface now honours the /etc/TZ file setting
  • xap-pachube reworked to remove dependency on the libcurl module, this free's up ~1Mb of memory on the HAH and stops extraneous messages being reported into /var/log/xap-pachube.log
  • Added cron setting to the webserver tab Admin>Services to enable/disable the scheduler.
  • Fixed to web page config.kl1 as long RF strings were rendering outside of the page with IE

For more information about the scheduler see http://www.dbzoo.com/livebox/scheduler

Brett

Last beta before I make this lot 297 and stop to write up what I did, how the scheduler works, adjusting your timezone, and some samples.  Just in time for everybody to automate turning those xmas tree lights on and off.

  • Further reduced kloned (webserver) memory footprint.  Virtual set size 5160Mb -> 4000Mb
  • The Admin>Services tab is used to enable/disable the cron process.

Upgrading from 296 to the next production release you should see a vast increase in the amount of free memory available as I've made two significant changes: kloned (webserver) and xap-pachube.

More memory means we can run more goodies. :)

Brett

Sorry for the flood of emails I created a new top level topic URF for discussions about the RF subsystem cand when I moved a few of the threads into there to populate it I forgot to unset the "send subscriptions" checkbox.

Anyway URF is where you want to discuss all things RF from now on.

Brett

  • Auto upgrade your HAH with the cron scheduler changes when moving from 296 firmware (previous beta required manually intervention)
  • xap-pachube reworked to remove dependency on the libcurl module, this free's up ~1Mb of memory on the HAH and stops extraneous messages being reported into /var/log/xap-pachube.log

As the pachube component has been overhauled additional testing is required to make sure I've not broken anything.  I know feeding and creating feeds is working so it "seems" to be ok.  If anybody uses this beta please report any pachube issues.  In actual fact anybody on beta *should* report ALL and any issue so I can resolve them before moving to a production state.

Brett

  • kloned single process.  (more memory free'd up)
  • Time on web interface now honours the /etc/TZ file setting

Cron already handles /etc/TZ however its weird to have the command line in one timezone and the web interface showing in another.   For those of you in the UK this is only noticed during BST.  For everybody else its annoying all the time.

Brett

Looks like I'm on the right track with the scheduler here are a few more updates

  • Added /usr/bin/bscmsg for command line sending of xAPBSC.cmd 
    message.  This a shell script so you can examine the code if you wish.
  • Tweaked the way the webserver restarts its services.
  • DOS2UNIX all /usr/share/lua/5.1/pl penlight code.
  • Fixed penlight lapp.lua bug which broke bscmsg.
  • Crontabs now persist over reboots and are saved to /etc/crontabs - pretty nasty but hey this is BETA.
  • Fixed cron init.d script error

Enjoy,
Brett

The following changes have been made to a beta 296.1
* cron/crontab have been installed in the busybox
* I removed a number of useless busybox commands (saves flash)
* Start only 1 kloned prefork child (saves memory)

To update to the beta

# /etc_ro_fs/update-dev hah-beta.dbzoo.com

To get cron working after upgrading to the beta you need to do the following
# ln -s /etc_ro_fs/init.d/cron /etc/init.d/cron
# ln -s /etc_ro_fs/rc1.d/S41crond /etc/rc1.d/S41crond

To get cron running you can either reboot or start it manually.
# /etc/init.d/cron start

http://adminschoice.com/crontab-quick-reference
crontab -e    Edit your crontab file, or create one if it doesnt already exist.
crontab -l      Display your crontab file.
crontab -r      Remove your crontab file.

I plan that these would probably just make calls to scripts that would send xAP events.

So something like this would turn on a light at 9am every Monday and off again the same day at 5pm.

* 9 * * 1 lua /etc/cron/turnonlight.lua
* 17 * * 1 lua /etc/cron/turnofflight.lua

The LUA scripts would be as simple as

require("xap")
xap.sendShort(string.format[[
insert xap-payload here
]])

Just thoughts and some progress on getting a local scheduler working.

Brett

Few changes.

  • 291 - All xap processes now log to /var/log
  • 292 - Added ch.total endpoint to xap-currentcost  = ch.1+ch.2+ch.3
  • 293 - move ch.total endpoint to UID 05
  • 294 - Fixed a googlecal issue where-by it would output debug messages even if not in debug mode. Combined with a fixin 291 this had the potential to now crash your HAH

A minor drop

  • Catch and handle the ENOROUTE iServer error.
  • All xap-* process log to /var/log so if they fatally exit we can find out why.