Search found 3 matches

by keithl8041
13 Sep 2014 20:36
Forum: Discussions in English
Topic: Simple event module
Replies: 4
Views: 26632

Re: Simple event module

In case anyone else is ever looking for something similar, here's what I ended up with; /opt/z-way-server/automation/userModules/ApiEventLogger/index.js /* constructor(s) */ function ApiEventLogger(id, controller) { ApiEventLogger.super_.call(this, id, controller); }; inherits(ApiEventLogger, Automa...
by keithl8041
10 Sep 2014 12:13
Forum: Discussions in English
Topic: Simple event module
Replies: 4
Views: 26632

Re: Simple event module

Thanks for your reply, that looks like what I'm after. It's actually the module wrapper details that I'd find useful as I'm struggling to put this code in the right context. I have read realms of developer documentation but a lot of it is out of date, incomplete or has been superseded by a later ver...
by keithl8041
08 Sep 2014 02:00
Forum: Discussions in English
Topic: Simple event module
Replies: 4
Views: 26632

Simple event module

I'm currently running a script which continuously polls the z-way api for changes - as you can imagine this uses a lot of resources and isn't nearly as responsive as an event-driven system would be. So I've been scouring the internet to figure out a way of converting my polling system to an event-dr...