Documentation ¶
Index ¶
- type ColorJson
- type ImageProcessor
- type MainSection
- type Monitor
- type PageData
- type Params
- type SysSection
- type Today
- func (t *Today) GetDarkPercent() float32
- func (t *Today) GetDate() string
- func (t *Today) GetHomeDirectory() string
- func (t *Today) GetSunrise() int64
- func (t *Today) GetSunset() int64
- func (t *Today) SetDarkPercent(percent float32)
- func (t *Today) SetOffline()
- func (t *Today) SetOnline() error
- func (t *Today) SetTodayPage() error
- func (t *Today) WatchDate() chan string
- type Weather
- type WeatherData
- type WeatherDesc
- type WebEndpoint
- type WindSection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageProcessor ¶
type ImageProcessor struct {
// contains filtered or unexported fields
}
func NewImageProcessingService ¶
func NewImageProcessingService(config map[string]interface{}, errChan chan error, todayService *Today, weatherService *WeatherData) (*ImageProcessor, error)
func (*ImageProcessor) DateChangeNotifier ¶
func (ip *ImageProcessor) DateChangeNotifier(notifier chan string)
func (*ImageProcessor) StartImageHandler ¶
func (ip *ImageProcessor) StartImageHandler()
type MainSection ¶
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
func NewMonitorService ¶
func (*Monitor) SendFailure ¶
func (*Monitor) StartCronitorPing ¶
func (m *Monitor) StartCronitorPing()
type SysSection ¶
type Today ¶
type Today struct {
// contains filtered or unexported fields
}
func NewTodayService ¶
func NewTodayService(wdService *WeatherData, config map[string]interface{}, errChan chan error) (*Today, error)
func (*Today) GetDarkPercent ¶
func (*Today) GetHomeDirectory ¶
func (*Today) GetSunrise ¶
func (*Today) SetDarkPercent ¶
func (*Today) SetOffline ¶
func (t *Today) SetOffline()
func (*Today) SetTodayPage ¶
SetTodayPage sets up an index.html for the static site with today's date and sunrise/sunset info
type Weather ¶
type Weather struct { Main MainSection `json:"main"` Sys SysSection `json:"sys"` WeatherDesc []WeatherDesc `json:"weather"` Wind WindSection `json:"wind"` }
type WeatherData ¶
type WeatherData struct {
// contains filtered or unexported fields
}
func NewWeatherDataService ¶
func NewWeatherDataService(config map[string]interface{}, errChan chan error) (*WeatherData, error)
func (*WeatherData) GetCurrentTempStr ¶
func (w *WeatherData) GetCurrentTempStr() (string, error)
func (*WeatherData) GetCurrentWeather ¶
func (w *WeatherData) GetCurrentWeather() (*Weather, error)
type WeatherDesc ¶
type WebEndpoint ¶
type WebEndpoint struct {
// contains filtered or unexported fields
}
func NewWebEndpoint ¶
func NewWebEndpoint(tService *Today) *WebEndpoint
func (*WebEndpoint) StartWebHandler ¶
func (we *WebEndpoint) StartWebHandler()
type WindSection ¶
Click to show internal directories.
Click to hide internal directories.