Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dashboard ¶
type Dashboard struct {
// Configure EPD
Device string
EPDService *epd.EPD
// contains filtered or unexported fields
}
Dashboard creates a custom Dashboard
func NewDashboard ¶
NewDashboard creates a custom dashboard
func (*Dashboard) DisplayImage ¶
DisplayImage accepts a path to image file and displays it on the screen
func (*Dashboard) DisplayText ¶
DisplayText accepts a string text and displays it on the screen
func (*Dashboard) Generate ¶
┌──────────────────────────────────────────────────────────────────────────────────────────────────────┐ │┌────────────────────────────┐┌──────────────────────────────────────────────────────────────────────┐│ ││ ││ ││ ││ <day of week> ││ <HEADER> ││ ││ ││ ││ ││ <Day of Month> │└──────────────────────────────────────────────────────────────────────┘│ ││ ││ <BODY> ││ ││ ││ ││ ││ <Month> <Year> ││ ││ ││ ────────────────────────── ││ ││ ││ ││ ││ ││ <WEATHER> ││ ││ ││ <WEATHER> ││ ││ ││ <ICON> <TEMP> ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ │└────────────────────────────┘└──────────────────────────────────────────────────────────────────────┘│ └──────────────────────────────────────────────────────────────────────────────────────────────────────┘ Generate a dashboard
type EPDOptions ¶
type EPDOptions struct {
Device string
}
EPDOptions tells the dashboard how to connect to an Electronic Paper Display
type Options ¶
type Options func(d *Dashboard)
Options provides options for a new Dashboard
func WithWeatherAPI ¶
func WithWeatherAPI(weatherAPIOptions *WeatherAPIOptions) Options
WithWeatherAPI creates a custom dashboard with Weather API configured