Esempio n. 1
0
def initWeatherPluginEntryConfig():
    s = ConfigSubsection()
    s.city = ConfigText(default='Heidelberg', visible_width=100, fixed_size=False)
    s.degreetype = ConfigSelection(choices=[('C', _('metric system')), ('F', _('imperial system'))], default='C')
    s.weatherlocationcode = ConfigText(default='', visible_width=100, fixed_size=False)
    config.plugins.WeatherPlugin.Entry.append(s)
    return s
Esempio n. 2
0
def initWeatherPluginEntryConfig():
	s = ConfigSubsection()
	s.city = ConfigText(default = "Heidelberg", visible_width = 100, fixed_size = False)
	s.degreetype = ConfigSelection(choices = [("C", _("metric system")), ("F", _("imperial system"))], default = "C")
	s.weatherlocationcode = ConfigText(default = "", visible_width = 100, fixed_size = False)
	config.plugins.WeatherPlugin.Entry.append(s)
	return s
Esempio n. 3
0
def initWeatherPluginEntryConfig():
    s = ConfigSubsection()
    s.city = ConfigText(default="Warszawa",
                        visible_width=100,
                        fixed_size=False)
    s.degreetype = ConfigSelection(choices=[("C", _("metric system")),
                                            ("F", _("imperial system"))],
                                   default="C")
    s.weatherlocationcode = ConfigText(default="",
                                       visible_width=100,
                                       fixed_size=False)
    s.geolatitude = ConfigText(default="auto",
                               visible_width=100,
                               fixed_size=False)
    s.geolongitude = ConfigText(default="auto",
                                visible_width=100,
                                fixed_size=False)
    s.weatherSearchFullName = ConfigText(default="",
                                         visible_width=100,
                                         fixed_size=False)
    s.thingSpeakChannelID = ConfigText(default="",
                                       visible_width=100,
                                       fixed_size=False)
    config.plugins.WeatherPlugin.Entry.append(s)
    return s
Esempio n. 4
0
def initWeatherPluginEntryConfig():
    s = ConfigSubsection()
    s.city = ConfigText(default="Heidelberg",
                        visible_width=50,
                        fixed_size=False)
    s.language = ConfigText(default="de", visible_width=50, fixed_size=False)
    config.plugins.WeatherPlugin.Entries.append(s)
    return s
Esempio n. 5
0
def initWeatherPluginEntryConfig():
    s = ConfigSubsection()
    s.city = ConfigText(default='Berlin', visible_width=100, fixed_size=False)
    s.degreetype = ConfigSelection(choices=[('C', _('metric system')),
                                            ('F', _('imperial system'))],
                                   default='C')
    s.weatherlocationcode = ConfigText(default='',
                                       visible_width=100,
                                       fixed_size=False)
    config.plugins.mc_wi.Entry.append(s)
    return s
Esempio n. 6
0
def initWeatherPluginEntryConfig(i=0):
    s = ConfigSubsection()
    s.city = ConfigText(default = "Warszawa", visible_width = 100, fixed_size = False)
    s.degreetype = ConfigSelection(choices = [("C", _("metric system")), ("F", _("imperial system"))], default = "C")
    s.weatherlocationcode = ConfigText(default = "", visible_width = 100, fixed_size = False)
    s.geolatitude = ConfigText(default = "auto", visible_width = 100, fixed_size = False)
    s.geolongitude = ConfigText(default = "auto", visible_width = 100, fixed_size = False)
    s.weatherSearchFullName = ConfigText(default = "", visible_width = 100, fixed_size = False)
    #thingspeak
    if os.path.exists('/hdd/User_Configs/thingSpeakChannelID.%s' % i):
        s.thingSpeakChannelID = ConfigText(default = open('/hdd/User_Configs/thingSpeakChannelID.%s' % i, 'r').readline().strip(), visible_width = 100, fixed_size = False)
    else:
        s.thingSpeakChannelID = ConfigText(default = "", visible_width = 100, fixed_size = False)
    #airly
    if os.path.exists('/hdd/User_Configs/airlyID.%s' % i):
        s.airlyID = ConfigText(default = open('/hdd/User_Configs/airlyID.%s' % i, 'r').readline().strip(), visible_width = 100, fixed_size = False)
    else:
        s.airlyID = ConfigText(default = '', visible_width = 100, fixed_size = False)

    s.Fcity =  ConfigText(default = "Poland/Warsaw", visible_width = 100, fixed_size = False)
    config.plugins.WeatherPlugin.Entry.append(s)
    return s
Esempio n. 7
0
def initWeatherPluginEntryConfig():
	s = ConfigSubsection()
	s.city = ConfigText(default = "Heidelberg", visible_width = 50, fixed_size = False)
	s.language = ConfigText(default = "de", visible_width = 50, fixed_size = False)
	config.plugins.WeatherPlugin.Entries.append(s)
	return s