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

Apress - Smart Home Automation with Linux (2010)- P44: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 6 DATA SOURCES search for stations using the form at mb audio or Ofcom in the United Kingdom. In the case of the latter I was granted permission to take its closed-format Excel spreadsheet of radio frequencies downloadable from www . radio ifi rbl engineering tech_parameters and generate an open version pub data in RadioXML format. From here you can use a simple XSLT sheet to extract a list of stations which in turn can tune the radio and set the volume with a command like the following fm 75 When this information is not available you need to search the FM range usually to for usable stations. There is an automatic tool for this fortunately with an extra parameter indicating how strong the signal has to be for it to be considered in tune fmscan -t 10 fmstations I have used 10 percent here because my area is particularly bad for radio reception with most stations appearing around percent. You redirect this into a file because the fmscan process is quite lengthy and you might want to reformat the data later. You can list the various stations and frequencies with the following cat fmstations tr AM n r perl -lane print _ if d s d or order them according to strength cat fmstations tr am n r perl -lane print _ if d s d awk -F printf s s n 2 1 sort -r head In both cases the am symbol is entered by pressing Ctrl V followed by Ctrl M. You will notice that some stations appear several times in the list at and for example. Simply pick one that sounds the cleanest or check with the station call sign. Having gotten the frequencies you can begin the search for program guides online to seek out interesting shows. These must invariably be screen-scraped from a web page that s found by searching for the station s own site. A term such as the following radio MHz uk generally returns good results provided you replace uk with your own country. You can find .

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
15    70    1    13-05-2024
80    373    2    13-05-2024
Đã 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.