Đang chuẩn bị liên kết để tải về tài liệu:
Apress - Smart Home Automation with Linux (2010)- P50

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Apress - Smart Home Automation with Linux (2010)- P50:Linux users can now control their homes remotely! Are you a Linux user who has ever wanted to turn on the lights in your house, or open and close the curtains, while away on holiday? Want to be able to play the same music in every room, controlled from your laptop or mobile phone? Do you want to do these things without an expensive off-the-shelf kit | CHAPTER 7 CONTROL HUBS This uses the tweet command to update their Twitter status thereby using the configuration information from the given user with their credentials being stored in MINBASE etc users user external twitter. The Voice Conduit Input output. In its current state all voice recognition input is taken from an HTTP request on a separate page that triggers the msgrcv script with the given command. The output conduit has a direct connection to the Festival speech synthesis suite which has already been abstracted through Bearskin with say and announce. Vocal output is also a very good debugging conduit since the output is immediately accessible. Web Log Output only. This is the same as the standard logger but writes its output to a different file var log minerva weblog. Window Alert Output only. This displays the message on an X Window terminal using the basic kdialog program. The existing script exports the DISPLAY variable to display the box on the current system but could be set to any suitably configured installation of X Window on the network. If you need this to support Windows users then you must install some software such as Apache onto those machines to listen for an incoming message and then use it to trigger a small script once the appropriate message is received. The following code called message.js will use the Windows Scripting Host WSH to display a suitable box message for i 0 i WScript.Arguments.length i message WScript.Arguments.Item i Wscript.Echo message Note that the file extension is important since this is used to determine the particular scripting engine. Administering Conduits The administration of conduits is simple since the major work is handled by the commands themselves. The task of adding conduits to the system is processed by the msgconduit command. This command can either list the existing conduits shown earlier or add a new one like so msgconduit create newconduitname 228 CHAPTER 7 CONTROL HUBS or add a new command into an