dash.contrib.plugins.weather package¶
Submodules¶
dash.contrib.plugins.weather.apps module¶
dash.contrib.plugins.weather.conf module¶
-
dash.contrib.plugins.weather.conf.
get_setting
(setting, override=None)[source]¶ Get setting.
Get a setting from
dash.contrib.plugins.weather
conf module, falling back to the default.If override is not None, it will be used instead of the setting.
Parameters: - setting – String with setting name
- override – Value to use when no setting is available. Defaults to None.
Returns: Setting value.
dash.contrib.plugins.weather.dash_plugins module¶
dash.contrib.plugins.weather.dash_widgets module¶
-
class
dash.contrib.plugins.weather.dash_widgets.
BaseWeatherWidget
(plugin)[source]¶ Bases:
dash.base.BaseDashboardPluginWidget
Base weather plugin widget.
-
media_css
= ['css/dash_plugin_weather.css']¶
-
dash.contrib.plugins.weather.defaults module¶
dash.contrib.plugins.weather.forms module¶
-
class
dash.contrib.plugins.weather.forms.
WeatherForm
(*args, **kwargs)[source]¶ Bases:
django.forms.forms.Form
,dash.base.DashboardPluginFormBase
Form for main
WeatherPlugin
.-
base_fields
= {'cache_for': <django.forms.fields.IntegerField object>, 'custom_title': <django.forms.fields.CharField object>, 'public_ip': <django.forms.fields.CharField object>, 'show_feed_title': <django.forms.fields.BooleanField object>, 'weather_data_json': <django.forms.fields.CharField object>}¶
-
declared_fields
= {'cache_for': <django.forms.fields.IntegerField object>, 'custom_title': <django.forms.fields.CharField object>, 'public_ip': <django.forms.fields.CharField object>, 'show_feed_title': <django.forms.fields.BooleanField object>, 'weather_data_json': <django.forms.fields.CharField object>}¶
-
media
¶
-
plugin_data_fields
= [('custom_title', ''), ('show_title', True), ('cache_for', 3600), ('public_ip', ''), ('weather_data_json', '')]¶
-