TAILIEUCHUNG - Apress - Smart Home Automation with Linux (2010)- P52

Apress - Smart Home Automation with Linux (2010)- P52: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 SCRIPT cosmic1 on usr local minerva bin mixer default dec master 10 SCRIPT cosmic1 off usr local minerva bin mixer default inc master 10 SCRIPT cosmic2 on usr local minerva bin mixer default toggle SCRIPT cosmic2 off usr local minerva bin pmedia default Remember that these commands will be executed by whichever user invoked heyu engine initially. They must therefore have appropriate access rights to the audio output and mixer devices for this to work. Note You always affect the master volume not the individual device volumes. This is so the relative volumes of the radio CD or MP3s aren t changed and the only inaccuracy occurs at the top and bottom of a single range that of the master volume. The state-based controller is a little more involved. It consists of four predefined buttons to query and change the state and eight that are mode-specific. This is configured as follows SCRIPT cosmic7 on usr local minerva bin cosmic default modestatus SCRIPT cosmic7 off usr local minerva bin cosmic default nextmode SCRIPT cosmic8 on usr local minerva bin vstatus SCRIPT cosmic8 off usr local minerva bin cosmic default clear Notice that you cycle through the modes in only one direction because this sequence is easier to remember. Also you have used what would have been a previous button to reset Cosmic to its initial state. The modestatus report reminds you where you are in the cycle lest you forget and there s a general-purpose status report to even up the rows. This assignment is specific to devices laid out in two columns like the HR10 which have the on button on the left. This allows you to line up both status reports on the left side and separate the two sets of global buttons into media at the top and Cosmic state at the bottom. Notice that the software within Linux never changes only the configuration. To control the Cosmic system you assign the remaining buttons to arbitrary c1 c2 and so on commands. SCRIPT cosmic3 on SCRIPT cosmic3 off SCRIPT .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.