This is a request for opinions rather than an answer to a problem.

I'm looking to write a daemon that can sit on my Domoticz (home automation) 
server and can respond to Domoticz events and can receive commands to run 
tasks that would otherwise block the server.

These will include things like 
1) Turn a LED on or off - straight forward command
2) flashing a LED (timer event), 
3) run a wake-up sequence (slowly fade up a lamp, turn on the radio - stop if 
I click OFF) (timer event), 
4) run external commands without blocking (squeezy to control a Logitech Media 
Server)

I'm looking at using a named pipe for sending commands, and also a tail -f to 
monitor the Domoticz log file so I can respond to device state changes. 
Listening on a socket could be a nice to have too.

I've previously used File::Tail for log file monitoring and Net::Telnet for 
remote command execution, both of which look useful. 

I've had a quick look at AnyEvent as the core for my app and it looks simple 
enough for me to understand. I've also looked briefly at POE which looks more 
comprehensive, but more complex.

What do people think is my best way forward?

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to