Repository navigation
Widget Configuration Guide
This document explains how to configure the different widget types available in the dashboard.
Displays current date and time with customizable formatting options.
Configuration Options:
{
"showSeconds": true,
"format12Hour": false,
"showGreeting": true,
"showWeekday": true,
"showTimezone": true,
"dateFormat": "long",
"locale": "en-US",
"timezone": "America/New_York"
}Configuration Details:
-
showSeconds(boolean): Show seconds in time display -
format12Hour(boolean): Use 12-hour format with AM/PM -
showGreeting(boolean): Show greeting based on time of day -
showWeekday(boolean): Show day of the week in date -
showTimezone(boolean): Display timezone information -
dateFormat(string): "short" or "long" date format -
locale(string): Locale for formatting (e.g., "en-US", "es-ES") -
timezone(string): IANA timezone identifier
Displays current weather information using OpenWeatherMap API.
Configuration Options:
{
"apiKey": "your-openweathermap-api-key",
"location": "New York, NY",
"units": "metric"
}Configuration Details:
-
apiKey(string, required): OpenWeatherMap API key -
location(string, required): City name or "City, Country" -
units(string): "metric" (Celsius), "imperial" (Fahrenheit), or "kelvin"
Getting an API Key:
- Visit OpenWeatherMap
- Sign up for a free account
- Generate an API key
- Use the key in your widget configuration
Shows sunrise/sunset times and daylight progress.
Configuration Options:
{
"latitude": 40.7128,
"longitude": -74.0060,
"timezone": "America/New_York"
}Configuration Details:
-
latitude(number, required): Geographic latitude -
longitude(number, required): Geographic longitude -
timezone(string): IANA timezone identifier for time display
Finding Your Coordinates:
- Use LatLong.net or Google Maps
- Right-click on your location in Google Maps to get coordinates
- Go to
/configin your dashboard - Click the "Widgets" tab
- Click "Add Widget"
- Select widget type
- Choose the page where the widget will appear
- Configure widget settings (JSON format)
- Set display order
- Save the widget
Widget configurations are stored as JSON. Common patterns:
{
"setting1": "value1",
"setting2": true,
"setting3": 123
}Widgets are displayed in order of their display_order value:
- Lower numbers appear first
- Same numbers are ordered by creation time
- Negative numbers are allowed
Each widget is assigned to a specific page:
- Widgets only appear on their assigned page
- Each page can have multiple widgets
- Widgets are displayed above the service groups
{
"showSeconds": false,
"format12Hour": true,
"showGreeting": true
}{
"apiKey": "abc123def456",
"location": "London, UK",
"units": "metric"
}{
"latitude": 37.7749,
"longitude": -122.4194,
"timezone": "America/Los_Angeles"
}- Check that the widget is enabled
- Verify the page assignment is correct
- Check browser console for JavaScript errors
- Verify API key is correct and active
- Check location format (try just city name)
- Ensure API key has sufficient quota
- Verify latitude/longitude are correct decimals
- Check timezone identifier is valid
- Coordinates should be: -90 to 90 for latitude, -180 to 180 for longitude
- Validate JSON syntax using a JSON validator
- Check for missing quotes around strings
- Ensure boolean values are
true/false(lowercase) - Numbers should not be quoted
The widget system is extensible. The 3 current Widgets (Time/Date, Weather, and Sun Pos) will be before the search bar by default. Future Widgets (And current ones) will be able to be assigned to a group in order to organize better
Future widget types Planned:
- System status/monitoring
- RSS feed reader
- Calendar/events
- Network speed test
- Custom API integrations