aboutsummaryrefslogtreecommitdiffstats
path: root/dvb-t/fi-Inari_Janispaa
blob: 37bd31e20cdd8f934cd1846fef8f634fbf41a6cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 2014-04-18 Antti Palosaari <crope@iki.fi>
# generated from http://www.digita.fi/kuluttajat/tv/nakyvyysalueet/kanavanumerot_ja_taajuudet

[Inari_Janispaa]
	DELIVERY_SYSTEM = DVBT
	FREQUENCY = 490000000
	BANDWIDTH_HZ = 8000000

[Inari_Janispaa]
	DELIVERY_SYSTEM = DVBT
	FREQUENCY = 546000000
	BANDWIDTH_HZ = 8000000
eserved */ .highlight .kt { color: #888888; font-weight: bold } /* Keyword.Type */ .highlight .m { color: #0000DD; font-weight: bold } /* Literal.Number */ .highlight .s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
Display picoLCD {
    Driver   'picoLCDGraphic'
    Size     '256x64'
    Contrast  230
    Backlight 1
    Inverted   1
    Icons     1
}


Variables {
   n 0
   nkey 0
   page 0
   t 0
   p ' '
   r1 ' '
   r2 ' '
   r3 ' '
   r4 ' '
   rss 'http://slashdot.org/slashdot.rdf'
 
   tick 500
   tack 100
   minute 60000
   #rssRefresh minute
   rssRefresh 1000
}

Widget TimerW {
    class 'Timer'
    expression n=LCD::GPI(1);nkey=n!=0?n:nkey
    active 1
    update 100
}

Widget TimerRSS {
    class 'Timer'
    expression t=1+page;p='!'.t;r1=python::exec('rss', 'pf', rss.p);t=2+page;p='!'.t;r2=python::exec('rss', 'pf', rss.p);t=3+page;p='!'.t;r3=python::exec('rss', 'pf', rss.p);t=4+page;p='!'.t;r4=python::exec('rss', 'pf', rss.p);rssRefresh=1000
    active 1
    update rssRefresh
}
                        

# export PYTHONPATH which should point to the scripts usually /etc/picoLCDGraphic/Scripts
Widget RSSFeedTitle1 {
    class 'Text'
    #expression title=1+page;param='!'.title;python::exec('rss', 'parsefeed', slashdotRSS.param)
    expression r1
    width 42
    prefix '- '
    align 'L'
    #update minute
    update 300
}



Widget RSSFeedTitle2 {
    class 'Text'
    expression r2
    width 42
    prefix '- '
    align 'L'
    #update minute
    update 300
}


Widget RSSFeedTitle3 {
    class 'Text'
    expression r3
    width 42
    prefix '- '
    align 'L'
    #update minute
    update 300
}

Widget RSSFeedTitle4 {
    class 'Text'
    expression r4
    width 42
    prefix '- '
    align 'L'
    #update minute
    update 300
}


Widget GPO_kup {
   class 'GPO'
   expression page=nkey==5?0:page;nkey==5?1:0#;rssRefresh=nkey==5?100:rssRefresh
   update 100
}
         
  Widget GPO_kdown {
  class 'GPO'
  expression page=nkey==7?4:page;nkey==7?1:0#;rssRefresh=nkey==7?100:rssRefresh
  update 100
}
                  

Layout picoLCD {
    Row1 {
	Col1 'RSSFeedTitle1'
    }
    Row3 {
	Col1 'RSSFeedTitle2'
    }
    Row5 {
	Col1 'RSSFeedTitle3'
    }
    Row7 {
	Col1 'RSSFeedTitle4'
    }
    
    Timer1 'TimerW'
    Timer2 'TimerRSS'
    
    GPO2       'GPO_kup'
    GPO3       'GPO_kdown'
       
}

Display 'picoLCD'
Layout  'picoLCD'