Apress - Smart Home Automation with Linux (2010)- P53

Apress - Smart Home Automation with Linux (2010)- P53: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 public static function getPages return array Multimedia News Information Life Status Administration public static function generate appman if self automaticInclude return appman- getMasterBar getPages else return The details of this should be obvious Since you can now build your own custom pages using the existing applets let s look at what applets are available. Existing Applets The supplied applets are split into several broad categories media lifestyle information and administration. Most applets use the Bearskin abstractions since one of the many benefits of using a loosely coupled component-based development model is that many small tools can be combined into larger ones. These web applets are one such case. Each applet presented here relies on underlying code and data from simpler front ends. With this in mind the configuration of each applet will be given in its entirety from basic data to web-oriented page so as to give an immediate understanding of the entire data flow without scattering the information between its subcategories of Bearskin command abstraction configuration and so on. Media These applets allow you to control the playback of media in its various forms and include a CD player a volume mixer an MP3 jukebox a VLC server and client and a front end for displaying the TV guide. The CD player is a very simple abstraction of the Bearskin cdplayer command that allows control of the disc as shown in Figure 7-3 along with the album and track names present. The bridge between the PHP applet code and the Bearskin system command is handled by zinc system with zinc conf being used to indicate the location of the executable and device to use. 243 CHAPTER 7 CONTROL HUBS Figure 7-3. The server s CD player being controlled through the Web The audio mixer follows the same idea as the CD player and simply calls out to the underlying Bearskin command

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.