Display SimpleLCD {
|
|
Driver 'SimpleLCD'
|
|
Port '/dev/ttyACM0'
|
|
Speed 1200
|
|
Options 0
|
|
Size '16x2'
|
|
}
|
|
|
|
Widget Termo {
|
|
class 'Text'
|
|
expression exec('wget -q http://termo.tomsk.ru/data.txt -O-',60000).' C'
|
|
width 16
|
|
prefix iconv('UTF-8', 'KOI8-R', 'В Томске ')
|
|
update 60000
|
|
}
|
|
|
|
Widget Time {
|
|
class 'Text'
|
|
align 'A'
|
|
speed 250
|
|
prefix iconv('UTF-8', 'KOI8-R', 'Сегодня ')
|
|
|
|
expression iconv('UTF-8', 'KOI8-R', exec('LANG=ru_RU.UTF8 date +"%d %B, %H:%M"',1000))
|
|
width 16
|
|
update 1000
|
|
}
|
|
|
|
Layout My {
|
|
Row1 {
|
|
Col1 'Termo'
|
|
}
|
|
Row2 {
|
|
Col1 'Time'
|
|
}
|
|
}
|
|
|
|
Display 'SimpleLCD'
|
|
Layout 'My'
|