Bookmarks are configured in the bookmarks.yaml file. They function much the same as Services, in how groups and lists work. They're just much simpler, smaller, and contain no extra features other than being a link out.
+
The design of homepage expects abbr to be 2 letters, but is not otherwise forced.
+
You can also use an icon for bookmarks similar to the options for service icons. If both icon and abbreviation are supplied, the icon takes precedence.
+
By default, the description will use the hostname of the link, but you can override it with a custom description.
+
---
+-Developer:
+-Github:
+-abbr:GH
+href:https://github.com/
+
+-Social:
+-Reddit:
+-icon:reddit.png
+href:https://reddit.com/
+description:The front page of the internet
+
+-Entertainment:
+-YouTube:
+-abbr:YT
+href:https://youtube.com/
+
As of version v0.6.30 homepage supports adding your own custom css & javascript. Please do so at your own risk.
+
To add custom css simply edit the custom.css file under your config directory, similarly for javascript you would edit custom.js. You can then target elements in homepage with various classes / ids to customize things to your liking.
+
You can also set a specific id for a service or bookmark to target with your custom css or javascript, e.g.
Since Docker supports connecting with TLS and client certificate authentication, you can include TLS details when connecting to the HTTP API. Further details of setting up Docker to accept TLS connections, and generation of the keys and certs can be found in the Docker documentation. The file entries are relative to the config directory (location of docker.yaml file).
Due to security concerns with exposing the docker socket directly, you can use a docker-socket-proxy container to expose the docker socket on a more restricted and secure API.
+
Here is an example docker-compose file that will expose the docker socket, and then connect to it from the homepage container:
+
dockerproxy:
+image:ghcr.io/tecnativa/docker-socket-proxy:latest
+container_name:dockerproxy
+environment:
+-CONTAINERS=1# Allow access to viewing containers
+-SERVICES=1# Allow access to viewing services (necessary when using Docker Swarm)
+-TASKS=1# Allow access to viewing tasks (necessary when using Docker Swarm)
+-POST=0# Disallow any POST operations (effectively read-only)
+ports:
+-127.0.0.1:2375:2375
+volumes:
+-/var/run/docker.sock:/var/run/docker.sock:ro# Mounted as read-only
+restart:unless-stopped
+
+homepage:
+image:ghcr.io/gethomepage/homepage:latest
+container_name:homepage
+volumes:
+-/path/to/config:/app/config
+ports:
+-3000:3000
+restart:unless-stopped
+
+
Then, inside of your docker.yaml settings file, you'd configure the docker instance like so:
+
my-docker:
+host:dockerproxy
+port:2375
+
+
Use protocol: https if you’re connecting through a reverse proxy (e.g., Traefik) that serves the Docker API over HTTPS:
Note: This does not require TLS certificates if the proxy handles encryption. Do not use protocol: https unless you’re sure the target host supports HTTPS.
+
+
You can also include headers for the connection, for example, if you are using a reverse proxy that requires authentication:
If you're using docker run, this would be -v /var/run/docker.sock:/var/run/docker.sock.
+
Then, inside of your docker.yaml settings file, you'd configure the docker instance like so:
+
my-docker:
+socket:/var/run/docker.sock
+
+
Services
+
Once you've configured your docker instances, you can then apply them to your services, to get stats and status reporting shown.
+
Inside of the service you'd like to connect to docker:
+
-Emby:
+icon:emby.png
+href:"http://emby.home/"
+description:Media server
+server:my-docker# The docker server that was configured
+container:emby# The name of the container you'd like to connect
+
+
Automatic Service Discovery
+
Homepage features automatic service discovery for containers with the proper labels attached, all configuration options can be applied using dot notation, beginning with homepage.
+
Below is an example of the same service entry shown above, as docker labels.
When your Docker instance has been properly configured, this service will be automatically discovered and added to your Homepage. You do not need to specify the server or container values, as they will be automatically inferred.
+
When using docker swarm use deploy/labels
+
Widgets
+
You may also configure widgets, along with the standard service entry, again, using dot notation.
You can add specify fields for e.g. the CustomAPI widget by using array-style dot notation:
+
labels:
+-homepage.group=Media
+-homepage.name=Emby
+-homepage.icon=emby.png
+-homepage.href=http://emby.home/
+-homepage.description=Media server
+-homepage.widget.type=customapi
+-homepage.widget.url=http://argus.service/api/v1/service/summary/emby
+-homepage.widget.mappings[0].label=Deployed Version
+-homepage.widget.mappings[0].field.status=deployed_version
+-homepage.widget.mappings[1].label=Latest Version
+-homepage.widget.mappings[1].field.status=latest_version
+
+
Docker Swarm
+
Docker swarm is supported and Docker services are specified with the same server and container notation. To enable swarm support you will need to include a swarm setting in your docker.yaml, e.g.
For the automatic service discovery to discover all services it is important that homepage should be deployed on a manager node. Set deploy requirements to the master node in your stack yaml config, e.g.
In order to detect every service within the Docker swarm it is necessary that service labels should be used and not container labels. Specify the homepage labels as:
Homepage uses YAML for configuration, YAML stands for "YAML Ain't Markup Language.". It's a human-readable data serialization format that's a superset of JSON. Great for config files, easy to read and write. Supports complex data types like lists and objects. Indentation matters. If you already use Docker Compose, you already use YAML.
+
Here are some tips when writing YAML:
+
+
Use Indentation Carefully: YAML relies on indentation, not brackets.
+
Avoid Tabs: Stick to spaces for indentation to avoid parsing errors. 2 spaces are common.
+
Quote Strings: Use single or double quotes for strings with special characters, this is especially important for API keys.
+
Key-Value Syntax: Use key: value format. Colon must be followed by a space.
+
Validate: Always validate your YAML with a linter before deploying.
Information widgets are widgets that provide information about your system or environment and are displayed at the top of the homepage. You can find a list of all available info widgets under the Info Widgets section.
+
Info widgets are defined in the widgets.yaml
+
Each widget has its own configuration options, which are detailed in the widget's documentation.
+
Layout
+
Info widgets are displayed in the order they are defined in the widgets.yaml file. You can change the order by moving the widgets around in the file. However, some widgets (weather, search and datetime) are aligned to the right side of the screen which can affect the layout of the widgets.
+
Adding A Link
+
You can add a link to an info widget such as the logo or text widgets by adding an href option, for example:
+
logo:
+href:https://example.com
+target:_blank# Optional, can be set in settings
+
Once the Kubernetes connection is configured, individual services can be configured to pull statistics. Only CPU and Memory are currently supported.
+
Inside of the service you'd like to connect to a pod:
+
-Emby:
+icon:emby.png
+href:"http://emby.home/"
+description:Media server
+namespace:media# The kubernetes namespace the app resides in
+app:emby# The name of the deployed app
+
+
The app field is used to create a label selector, in this example case it would match pods with the label: app.kubernetes.io/name=emby.
+
Sometimes this is insufficient for complex or atypical application deployments. In these cases, the podSelector field can be used. Any field selector can be used with it, so it allows for some very powerful selection capabilities.
+
For instance, it can be utilized to roll multiple underlying deployments under one application to see a high-level aggregate:
A blank string as a podSelector does not deactivate it, but will actually select all pods in the namespace. This is a useful way to capture the resource usage of a complex application siloed to a single namespace, like Longhorn.
+
+
Automatic Service Discovery
+
Homepage features automatic service discovery by Ingress annotations. All configuration options can be applied using typical annotation syntax, beginning with gethomepage.dev/.
When the Kubernetes cluster connection has been properly configured, this service will be automatically discovered and added to your Homepage. You do not need to specify the namespace or app values, as they will be automatically inferred.
+
If you are using multiple instances of homepage, an instance annotation can be specified to limit services to a specific instance. If no instance is provided, the service will be visible on all instances.
+
If you have a single service that needs to be shown on multiple specific instances of homepage (but not on all of them), the service can be annotated by multiple instance.name annotations, where name can be the names of your specific multiple homepage instances. For example, a service that is annotated with gethomepage.dev/instance.public: "" and gethomepage.dev/instance.internal: "" will be shown on public and internal homepage instances.
+
Use the gethomepage.dev/pod-selector selector to specify the pod used for the health check. For example, a service that is annotated with gethomepage.dev/pod-selector: app.kubernetes.io/name=deployment would link to a pod with the label app.kubernetes.io/name: deployment.
+
Traefik IngressRoute support
+
Homepage can also read ingresses defined using the Traefik IngressRoute custom resource definition. Due to the complex nature of Traefik routing rules, it is required for the gethomepage.dev/href annotation to be set:
If the href attribute is not present, Homepage will ignore the specific IngressRoute.
+
Gateway API HttpRoute support
+
Homepage also features automatic service discovery for Gateway API. Service definitions are read by annotating the HttpRoute custom resource definition and are indentical to the Ingress example as defined in Automatic Service Discovery.
+
To enable Gateway API HttpRoute update kubernetes.yaml to include:
+
gateway: true # enable gateway-api
+
+
Using the unoffocial helm chart?
+
If you are using the unofficial helm chart ensure that the ClusterRole has required permissions for gateway.networking.k8s.io.
Similarly to Docker service discovery, there currently is no rigid ordering to discovered services and discovered services will be displayed above those specified in the services.yaml.
+
Adding extra configuration files
+
Some Homepage features (for example, Proxmox) require additional configuration files such as proxmox.yaml.
+When running Homepage on Kubernetes, these files must be provided via a ConfigMap and mounted into the container at /app/config.
The Proxmox connection is configured in the proxmox.yaml file. See Create token section below for details on how to generate the required API token.
+To configure multiple nodes, ensure the key name in the proxmox.yaml matches the proxmoxNode field used in your service configuration.
+
pve:# must match your actual Proxmox node name
+url:https://proxmox.host.or.ip:8006
+token:username@pam!Token ID
+secret:secret
+
+
Services
+
Once the Proxmox connection is configured, individual services can be configured to pull statistics of VMs or LXCs. Only CPU and Memory are currently supported.
+
Configuration Options
+
+
proxmoxNode: The name of the Proxmox node where your VM/LXC is running, must match with a node configured in the proxmox.yaml
+
proxmoxVMID: The ID of the Proxmox VM or LXC container
+
proxmoxType: (Optional) The type of Proxmox virtual machine. Defaults to qemu for VMs, but can be set to lxc for LXC containers
+
+
Examples
+
For a QEMU VM (default):
+
-HomeAssistant:
+icon:home-assistant.png
+href:http://homeassistant.local/
+description:Home automation
+proxmoxNode:pve
+proxmoxVMID:101
+# proxmoxType: qemu # This is the default, so it can be omitted
+
+
For an LXC container:
+
-Nginx:
+icon:nginx.png
+href:http://nginx.local/
+description:Web server
+proxmoxNode:pve
+proxmoxVMID:200
+proxmoxType:lxc
+
+
Create token
+
You will need to generate an API Token for new or an existing user. Here is an example of how to do this for a new user.
+
+
Navigate to the Proxmox portal, click on Datacenter
+
Expand Permissions, click on Groups
+
Click the Create button
+
Name the group something informative, like api-ro-users
+
Click on the Permissions "folder"
+
Click Add -> Group Permission
+
Path: /
+
Group: group from bullet 4 above
+
Role: PVEAuditor
+
Propagate: Checked
+
+
+
Expand Permissions, click on Users
+
Click the Add button
+
User name: something informative like api
+
Realm: Linux PAM standard authentication
+
Group: group from bullet 4 above
+
+
+
Expand Permissions, click on API Tokens
+
Click the Add button
+
User: user from bullet 8 above
+
Token ID: something informative like the application or purpose like homepage
Multiple widgets per service are not yet supported with Kubernetes ingress annotations.
+
+
Field Visibility
+
Each widget can optionally provide a list of which fields should be visible via the fields widget property. If no fields are specified, then all fields will be displayed. The fields property must be a valid YAML array of strings. As an example, here is the entry for Sonarr showing only a couple of fields.
+
In all cases a widget will work and display all fields without specifying the fields property.
Widgets can tint their metric block text automatically based on rules defined alongside the service. Attach a highlight section to the widget configuration and map each block to one or more numeric or string rules using the field key (for example, queued, lan_users).
Supported numeric operators for the when property are gt, gte, lt, lte, eq, ne, between, and outside. String rules support equals, includes, startsWith, endsWith, and regex. Each rule can be inverted with negate: true, and string rules may pass caseSensitive: true or custom regex flags. The highlight engine does its best to coerce formatted values, but you will get the most reliable results when you pass plain numbers or strings into <Block>.
+
Descriptions
+
Services may have descriptions,
+
-Group A:
+-Service A:
+href:http://localhost/
+description:This is my service
+
+-Group B:
+-Service B:
+href:http://localhost/
+description:This is another service
+
+
+
Icons
+
Services may have an icon attached to them, you can use icons from Dashboard Icons automatically, by passing the name of the icon, with, or without .png, .webp or .svg to specify the desired version.
selfh.st/icons with sh-XX to use the png version or sh-XX.svg/png/webp for a specific version
+
+
You can specify a custom color for mdi and si icons by adding a hex color code as a suffix e.g. mdi-XX-#f0d453 or si-XX-#a712a2.
+
To use a remote icon, use the absolute URL (e.g. https://...).
+
To use a local icon, first create a Docker mount to /app/public/icons and then reference your icon as /icons/myicon.png. You will need to restart the container when adding new icons.
+
+
Warning
+
Material Design Icons for brands were deprecated and may be removed in the future. Using Simple Icons for brand icons will prevent any issues if / when the Material Design Icons are removed.
Services may have an optional ping property that allows you to monitor the availability of an external host. As of v0.8.0, the ping feature attempts to use a true (ICMP) ping command on the underlying host. Currently, only IPv4 is supported.
+
+
Note
+
Because ping uses the ping command on the underlying host, in some cases you may need to install e.g. the iputils-ping package on the host system.
You can also apply different styles to the ping indicator by using the statusStyle property, see settings.
+
Site Monitor
+
Services may have an optional siteMonitor property (formerly ping) that allows you to monitor the availability of a URL you chose and have the response time displayed. You do not need to set your monitor URL equal to your href or ping URL.
+
+
Note
+
The site monitor feature works by making an http HEAD request to the URL, and falls back to GET in case that fails. It will not, for example, login if the URL requires auth or is behind e.g. Authelia. In the case of a reverse proxy and/or auth this usually requires the use of an 'internal' URL to make the site monitor feature correctly display status.
You can also apply different styles to the site monitor indicator by using the statusStyle property, see settings.
+
Docker Integration
+
Services may be connected to a Docker container, either running on the local machine, or a remote machine.
+
-Group A:
+-Service A:
+href:http://localhost/
+description:This is my service
+server:my-server
+container:my-container
+
+-Group B:
+-Service B:
+href:http://localhost/
+description:This is another service
+server:other-server
+container:other-container
+
+
+
Clicking on the status label of a service with Docker integration enabled will expand the container stats, where you can see CPU, Memory, and Network activity.
+
+
Note
+
This can also be controlled with showStats. See show docker stats for more information
+
+
+
Service Integrations
+
Services may also have a service widget (or integration) attached to them, this works independently of the Docker integration.
+
You can find information and configuration for each of the supported integrations on the Widgets page.
+
Here is an example of a Radarr & Sonarr service, with their respective integrations.
The settings.yaml file allows you to define application level options. For changes made to this file to take effect, you will need to regenerate the static HTML, this can be done by clicking the refresh icon in the bottom right of the page.
+
Title
+
You can customize the title of the page if you'd like.
+
title:My Awesome Homepage
+
+
Description
+
You can customize the description of the page if you'd like.
+
description:A description of my awesome homepage
+
+
Start URL
+
You can customize the start_url as required for installable apps. The default is "/".
+
startUrl:https://custom.url
+
+
Background Image
+
+
Heads Up!
+
You will need to restart the container any time you add new images, this is a limitation of the Next.js static site server.
+
+
+
Heads Up!
+
Do not create a bind mount to the entire /app/public/ directory.
+
+
If you'd like to use a background image instead of the solid theme color, you may provide a full URL to an image of your choice.
You can specify filters to apply over your background image for blur, saturation and brightness as well as opacity to blend with the background color. The first three filter settings use tailwind CSS classes, see notes below regarding the options for each. You do not need to specify all options.
+
background:
+image:/images/background.png
+blur:sm# sm, "", md, xl... see https://tailwindcss.com/docs/backdrop-blur
+saturate:50# 0, 50, 100... see https://tailwindcss.com/docs/backdrop-saturate
+brightness:50# 0, 50, 75... see https://tailwindcss.com/docs/backdrop-brightness
+opacity:50# 0-100
+
+
Card Background Blur
+
You can apply a blur filter to the service & bookmark cards. Note this option is incompatible with the background blur, saturate and brightness filters.
+
cardBlur:xs# xs, md, etc... see https://tailwindcss.com/docs/backdrop-blur
+
+
Favicon
+
If you'd like to use a custom favicon instead of the included one, you may provide a full URL to an image of your choice.
+
favicon:https://www.google.com/favicon.ico
+
+
Or you may pass the path to a local image relative to the /app/public directory. See Background Image for more detailed information on how to provide your own files.
+
Theme
+
You can configure a fixed theme (and disable the theme switcher) by passing the theme option, like so:
+
theme:dark# or light
+
+
Color Palette
+
You can configure a fixed color palette (and disable the palette switcher) by passing the color option, like so:
Any unspecified level falls back to the built-in defaults.
+
Layout
+
You can configure service and bookmarks sections to be either "column" or "row" based layouts, like so:
+
Assuming you have a group named Media in your services.yaml or bookmarks.yaml file,
+
layout:
+Media:
+style:row
+columns:4
+
+
As an example, this would produce the following layout:
+
+
Icons-Only Layout
+
You can also specify the an icon-only layout for bookmarks, either like so:
+
layout:
+Media:
+iconsOnly:true
+
+
or globally:
+
bookmarksStyle:icons
+
+
Sorting
+
Service groups and bookmark groups can be mixed in order, but should use different group names. If you do not specify any bookmark groups they will all show at the bottom of the page.
+
Using the same name for a service and bookmark group can cause unexpected behavior like a bookmark group being hidden
+
Groups will sort based on the order in the layout block. You can also mix in groups defined by docker labels, e.g.
If your services config has nested groups, you can apply settings to these groups by nesting them in the layout block
+and using the same settings. For example
+
layout:
+Group A:
+style:row
+columns:4
+Group C:
+style:row
+columns:2
+Nested Group A:
+style:row
+columns:2
+Nested Group B:
+style:row
+columns:2
+
+
Headers
+
You can hide headers for each section in the layout as well by passing header as false, like so:
You can also add an icon to a category under the layout setting similar to the options for service icons, e.g.
+
Home Management & Info:
+icon:home-assistant.png
+Server Tools:
+icon:https://cdn-icons-png.flaticon.com/512/252/252035.png
+...
+
+
Icon Style
+
The default style for icons (e.g. icon: mdi-XXXX) is a gradient, or you can specify that prefixed icons match your theme with a 'flat' style using the setting below.
+More information about prefixed icons can be found in options for service icons.
+
iconStyle:theme# optional, defaults to gradient
+
+
Tabs
+
Version 0.6.30 introduced a tabbed view to layouts which can be optionally specified in the layout. Tabs is only active if you set the tab field on at least one layout group.
+
Tabs are sorted based on the order in the layout block. If a group has no tab specified (and tabs are set on other groups), services and bookmarks will be shown on all tabs.
+
Every tab can be accessed directly by visiting Homepage URL with #Group (name lowercase and URI-encoded) at the end of the URL.
+
For example, the following would create four tabs:
+
layout:
+...
+Bookmark Group on First Tab:
+tab:First
+
+First Service Group:
+tab:First
+style:row
+columns:4
+
+Second Service Group:
+tab:Second
+columns:4
+
+Third Service Group:
+tab:Third
+style:row
+
+Bookmark Group on Fourth Tab:
+tab:Fourth
+
+Service Group on every Tab:
+style:row
+columns:4
+
+
Full Width
+
You can make homepage take up the entire window width by adding:
+
fullWidth:true
+
+
Maximum Group Columns
+
You can set the maximum number of columns of groups on larger screen sizes (note this is only for groups with the default style: columns, not groups with style: row) by adding:
+
maxGroupColumns:8# default is 4 for services, 6 for bookmarks, max 8
+
+
By default homepage will max out at 4 columns for services and 6 for bookmarks, thus the minimum for this setting is 5. Of course, if you're setting this to higher numbers, you may want to consider enabling the fullWidth option as well.
+
If you want to set the maximum columns for bookmark groups separately, you can do so by adding:
+
maxBookmarkGroupColumns:6# default is 6, max 8
+
+
Collapsible sections
+
You can disable the collapsible feature of services & bookmarks by adding:
+
disableCollapse:true
+
+
By default the feature is enabled.
+
Initially collapsed sections
+
You can initially collapse sections by adding the initiallyCollapsed option to the layout group.
+
layout:
+Section A:
+initiallyCollapsed:true
+
+
This can also be set globaly using the groupsInitiallyCollapsed option.
+
groupsInitiallyCollapsed:true
+
+
The value set on a group will overwrite the global setting.
+
By default the feature is disabled.
+
Use Equal Height Cards
+
You can enable equal height cards for groups of services, this will make all cards in a row the same height.
+
Global setting in settings.yaml:
+
useEqualHeights:true
+
+
Per layout group in settings.yaml:
+
useEqualHeights:false
+layout:
+...
+Group Name:
+useEqualHeights:true# overrides global setting
+
+
By default the feature is disabled
+
Header Style
+
There are currently 4 options for header styles, you can see each one below.
+
+
headerStyle:underlined# default style
+
+
+
+
headerStyle:boxed
+
+
+
+
headerStyle:clean
+
+
+
+
headerStyle:boxedWidgets
+
+
Base URL
+
In some proxy configurations, it may be necessary to set the documents base URL. You can do this by providing a base value, like so:
+
base:http://host.local/homepage
+
+
The URL must be a full, absolute URL, or it will be ignored by the browser.
+
Language
+
Set your desired language using:
+
language:fr
+
+
Currently supported languages: ca, de, en, es, fr, he, hr, hu, it, nb-NO, nl, pt, ru, sv, vi, zh-CN, zh-Hant
+
You can also specify locales e.g. for the DateTime widget, e.g. en-AU, en-GB, etc.
+
Link Target
+
Changes the behaviour of links on the homepage,
+
target:_blank# Possible options include _blank, _self, and _top
+
+
Use _blank to open links in a new tab, _self to open links in the same tab, and _top to open links in a new window.
+
This can also be set for individual services. Note setting this at the service level overrides any setting in settings.json, e.g.:
You can use the 'Quick Launch' feature to search services, perform a web search or open a URL. To use Quick Launch, just start typing while on your homepage (as long as the search widget doesn't have focus).
+
+
There are a few optional settings for the Quick Launch feature:
+
+
searchDescriptions: which lets you control whether item descriptions are included in searches. This is false by default. When enabled, results that match the item name will be placed above those that only match the description.
+
hideInternetSearch: disable automatically including the currently-selected web search (e.g. from the widget) as a Quick Launch option. This is false by default, enabling the feature.
+
showSearchSuggestions: show search suggestions for the internet search. If this is not specified then the setting will be inherited from the search widget. If it is not specified there either, it will default to false. For custom providers the suggestionUrl needs to be set in order for this to work.
+
provider: search engine provider. If none is specified it will try to use the provider set for the Search Widget, if neither are present then internet search will be disabled.
+
hideVisitURL: disable detecting and offering an option to open URLs. This is false by default, enabling the feature.
+
mobileButtonPosition: enables and sets the position of the mobile quicklaunch button. Options are top-left, top-right, bottom-left, bottom-right. This is empty by default, disabling the feature.
By default the release version is displayed at the bottom of the page. To hide this, use the hideVersion setting, like so:
+
hideVersion:true
+
+
You can disable checking for new versions from GitHub (enabled by default) with:
+
disableUpdateCheck:true
+
+
Log Path
+
By default the homepage logfile is written to the a logs subdirectory of the config folder. In order to customize this path, you can set the logpath setting. A logs folder will be created in that location where the logfile will be written.
+
logpath:/logfile/path
+
+
By default, logs are sent both to stdout and to a file at the path specified. This can be changed by setting the LOG_TARGETS environment variable to one of both (default), stdout or file.
+
Show Container Stats
+
You can show all docker or proxmox stats expanded in settings.yaml:
+
showStats:true
+
+
or per-service (services.yaml) with:
+
-Example Service:
+...
+showStats:true
+
+
If you have both set the per-service settings take precedence.
+
Status Style
+
You can choose from the following styles for docker or k8s status, site monitor and ping: dot or basic
+
+
The default is no value, and displays the monitor and ping response time in ms and the docker / k8s container status
+
dot shows a green dot for a successful monitor ping or healthy status.
+
basic shows either UP or DOWN for monitor & ping
+
+
For example:
+
statusStyle:"dot"
+
+
or per-service (services.yaml) with:
+
-Example Service:
+...
+statusStyle:'dot'
+
+
If you have both set, the per-service settings take precedence.
+
Instance Name
+
Name used by automatic docker service discovery to differentiate between multiple homepage instances.
+
For example:
+
instanceName:public
+
+
Hide Widget Error Messages
+
Hide the visible API error messages either globally in settings.yaml:
A modern, fully static, fast, secure fully proxied, highly customizable application dashboard with integrations for over 100 services and translations into multiple languages. Easily configured via YAML files or through docker label discovery.
services:
+homepage:
+image:ghcr.io/gethomepage/homepage:latest
+container_name:homepage
+ports:
+-3000:3000
+volumes:
+-/path/to/config:/app/config# Make sure your local config directory exists
+-/var/run/docker.sock:/var/run/docker.sock# (optional) For docker integrations
+environment:
+HOMEPAGE_ALLOWED_HOSTS:gethomepage.dev# required, may need port. See gethomepage.dev/installation/#homepage_allowed_hosts
+
+
Running as non-root
+
By default, the Homepage container runs as root. Homepage also supports running your container as non-root via the standard PUID and PGID environment variables. When using these variables, make sure that any volumes mounted in to the container have the correct ownership and permissions set.
+
Using the docker socket directly is not the recommended method of integration and requires either running homepage as root or that the user be part of the docker group
+
In the docker compose example below, the environment variables $PUID and $PGID are set in a .env file.
+
services:
+homepage:
+image:ghcr.io/gethomepage/homepage:latest
+container_name:homepage
+ports:
+-3000:3000
+volumes:
+-/path/to/config:/app/config# Make sure your local config directory exists
+-/var/run/docker.sock:/var/run/docker.sock# (optional) For docker integrations, see alternative methods
+environment:
+HOMEPAGE_ALLOWED_HOSTS:gethomepage.dev# required, may need port. See gethomepage.dev/installation/#homepage_allowed_hosts
+PUID:$PUID
+PGID:$PGID
+
You have a few options for deploying homepage, depending on your needs. We offer docker images for a majority of platforms. You can also install and run homepage from source if Docker is not your thing. It can even be installed on Kubernetes with Helm.
+
+
Info
+
Please note that when using features such as widgets, Homepage can access personal information (for example from your home automation system) and Homepage currently does not (and is not planned to) include any authentication layer itself. Thus, we recommend homepage be deployed behind a reverse proxy including authentication, SSL etc, and / or behind a VPN.
As of v1.0 there is one required environment variable to access homepage via a URL other than localhost, HOMEPAGE_ALLOWED_HOSTS. The setting helps prevent certain kinds of attacks when retrieving data from the homepage API proxy.
+
The value is a comma-separated (no spaces) list of allowed hosts (sometimes with the port) that can host your homepage install. See the docker, kubernetes and source installation pages for more information about where / how to set the variable.
+
localhost:3000 and 127.0.0.1:3000 are always included, but you can add a domain or IP address to this list to allow that host such as HOMEPAGE_ALLOWED_HOSTS=gethomepage.dev,192.168.1.2:1234, etc.
+
If you are seeing errors about host validation, check the homepage logs and ensure that the host exactly as output in the logs is in the HOMEPAGE_ALLOWED_HOSTS list.
+
This can be disabled by setting HOMEPAGE_ALLOWED_HOSTS to * but this is not recommended.
If you don't want to use the unofficial Helm chart, you can also create your own Kubernetes manifest(s) and apply them with kubectl apply -f filename.yaml.
+
Here's a working example of the resources you need:
If you plan to deploy homepage with a replica count greater than 1, you may
+want to consider enabling sticky sessions on the homepage route. This will
+prevent unnecessary re-renders on page loads and window / tab focusing. The
+procedure for enabling sticky sessions depends on your Ingress controller. Below
+is an example using Traefik as the Ingress controller.
When you upload a new image into the /images folder, you will need to restart the container for it to show up in the WebUI. Please see the service icons for more information.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/layouts/custom.yml b/layouts/custom.yml
new file mode 100644
index 000000000..d8e36c107
--- /dev/null
+++ b/layouts/custom.yml
@@ -0,0 +1,252 @@
+# Copyright (c) 2016-2024 Martin Donath
+
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+# IN THE SOFTWARE.
+
+# -----------------------------------------------------------------------------
+# Configuration
+# -----------------------------------------------------------------------------
+
+# Definitions
+definitions:
+ # Background image
+ - &background_image >-
+ {{ layout.background_image | x }}
+
+ # Background color (default: indigo)
+ - &background_color >-
+ {%- if layout.background_color -%}
+ {{ layout.background_color }}
+ {%- else -%}
+ {%- set palette = config.theme.palette or {} -%}
+ {%- if not palette is mapping -%}
+ {%- set list = palette | selectattr("primary") | list + palette -%}
+ {%- set palette = list | first -%}
+ {%- endif -%}
+ {%- set primary = palette.get("primary", "indigo") -%}
+ {%- set primary = primary.replace(" ", "-") -%}
+ {{ {
+ "red": "#ef5552",
+ "pink": "#e92063",
+ "purple": "#ab47bd",
+ "deep-purple": "#7e56c2",
+ "indigo": "#4051b5",
+ "blue": "#2094f3",
+ "light-blue": "#02a6f2",
+ "cyan": "#00bdd6",
+ "teal": "#009485",
+ "green": "#4cae4f",
+ "light-green": "#8bc34b",
+ "lime": "#cbdc38",
+ "yellow": "#ffec3d",
+ "amber": "#ffc105",
+ "orange": "#ffa724",
+ "deep-orange": "#ff6e42",
+ "brown": "#795649",
+ "grey": "#757575",
+ "blue-grey": "#546d78",
+ "black": "#000000",
+ "white": "#ffffff"
+ }[primary] or "#4051b5" }}
+ {%- endif -%}
+
+ # Text color (default: white)
+ - &color >-
+ {%- if layout.color -%}
+ {{ layout.color }}
+ {%- else -%}
+ {%- set palette = config.theme.palette or {} -%}
+ {%- if not palette is mapping -%}
+ {%- set list = palette | selectattr("primary") | list + palette -%}
+ {%- set palette = list | first -%}
+ {%- endif -%}
+ {%- set primary = palette.get("primary", "indigo") -%}
+ {%- set primary = primary.replace(" ", "-") -%}
+ {{ {
+ "red": "#ffffff",
+ "pink": "#ffffff",
+ "purple": "#ffffff",
+ "deep-purple": "#ffffff",
+ "indigo": "#ffffff",
+ "blue": "#ffffff",
+ "light-blue": "#ffffff",
+ "cyan": "#ffffff",
+ "teal": "#ffffff",
+ "green": "#ffffff",
+ "light-green": "#ffffff",
+ "lime": "#000000",
+ "yellow": "#000000",
+ "amber": "#000000",
+ "orange": "#000000",
+ "deep-orange": "#ffffff",
+ "brown": "#ffffff",
+ "grey": "#ffffff",
+ "blue-grey": "#ffffff",
+ "black": "#ffffff",
+ "white": "#000000"
+ }[primary] or "#ffffff" }}
+ {%- endif -%}
+
+ # Font family (default: Roboto)
+ - &font_family >-
+ {%- if layout.font_family -%}
+ {{ layout.font_family }}
+ {%- elif config.theme.font is mapping -%}
+ {{ config.theme.font.get("text", "Roboto") }}
+ {%- else -%}
+ Roboto
+ {%- endif -%}
+
+ # Font variant
+ - &font_variant >-
+ {%- if layout.font_variant -%}
+ {{ layout.font_variant }}
+ {%- endif -%}
+
+ # Site name
+ - &site_name >-
+ {{ config.site_name }}
+
+ # Page title
+ - &page_title >-
+ {%- if layout.title -%}
+ {{ layout.title }}
+ {%- else -%}
+ {{ page.meta.get("title", page.title) }}
+ {%- endif -%}
+
+ # Page title with site name
+ - &page_title_with_site_name >-
+ {%- if not page.is_homepage -%}
+ {{ page.meta.get("title", page.title) }} - {{ config.site_name }}
+ {%- else -%}
+ {{ page.meta.get("title", page.title) }}
+ {%- endif -%}
+
+ # Page description
+ - &page_description >-
+ {%- if layout.description -%}
+ {{ layout.description }}
+ {%- else -%}
+ {{ page.meta.get("description", config.site_description) | x }}
+ {%- endif -%}
+
+ # Page icon
+ - &page_icon >-
+ {{ page.meta.icon | x }}
+
+ # Logo
+ - &logo >-
+ {%- if layout.logo -%}
+ {{ layout.logo }}
+ {%- elif config.theme.logo -%}
+ {{ config.docs_dir }}/{{ config.theme.logo }}
+ {%- endif -%}
+
+ # Logo (icon)
+ - &logo_icon >-
+ {%- if not layout.logo and config.theme.icon -%}
+ {{ config.theme.icon.logo | x }}
+ {%- endif -%}
+
+# Meta tags
+tags:
+ # Open Graph
+ og:type: website
+ og:title: *page_title_with_site_name
+ og:description: *page_description
+ og:image: "{{ image.url }}"
+ og:image:type: "{{ image.type }}"
+ og:image:width: "{{ image.width }}"
+ og:image:height: "{{ image.height }}"
+ og:url: "{{ page.canonical_url }}"
+
+ # Twitter
+ twitter:card: summary_large_image
+ twitter:title: *page_title_with_site_name
+ twitter:description: *page_description
+ twitter:image: "{{ image.url }}"
+
+# -----------------------------------------------------------------------------
+# Specification
+# -----------------------------------------------------------------------------
+
+# Card size and layers
+size: { width: 1200, height: 630 }
+layers:
+ # Background
+ - background:
+ image: *background_image
+ color: *background_color
+
+ # Page icon
+ - size: { width: 630, height: 630 }
+ offset: { x: 800, y: 0 }
+ icon:
+ value: *page_icon
+ color: "#FFFFFF20"
+
+ # Logo
+ - size: { width: 64, height: 64 }
+ offset: { x: 64, y: 64 }
+ background:
+ image: *logo
+ icon:
+ value: *logo_icon
+ color: *color
+
+ # Site name
+ - size: { width: 768, height: 42 }
+ offset: { x: 160, y: 74 }
+ typography:
+ content: *site_name
+ color: *color
+ font:
+ family: *font_family
+ variant: *font_variant
+ style: Bold
+
+ # Page title
+ - size: { width: 864, height: 256 }
+ offset: { x: 62, y: 192 }
+ typography:
+ content: *page_title
+ align: start
+ color: *color
+ line:
+ amount: 3
+ height: 1.25
+ font:
+ family: *font_family
+ variant: *font_variant
+ style: Bold
+
+ # Page description
+ - size: { width: 864, height: 64 }
+ offset: { x: 64, y: 512 }
+ typography:
+ content: *page_description
+ align: start
+ color: *color
+ line:
+ amount: 2
+ height: 1.5
+ font:
+ family: *font_family
+ variant: *font_variant
+ style: Regular
diff --git a/more/coverage/index.html b/more/coverage/index.html
new file mode 100644
index 000000000..09a15b63b
--- /dev/null
+++ b/more/coverage/index.html
@@ -0,0 +1,7117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Community Coverage - Homepage
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
As of v0.7.2 homepage migrated from benphelps/homepage to an "organization" repository located at gethomepage/homepage. The reason for this was to setup the project for longevity and allow for community maintenance.
+
Migrating your installation should be as simple as changing image: ghcr.io/benphelps/homepage:latest to image: ghcr.io/gethomepage/homepage:latest.
If you would like to support the Homepage project, you can do so by becoming a sponsor. Your sponsorship helps to keep the project running and growing.
These companies help the Homepage project by providing services, tools, and resources.
+
+
+
+
+ DigitalOcean provides the GitHub Actions runner for the project. Dramatically speeding up the CI/CD process.
+
+
+
+
+
+ Crowdin provides the translation platform for the project. Making it easy to translate the project into multiple languages.
+
+
+
+
+
+ JetBrains provides the project with free licenses for their awesome tools.
+
+
+
+
+
+ BuySellAds provides the project with the ability to monetize the website, with high quality ads from the CarbonAds network. All earnings are sent directly to the projects OpenCollective.
+
Homepage is developed in English, component contributions must be in English. All translations are community provided, so a huge thanks go out to all those who have helped out so far!
+
Support Translations
+
If you'd like to lend a hand in translating Homepage into more languages, or to improve existing translations, the process is very simple:
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/more/troubleshooting/index.html b/more/troubleshooting/index.html
new file mode 100644
index 000000000..a47094f06
--- /dev/null
+++ b/more/troubleshooting/index.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+ Redirecting...
+
+
+
+
+
+You're being redirected to a new destination.
+
+
diff --git a/overrides/main.html b/overrides/main.html
new file mode 100644
index 000000000..7150c1b78
--- /dev/null
+++ b/overrides/main.html
@@ -0,0 +1,52 @@
+{% extends "base.html" %}
+
+{% block header %}
+
+ {% include "partials/header.html" %}
+{% endblock %}
+
+{% block site_nav %}
+
+ {% if nav %}
+ {% if page.meta and page.meta.hide %}
+ {% set hidden = "hidden" if "navigation" in page.meta.hide %}
+ {% endif %}
+
+
+
+ {% include "partials/nav.html" %}
+ {% if 'widgets/' not in page.url and 'more/' not in page.url %}
+
+ {% endif %}
+
+
+
+ {% endif %}
+
+
+ {% if "toc.integrate" not in features %}
+ {% if page.meta and page.meta.hide %}
+ {% set hidden = "hidden" if "toc" in page.meta.hide %}
+ {% endif %}
+
+
+
+ {% include "partials/toc.html" %}
+ {% if 'widgets/' in page.url or 'more/' in page.url %}
+
+ {% endif %}
+
A modern, fully static, fast, secure fully proxied, highly customizable application dashboard with integrations for over 100 services and translations into multiple languages. Easily configured via YAML files or through docker label discovery.
Homepage uses YAML for configuration, YAML stands for \"YAML Ain't Markup Language.\". It's a human-readable data serialization format that's a superset of JSON. Great for config files, easy to read and write. Supports complex data types like lists and objects. Indentation matters. If you already use Docker Compose, you already use YAML.
Here are some tips when writing YAML:
Use Indentation Carefully: YAML relies on indentation, not brackets.
Avoid Tabs: Stick to spaces for indentation to avoid parsing errors. 2 spaces are common.
Quote Strings: Use single or double quotes for strings with special characters, this is especially important for API keys.
Key-Value Syntax: Use key: value format. Colon must be followed by a space.
Validate: Always validate your YAML with a linter before deploying.
You can find tons of online YAML validators, here's one: https://codebeautify.org/yaml-validator, heres another: https://jsonformatter.org/yaml-validator.
Bookmarks are configured in the bookmarks.yaml file. They function much the same as Services, in how groups and lists work. They're just much simpler, smaller, and contain no extra features other than being a link out.
The design of homepage expects abbr to be 2 letters, but is not otherwise forced.
You can also use an icon for bookmarks similar to the options for service icons. If both icon and abbreviation are supplied, the icon takes precedence.
By default, the description will use the hostname of the link, but you can override it with a custom description.
---\n- Developer:\n - Github:\n - abbr: GH\n href: https://github.com/\n\n- Social:\n - Reddit:\n - icon: reddit.png\n href: https://reddit.com/\n description: The front page of the internet\n\n- Entertainment:\n - YouTube:\n - abbr: YT\n href: https://youtube.com/\n
As of version v0.6.30 homepage supports adding your own custom css & javascript. Please do so at your own risk.
To add custom css simply edit the custom.css file under your config directory, similarly for javascript you would edit custom.js. You can then target elements in homepage with various classes / ids to customize things to your liking.
You can also set a specific id for a service or bookmark to target with your custom css or javascript, e.g.
Since Docker supports connecting with TLS and client certificate authentication, you can include TLS details when connecting to the HTTP API. Further details of setting up Docker to accept TLS connections, and generation of the keys and certs can be found in the Docker documentation. The file entries are relative to the config directory (location of docker.yaml file).
Due to security concerns with exposing the docker socket directly, you can use a docker-socket-proxy container to expose the docker socket on a more restricted and secure API.
Here is an example docker-compose file that will expose the docker socket, and then connect to it from the homepage container:
dockerproxy:\n image: ghcr.io/tecnativa/docker-socket-proxy:latest\n container_name: dockerproxy\n environment:\n - CONTAINERS=1 # Allow access to viewing containers\n - SERVICES=1 # Allow access to viewing services (necessary when using Docker Swarm)\n - TASKS=1 # Allow access to viewing tasks (necessary when using Docker Swarm)\n - POST=0 # Disallow any POST operations (effectively read-only)\n ports:\n - 127.0.0.1:2375:2375\n volumes:\n - /var/run/docker.sock:/var/run/docker.sock:ro # Mounted as read-only\n restart: unless-stopped\n\nhomepage:\n image: ghcr.io/gethomepage/homepage:latest\n container_name: homepage\n volumes:\n - /path/to/config:/app/config\n ports:\n - 3000:3000\n restart: unless-stopped\n
Then, inside of your docker.yaml settings file, you'd configure the docker instance like so:
my-docker:\n host: dockerproxy\n port: 2375\n
Use protocol: https if you\u2019re connecting through a reverse proxy (e.g., Traefik) that serves the Docker API over HTTPS:
Note: This does not require TLS certificates if the proxy handles encryption. Do not use protocol: https unless you\u2019re sure the target host supports HTTPS.
You can also include headers for the connection, for example, if you are using a reverse proxy that requires authentication:
Once you've configured your docker instances, you can then apply them to your services, to get stats and status reporting shown.
Inside of the service you'd like to connect to docker:
- Emby:\n icon: emby.png\n href: \"http://emby.home/\"\n description: Media server\n server: my-docker # The docker server that was configured\n container: emby # The name of the container you'd like to connect\n
"},{"location":"configs/docker/#automatic-service-discovery","title":"Automatic Service Discovery","text":"
Homepage features automatic service discovery for containers with the proper labels attached, all configuration options can be applied using dot notation, beginning with homepage.
Below is an example of the same service entry shown above, as docker labels.
When your Docker instance has been properly configured, this service will be automatically discovered and added to your Homepage. You do not need to specify the server or container values, as they will be automatically inferred.
Docker swarm is supported and Docker services are specified with the same server and container notation. To enable swarm support you will need to include a swarm setting in your docker.yaml, e.g.
For the automatic service discovery to discover all services it is important that homepage should be deployed on a manager node. Set deploy requirements to the master node in your stack yaml config, e.g.
In order to detect every service within the Docker swarm it is necessary that service labels should be used and not container labels. Specify the homepage labels as:
Information widgets are widgets that provide information about your system or environment and are displayed at the top of the homepage. You can find a list of all available info widgets under the Info Widgets section.
Info widgets are defined in the widgets.yaml
Each widget has its own configuration options, which are detailed in the widget's documentation.
Info widgets are displayed in the order they are defined in the widgets.yaml file. You can change the order by moving the widgets around in the file. However, some widgets (weather, search and datetime) are aligned to the right side of the screen which can affect the layout of the widgets.
"},{"location":"configs/info-widgets/#adding-a-link","title":"Adding A Link","text":"
You can add a link to an info widget such as the logo or text widgets by adding an href option, for example:
logo:\n href: https://example.com\n target: _blank # Optional, can be set in settings\n
Once the Kubernetes connection is configured, individual services can be configured to pull statistics. Only CPU and Memory are currently supported.
Inside of the service you'd like to connect to a pod:
- Emby:\n icon: emby.png\n href: \"http://emby.home/\"\n description: Media server\n namespace: media # The kubernetes namespace the app resides in\n app: emby # The name of the deployed app\n
The app field is used to create a label selector, in this example case it would match pods with the label: app.kubernetes.io/name=emby.
Sometimes this is insufficient for complex or atypical application deployments. In these cases, the podSelector field can be used. Any field selector can be used with it, so it allows for some very powerful selection capabilities.
For instance, it can be utilized to roll multiple underlying deployments under one application to see a high-level aggregate:
A blank string as a podSelector does not deactivate it, but will actually select all pods in the namespace. This is a useful way to capture the resource usage of a complex application siloed to a single namespace, like Longhorn.
"},{"location":"configs/kubernetes/#automatic-service-discovery","title":"Automatic Service Discovery","text":"
Homepage features automatic service discovery by Ingress annotations. All configuration options can be applied using typical annotation syntax, beginning with gethomepage.dev/.
When the Kubernetes cluster connection has been properly configured, this service will be automatically discovered and added to your Homepage. You do not need to specify the namespace or app values, as they will be automatically inferred.
If you are using multiple instances of homepage, an instance annotation can be specified to limit services to a specific instance. If no instance is provided, the service will be visible on all instances.
If you have a single service that needs to be shown on multiple specific instances of homepage (but not on all of them), the service can be annotated by multiple instance.name annotations, where name can be the names of your specific multiple homepage instances. For example, a service that is annotated with gethomepage.dev/instance.public: \"\" and gethomepage.dev/instance.internal: \"\" will be shown on public and internal homepage instances.
Use the gethomepage.dev/pod-selector selector to specify the pod used for the health check. For example, a service that is annotated with gethomepage.dev/pod-selector: app.kubernetes.io/name=deployment would link to a pod with the label app.kubernetes.io/name: deployment.
Homepage can also read ingresses defined using the Traefik IngressRoute custom resource definition. Due to the complex nature of Traefik routing rules, it is required for the gethomepage.dev/href annotation to be set:
If the href attribute is not present, Homepage will ignore the specific IngressRoute.
"},{"location":"configs/kubernetes/#gateway-api-httproute-support","title":"Gateway API HttpRoute support","text":"
Homepage also features automatic service discovery for Gateway API. Service definitions are read by annotating the HttpRoute custom resource definition and are indentical to the Ingress example as defined in Automatic Service Discovery.
To enable Gateway API HttpRoute update kubernetes.yaml to include:
gateway: true # enable gateway-api\n
"},{"location":"configs/kubernetes/#using-the-unoffocial-helm-chart","title":"Using the unoffocial helm chart?","text":"
If you are using the unofficial helm chart ensure that the ClusterRole has required permissions for gateway.networking.k8s.io.
Similarly to Docker service discovery, there currently is no rigid ordering to discovered services and discovered services will be displayed above those specified in the services.yaml.
"},{"location":"configs/kubernetes/#adding-extra-configuration-files","title":"Adding extra configuration files","text":"
Some Homepage features (for example, Proxmox) require additional configuration files such as proxmox.yaml. When running Homepage on Kubernetes, these files must be provided via a ConfigMap and mounted into the container at /app/config.
The Proxmox connection is configured in the proxmox.yaml file. See Create token section below for details on how to generate the required API token. To configure multiple nodes, ensure the key name in the proxmox.yaml matches the proxmoxNode field used in your service configuration.
pve: # must match your actual Proxmox node name\n url: https://proxmox.host.or.ip:8006\n token: username@pam!Token ID\n secret: secret\n
Once the Proxmox connection is configured, individual services can be configured to pull statistics of VMs or LXCs. Only CPU and Memory are currently supported.
- HomeAssistant:\n icon: home-assistant.png\n href: http://homeassistant.local/\n description: Home automation\n proxmoxNode: pve\n proxmoxVMID: 101\n # proxmoxType: qemu # This is the default, so it can be omitted\n
Groups can be nested by using the same format as the top-level groups.
- Group A:\n - Service A:\n href: http://localhost/\n\n - Group B:\n - Service B:\n href: http://localhost/\n\n - Service C:\n href: http://localhost/\n
- Group A:\n - Service A:\n href: http://localhost/\n\n - Service B:\n href: http://localhost/\n\n - Service C:\n href: http://localhost/\n\n- Group B:\n - Service D:\n href: http://localhost/\n
Each widget can optionally provide a list of which fields should be visible via the fields widget property. If no fields are specified, then all fields will be displayed. The fields property must be a valid YAML array of strings. As an example, here is the entry for Sonarr showing only a couple of fields.
In all cases a widget will work and display all fields without specifying the fields property.
Widgets can tint their metric block text automatically based on rules defined alongside the service. Attach a highlight section to the widget configuration and map each block to one or more numeric or string rules using the field key (for example, queued, lan_users).
Supported numeric operators for the when property are gt, gte, lt, lte, eq, ne, between, and outside. String rules support equals, includes, startsWith, endsWith, and regex. Each rule can be inverted with negate: true, and string rules may pass caseSensitive: true or custom regex flags. The highlight engine does its best to coerce formatted values, but you will get the most reliable results when you pass plain numbers or strings into <Block>.
- Group A:\n - Service A:\n href: http://localhost/\n description: This is my service\n\n- Group B:\n - Service B:\n href: http://localhost/\n description: This is another service\n
Services may have an icon attached to them, you can use icons from Dashboard Icons automatically, by passing the name of the icon, with, or without .png, .webp or .svg to specify the desired version.
You can also specify prefixed icons from:
Material Design Icons with mdi-XX
Simple Icons with si-XX
selfh.st/icons with sh-XX to use the png version or sh-XX.svg/png/webp for a specific version
You can specify a custom color for mdi and si icons by adding a hex color code as a suffix e.g. mdi-XX-#f0d453 or si-XX-#a712a2.
To use a remote icon, use the absolute URL (e.g. https://...).
To use a local icon, first create a Docker mount to /app/public/icons and then reference your icon as /icons/myicon.png. You will need to restart the container when adding new icons.
Warning
Material Design Icons for brands were deprecated and may be removed in the future. Using Simple Icons for brand icons will prevent any issues if / when the Material Design Icons are removed.
- Group A:\n - Sonarr:\n icon: sonarr.png\n href: http://sonarr.host/\n description: Series management\n\n- Group B:\n - Radarr:\n icon: radarr.png\n href: http://radarr.host/\n description: Movie management\n\n- Group C:\n - Service:\n icon: mdi-flask-outline\n href: http://service.host/\n description: My cool service\n
Services may have an optional ping property that allows you to monitor the availability of an external host. As of v0.8.0, the ping feature attempts to use a true (ICMP) ping command on the underlying host. Currently, only IPv4 is supported.
Note
Because ping uses the ping command on the underlying host, in some cases you may need to install e.g. the iputils-ping package on the host system.
Services may have an optional siteMonitor property (formerly ping) that allows you to monitor the availability of a URL you chose and have the response time displayed. You do not need to set your monitor URL equal to your href or ping URL.
Note
The site monitor feature works by making an http HEAD request to the URL, and falls back to GET in case that fails. It will not, for example, login if the URL requires auth or is behind e.g. Authelia. In the case of a reverse proxy and/or auth this usually requires the use of an 'internal' URL to make the site monitor feature correctly display status.
Services may be connected to a Docker container, either running on the local machine, or a remote machine.
- Group A:\n - Service A:\n href: http://localhost/\n description: This is my service\n server: my-server\n container: my-container\n\n- Group B:\n - Service B:\n href: http://localhost/\n description: This is another service\n server: other-server\n container: other-container\n
Clicking on the status label of a service with Docker integration enabled will expand the container stats, where you can see CPU, Memory, and Network activity.
Note
This can also be controlled with showStats. See show docker stats for more information
The settings.yaml file allows you to define application level options. For changes made to this file to take effect, you will need to regenerate the static HTML, this can be done by clicking the refresh icon in the bottom right of the page.
You can specify filters to apply over your background image for blur, saturation and brightness as well as opacity to blend with the background color. The first three filter settings use tailwind CSS classes, see notes below regarding the options for each. You do not need to specify all options.
background:\n image: /images/background.png\n blur: sm # sm, \"\", md, xl... see https://tailwindcss.com/docs/backdrop-blur\n saturate: 50 # 0, 50, 100... see https://tailwindcss.com/docs/backdrop-saturate\n brightness: 50 # 0, 50, 75... see https://tailwindcss.com/docs/backdrop-brightness\n opacity: 50 # 0-100\n
You can apply a blur filter to the service & bookmark cards. Note this option is incompatible with the background blur, saturate and brightness filters.
cardBlur: xs # xs, md, etc... see https://tailwindcss.com/docs/backdrop-blur\n
If you'd like to use a custom favicon instead of the included one, you may provide a full URL to an image of your choice.
favicon: https://www.google.com/favicon.ico\n
Or you may pass the path to a local image relative to the /app/public directory. See Background Image for more detailed information on how to provide your own files.
Service groups and bookmark groups can be mixed in order, but should use different group names. If you do not specify any bookmark groups they will all show at the bottom of the page.
Using the same name for a service and bookmark group can cause unexpected behavior like a bookmark group being hidden
Groups will sort based on the order in the layout block. You can also mix in groups defined by docker labels, e.g.
If your services config has nested groups, you can apply settings to these groups by nesting them in the layout block and using the same settings. For example
layout:\n Group A:\n style: row\n columns: 4\n Group C:\n style: row\n columns: 2\n Nested Group A:\n style: row\n columns: 2\n Nested Group B:\n style: row\n columns: 2\n
The default style for icons (e.g. icon: mdi-XXXX) is a gradient, or you can specify that prefixed icons match your theme with a 'flat' style using the setting below. More information about prefixed icons can be found in options for service icons.
iconStyle: theme # optional, defaults to gradient\n
Version 0.6.30 introduced a tabbed view to layouts which can be optionally specified in the layout. Tabs is only active if you set the tab field on at least one layout group.
Tabs are sorted based on the order in the layout block. If a group has no tab specified (and tabs are set on other groups), services and bookmarks will be shown on all tabs.
Every tab can be accessed directly by visiting Homepage URL with #Group (name lowercase and URI-encoded) at the end of the URL.
For example, the following would create four tabs:
layout:\n ...\n Bookmark Group on First Tab:\n tab: First\n\n First Service Group:\n tab: First\n style: row\n columns: 4\n\n Second Service Group:\n tab: Second\n columns: 4\n\n Third Service Group:\n tab: Third\n style: row\n\n Bookmark Group on Fourth Tab:\n tab: Fourth\n\n Service Group on every Tab:\n style: row\n columns: 4\n
You can make homepage take up the entire window width by adding:
fullWidth: true\n
"},{"location":"configs/settings/#maximum-group-columns","title":"Maximum Group Columns","text":"
You can set the maximum number of columns of groups on larger screen sizes (note this is only for groups with the default style: columns, not groups with style: row) by adding:
maxGroupColumns: 8 # default is 4 for services, 6 for bookmarks, max 8\n
By default homepage will max out at 4 columns for services and 6 for bookmarks, thus the minimum for this setting is 5. Of course, if you're setting this to higher numbers, you may want to consider enabling the fullWidth option as well.
If you want to set the maximum columns for bookmark groups separately, you can do so by adding:
maxBookmarkGroupColumns: 6 # default is 6, max 8\n
You can use the 'Quick Launch' feature to search services, perform a web search or open a URL. To use Quick Launch, just start typing while on your homepage (as long as the search widget doesn't have focus).
There are a few optional settings for the Quick Launch feature:
searchDescriptions: which lets you control whether item descriptions are included in searches. This is false by default. When enabled, results that match the item name will be placed above those that only match the description.
hideInternetSearch: disable automatically including the currently-selected web search (e.g. from the widget) as a Quick Launch option. This is false by default, enabling the feature.
showSearchSuggestions: show search suggestions for the internet search. If this is not specified then the setting will be inherited from the search widget. If it is not specified there either, it will default to false. For custom providers the suggestionUrl needs to be set in order for this to work.
provider: search engine provider. If none is specified it will try to use the provider set for the Search Widget, if neither are present then internet search will be disabled.
hideVisitURL: disable detecting and offering an option to open URLs. This is false by default, enabling the feature.
mobileButtonPosition: enables and sets the position of the mobile quicklaunch button. Options are top-left, top-right, bottom-left, bottom-right. This is empty by default, disabling the feature.
quicklaunch:\n searchDescriptions: true\n hideInternetSearch: true\n showSearchSuggestions: true\n hideVisitURL: true\n provider: google # google, duckduckgo, bing, baidu, brave or custom\n
By default the homepage logfile is written to the a logs subdirectory of the config folder. In order to customize this path, you can set the logpath setting. A logs folder will be created in that location where the logfile will be written.
logpath: /logfile/path\n
By default, logs are sent both to stdout and to a file at the path specified. This can be changed by setting the LOG_TARGETS environment variable to one of both (default), stdout or file.
You have a few options for deploying homepage, depending on your needs. We offer docker images for a majority of platforms. You can also install and run homepage from source if Docker is not your thing. It can even be installed on Kubernetes with Helm.
Info
Please note that when using features such as widgets, Homepage can access personal information (for example from your home automation system) and Homepage currently does not (and is not planned to) include any authentication layer itself. Thus, we recommend homepage be deployed behind a reverse proxy including authentication, SSL etc, and / or behind a VPN.
As of v1.0 there is one required environment variable to access homepage via a URL other than localhost, HOMEPAGE_ALLOWED_HOSTS. The setting helps prevent certain kinds of attacks when retrieving data from the homepage API proxy.
The value is a comma-separated (no spaces) list of allowed hosts (sometimes with the port) that can host your homepage install. See the docker, kubernetes and source installation pages for more information about where / how to set the variable.
localhost:3000 and 127.0.0.1:3000 are always included, but you can add a domain or IP address to this list to allow that host such as HOMEPAGE_ALLOWED_HOSTS=gethomepage.dev,192.168.1.2:1234, etc.
If you are seeing errors about host validation, check the homepage logs and ensure that the host exactly as output in the logs is in the HOMEPAGE_ALLOWED_HOSTS list.
This can be disabled by setting HOMEPAGE_ALLOWED_HOSTS to * but this is not recommended.
services:\n homepage:\n image: ghcr.io/gethomepage/homepage:latest\n container_name: homepage\n ports:\n - 3000:3000\n volumes:\n - /path/to/config:/app/config # Make sure your local config directory exists\n - /var/run/docker.sock:/var/run/docker.sock # (optional) For docker integrations\n environment:\n HOMEPAGE_ALLOWED_HOSTS: gethomepage.dev # required, may need port. See gethomepage.dev/installation/#homepage_allowed_hosts\n
"},{"location":"installation/docker/#running-as-non-root","title":"Running as non-root","text":"
By default, the Homepage container runs as root. Homepage also supports running your container as non-root via the standard PUID and PGID environment variables. When using these variables, make sure that any volumes mounted in to the container have the correct ownership and permissions set.
Using the docker socket directly is not the recommended method of integration and requires either running homepage as root or that the user be part of the docker group
In the docker compose example below, the environment variables $PUID and $PGID are set in a .env file.
services:\n homepage:\n image: ghcr.io/gethomepage/homepage:latest\n container_name: homepage\n ports:\n - 3000:3000\n volumes:\n - /path/to/config:/app/config # Make sure your local config directory exists\n - /var/run/docker.sock:/var/run/docker.sock # (optional) For docker integrations, see alternative methods\n environment:\n HOMEPAGE_ALLOWED_HOSTS: gethomepage.dev # required, may need port. See gethomepage.dev/installation/#homepage_allowed_hosts\n PUID: $PUID\n PGID: $PGID\n
You can also include environment variables in your config files to protect sensitive information. Note:
Environment variables must start with HOMEPAGE_VAR_ or HOMEPAGE_FILE_
The value of env var HOMEPAGE_VAR_XXX will replace {{HOMEPAGE_VAR_XXX}} in any config
The value of env var HOMEPAGE_FILE_XXX must be a file path, the contents of which will be used to replace {{HOMEPAGE_FILE_XXX}} in any config
"},{"location":"installation/k8s/","title":"Kubernetes Installation","text":""},{"location":"installation/k8s/#install-with-kubernetes-manifests","title":"Install with Kubernetes Manifests","text":"
If you don't want to use the unofficial Helm chart, you can also create your own Kubernetes manifest(s) and apply them with kubectl apply -f filename.yaml.
Here's a working example of the resources you need:
If you plan to deploy homepage with a replica count greater than 1, you may want to consider enabling sticky sessions on the homepage route. This will prevent unnecessary re-renders on page loads and window / tab focusing. The procedure for enabling sticky sessions depends on your Ingress controller. Below is an example using Traefik as the Ingress controller.
When you upload a new image into the /images folder, you will need to restart the container for it to show up in the WebUI. Please see the service icons for more information.
"},{"location":"more/","title":"More","text":"
Here you'll find resources and guides for Homepage, troubleshooting tips, and more.
As of v0.7.2 homepage migrated from benphelps/homepage to an \"organization\" repository located at gethomepage/homepage. The reason for this was to setup the project for longevity and allow for community maintenance.
Migrating your installation should be as simple as changing image: ghcr.io/benphelps/homepage:latest to image: ghcr.io/gethomepage/homepage:latest.
If you would like to support the Homepage project, you can do so by becoming a sponsor. Your sponsorship helps to keep the project running and growing.
GitHub Sponsors
OpenCollective
Patreon
These companies help the Homepage project by providing services, tools, and resources.
DigitalOcean provides the GitHub Actions runner for the project. Dramatically speeding up the CI/CD process.
Crowdin provides the translation platform for the project. Making it easy to translate the project into multiple languages.
JetBrains provides the project with free licenses for their awesome tools.
BuySellAds provides the project with the ability to monetize the website, with high quality ads from the CarbonAds network. All earnings are sent directly to the projects OpenCollective.
Homepage is developed in English, component contributions must be in English. All translations are community provided, so a huge thanks go out to all those who have helped out so far!
For API errors, clicking the \"API Error Information\" button in the widget will usually show some helpful information as to whether the issue is reaching the service host, an authentication issue, etc.
Check config/logs/homepage.log, on docker simply e.g. docker logs homepage. This may provide some insight into the reason for an error.
Check the browser error console, this can also sometimes provide useful information.
Consider setting the ENV variable LOG_LEVEL to debug.
If certain widgets are failing when connecting to public APIs, consider disabling IPv6.
All service widgets work essentially the same, that is, homepage makes a proxied call to an API made available by that service. The majority of the time widgets don't work it is a configuration issue. Of course, sometimes things do break. Some basic steps to check:
URLs should not end with a / or other API path. Each widget will handle the path on its own.
All services with a widget require a unique name as well as a unique group (and all subgroups) name.
Verify the homepage installation can connect to the IP address or host you are using for the widget url. This is most simply achieved by pinging the server from the homepage machine, in Docker this means from inside the container itself, e.g.:
docker exec homepage ping SERVICEIPORDOMAIN\n
If your homepage install (container) cannot reach the service then you need to figure out why, for example in Docker this can mean putting the two containers on the same network, checking firewall issues, etc.
If you have verified that homepage can in fact reach the service then you can also check the API output using e.g. curl, which is often helpful if you do need to file a bug report. Again, depending on your networking setup this may need to be run from inside the container as IP / hostname resolution can differ inside vs outside.
Note
curl is not installed in the base image by default but can be added inside the container with apk add curl.
The exact API endpoints and authentication vary of course, but in many cases instructions can be found by searching the web or if you feel comfortable looking at the homepage source code (e.g. src/widgets/{widget}/widget.js).
It is out of the scope of this to go into full detail about how to , but an example for PiHole would be:
If, after correctly adding and mapping your custom icons via the Icons instructions, you are still unable to see your icons please try recreating your container.
If you are having issues with certain widgets that are unable to reach public APIs (e.g. weather), in certain setups you may need to disable IPv6. You can set the environment variable HOMEPAGE_PROXY_DISABLE_IPV6 to true to disable IPv6 for the homepage proxy.
Alternatively, you can use the sysctls option in your docker-compose file to disable IPv6 for the homepage container completely:
Service widgets are used to display the status of a service, often a web service or API. Services (and their widgets) are defined in your services.yaml file. Here's an example:
Info widgets are used to display information in the header, often about your system or environment. Info widgets are defined in your widgets.yaml file. Here's an example:
All text and numerical content in widgets should be translated and localized. English is the default language, and other languages can be added via Crowdin.
To learn more about translations, please refer to the guide here: Translations Guide.
The widget component is the core of the widget. It is responsible for fetching data from the API and rendering the widget UI. Homepage provides a set of hooks and utilities to help you build your widget component.
To learn more about widget components, please refer to the guide here: Component Guide.
Widget metadata defines the configuration of the widget. It defines the API endpoint to fetch data from, the proxy handler to use, and any data mappings.
To learn more about widget metadata, endpoint and data mapping, please refer to the guide here: Metadata Guide.
To learn more about proxy handlers, please refer to the guide here: Proxies Guide.
To learn more about making API calls from inside your widget, please refer to the guide here: API Guide.
Homepage provides the useWidgetAPI hook to help you fetch data from an API. This hook insures that the data is fetched using a proxy, and is critical for security.
Here is an example of how the useWidgetAPI hook looks:
Fetch data from the stats endpoint
import useWidgetAPI from \"utils/proxy/use-widget-api\";\n\nexport default function Component({ service }) {\n const { data, error } = useWidgetAPI(widget, \"stats\");\n}\n
The widget argument is the metadata object for the widget. It contains information about the API endpoint, proxy handler, and mappings. This object is used by the useWidgetAPI hook to fetch data from the API. This is generally passed in as a prop from the parent component.
The endpoint argument is the name of the endpoint to fetch data from. This is defined in the widget metadata object. The useWidgetAPI hook uses this argument to determine which endpoint to fetch data from.
If no endpoint is provided, the useWidgetAPI hook will call the API endpoint defined in the widget metadata object directly.
The params argument is an optional object containing query parameters to pass to the API. This is useful for filtering data or passing additional information to the API. This object is passed directly to the API endpoint as query parameters.
Here is an example of how to use the params argument:
Fetch data from the stats endpoint with query parameters
import useWidgetAPI from \"utils/proxy/use-widget-api\";\n\nexport default function Component({ service }) {\n const { data, error } = useWidgetAPI(widget, \"stats\", { start: \"2021-01-01\", end: \"2021-12-31\" });\n}\n
The params must be whitelisted in the widget metadata object. This is done to prevent arbitrary query parameters from being passed to the API.
Homepage widgets are built using React components. These components are responsible for fetching data from the API and rendering the widget UI. Homepage provides a set of hooks and utilities to help you build your widget component.
This hook is used to translate text and numerical content in widgets. Homepage provides a set of helpers to help you localize your widgets. You can learn more about translations in the Translations Guide.
useWidgetAPI
This hook is used to fetch data from the API. We cover this hook in more detail in the API Guide.
Homepage provides a set of components to help you build your widget UI. These components are designed to provide a consistent layout, and all widgets are expected to use these components.
<Container>
This component is a wrapper for the widget. It provides a consistent layout for all widgets.
<Container service={service}></Container>\n
service is a prop that is passed to the widget component. It contains information about the service that the widget is displaying.
If there is an error fetching data from the API, the error prop can be passed to the Container component.
The label prop is used to look up the translation key in the translation files. The value prop is used to display the value of the block. To learn more about translations, please refer to the Translations Guide.
If there is no data available, the Block component can be used to display a placeholder layout.
Once dependencies have been installed you can lint your code with
pnpm lint\n
"},{"location":"widgets/authoring/getting-started/#code-formatting-with-pre-commit-hooks","title":"Code formatting with pre-commit hooks","text":"
To ensure a consistent style and formatting across the project source, the project utilizes Git pre-commit hooks to perform some formatting and linting before a commit is allowed.
Once installed, hooks will run when you commit. If the formatting isn't quite right, the commit will be rejected and you'll need to look at the output and fix the issue. Most hooks will automatically format failing files, so all you need to do is git add those files again and retry your commit.
In general, homepage is meant to be a dashboard for 'self-hosted' services and we believe it is a small way we can help showcase this kind of software. While exceptions are made, mostly when there is no viable self-hosted / open-source alternative, we ask that any widgets, etc. are developed primarily for a self-hosted tool.
"},{"location":"widgets/authoring/getting-started/#new-feature-guidelines","title":"New Feature or Enhancement Guidelines","text":"
New features or enhancements, no matter how small, must be linked to an existing feature request with some comments or 'up-votes' that demonstrate community interest. The purpose of this requirement is to avoid the addition (and maintenance) of features that might only benefit a small number of users.
If you have ideas for a larger feature you may want to open a discussion first.
To ensure cohesiveness of various widgets, the following should be used as a guide for developing new widgets:
Please only submit widgets that target a feature request discussion with at least 20 'up-votes'. The purpose of this requirement is to avoid the addition (and maintenance) of service widgets that might only benefit a small number of users.
Note that we reserve the right to decline widgets for projects that are very young (eg < ~1y) or those with a small reach (eg low GitHub stars). Again, this is in an effort to keep overall widget maintenance under control.
Widgets should be only one row of blocks
Widgets should be no more than 4 blocks wide and generally conform to the styling / design choices of other widgets
Minimize the number of API calls
Avoid the use of custom proxy unless absolutely necessary
Widgets should be 'read-only', as in they should not make write changes using the relevant tool's API. Homepage widgets are designed to surface information, not to be a (usually worse) replacement for the tool itself.
Widgets should not allow manually overriding the \"refresh interval\" setting, as misconfigured refresh intervals can easily lead to performance issues for users.
Here, we will go over how to create and configure Homepage widget metadata. Metadata is a JS object that contains information about the widget, such as the API endpoint, proxy handler, and mappings. This metadata is used by Homepage to fetch data from the API and pass it to the widget.
The api property is a string that represents the URL of the API endpoint that the widget will use to fetch data. The URL can contain placeholders that will be replaced with actual values at runtime. For example, the {url} placeholder will be replaced with the URL of the configured widget, and the {endpoint} placeholder will be replaced with the value of the endpoint property in the mappings object.
The proxyHandler property is a function that will be used to make the API request. Homepage includes some built-in proxy handlers that can be used out of the box:
Here is an example of the generic proxy handler that makes unauthenticated requests to the specified API endpoint.
The mappings property is an object that contains information about the API endpoint, such as the endpoint name, validation rules, and parameter names. The mappings object can contain multiple endpoints, each with its own configuration.
Security Note
The mappings or allowedEndpoints property is required for the widget to fetch data from more than a static URL. Homepage uses a whitelist approach to ensure that widgets only access allowed endpoints.
The endpoint property is a string that represents the name of the API endpoint that the widget will use to fetch data. This value will be used to replace the {endpoint} placeholder in the api property.
The validate property is an array of strings that represent the keys that should be validated in the API response. If the response does not contain all of the specified keys, the widget will not render.
The params property is an array of strings that represent the keys that should be passed as parameters to the API endpoint. These keys will be replaced with the actual values at runtime.
The map property is a function that will be used to transform the API response before it is passed to the widget. This function is passed the raw API response and should return the transformed data.
The method represents the HTTP method that should be used to make the API request. The default value is GET. Note that POST requests are not allowed via the widget API and require the use of a custom proxy.
The headers property is an object that contains additional headers that should be included in the API request. If your endpoint requires specific headers, you can include them here.
The body property is an object that contains the data that should be sent in the request body. This property is only used when the method property is set to POST or PUT.
The allowedEndpoints property is a RegExp that represents the allowed endpoints that the widget can use. If the widget tries to access an endpoint that is not allowed, the request will be blocked.
allowedEndpoints can be used when endpoint validation is simple and can be done using a regular expression, and more control is not required.
Security Note
The mappings or allowedEndpoints property is required for the widget to fetch data from more than a static URL. Homepage uses a whitelist approach to ensure that widgets only access allowed endpoints.
Homepage includes a set of built-in proxy handlers that can be used to fetch data from an API. We will go over how to use these proxy handlers and briefly cover how to create your own.
Homepage comes with a few built-in proxy handlers that can be used to fetch data from an API. These handlers are located in the utils/proxy/handlers directory.
A proxy handler that makes authenticated requests by setting request headers. Credentials are pulled from the widgets configuration.
By default the key is passed as an X-API-Key header. If you need to pass the key as something else, either add a case to the credentialedProxyHandler or create a new proxy handler.
A proxy handler that makes authenticated JSON-RPC requests to the specified API endpoint, either using username + password or an API token. The endpoint is the method to call and queryParams are used as the parameters.
component.jswidget.jsservices.yaml
import Container from \"components/services/widget/container\";\nimport useWidgetAPI from \"utils/proxy/use-widget-api\";\n\nexport default function Component({ service }) {\n const { widget } = service;\n\n const { data, error } = useWidgetAPI(widget, 'trigger', { \"triggerids\": \"14062\", \"output\": \"extend\", \"selectFunctions\": \"extend\" });\n}\n
"},{"location":"widgets/authoring/proxies/#creating-a-custom-proxy-handler","title":"Creating a Custom Proxy Handler","text":"
You can create your own proxy handler to fetch data from an API. A proxy handler is a function that takes a configuration object and returns a function that makes the API request.
The proxy handler function takes three arguments:
req: The request object.
res: The response object.
map: A function that maps the API response to the widget data.
The proxy handler function should return a promise that resolves to the API response.
Here is an example of a simple proxy handler that fetches data from an API and passes it to the widget:
Proxy handlers are a complex topic and require a good understanding of JavaScript and the Homepage codebase. If you are new to Homepage, we recommend using the built-in proxy handlers.
All text and numerical content in widgets should be translated and localized. English is the default language, and other languages can be added via Crowdin.
Homepage uses the next-i18next library to handle translations. This library provides a set of hooks and utilities to help you localize your widgets, and Homepage has extended this library to support additional features.
component.jsx
import { useTranslation } from \"next-i18next\";\n\nimport Container from \"components/services/widget/container\";\nimport Block from \"components/services/widget/block\";\n\nexport default function Component() {\n const { t } = useTranslation();\n\n return (\n <Container service={service}>\n <Block label=\"yourwidget.key1\" />\n <Block label=\"yourwidget.key2\" />\n <Block label=\"yourwidget.key3\" />\n </Container>\n );\n}\n
"},{"location":"widgets/authoring/translations/#set-up-translation-strings","title":"Set up translation strings","text":"
Homepage uses translated and localized strings for all text and numerical content in widgets. English is the default language, and other languages can be added via Crowdin. To add the English translations for your widget, follow these steps:
Open the public/locales/en/common.json file.
Add a new object for your widget to the bottom of the list, like this:
Even if you natively speak another language, you should only add English translations. You can then add translations in your native language via Crowdin, once your widget is merged.
Homepage provides a set of common translations that you can use in your widgets. These translations are used to format numerical content, dates, and other common elements.
"},{"location":"widgets/authoring/translations/#numbers","title":"Numbers","text":"Key Translation Description common.bytes1,000 B Format a number in bytes. common.bits1,000 bit Format a number in bits. common.bbytes1 KiB Format a number in binary bytes. common.bbits1 Kibit Format a number in binary bits. common.byterate1,000 B/s Format a byte rate. common.bibyterate1 KiB/s Format a binary byte rate. common.bitrate1,000 bit/s Format a bit rate. common.bibitrate1 Kibit/s Format a binary bit rate. common.percent50% Format a percentage. common.number1,000 Format a number. common.ms1,000 ms Format a number in milliseconds. common.date2024-01-01 Format a date. common.relativeDate1 day ago Format a relative date. common.duration1 day, 1 hour Format an duration."},{"location":"widgets/authoring/translations/#text","title":"Text","text":"Key Translation Description resources.cpuCPU CPU usage. resources.memMEM Memory usage. resources.totalTotal Total resource. resources.freeFree Free resource. resources.usedUsed Used resource. resources.loadLoad Load value. resources.tempTEMP Temperature value. resources.maxMax Maximum value. resources.uptimeUP Uptime."},{"location":"widgets/authoring/tutorial/","title":"Widget Tutorial","text":"
In this guide, we'll walk through the process of creating a custom widget for Homepage. We'll cover the basic structure of a widget, how to use translations, and how to fetch data from an API. By the end of this guide, you'll have a solid understanding of how to build your own custom widget.
Prerequisites:
Basic knowledge of React and JavaScript
Familiarity with the Homepage platform
Understanding of JSON and API interactions
Throughout this guide, we'll use yourwidget as a placeholder for the unique name of your custom widget. Replace yourwidget with the actual name of your widget. It should contain only lowercase letters and no spaces.
This guide makes use of a fake API, which would return a JSON response as such, when called with the v1/info endpoint:
{ \"key1\": 123, \"key2\": 456, \"key3\": 789 }\n
"},{"location":"widgets/authoring/tutorial/#set-up-the-widget-definition","title":"Set up the widget definition","text":"
Create a new folder for your widget in the src/widgets directory. Name the folder yourwidget.
Inside the yourwidget folder, create a new file named widget.js. This file will contain the metadata for your widget.
Open the widget.js file and add the following code:
We import the genericProxyHandler from the utils/proxy/handlers/generic module. The genericProxyHandler is a generic handler that can be used to fetch data from an API. We then assign the genericProxyHandler to the proxyHandler property of the widget object. There are other handlers available that you can use depending on your requirements. You can also create custom handlers if needed.
We define a widget object that contains the metadata for the widget.
The API endpoint to fetch data from. You can use placeholders like {url} and {endpoint} to dynamically generate the API endpoint based on the widget configuration.
An object that contains mappings for different endpoints. Each mapping should have an endpoint property that specifies the endpoint to fetch data from.
A mapping named info that specifies the v1/info endpoint to fetch data from. This would be called from the component as such: useWidgetAPI(widget, \"info\");
The endpoint property of the info mapping specifies the endpoint to fetch data from. There are other properties you can pass to the mapping, such as method, headers, and body.
Important
All widgets that fetch data from dynamic endpoints should have either mappings or an allowedEndpoints property.
"},{"location":"widgets/authoring/tutorial/#including-translation-strings-in-your-widget","title":"Including translation strings in your widget","text":"
Refer to the translations guide for more details. The Homepage community prides itself on being multilingual, and we strongly encourage you to add translations for your widgets.
"},{"location":"widgets/authoring/tutorial/#create-the-widget-component","title":"Create the widget component","text":"
Create a new file for your widgets component, named component.jsx, in the src/widgets/yourwidget directory. We'll build the contents of the component.jsx file step by step.
First, we'll import the necessary dependencies:
src/widgets/yourwidget/component.jsx
import { useTranslation } from \"next-i18next\"; // (1)!\n\nimport Container from \"components/services/widget/container\"; // (2)!\nimport Block from \"components/services/widget/block\"; // (3)!\nimport useWidgetAPI from \"utils/proxy/use-widget-api\"; // (4)!\n
useTranslation() is a hook provided by next-i18next that allows us to access the translation strings
<Container> and <Block> are custom components that we'll use to structure our widget.
<Container> and <Block> are custom components that we'll use to structure our widget.
useWidgetAPI(widget, endpoint) is a custom hook that we'll use to fetch data from an API.
Next, we'll define a functional component named Component that takes a service prop.
src/widgets/yourwidget/component.jsx
export default function Component({ service }) {}\n
We grab the helper functions from the useTranslation hook.
src/widgets/yourwidget/component.jsx
const { t } = useTranslation();\n
We destructure the widget object from the service prop. The widget object contains the metadata for the widget, such as the API endpoint to fetch data from.
src/widgets/yourwidget/component.jsx
const { widget } = service;\n
Now, the fun part! We use the useWidgetAPI hook to fetch data from an API. The useWidgetAPI hook takes two arguments: the widget object and the API endpoint to fetch data from. The useWidgetAPI hook returns an object with data and error properties.
You'll see here how part of the API url is built using the url and endpoint properties from the widget definition.
In this case, we're fetching data from the info endpoint. The info endpoint is defined in the mappings object. So the full API endpoint will be \"{url}/v1/info\".
The mapping and endpoint are often the same, but must be defined regardless.
Next, we check if there's an error or no data.
If there's an error, we return a Container and pass it the service and error as props. The Container component will handle displaying the error message.
src/widgets/yourwidget/component.jsx
if (error) {\n return <Container service={service} error={error} />;\n}\n
If there's no data, we return a Container component with three Block components, each with a label.
This will render the widget with placeholders for the data, i.e., a skeleton view.
Translation Tips
The label prop in the Block component corresponds to the translation key we defined earlier in the common.json file. All text and numerical content should be translated.
If there is data, we return a Container component with three Block components, each with a label and a value.
Here we use the t function from the useTranslation hook to translate the data values. The t function takes the translation key and an object with variables to interpolate into the translation string.
We're using the common.number translation key to format the data values as numbers. This allows for easy localization of numbers, such as using commas or periods as decimal separators.
There are a large number of common numerical translation keys available, which you can learn more about in the Translation Guide.
You'll see here how part of the API url is built using the url and endpoint properties from the widget definition.
We defined the api endpoint as \"{url}/{endpoint}\". This is where the url is defined. So the full API endpoint will be http://127.0.0.1:1337/{endpoint}.
That's it! You've successfully created a custom widget for Homepage. If you have any questions or need help, feel free to reach out to the Homepage community for assistance. Happy coding!
This allows you to display the date and/or time, can be heavily configured using Intl.DateTimeFormat.
Formatting is locale aware and will present your date in the regional format you expect, for example, 9/16/22, 3:03 PM for locale en and 16.09.22, 15:03 for de. You can also specify a locale just for the datetime widget with the locale option (see below).
The Glances widget allows you to monitor the resources (CPU, memory, storage, temp & uptime) of host or another machine, and is designed to match the resources info widget. You can have multiple instances by adding another configuration block. The cputemp, uptime & disk states require separate API calls and thus are not enabled by default. Glances needs to be running in \"web server\" mode to enable the API, see the glances docs.
- glances:\n url: http://host.or.ip:port\n username: user # optional if auth enabled in Glances\n password: pass # optional if auth enabled in Glances\n version: 4 # required only if running glances v4 or higher, defaults to 3\n cpu: true # optional, enabled by default, disable by setting to false\n mem: true # optional, enabled by default, disable by setting to false\n cputemp: true # disabled by default\n uptime: true # disabled by default\n disk: / # disabled by default, use mount point of disk(s) in glances. Can also be a list (see below)\n diskUnits: bytes # optional, bytes (default) or bbytes. Only applies to disk\n expanded: true # show the expanded view\n label: MyMachine # optional\n
This is very similar to the Resources widget, but provides resource information about a Kubernetes cluster.
It provides CPU and Memory usage, by node and/or at the cluster level.
- kubernetes:\n cluster:\n # Shows cluster-wide statistics\n show: true\n # Shows the aggregate CPU stats\n cpu: true\n # Shows the aggregate memory stats\n memory: true\n # Shows a custom label\n showLabel: true\n label: \"cluster\"\n nodes:\n # Shows node-specific statistics\n show: true\n # Shows the CPU for each node\n cpu: true\n # Shows the memory for each node\n memory: true\n # Shows the label, which is always the node name\n showLabel: true\n
The Longhorn widget pulls storage utilization metrics from the Longhorn storage driver on Kubernetes. It is designed to appear similar to the Resource widget's disk representation.
The exact metrics should be very similar to what is seen on the Longhorn dashboard itself.
It can show the aggregate metrics and/or the individual node metrics.
- longhorn:\n # Show the expanded view\n expanded: true\n # Shows a node representing the aggregate values\n total: true\n # Shows the node names as labels\n labels: true\n # Show the nodes\n nodes: true\n # An explicit list of nodes to show. All are shown by default if \"nodes\" is true\n include:\n - node1\n - node2\n
The Longhorn URL and credentials are stored in the providers section of the settings.yaml. e.g.:
The free tier \"One Call API\" is all that's required, you will need to subscribe and grab your API key.
- openweathermap:\n label: Kyiv #optional\n latitude: 50.449684\n longitude: 30.525026\n units: metric # or imperial\n provider: openweathermap\n apiKey: youropenweathermapkey # required only if not using provider, this reveals api key in requests\n cache: 5 # Time in minutes to cache API responses, to stay within limits\n format: # optional, Intl.NumberFormat options\n maximumFractionDigits: 1\n
You can optionally not pass a latitude and longitude and the widget will use your current location (requires a secure context, eg. HTTPS).
You can include all or some of the available resources. If you do not want to see that resource, simply pass false.
The disk path is the path reported by df (Mounted On), or the mount point of the disk.
The cpu and memory resource information are the container's usage while glances displays statistics for the host machine on which it is installed.
The resources widget primarily relies on a popular tool called systeminformation. Thus, any limitiations of that software apply, for example, BRTFS RAID is not supported for the disk usage. In this case users may want to use the glances widget instead.
Note: unfortunately, the package used for getting CPU temp (systeminformation) is not compatible with some setups and will not report any value(s) for CPU temp.
Any disk you wish to access must be mounted to your container as a volume.
- resources:\n cpu: true\n memory: true\n disk: /disk/mount/path\n cputemp: true\n tempmin: 0 # optional, minimum cpu temp\n tempmax: 100 # optional, maximum cpu temp\n uptime: true\n units: imperial # only used by cpu temp, options: 'imperial' or 'metric'\n refresh: 3000 # optional, in ms\n diskUnits: bytes # optional, bytes (default) or bbytes. Only applies to disk\n network: true # optional, uses 'default' if true or specify a network interface name\n
You can also pass a label option, which allows you to group resources under named sections,
You can additionally supply an optional expanded property set to true in order to show additional details about the resources. By default the expanded property is set to false when not supplied.
You can add a search bar to your top widget area that can search using Google, Duckduckgo, Bing, Baidu, Brave or any other custom provider that supports the basic ?q= search query param.
- search:\n provider: google # google, duckduckgo, bing, baidu, brave or custom\n focus: true # Optional, will set focus to the search bar on page load\n showSearchSuggestions: true # Optional, will show search suggestions. Defaults to false\n target: _blank # One of _self, _blank, _parent or _top\n
The first entry of the array contains the search query, the second one is an array of the suggestions. In the example above, the search query was home.
The Stocks Information Widget allows you to include basic stock market data in your Homepage header. The widget includes the current price of a stock, and the change in price for the day.
Finnhub.io is currently the only supported provider for the stocks widget. You can sign up for a free api key at finnhub.io. You are encouraged to read finnhub.io's terms of service/privacy policy before signing up. The documentation for the endpoint that is utilized can be viewed here.
You must set finnhub as a provider in your settings.yaml like below:
providers:\n finnhub: yourfinnhubapikeyhere\n
Next, configure the stocks widget in your widgets.yaml:
The information widget allows for up to 8 items in the watchlist.
You can display general connectivity status from your Unifi (Network) Controller.
Warning
When authenticating you will want to use a local account that has at least read privileges.
An optional 'site' parameter can be supplied, if it is not the widget will use the default site for the controller.
Hint
If you enter e.g. incorrect credentials and receive an \"API Error\", you may need to recreate the container to clear the cache.
- unifi_console:\n url: https://unifi.host.or.ip:port\n site: Site Name # optional\n username: user\n password: pass\n key: unifiapikey # required if using API key instead of username/password\n
This widget extracts UPS information from an apcupsd daemon. Only works for APC/Schneider UPS products.
[!NOTE] By default apcupsd daemon is bound to 127.0.0.1. Edit /etc/apcupsd.conf and change NISIP to an IP accessible from your homepage docker (usually your internal LAN interface).
You can generate an API key either by creating a bearer token for an existing account, see Authorization (not recommended) or create a new local user account with limited privileges and generate an authentication token for this account. To do this the steps are:
Create a new local user and give it the apiKey capability
Setup RBAC configuration for your the user and give it readonly access to your ArgoCD resources, e.g. by giving it the role:readonly role.
In your ArgoCD project under Settings / Accounts open the newly created account and in the Tokens section click on Generate New to generate an access token, optionally specifying an expiry date.
If you installed ArgoCD via the official Helm chart, the account creation and rbac config can be achived by overriding these helm values:
This widget reads the number of active users in the system, as well as logins for the last 24 hours.
You will need to generate an API token for an existing user under Admin Portal > Directory > Tokens & App passwords. Make sure to set Intent to \"API Token\".
The account you made the API token for also needs the following Assigned global permissions in Authentik:
Pipelines: checks if the relevant pipeline is running or not, and if not, reports the last status. Allowed fields: [\"result\", \"status\"].
Pull Requests: returns the amount of open PRs, the amount of the PRs you have open, and how many PRs that you open are marked as 'Approved' by at least 1 person and not yet completed. Allowed fields: [\"totalPrs\", \"myPrs\", \"approved\"].
You will need to generate a personal access token for an existing user, see the azure documentation
widget:\n type: azuredevops\n organization: myOrganization\n project: myProject\n definitionId: pipelineDefinitionId # required for pipelines\n branchName: branchName # optional for pipelines, leave empty for all\n userEmail: email # required for pull requests\n repositoryId: prRepositoryId # required for pull requests\n key: personalaccesstoken\n
widget:\n type: backrest\n url: http://backrest.host.or.ip\n username: admin # optional if auth is enabled in Backrest\n password: admin # optional if auth is enabled in Backrest\n
The widget has two modes, a single system with detailed info if systemId is provided, or an overview of all systems if systemId is not provided.
The systemID is the id field on the collections page of Beszel under the PocketBase admin panel. You can also use the 'nice name' from the Beszel UI.
A \"superuser\" is currently required to access the data from the Beszel API.
Allowed fields for 'overview' mode: [\"systems\", \"up\"] Allowed fields for a single system: [\"name\", \"status\", \"updated\", \"cpu\", \"memory\", \"disk\", \"network\"]
Beszel Version Homepage Widget Version < 0.9.0 1 (default) >= 0.9.0 2
This widget shows monthly calendar, with optional integrations to show events from supported widgets.
widget:\n type: calendar\n firstDayInWeek: sunday # optional - defaults to monday\n view: monthly # optional - possible values monthly, agenda\n maxEvents: 10 # optional - defaults to 10\n showTime: true # optional - show time for event happening today - defaults to false\n timezone: America/Los_Angeles # optional and only when timezone is not detected properly (slightly slower performance) - force timezone for ical events (if it's the same - no change, if missing or different in ical - will be converted to this timezone)\n integrations: # optional\n - type: sonarr # active widget type that is currently enabled on homepage - possible values: radarr, sonarr, lidarr, readarr, ical\n service_group: Media # group name where widget exists\n service_name: Sonarr # service name for that widget\n color: teal # optional - defaults to pre-defined color for the service (teal for sonarr)\n baseUrl: https://sonarr.domain.url # optional - adds links to sonarr/radarr pages\n params: # optional - additional params for the service\n unmonitored: true # optional - defaults to false, used with *arr stack\n - type: ical # Show calendar events from another service\n url: https://domain.url/with/link/to.ics # URL with calendar events\n name: My Events # required - name for these calendar events\n color: zinc # optional - defaults to pre-defined color for the service (zinc for ical)\n params: # optional - additional params for the service\n showName: true # optional - show name before event title in event line - defaults to false\n
This view shows only list of events from configured integrations
widget:\n type: calendar\n view: agenda\n maxEvents: 10 # optional - defaults to 10\n showTime: true # optional - show time for event happening today - defaults to false\n previousDays: 3 # optional - shows events since three days ago - defaults to 0\n integrations: # same as in Monthly view example\n
This custom integration allows you to show events from any calendar that supports iCal format, for example, Google Calendar (go to Settings, select specific calendar, go to Integrate calendar, copy URL from Public Address in iCal format).
As of v0.6.10 this widget no longer accepts a Cloudflare global API key (or account email) due to security concerns. Instead, you should setup an API token which only requires the permissions Account.Cloudflare Tunnel:Read.
Allowed fields: [\"status\", \"origin_ip\"].
widget:\n type: cloudflared\n accountid: accountid # from zero trust dashboard url e.g. https://one.dash.cloudflare.com/<accountid>/home/quick-start\n tunnelid: tunnelid # found in tunnels dashboard under the tunnel name\n key: cloudflareapitoken # api token with `Account.Cloudflare Tunnel:Read` https://dash.cloudflare.com/profile/api-tokens\n
See the crowdsec docs for information about registering a machine, in most instances you can use the default credentials (/etc/crowdsec/local_api_credentials.yaml).
This widget can show information from custom self-hosted or third party API.
Fields need to be defined in the mappings section YAML object to correlate with the value in the APIs JSON object. Final field definition needs to be the key with the desired value information.
widget:\n type: customapi\n url: http://custom.api.host.or.ip:port/path/to/exact/api/endpoint\n refreshInterval: 10000 # optional - in milliseconds, defaults to 10s\n username: username # auth - optional\n password: password # auth - optional\n method: GET # optional, e.g. POST\n headers: # optional, must be object, see below\n requestBody: # optional, can be string or object, see below\n display: # optional, default to block, see below\n mappings:\n - field: key\n label: Field 1\n format: text # optional - defaults to text\n - field: path.to.key2\n format: number # optional - defaults to text\n label: Field 2\n - field: path.to.another.key3\n label: Field 3\n format: percent # optional - defaults to text\n - field: key\n label: Field 4\n format: date # optional - defaults to text\n locale: nl # optional\n dateStyle: long # optional - defaults to \"long\". Allowed values: `[\"full\", \"long\", \"medium\", \"short\"]`.\n timeStyle: medium # optional - Allowed values: `[\"full\", \"long\", \"medium\", \"short\"]`.\n - field: key\n label: Field 5\n format: relativeDate # optional - defaults to text\n locale: nl # optional\n style: short # optional - defaults to \"long\". Allowed values: `[\"long\", \"short\", \"narrow\"]`.\n numeric: auto # optional - defaults to \"always\". Allowed values `[\"always\", \"auto\"]`.\n - field: key\n label: Field 6\n format: text\n additionalField: # optional\n field: hourly.time.key\n color: theme # optional - defaults to \"\". Allowed values: `[\"theme\", \"adaptive\", \"black\", \"white\"]`.\n format: date # optional\n - field: key\n label: Number of things in array\n format: size\n # This (no field) will take the root of the API response, e.g. when APIs return an array:\n - label: Number of items\n format: size\n
Supported formats for the values are text, number, float, percent, duration, bytes, bitrate, size, date and relativeDate.
The dateStyle and timeStyle options of the date format are passed directly to Intl.DateTimeFormat and the style and numeric options of relativeDate are passed to Intl.RelativeTimeFormat.
The duration format expects the duration to be specified in seconds. The scale transformation tool can be used if a conversion is required.
The size format will return the length of the array or string, or the number of keys in an object. This is then formatted as number.
You can manipulate data with the following tools remap, scale, prefix and suffix, for example:
- field: key4\n label: Field 4\n format: text\n remap:\n - value: 0\n to: None\n - value: 1\n to: Connected\n - any: true # will map all other values\n to: Unknown\n- field: key5\n label: Power\n format: float\n scale: 0.001 # can be number or string e.g. 1/16\n suffix: \"kW\"\n- field: key6\n label: Price\n format: float\n prefix: \"$\"\n
You can change the default block view to a list view by setting the display option to list.
The list view can optionally display an additional field next to the primary field.
additionalField: Similar to field, but only used in list view. Displays additional information for the mapping object on the right.
field: Defined the same way as other custom api widget fields.
color: Allowed options: \"theme\", \"adaptive\", \"black\", \"white\". The option adaptive will apply a color using the value of the additionalField, green for positive numbers, red for negative numbers.
- field: key\n label: Field\n format: text\n remap:\n - value: 0\n to: None\n - value: 1\n to: Connected\n - any: true # will map all other values\n to: Unknown\n additionalField:\n field: hourly.time.key\n color: theme\n format: date\n
"},{"location":"widgets/services/customapi/#dynamic-list-view","title":"Dynamic List View","text":"
To display a list of items from an array in the API response, set the display property to dynamic-list and configure the mappings object with the following properties:
widget:\n type: customapi\n url: https://example.com/api/servers\n display: dynamic-list\n mappings:\n items: data # optional, the path to the array in the API response. Omit this option if the array is at the root level\n name: id # required, field in each item to use as the item name (left side)\n label: ip_address # required, field in each item to use as the item label (right side)\n limit: 5 # optional, limit the number of items to display\n format: text # optional - format of the label field\n target: https://example.com/server/{id} # optional, makes items clickable with template support\n
This configuration would work with an API that returns a response like:
The url should point to the DeveLanCacheUI Backend (API)
"},{"location":"widgets/services/diskstation/","title":"Synology Disk Station","text":"
Learn more about Synology Disk Station.
Note: the widget is not compatible with 2FA.
An optional 'volume' parameter can be supplied to specify which volume's free space to display when more than one volume exists. The value of the parameter must be in form of volume_N, e.g. to display free space for volume2, volume_2 should be set as 'volume' value. If omitted, first returned volume's free space will be shown (not guaranteed to be volume1).
To access these system metrics you need to connect to the DiskStation (DSM) with an account that is a member of the default Administrators group. That is because these metrics are requested from the API's SYNO.Core.System part that is only available to admin users. In order to keep the security impact as small as possible we can set the account in DSM up to limit the user's permissions inside the Synology system. In DSM 7.x, for instance, follow these steps:
Create a new user, i.e. remote_stats.
Set up a strong password for the new user
Under the User Groups tab of the user config dialogue check the box for Administrators.
On the Permissions tab check the top box for No Access, effectively prohibiting the user from accessing anything in the shared folders.
Under Applications check the box next to Deny in the header to explicitly prohibit login to all applications.
Now only allow login to the DSM and Download Station applications, either by
unchecking Deny in the respective row, or (if inheriting permission doesn't work because of other group settings)
checking Allow for this app, or
checking By IP for this app to limit the source of login attempts to one or more IP addresses/subnets.
When the Preview column shows Allow in the DSM row, click Save.
Now configure the widget with the correct login information and test it.
If you encounter issues during testing:
Make sure to uncheck the option for automatic blocking due to invalid logins under Control Panel > Security > Protection.
If desired, this setting can be reactivated once the login is established working.
Login to your Synology DSM with the newly created account and accept terms and conditions.
You can create an API key from inside Emby at Settings > Advanced > Api Keys.
As of v0.6.11 the widget supports fields [\"movies\", \"series\", \"episodes\", \"songs\"]. These blocks are disabled by default but can be enabled with the enableBlocks option, and the \"Now Playing\" feature (enabled by default) can be disabled with the enableNowPlaying option.
widget:\n type: emby\n url: http://emby.host.or.ip\n key: apikeyapikeyapikeyapikeyapikey\n enableBlocks: true # optional, defaults to false\n enableNowPlaying: true # optional, defaults to true\n enableUser: true # optional, defaults to false\n enableMediaControl: false # optional, defaults to true\n showEpisodeNumber: true # optional, defaults to false\n expandOneStreamToTwoRows: false # optional, defaults to true\n
Show the number of ESPHome devices based on their state.
Allowed fields: [\"total\", \"online\", \"offline\", \"offline_alt\", \"unknown\"] (maximum of 4).
By default ESPHome will only mark devices as offline if their address cannot be pinged. If it has an invalid config or its name cannot be resolved (by DNS) its status will be marked as unknown. To group both offline and unknown devices together, users should use the offline_alt field instead. This sums all devices that are not online together.
widget:\n type: esphome\n url: http://esphome.host.or.ip:port\n username: myesphomeuser # only if auth enabled\n password: myesphomepass # only if auth enabled\n
Application access & UPnP must be activated on your device:
Home Network > Network > Network Settings > Access Settings in the Home Network\n[x] Allow access for applications\n[x] Transmit status information over UPnP\n
Credentials are not needed and, as such, you may want to consider using http instead of https as those requests are significantly faster.
Allowed fields (limited to a max of 4): [\"connectionStatus\", \"uptime\", \"maxDown\", \"maxUp\", \"down\", \"up\", \"received\", \"sent\", \"externalIPAddress\", \"externalIPv6Address\", \"externalIPv6Prefix\"].
Uses the GameDig library to get game server information for any supported server type.
Allowed fields (limited to a max of 4): [\"status\", \"name\", \"map\", \"currentPlayers\", \"players\", \"maxPlayers\", \"bots\", \"ping\"].
widget:\n type: gamedig\n serverType: csgo # see https://github.com/gamedig/node-gamedig#games-list\n url: udp://server.host.or.ip:port\n gameToken: # optional, a token used by gamedig with certain games\n
The Glances widget allows you to monitor the resources (cpu, memory, diskio, sensors & processes) of host or another machine. You can have multiple instances by adding another service block.
widget:\n type: glances\n url: http://glances.host.or.ip:port\n username: user # optional if auth enabled in Glances\n password: pass # optional if auth enabled in Glances\n version: 4 # required only if running glances v4 or higher, defaults to 3\n metric: cpu\n diskUnits: bytes # optional, bytes (default) or bbytes. Only applies to disk\n refreshInterval: 5000 # optional - in milliseconds, defaults to 1000 or more, depending on the metric\n pointsLimit: 15 # optional, defaults to 15\n
Please note, this widget does not need an href, icon or description on its parent service. To achieve the same effect as the examples above, see as an example:
The metric field in the configuration determines the type of system monitoring data to be displayed. Here are the supported metrics:
info: System information. Shows the system's hostname, OS, kernel version, CPU type, CPU usage, RAM usage and SWAP usage.
cpu: CPU usage. Shows how much of the system's computational resources are currently being used.
memory: Memory usage. Shows how much of the system's RAM is currently being used.
process: Top 5 processes based on CPU usage. Gives an overview of which processes are consuming the most resources.
containers: Docker or Kubernetes containers list. Shows up to 5 containers running on the system and their resource usage.
network:<interface_name>: Network data usage for the specified interface. Replace <interface_name> with the name of your network interface, e.g., network:enp0s25, as specified in glances.
sensor:<sensor_id>: Temperature of the specified sensor, typically used to monitor CPU temperature. Replace <sensor_id> with the name of your sensor, e.g., sensor:Package id 0 as specified in glances.
disk:<disk_id>: Disk I/O data for the specified disk. Replace <disk_id> with the id of your disk, e.g., disk:sdb, as specified in glances.
gpu:<gpu_id>: GPU usage for the specified GPU. Replace <gpu_id> with the id of your GPU, e.g., gpu:0, as specified in glances.
fs:<mnt_point>: Disk usage for the specified mount point. Replace <mnt_point> with the path of your disk, e.g., /mnt/storage, as specified in glances.
To setup authentication, follow the official Gluetun documentation. Note that to use the api key method, you must add the route GET /v1/publicip/ip to the routes array in your Gluetun config.toml. Similarly, if you want to include the port_forwarded field, you must add the route GET /v1/openvpn/portforwarded to your Gluetun config.toml.
widget:\n type: gluetun\n url: http://gluetun.host.or.ip:port\n key: gluetunkey # Not required if /v1/publicip/ip endpoint is configured with `auth = none`\n
Specify a single check by including the uuid field or show the total 'up' and 'down' for all checks by leaving off the uuid field.
To use the Health Checks widget, you first need to generate an API key.
In your project, go to project Settings on the navigation bar.
Click on API key (read-only) and then click Create.
Copy the API key that is generated for you.
Allowed fields: [\"status\", \"last_ping\"] for single checks, [\"up\", \"down\"] for total stats.
widget:\n type: healthchecks\n url: http://healthchecks.host.or.ip:port\n key: <YOUR_API_KEY>\n uuid: <CHECK_UUID> # optional, if not included total statistics for all checks is shown\n
Up to a maximum of four custom states and/or templates can be queried via the custom property like in the example below. The custom property will have no effect as long as the fields property is defined.
state will query the state of the specified entity_id
state labels and values can be user defined and may reference entity attributes in curly brackets
if no state label is defined it will default to \"{attributes.friendly_name}\"
if no state value is defined it will default to \"{state} {attributes.unit_of_measurement}\"
template will query the specified template, see Home Assistant Templating
The Homebridge API is actually provided by the Config UI X plugin that has been included with Homebridge for a while, still it is required to be installed for this widget to work.
You can create an API key from inside Jellyfin at Settings > Advanced > Api Keys.
As of v0.6.11 the widget supports fields [\"movies\", \"series\", \"episodes\", \"songs\"]. These blocks are disabled by default but can be enabled with the enableBlocks option, and the \"Now Playing\" feature (enabled by default) can be disabled with the enableNowPlaying option.
widget:\n type: jellyfin\n url: http://jellyfin.host.or.ip\n key: apikeyapikeyapikeyapikeyapikey\n enableBlocks: true # optional, defaults to false\n enableNowPlaying: true # optional, defaults to true\n enableUser: true # optional, defaults to false\n enableMediaControl: false # optional, defaults to true\n showEpisodeNumber: true # optional, defaults to false\n expandOneStreamToTwoRows: false # optional, defaults to true\n
widget:\n type: kavita\n url: http://kavita.host.or.ip:port\n username: username\n password: password\n key: kavitaapikey # Optional, e.g. if not using username and password\n
This widget shows either details about all containers or stacks (if showStacks is true) managed by Komodo or the number of running servers, containers and stacks when showSummary is enabled.
The api key and secret can be found in the Komodo settings.
widget:\n type: linkwarden\n url: http://linkwarden.host.or.ip\n key: myApiKeyHere # On your Linkwarden install, go to Settings > Access Tokens. Generate a token.\n
Use the base URL of the Mastodon instance you'd like to pull stats for. Does not require authentication as the stats are part of the public API endpoints.
If your moonraker instance has an active authorization and your homepage ip isn't whitelisted you need to add your api key (Authorization Documentation).
Use username & password, or the NC-Token key. Information about the token can be found under Settings > System. If both are provided, NC-Token will be used.
This widget uses the same authentication method as your browser when logging in (HTTP Basic Auth), and is often referred to as the ControlUsername and ControlPassword inside of Nzbget documentation.
The method field determines the type of data to be displayed and is required. Supported methods:
services.getStatus: Shows status of running services. Allowed fields: [\"running\", \"stopped\", \"total\"]
smart.getListBg: Shows S.M.A.R.T. status from disks. Allowed fields: [\"passed\", \"failed\"]
downloader.getDownloadList: Displays the number of tasks from the Downloader plugin currently being downloaded and total. Allowed fields: [\"downloading\", \"total\"]
The API key & secret can be generated via the webui by creating a new user at System/Access/Users. Ensure \"Generate a scrambled password to prevent local database logins for this user\" is checked and then edit the effective privileges selecting only:
Finally, create a new API key which will download an apikey.txt file with your key and secret in it. Use the values as the username and password fields, respectively, in your homepage config.
Use username & password, or the token key. Information about the token can be found in the Paperless-ngx API documentation. If both are provided, the token will be used.
This widget requires an additional tool, PeaNUT, as noted. Other projects exist to achieve similar results using a customapi widget, for example NUTCase.
widget:\n type: peanut\n url: http://peanut.host.or.ip:port\n key: nameofyourups\n username: username # only needed if set\n password: password # only needed if set\n
This widget requires the installation of the pfsense-api which is a 3rd party package for pfSense routers.
Once pfSense API is installed, you can set the API to be read-only in System > API > Settings.
There are two currently supported authentication modes: 'Local Database' and 'API Key' (v2) / 'API Token' (v1). For 'Local Database', use username and password with the credentials of an admin user. The specifics of using the API key / token depend on the version of the pfSense API, see the config examples below. Do not use both headers and username / password.
The interface to monitor is defined by updating the wan parameter. It should be referenced as it is shown under Interfaces > Assignments in pfSense.
Load is returned instead of cpu utilization. This is a limitation in the pfSense API due to the complexity of this calculation. This may become available in future versions.
widget:\n type: pfsense\n url: http://pfsense.host.or.ip:port\n username: user # optional, or API key\n password: pass # optional, or API key\n headers: # optional, or username/password\n X-API-Key: key\n wan: igb0\n version: 2 # optional, defaults to 1 for api v1\n fields: [\"load\", \"memory\", \"temp\", \"wanStatus\"] # optional\n
For version 1:
headers: # optional, or username/password\n Authorization: client_id client_token # obtained from pfSense API\nversion: 1\n
widget:\n type: photoprism\n url: http://photoprism.host.or.ip:port\n username: admin # required only if using username/password\n password: password # required only if using username/password\n key: # required only if using app passwords\n
Note: by default the \"blocked\" and \"blocked_percent\" fields are merged e.g. \"1,234 (15%)\" but explicitly including the \"blocked_percent\" field will change them to display separately.
widget:\n type: pihole\n url: http://pi.hole.or.ip\n version: 6 # required if running v6 or higher, defaults to 5\n key: yourpiholeapikey # optional, in v6 can be your password or app password\n
The core Plex API is somewhat limited but basic info regarding library sizes and the number of active streams is supported. For more detailed info regarding active streams see the Plex Tautulli widget.
You'll need to make sure you have the correct environment set for the integration to work properly. From the Environments section inside of Portainer, click the one you'd like to connect to and observe the ID at the end of the URL (should be), something like #!/endpoints/1, here 1 is the value to set as the env value. In order to generate an API key, please follow the steps outlined here https://docs.portainer.io/api/access.
Allowed fields:
For Docker mode (default): [\"running\", \"stopped\", \"total\"]
For Kubernetes mode (kubernetes: true): [\"applications\", \"services\", \"namespaces\"]
This widget can show metrics for your service defined by PromQL queries which are requested from a running Prometheus instance.
Quries can be defined in the metrics array of the widget along with a label to be used to present the metric value. You can optionally specify a global refreshInterval in milliseconds and/or define the refreshInterval per metric. Inside the optional format object of a metric various formatting styles and transformations can be applied (see below).
Supported values for format.type are text, number, percent, bytes, bits, bbytes, bbits, byterate, bibyterate, bitrate, bibitrate, date, duration, relativeDate, and text which is the default.
The dateStyle and timeStyle options of the date format are passed directly to Intl.DateTimeFormat and the style and numeric options of relativeDate are passed to Intl.RelativeTimeFormat. For the number format, options of Intl.NumberFormat can be used, e.g. maximumFractionDigits or minimumFractionDigits.
You can manipulate your metric value with the following tools: scale, prefix and suffix, for example:
- query: my_custom_metric{}\n label: Metric 1\n format:\n type: number\n scale: 1000 # multiplies value by a number or fraction string e.g. 1/16\n- query: my_custom_metric{}\n label: Metric 2\n format:\n type: number\n prefix: \"$\" # prefixes value with given string\n- query: my_custom_metric{}\n label: Metric 3\n format:\n type: number\n suffix: \"\u20ac\" # suffixes value with given string\n
This widget shows the running and total counts of both QEMU VMs and LX Containers in the Proxmox cluster. It also shows the CPU and memory usage of the first node in the cluster.
See the Proxmox configuration documentation for details on creating API tokens.
Use username@pam!Token ID as the username (e.g api@pam!homepage) setting and Secret as the password setting.
widget:\n type: proxmoxbackupserver\n url: https://proxmoxbackupserver.host:port\n username: api_token_id\n password: api_token_secret\n datastore: datastore_name #optional; if ommitted, will display a combination of all datastores used / total\n
Allowed fields: [\"platforms\", \"totalRoms\", \"saves\", \"states\", \"screenshots\", \"totalfilesize\"]. If more than (4) fields are provided, only the first (4) will be used.
This requires the httprpc plugin to be installed and enabled, and is part of the default ruTorrent plugins. If you have not explicitly removed or disable this plugin, it should be available.
Learn more about Speedtest Tracker. or Speedtest Tracker
No extra configuration is required.
Version 1 of the widget is compatible with both alexjustesen/speedtest-tracker and henrywhitaker3/Speedtest-Tracker, while version 2 is only compatible with alexjustesen/speedtest-tracker.
Speedtest Version (AJ) Speedtest Version (HW) Homepage Widget Version < 1.2.1 \u2264 1.12.0 1 (default) >= 1.2.1 N/A 2
4 spools are displayed by default. If more than 4 spools are configured in spoolman you can use the spoolIds configuration option to control which are displayed.
Find your API key from inside Stash at Settings > Security > API Key. Note that the API key is only required if your Stash instance has login credentials.
Finnhub.io is currently the only supported provider for the stocks widget. You can sign up for a free api key at finnhub.io. You are encouraged to read finnhub.io's terms of service/privacy policy before signing up.
Allowed fields: no configurable fields for this widget.
You must set finnhub as a provider in your settings.yaml:
providers:\n finnhub: yourfinnhubapikeyhere\n
Next, configure the stocks widget in your services.yaml:
The service widget allows for up to 28 items in the watchlist. You may get rate limited if using the information and service widgets together.
The widget defaults to the first four above. If more than four fields are provided, only the first 4 are displayed. Category IDs can be obtained from the url when navigating to it, ?tab={categoryID}.
widget:\n type: suwayomi\n url: http://suwayomi.host.or.ip\n username: username #optional\n password: password #optional\n category: 0 #optional, defaults to all categories\n
You will need to generate an API access token from the keys page on the Tailscale dashboard.
To find your device ID, go to the machine overview page and select your machine. In the \"Machine Details\" section, copy your ID. It will end with CNTRL.
range value determines how far back of statistics to pull data for. The value comes directly from Technitium API documentation found here, defined as \"type\". The value can be one of: LastHour, LastDay, LastWeek, LastMonth, LastYear.
No extra configuration is required. If your traefik install requires authentication, include the username and password used to login to the web interface.
widget:\n type: transmission\n url: http://transmission.host.or.ip\n username: username\n password: password\n rpcUrl: /transmission/ # Optional. Matches the value of \"rpc-url\" in your Transmission's settings.json file\n
To create an API Key, follow the official TrueNAS documentation.
A detailed pool listing is disabled by default, but can be enabled with the enablePools option.
To use the enablePools option with TrueNAS Core, the nasType parameter is required.
widget:\n type: truenas\n url: http://truenas.host.or.ip\n username: user # not required if using api key\n password: pass # not required if using api key\n key: yourtruenasapikey # not required if using username / password\n enablePools: true # optional, defaults to false\n nasType: scale # defaults to scale, must be set to 'core' if using enablePools with TrueNAS Core\n
(Find the Unifi Controller information widget here)
You can display general connectivity status from your Unifi (Network) Controller.
Warning
When authenticating you will want to use a local account that has at least read privileges.
An optional 'site' parameter can be supplied, if it is not the widget will use the default site for the controller.
Allowed fields: [\"uptime\", \"wan\", \"lan\", \"lan_users\", \"lan_devices\", \"wlan\", \"wlan_users\", \"wlan_devices\"] (maximum of four). Fields unsupported by the unifi device will not be shown.
Hint
If you enter e.g. incorrect credentials and receive an \"API Error\", you may need to recreate the container or restart the service to clear the cache.
widget:\n type: unifi\n url: https://unifi.host.or.ip:port\n site: Site Name # optional\n username: user\n password: pass\n key: unifiapikey # required if using API key instead of username/password\n
widget:\n type: unraid\n url: https://unraid.host.or.ip\n key: api-key\n pool1: pool1name # required only if using pool1 fields\n pool2: pool2name # required only if using pool2 fields\n pool3: pool3name # required only if using pool3 fields\n pool4: pool4name # required only if using pool4 fields\n
As Uptime Kuma does not yet have a full API the widget uses data from a single \"status page\". As such you will need a status page setup with a group of monitored sites, which is where you get the slug (the url without the /status/ portion). E.g. if your status page is URL http://uptimekuma.host/status/statuspageslug, insert slug: statuspageslug.
The UrBackup widget retrieves the total number of clients that currently have no errors, have errors, or haven't backed up recently. Clients are considered \"Errored\" or \"Out of Date\" if either the file or image backups for that client have errors/are out of date, unless the client does not support image backups.
The default number of days that can elapse before a client is marked Out of Date is 3, but this value can be customized by setting the maxDays value in the config.
Optionally, the widget can also report the total amount of disk space consumed by backups. This is disabled by default, because it requires a second API call.
Note: client status is only shown for backups that the specified user has access to. Disk Usage shown is the total for all backups, regardless of permissions.
Allowed fields: [\"ok\", \"errored\", \"noRecent\", \"totalUsed\"]. Note that totalUsed will not be shown unless explicitly included in fields.
Note: by default [\"connected\", \"enabled\", \"total\"] are displayed.
To detect if a device is connected the time since the last handshake is queried. threshold is the time to wait in minutes since the last handshake to consider a device connected. Default is 2 minutes.
Wg-Easy API Version Homepage Widget Version < v15 1 (default) >= v15 2
widget:\n type: wgeasy\n url: http://wg.easy.or.ip\n version: 2 # optional, default is 1\n username: yourwgusername # required for v15 and above\n password: yourwgeasypassword\n threshold: 2 # optional\n
"},{"location":"widgets/services/whatsupdocker/","title":"What's Up Docker","text":"
Allowed values for interval: day, week, month, year, all.
Note
interval is different from predefined intervals you see in Your Spotify's UI. For example, This week in UI means from the start of this week, here week means past 7 days.
For API errors, clicking the "API Error Information" button in the widget will usually show some helpful information as to whether the issue is reaching the service host, an authentication issue, etc.
+
Check config/logs/homepage.log, on docker simply e.g. docker logs homepage. This may provide some insight into the reason for an error.
+
Check the browser error console, this can also sometimes provide useful information.
+
Consider setting the ENV variable LOG_LEVEL to debug.
+
If certain widgets are failing when connecting to public APIs, consider disabling IPv6.
+
+
Service Widget Errors
+
All service widgets work essentially the same, that is, homepage makes a proxied call to an API made available by that service. The majority of the time widgets don't work it is a configuration issue. Of course, sometimes things do break. Some basic steps to check:
+
+
+
URLs should not end with a / or other API path. Each widget will handle the path on its own.
+
+
+
All services with a widget require a unique name as well as a unique group (and all subgroups) name.
+
+
+
Verify the homepage installation can connect to the IP address or host you are using for the widget url. This is most simply achieved by pinging the server from the homepage machine, in Docker this means from inside the container itself, e.g.:
+
docker exec homepage ping SERVICEIPORDOMAIN
+
+
If your homepage install (container) cannot reach the service then you need to figure out why, for example in Docker this can mean putting the two containers on the same network, checking firewall issues, etc.
+
+
+
If you have verified that homepage can in fact reach the service then you can also check the API output using e.g. curl, which is often helpful if you do need to file a bug report. Again, depending on your networking setup this may need to be run from inside the container as IP / hostname resolution can differ inside vs outside.
+
+
Note
+
curl is not installed in the base image by default but can be added inside the container with apk add curl.
+
+
The exact API endpoints and authentication vary of course, but in many cases instructions can be found by searching the web or if you feel comfortable looking at the homepage source code (e.g. src/widgets/{widget}/widget.js).
+
It is out of the scope of this to go into full detail about how to , but an example for PiHole would be:
This will return some data which may reveal an issue causing a true bug in the service widget.
+
+
+
Missing custom icons
+
If, after correctly adding and mapping your custom icons via the Icons instructions, you are still unable to see your icons please try recreating your container.
+
Disabling IPv6
+
If you are having issues with certain widgets that are unable to reach public APIs (e.g. weather), in certain setups you may need to disable IPv6. You can set the environment variable HOMEPAGE_PROXY_DISABLE_IPV6 to true to disable IPv6 for the homepage proxy.
+
Alternatively, you can use the sysctls option in your docker-compose file to disable IPv6 for the homepage container completely:
Homepage provides the useWidgetAPI hook to help you fetch data from an API. This hook insures that the data is fetched using a proxy, and is critical for security.
+
Here is an example of how the useWidgetAPI hook looks:
endpoint: The name of the endpoint to fetch data from.
+
params: An optional object containing query parameters to pass to the API.
+
+
widget
+
The widget argument is the metadata object for the widget. It contains information about the API endpoint, proxy handler, and mappings. This object is used by the useWidgetAPI hook to fetch data from the API. This is generally passed in as a prop from the parent component.
+
endpoint
+
The endpoint argument is the name of the endpoint to fetch data from. This is defined in the widget metadata object. The useWidgetAPI hook uses this argument to determine which endpoint to fetch data from.
+
If no endpoint is provided, the useWidgetAPI hook will call the API endpoint defined in the widget metadata object directly.
+
params
+
The params argument is an optional object containing query parameters to pass to the API. This is useful for filtering data or passing additional information to the API. This object is passed directly to the API endpoint as query parameters.
+
Here is an example of how to use the params argument:
+
Fetch data from the stats endpoint with query parameters
Homepage widgets are built using React components. These components are responsible for fetching data from the API and rendering the widget UI. Homepage provides a set of hooks and utilities to help you build your widget component.
We'll cover two sections of the widget component: hooks and components.
+
Hooks
+
useTranslation
+
This hook is used to translate text and numerical content in widgets. Homepage provides a set of helpers to help you localize your widgets. You can learn more about translations in the Translations Guide.
+
useWidgetAPI
+
This hook is used to fetch data from the API. We cover this hook in more detail in the API Guide.
+
Components
+
Homepage provides a set of components to help you build your widget UI. These components are designed to provide a consistent layout, and all widgets are expected to use these components.
+
+
<Container>
+
This component is a wrapper for the widget. It provides a consistent layout for all widgets.
+
<Containerservice={service}></Container>
+
+
service is a prop that is passed to the widget component. It contains information about the service that the widget is displaying.
+
If there is an error fetching data from the API, the error prop can be passed to the Container component.
The label prop is used to look up the translation key in the translation files. The value prop is used to display the value of the block. To learn more about translations, please refer to the Translations Guide.
+
If there is no data available, the Block component can be used to display a placeholder layout.
This is a Next.js application, see their documentation for more information.
+
Code Linting
+
Once dependencies have been installed you can lint your code with
+
pnpmlint
+
+
Code formatting with pre-commit hooks
+
To ensure a consistent style and formatting across the project source, the project utilizes Git pre-commit hooks to perform some formatting and linting before a commit is allowed.
+
Once installed, hooks will run when you commit. If the formatting isn't quite right, the commit will be rejected and you'll need to look at the output and fix the issue. Most hooks will automatically format failing files, so all you need to do is git add those files again and retry your commit.
In general, homepage is meant to be a dashboard for 'self-hosted' services and we believe it is a small way we can help showcase this kind of software. While exceptions are made, mostly when there is no viable
+self-hosted / open-source alternative, we ask that any widgets, etc. are developed primarily for a self-hosted tool.
+
New Feature or Enhancement Guidelines
+
+
New features or enhancements, no matter how small, must be linked to an existing feature request with some comments or 'up-votes' that demonstrate community interest. The purpose of this requirement is to avoid the addition (and maintenance) of features that might only benefit a small number of users.
+
If you have ideas for a larger feature you may want to open a discussion first.
+
+
Service Widget Guidelines
+
To ensure cohesiveness of various widgets, the following should be used as a guide for developing new widgets:
+
+
Please only submit widgets that target a feature request discussion with at least 20 'up-votes'. The purpose of this requirement is to avoid the addition (and maintenance) of service widgets that might only benefit a small number of users.
+
Note that we reserve the right to decline widgets for projects that are very young (eg < ~1y) or those with a small reach (eg low GitHub stars). Again, this is in an effort to keep overall widget maintenance under control.
+
Widgets should be only one row of blocks
+
Widgets should be no more than 4 blocks wide and generally conform to the styling / design choices of other widgets
+
Minimize the number of API calls
+
Avoid the use of custom proxy unless absolutely necessary
+
Widgets should be 'read-only', as in they should not make write changes using the relevant tool's API. Homepage widgets are designed to surface information, not to be a (usually worse) replacement for the tool itself.
+
Widgets should not allow manually overriding the "refresh interval" setting, as misconfigured refresh intervals can easily lead to performance issues for users.
Widgets are a core component of Homepage. They are used to display information about your system, services, and environment.
+
Overview
+
If you are new to Homepage widgets, and are looking to create a new widget, please follow along with the guide here: Widget Tutorial.
+
Translations
+
All text and numerical content in widgets should be translated and localized. English is the default language, and other languages can be added via Crowdin.
+
To learn more about translations, please refer to the guide here: Translations Guide.
+
Widget Component
+
The widget component is the core of the widget. It is responsible for fetching data from the API and rendering the widget UI. Homepage provides a set of hooks and utilities to help you build your widget component.
+
To learn more about widget components, please refer to the guide here: Component Guide.
+
Widget Metadata
+
Widget metadata defines the configuration of the widget. It defines the API endpoint to fetch data from, the proxy handler to use, and any data mappings.
+
To learn more about widget metadata, endpoint and data mapping, please refer to the guide here: Metadata Guide.
+
To learn more about proxy handlers, please refer to the guide here: Proxies Guide.
+
To learn more about making API calls from inside your widget, please refer to the guide here: API Guide.
Here, we will go over how to create and configure Homepage widget metadata. Metadata is a JS object that contains information about the widget, such as the API endpoint, proxy handler, and mappings. This metadata is used by Homepage to fetch data from the API and pass it to the widget.
+
Widgets Configuration
+
Here are some examples of how to configure a widget's metadata object.
A widget's metadata is quite powerful and can be configured in many different ways.
+
Configuration Properties
+
api
+
The api property is a string that represents the URL of the API endpoint that the widget will use to fetch data. The URL can contain placeholders that will be replaced with actual values at runtime. For example, the {url} placeholder will be replaced with the URL of the configured widget, and the {endpoint} placeholder will be replaced with the value of the endpoint property in the mappings object.
The proxyHandler property is a function that will be used to make the API request. Homepage includes some built-in proxy handlers that can be used out of the box:
+
Here is an example of the generic proxy handler that makes unauthenticated requests to the specified API endpoint.
If you are looking to learn more about proxy handlers, please refer to the guide here: Proxies Guide.
+
mappings
+
The mappings property is an object that contains information about the API endpoint, such as the endpoint name, validation rules, and parameter names. The mappings object can contain multiple endpoints, each with its own configuration.
+
+
Security Note
+
The mappings or allowedEndpoints property is required for the widget to fetch data from more than a static URL. Homepage uses a whitelist approach to ensure that widgets only access allowed endpoints.
The endpoint property is a string that represents the name of the API endpoint that the widget will use to fetch data. This value will be used to replace the {endpoint} placeholder in the api property.
The validate property is an array of strings that represent the keys that should be validated in the API response. If the response does not contain all of the specified keys, the widget will not render.
This configuration will ensure that the API response contains the total and average keys before the widget is rendered.
+
params
+
The params property is an array of strings that represent the keys that should be passed as parameters to the API endpoint. These keys will be replaced with the actual values at runtime.
This configuration will pass the start and end keys as parameters to the API endpoint. The values are passed as an object to the useWidgetAPI hook.
+
map
+
The map property is a function that will be used to transform the API response before it is passed to the widget. This function is passed the raw API response and should return the transformed data.
The method represents the HTTP method that should be used to make the API request. The default value is GET. Note that POST requests are not allowed via the
+widget API and require the use of a custom proxy.
+
headers
+
The headers property is an object that contains additional headers that should be included in the API request. If your endpoint requires specific headers, you can include them here.
The body property is an object that contains the data that should be sent in the request body. This property is only used when the method property is set to POST or PUT.
The allowedEndpoints property is a RegExp that represents the allowed endpoints that the widget can use. If the widget tries to access an endpoint that is not allowed, the request will be blocked.
+
allowedEndpoints can be used when endpoint validation is simple and can be done using a regular expression, and more control is not required.
+
+
Security Note
+
The mappings or allowedEndpoints property is required for the widget to fetch data from more than a static URL. Homepage uses a whitelist approach to ensure that widgets only access allowed endpoints.
Homepage includes a set of built-in proxy handlers that can be used to fetch data from an API. We will go over how to use these proxy handlers and briefly cover how to create your own.
+
Available Proxy Handlers
+
Homepage comes with a few built-in proxy handlers that can be used to fetch data from an API. These handlers are located in the utils/proxy/handlers directory.
+
genericProxyHandler
+
A proxy handler that makes generally unauthenticated requests to the specified API endpoint.
A proxy handler that makes authenticated requests by setting request headers. Credentials are pulled from the widgets configuration.
+
By default the key is passed as an X-API-Key header. If you need to pass the key as something else, either add a case to the credentialedProxyHandler or create a new proxy handler.
A proxy handler that makes authenticated JSON-RPC requests to the specified API endpoint, either using username + password or an API token.
+The endpoint is the method to call and queryParams are used as the parameters.
You can create your own proxy handler to fetch data from an API. A proxy handler is a function that takes a configuration object and returns a function that makes the API request.
+
The proxy handler function takes three arguments:
+
+
req: The request object.
+
res: The response object.
+
map: A function that maps the API response to the widget data.
+
+
The proxy handler function should return a promise that resolves to the API response.
+
Here is an example of a simple proxy handler that fetches data from an API and passes it to the widget:
Proxy handlers are a complex topic and require a good understanding of JavaScript and the Homepage codebase. If you are new to Homepage, we recommend using the built-in proxy handlers.
All text and numerical content in widgets should be translated and localized. English is the default language, and other languages can be added via Crowdin.
+
Translations
+
Homepage uses the next-i18next library to handle translations. This library provides a set of hooks and utilities to help you localize your widgets, and Homepage has extended this library to support additional features.
Homepage uses translated and localized strings for all text and numerical content in widgets. English is the default language, and other languages can be added via Crowdin. To add the English translations for your widget, follow these steps:
+
Open the public/locales/en/common.json file.
+
Add a new object for your widget to the bottom of the list, like this:
Even if you natively speak another language, you should only add English translations. You can then add translations in your native language via Crowdin, once your widget is merged.
+
+
Common Translations
+
Homepage provides a set of common translations that you can use in your widgets. These translations are used to format numerical content, dates, and other common elements.
In this guide, we'll walk through the process of creating a custom widget for Homepage. We'll cover the basic structure of a widget, how to use translations, and how to fetch data from an API. By the end of this guide, you'll have a solid understanding of how to build your own custom widget.
+
Prerequisites:
+
+
Basic knowledge of React and JavaScript
+
Familiarity with the Homepage platform
+
Understanding of JSON and API interactions
+
+
Throughout this guide, we'll use yourwidget as a placeholder for the unique name of your custom widget. Replace yourwidget with the actual name of your widget. It should contain only lowercase letters and no spaces.
+
This guide makes use of a fake API, which would return a JSON response as such, when called with the v1/info endpoint:
+
{"key1":123,"key2":456,"key3":789}
+
+
Set up the widget definition
+
Create a new folder for your widget in the src/widgets directory. Name the folder yourwidget.
+
Inside the yourwidget folder, create a new file named widget.js. This file will contain the metadata for your widget.
+
Open the widget.js file and add the following code:
We import the genericProxyHandler from the utils/proxy/handlers/generic module. The genericProxyHandler is a generic handler that can be used to fetch data from an API. We then assign the genericProxyHandler to the proxyHandler property of the widget object. There are other handlers available that you can use depending on your requirements. You can also create custom handlers if needed.
+
We define a widget object that contains the metadata for the widget.
+
The API endpoint to fetch data from. You can use placeholders like {url} and {endpoint} to dynamically generate the API endpoint based on the widget configuration.
+
An object that contains mappings for different endpoints. Each mapping should have an endpoint property that specifies the endpoint to fetch data from.
+
A mapping named info that specifies the v1/info endpoint to fetch data from. This would be called from the component as such: useWidgetAPI(widget,"info");
+
The endpoint property of the info mapping specifies the endpoint to fetch data from. There are other properties you can pass to the mapping, such as method, headers, and body.
+
+
+
Important
+
All widgets that fetch data from dynamic endpoints should have either mappings or an allowedEndpoints property.
+
+
Including translation strings in your widget
+
Refer to the translations guide for more details. The Homepage community prides itself on being multilingual, and we strongly encourage you to add translations for your widgets.
+
Create the widget component
+
Create a new file for your widgets component, named component.jsx, in the src/widgets/yourwidget directory. We'll build the contents of the component.jsx file step by step.
We destructure the widget object from the service prop. The widget object contains the metadata for the widget, such as the API endpoint to fetch data from.
Now, the fun part! We use the useWidgetAPI hook to fetch data from an API. The useWidgetAPI hook takes two arguments: the widget object and the API endpoint to fetch data from. The useWidgetAPI hook returns an object with data and error properties.
You'll see here how part of the API url is built using the url and endpoint properties from the widget definition.
+
In this case, we're fetching data from the info endpoint. The info endpoint is defined in the mappings object. So the full API endpoint will be "{url}/v1/info".
+
The mapping and endpoint are often the same, but must be defined regardless.
+
+
+
Next, we check if there's an error or no data.
+
If there's an error, we return a Container and pass it the service and error as props. The Container component will handle displaying the error message.
This will render the widget with placeholders for the data, i.e., a skeleton view.
+
+
Translation Tips
+
The label prop in the Block component corresponds to the translation key we defined earlier in the common.json file. All text and numerical content should be translated.
+
+
+
If there is data, we return a Container component with three Block components, each with a label and a value.
+
Here we use the t function from the useTranslation hook to translate the data values. The t function takes the translation key and an object with variables to interpolate into the translation string.
+
We're using the common.number translation key to format the data values as numbers. This allows for easy localization of numbers, such as using commas or periods as decimal separators.
+
There are a large number of common numerical translation keys available, which you can learn more about in the Translation Guide.
You'll see here how part of the API url is built using the url and endpoint properties from the widget definition.
+
We defined the api endpoint as "{url}/{endpoint}". This is where the url is defined. So the full API endpoint will be http://127.0.0.1:1337/{endpoint}.
+
+
+
That's it! You've successfully created a custom widget for Homepage. If you have any questions or need help, feel free to reach out to the Homepage community for assistance. Happy coding!
Homepage has two types of widgets: info and service. Below we'll cover each type and how to configure them.
+
The left navigation of this site contains links to all available widgets.
+
Service Widgets
+
Service widgets are used to display the status of a service, often a web service or API. Services (and their widgets) are defined in your services.yaml file. Here's an example:
+
-Plex:
+icon:plex.png
+href:https://plex.my.host
+description:Watch movies and TV shows.
+server:localhost
+container:plex
+widgets:
+-type:tautulli
+url:http://172.16.1.1:8181
+key:aabbccddeeffgghhiijjkkllmmnnoo
+-type:uptimekuma
+url:http://172.16.1.2:8080
+slug:aaaaaaabbbbb
+
+
More detail on configuring service widgets can be found in the Service Widgets Config section.
+
Info Widgets
+
Info widgets are used to display information in the header, often about your system or environment. Info widgets are defined in your widgets.yaml file. Here's an example:
This allows you to display the date and/or time, can be heavily configured using Intl.DateTimeFormat.
+
Formatting is locale aware and will present your date in the regional format you expect, for example, 9/16/22, 3:03 PM for locale en and 16.09.22, 15:03 for de. You can also specify a locale just for the datetime widget with the locale option (see below).
The Glances widget allows you to monitor the resources (CPU, memory, storage, temp & uptime) of host or another machine, and is designed to match the resources info widget. You can have multiple instances by adding another configuration block. The cputemp, uptime & disk states require separate API calls and thus are not enabled by default. Glances needs to be running in "web server" mode to enable the API, see the glances docs.
+
-glances:
+url:http://host.or.ip:port
+username:user# optional if auth enabled in Glances
+password:pass# optional if auth enabled in Glances
+version:4# required only if running glances v4 or higher, defaults to 3
+cpu:true# optional, enabled by default, disable by setting to false
+mem:true# optional, enabled by default, disable by setting to false
+cputemp:true# disabled by default
+uptime:true# disabled by default
+disk:/# disabled by default, use mount point of disk(s) in glances. Can also be a list (see below)
+diskUnits:bytes# optional, bytes (default) or bbytes. Only applies to disk
+expanded:true# show the expanded view
+label:MyMachine# optional
+
This is very similar to the Resources widget, but provides resource information about a Kubernetes cluster.
+
It provides CPU and Memory usage, by node and/or at the cluster level.
+
-kubernetes:
+cluster:
+# Shows cluster-wide statistics
+show:true
+# Shows the aggregate CPU stats
+cpu:true
+# Shows the aggregate memory stats
+memory:true
+# Shows a custom label
+showLabel:true
+label:"cluster"
+nodes:
+# Shows node-specific statistics
+show:true
+# Shows the CPU for each node
+cpu:true
+# Shows the memory for each node
+memory:true
+# Shows the label, which is always the node name
+showLabel:true
+
The Longhorn widget pulls storage utilization metrics from the Longhorn storage driver on Kubernetes.
+It is designed to appear similar to the Resource widget's disk representation.
+
The exact metrics should be very similar to what is seen on the Longhorn dashboard itself.
+
It can show the aggregate metrics and/or the individual node metrics.
+
-longhorn:
+# Show the expanded view
+expanded:true
+# Shows a node representing the aggregate values
+total:true
+# Shows the node names as labels
+labels:true
+# Show the nodes
+nodes:true
+# An explicit list of nodes to show. All are shown by default if "nodes" is true
+include:
+-node1
+-node2
+
+
The Longhorn URL and credentials are stored in the providers section of the settings.yaml. e.g.:
-openmeteo:
+label:Kyiv# optional
+latitude:50.449684
+longitude:30.525026
+timezone:Europe/Kiev# optional
+units:metric# or imperial
+cache:5# Time in minutes to cache API responses, to stay within limits
+format:# optional, Intl.NumberFormat options
+maximumFractionDigits:1
+
+
You can optionally not pass a latitude and longitude and the widget will use your current location (requires a secure context, eg. HTTPS).
The free tier "One Call API" is all that's required, you will need to subscribe and grab your API key.
+
-openweathermap:
+label:Kyiv#optional
+latitude:50.449684
+longitude:30.525026
+units:metric# or imperial
+provider:openweathermap
+apiKey:youropenweathermapkey# required only if not using provider, this reveals api key in requests
+cache:5# Time in minutes to cache API responses, to stay within limits
+format:# optional, Intl.NumberFormat options
+maximumFractionDigits:1
+
+
You can optionally not pass a latitude and longitude and the widget will use your current location (requires a secure context, eg. HTTPS).
You can include all or some of the available resources. If you do not want to see that resource, simply pass false.
+
The disk path is the path reported by df (Mounted On), or the mount point of the disk.
+
The cpu and memory resource information are the container's usage while glances displays statistics for the host machine on which it is installed.
+
The resources widget primarily relies on a popular tool called systeminformation. Thus, any limitiations of that software apply, for example, BRTFS RAID is not supported for the disk usage. In this case users may want to use the glances widget instead.
+
Note: unfortunately, the package used for getting CPU temp (systeminformation) is not compatible with some setups and will not report any value(s) for CPU temp.
+
Any disk you wish to access must be mounted to your container as a volume.
+
-resources:
+cpu:true
+memory:true
+disk:/disk/mount/path
+cputemp:true
+tempmin:0# optional, minimum cpu temp
+tempmax:100# optional, maximum cpu temp
+uptime:true
+units:imperial# only used by cpu temp, options: 'imperial' or 'metric'
+refresh:3000# optional, in ms
+diskUnits:bytes# optional, bytes (default) or bbytes. Only applies to disk
+network:true# optional, uses 'default' if true or specify a network interface name
+
+
You can also pass a label option, which allows you to group resources under named sections,
You can additionally supply an optional expanded property set to true in order to show additional details about the resources. By default the expanded property is set to false when not supplied.
You can add a search bar to your top widget area that can search using Google, Duckduckgo, Bing, Baidu, Brave or any other custom provider that supports the basic ?q= search query param.
+
-search:
+provider:google# google, duckduckgo, bing, baidu, brave or custom
+focus:true# Optional, will set focus to the search bar on page load
+showSearchSuggestions:true# Optional, will show search suggestions. Defaults to false
+target:_blank# One of _self, _blank, _parent or _top
+
The first entry of the array contains the search query, the second one is an array of the suggestions.
+In the example above, the search query was home.
The Stocks Information Widget allows you to include basic stock market data in
+your Homepage header. The widget includes the current price of a stock, and the
+change in price for the day.
+
Finnhub.io is currently the only supported provider for the stocks widget.
+You can sign up for a free api key at finnhub.io.
+You are encouraged to read finnhub.io's
+terms of service/privacy policy before
+signing up. The documentation for the endpoint that is utilized can be viewed
+here.
+
You must set finnhub as a provider in your settings.yaml like below:
+
providers:
+finnhub:yourfinnhubapikeyhere
+
+
Next, configure the stocks widget in your widgets.yaml:
+
The information widget allows for up to 8 items in the watchlist.
You can display general connectivity status from your Unifi (Network) Controller.
+
+
Warning
+
When authenticating you will want to use a local account that has at least read privileges.
+
+
An optional 'site' parameter can be supplied, if it is not the widget will use the default site for the controller.
+
+
Hint
+
If you enter e.g. incorrect credentials and receive an "API Error", you may need to recreate the container to clear the cache.
+
+
+
-unifi_console:
+url:https://unifi.host.or.ip:port
+site:Site Name# optional
+username:user
+password:pass
+key:unifiapikey# required if using API key instead of username/password
+
This widget extracts UPS information from an apcupsd daemon.
+Only works for APC/Schneider UPS products.
+
[!NOTE]
+By default apcupsd daemon is bound to 127.0.0.1. Edit /etc/apcupsd.conf and change NISIP to an IP accessible from your homepage docker (usually your internal LAN interface).
You can generate an API key either by creating a bearer token for an existing account, see Authorization (not recommended) or create a new local user account with limited privileges and generate an authentication token for this account. To do this the steps are:
Setup RBAC configuration for your the user and give it readonly access to your ArgoCD resources, e.g. by giving it the role:readonly role.
+
In your ArgoCD project under Settings / Accounts open the newly created account and in the Tokens section click on Generate New to generate an access token, optionally specifying an expiry date.
+
+
If you installed ArgoCD via the official Helm chart, the account creation and rbac config can be achived by overriding these helm values:
This widget reads the number of active users in the system, as well as logins for the last 24 hours.
+
You will need to generate an API token for an existing user under Admin Portal > Directory > Tokens & App passwords.
+Make sure to set Intent to "API Token".
+
The account you made the API token for also needs the following Assigned global permissions in Authentik:
Pipelines: checks if the relevant pipeline is running or not, and if not, reports the last status.
+ Allowed fields: ["result", "status"].
+
+
+
Pull Requests: returns the amount of open PRs, the amount of the PRs you have open, and how many PRs that you open are marked as 'Approved' by at least 1 person and not yet completed.
+ Allowed fields: ["totalPrs", "myPrs", "approved"].
+
+
+
You will need to generate a personal access token for an existing user, see the azure documentation
+
widget:
+type:azuredevops
+organization:myOrganization
+project:myProject
+definitionId:pipelineDefinitionId# required for pipelines
+branchName:branchName# optional for pipelines, leave empty for all
+userEmail:email# required for pull requests
+repositoryId:prRepositoryId# required for pull requests
+key:personalaccesstoken
+
widget:
+type:backrest
+url:http://backrest.host.or.ip
+username:admin# optional if auth is enabled in Backrest
+password:admin# optional if auth is enabled in Backrest
+
The widget has two modes, a single system with detailed info if systemId is provided, or an overview of all systems if systemId is not provided.
+
The systemID is the id field on the collections page of Beszel under the PocketBase admin panel. You can also use the 'nice name' from the Beszel UI.
+
A "superuser" is currently required to access the data from the Beszel API.
+
Allowed fields for 'overview' mode: ["systems", "up"]
+Allowed fields for a single system: ["name", "status", "updated", "cpu", "memory", "disk", "network"]
This widget shows monthly calendar, with optional integrations to show events from supported widgets.
+
widget:
+type:calendar
+firstDayInWeek:sunday# optional - defaults to monday
+view:monthly# optional - possible values monthly, agenda
+maxEvents:10# optional - defaults to 10
+showTime:true# optional - show time for event happening today - defaults to false
+timezone:America/Los_Angeles# optional and only when timezone is not detected properly (slightly slower performance) - force timezone for ical events (if it's the same - no change, if missing or different in ical - will be converted to this timezone)
+integrations:# optional
+-type:sonarr# active widget type that is currently enabled on homepage - possible values: radarr, sonarr, lidarr, readarr, ical
+service_group:Media# group name where widget exists
+service_name:Sonarr# service name for that widget
+color:teal# optional - defaults to pre-defined color for the service (teal for sonarr)
+baseUrl:https://sonarr.domain.url# optional - adds links to sonarr/radarr pages
+params:# optional - additional params for the service
+unmonitored:true# optional - defaults to false, used with *arr stack
+-type:ical# Show calendar events from another service
+url:https://domain.url/with/link/to.ics# URL with calendar events
+name:My Events# required - name for these calendar events
+color:zinc# optional - defaults to pre-defined color for the service (zinc for ical)
+params:# optional - additional params for the service
+showName:true# optional - show name before event title in event line - defaults to false
+
+
Agenda
+
This view shows only list of events from configured integrations
+
widget:
+type:calendar
+view:agenda
+maxEvents:10# optional - defaults to 10
+showTime:true# optional - show time for event happening today - defaults to false
+previousDays:3# optional - shows events since three days ago - defaults to 0
+integrations:# same as in Monthly view example
+
This custom integration allows you to show events from any calendar that supports iCal format, for example, Google Calendar (go to Settings, select specific calendar, go to Integrate calendar, copy URL from Public Address in iCal format).
As of v0.6.10 this widget no longer accepts a Cloudflare global API key (or account email) due to security concerns. Instead, you should setup an API token which only requires the permissions Account.Cloudflare Tunnel:Read.
+
Allowed fields: ["status", "origin_ip"].
+
widget:
+type:cloudflared
+accountid:accountid# from zero trust dashboard url e.g. https://one.dash.cloudflare.com/<accountid>/home/quick-start
+tunnelid:tunnelid# found in tunnels dashboard under the tunnel name
+key:cloudflareapitoken# api token with `Account.Cloudflare Tunnel:Read` https://dash.cloudflare.com/profile/api-tokens
+
See the crowdsec docs for information about registering a machine,
+in most instances you can use the default credentials (/etc/crowdsec/local_api_credentials.yaml).
+
Allowed fields: ["alerts", "bans"].
+
widget:
+type:crowdsec
+url:http://crowdsechostorip:port
+username:localhost# machine_id in crowdsec
+password:password
+
This widget can show information from custom self-hosted or third party API.
+
Fields need to be defined in the mappings section YAML object to correlate with the value in the APIs JSON object. Final field definition needs to be the key with the desired value information.
+
widget:
+type:customapi
+url:http://custom.api.host.or.ip:port/path/to/exact/api/endpoint
+refreshInterval:10000# optional - in milliseconds, defaults to 10s
+username:username# auth - optional
+password:password# auth - optional
+method:GET# optional, e.g. POST
+headers:# optional, must be object, see below
+requestBody:# optional, can be string or object, see below
+display:# optional, default to block, see below
+mappings:
+-field:key
+label:Field 1
+format:text# optional - defaults to text
+-field:path.to.key2
+format:number# optional - defaults to text
+label:Field 2
+-field:path.to.another.key3
+label:Field 3
+format:percent# optional - defaults to text
+-field:key
+label:Field 4
+format:date# optional - defaults to text
+locale:nl# optional
+dateStyle:long# optional - defaults to "long". Allowed values: `["full", "long", "medium", "short"]`.
+timeStyle:medium# optional - Allowed values: `["full", "long", "medium", "short"]`.
+-field:key
+label:Field 5
+format:relativeDate# optional - defaults to text
+locale:nl# optional
+style:short# optional - defaults to "long". Allowed values: `["long", "short", "narrow"]`.
+numeric:auto# optional - defaults to "always". Allowed values `["always", "auto"]`.
+-field:key
+label:Field 6
+format:text
+additionalField:# optional
+field:hourly.time.key
+color:theme# optional - defaults to "". Allowed values: `["theme", "adaptive", "black", "white"]`.
+format:date# optional
+-field:key
+label:Number of things in array
+format:size
+# This (no field) will take the root of the API response, e.g. when APIs return an array:
+-label:Number of items
+format:size
+
+
Supported formats for the values are text, number, float, percent, duration, bytes, bitrate, size, date and relativeDate.
+
The dateStyle and timeStyle options of the date format are passed directly to Intl.DateTimeFormat and the style and numeric options of relativeDate are passed to Intl.RelativeTimeFormat.
+
The duration format expects the duration to be specified in seconds. The scale transformation tool can be used if a conversion is required.
+
The size format will return the length of the array or string, or the number of keys in an object. This is then formatted as number.
Define the mappings section as an array, for example:
+
mappings:
+-field:name# Rick Sanchez
+label:Name
+-field:status# Alive
+label:Status
+-field:origin.name# Earth (C-137)
+label:Origin
+-field:locations.1.name# Citadel of Ricks
+label:Location
+
+
Note that older versions of the widget accepted fields as a yaml object, which is still supported. E.g.:
+
mappings:
+-field:
+locations:
+1:name# Citadel of Ricks
+label:Location
+
+
Data Transformation
+
You can manipulate data with the following tools remap, scale, prefix and suffix, for example:
+
-field:key4
+label:Field 4
+format:text
+remap:
+-value:0
+to:None
+-value:1
+to:Connected
+-any:true# will map all other values
+to:Unknown
+-field:key5
+label:Power
+format:float
+scale:0.001# can be number or string e.g. 1/16
+suffix:"kW"
+-field:key6
+label:Price
+format:float
+prefix:"$"
+
+
Display Options
+
The widget supports different display modes that can be set using the display property.
+
Block View (Default)
+
The default display mode is block, which shows fields in a block format.
+
List View
+
You can change the default block view to a list view by setting the display option to list.
+
The list view can optionally display an additional field next to the primary field.
+
additionalField: Similar to field, but only used in list view. Displays additional information for the mapping object on the right.
+
field: Defined the same way as other custom api widget fields.
+
color: Allowed options: "theme", "adaptive", "black", "white". The option adaptive will apply a color using the value of the additionalField, green for positive numbers, red for negative numbers.
+
-field:key
+label:Field
+format:text
+remap:
+-value:0
+to:None
+-value:1
+to:Connected
+-any:true# will map all other values
+to:Unknown
+additionalField:
+field:hourly.time.key
+color:theme
+format:date
+
+
Dynamic List View
+
To display a list of items from an array in the API response, set the display property to dynamic-list and configure the mappings object with the following properties:
+
widget:
+type:customapi
+url:https://example.com/api/servers
+display:dynamic-list
+mappings:
+items:data# optional, the path to the array in the API response. Omit this option if the array is at the root level
+name:id# required, field in each item to use as the item name (left side)
+label:ip_address# required, field in each item to use as the item label (right side)
+limit:5# optional, limit the number of items to display
+format:text# optional - format of the label field
+target:https://example.com/server/{id}# optional, makes items clickable with template support
+
+
This configuration would work with an API that returns a response like:
An optional 'volume' parameter can be supplied to specify which volume's free space to display when more than one volume exists. The value of the parameter must be in form of volume_N, e.g. to display free space for volume2, volume_2 should be set as 'volume' value. If omitted, first returned volume's free space will be shown (not guaranteed to be volume1).
To access these system metrics you need to connect to the DiskStation (DSM) with an account that is a member of the default Administrators group. That is because these metrics are requested from the API's SYNO.Core.System part that is only available to admin users. In order to keep the security impact as small as possible we can set the account in DSM up to limit the user's permissions inside the Synology system. In DSM 7.x, for instance, follow these steps:
+
+
Create a new user, i.e. remote_stats.
+
Set up a strong password for the new user
+
Under the User Groups tab of the user config dialogue check the box for Administrators.
+
On the Permissions tab check the top box for No Access, effectively prohibiting the user from accessing anything in the shared folders.
+
Under Applications check the box next to Deny in the header to explicitly prohibit login to all applications.
+
Now only allow login to the DSM and Download Station applications, either by
+
unchecking Deny in the respective row, or (if inheriting permission doesn't work because of other group settings)
+
checking Allow for this app, or
+
checking By IP for this app to limit the source of login attempts to one or more IP addresses/subnets.
+
When the Preview column shows Allow in the DSM row, click Save.
+
+
Now configure the widget with the correct login information and test it.
+
If you encounter issues during testing:
+
+
Make sure to uncheck the option for automatic blocking due to invalid logins under Control Panel > Security > Protection.
+
If desired, this setting can be reactivated once the login is established working.
+
Login to your Synology DSM with the newly created account and accept terms and conditions.
You can create an API key from inside Emby at Settings > Advanced > Api Keys.
+
As of v0.6.11 the widget supports fields ["movies", "series", "episodes", "songs"]. These blocks are disabled by default but can be enabled with the enableBlocks option, and the "Now Playing" feature (enabled by default) can be disabled with the enableNowPlaying option.
+
widget:
+type:emby
+url:http://emby.host.or.ip
+key:apikeyapikeyapikeyapikeyapikey
+enableBlocks:true# optional, defaults to false
+enableNowPlaying:true# optional, defaults to true
+enableUser:true# optional, defaults to false
+enableMediaControl:false# optional, defaults to true
+showEpisodeNumber:true# optional, defaults to false
+expandOneStreamToTwoRows:false# optional, defaults to true
+
Show the number of ESPHome devices based on their state.
+
Allowed fields: ["total", "online", "offline", "offline_alt", "unknown"] (maximum of 4).
+
By default ESPHome will only mark devices as offline if their address cannot be pinged. If it has an invalid config or its name cannot be resolved (by DNS) its status will be marked as unknown.
+To group both offline and unknown devices together, users should use the offline_alt field instead. This sums all devices that are not online together.
+
widget:
+type:esphome
+url:http://esphome.host.or.ip:port
+username:myesphomeuser# only if auth enabled
+password:myesphomepass# only if auth enabled
+
Application access & UPnP must be activated on your device:
+
Home Network > Network > Network Settings > Access Settings in the Home Network
+[x] Allow access for applications
+[x] Transmit status information over UPnP
+
+
Credentials are not needed and, as such, you may want to consider using http instead of https as those requests are significantly faster.
+
Allowed fields (limited to a max of 4): ["connectionStatus", "uptime", "maxDown", "maxUp", "down", "up", "received", "sent", "externalIPAddress", "externalIPv6Address", "externalIPv6Prefix"].
Uses the GameDig library to get game server information for any supported server type.
+
Allowed fields (limited to a max of 4): ["status", "name", "map", "currentPlayers", "players", "maxPlayers", "bots", "ping"].
+
widget:
+type:gamedig
+serverType:csgo# see https://github.com/gamedig/node-gamedig#games-list
+url:udp://server.host.or.ip:port
+gameToken:# optional, a token used by gamedig with certain games
+
The Glances widget allows you to monitor the resources (cpu, memory, diskio, sensors & processes) of host or another machine. You can have multiple instances by adding another service block.
+
widget:
+type:glances
+url:http://glances.host.or.ip:port
+username:user# optional if auth enabled in Glances
+password:pass# optional if auth enabled in Glances
+version:4# required only if running glances v4 or higher, defaults to 3
+metric:cpu
+diskUnits:bytes# optional, bytes (default) or bbytes. Only applies to disk
+refreshInterval:5000# optional - in milliseconds, defaults to 1000 or more, depending on the metric
+pointsLimit:15# optional, defaults to 15
+
+
Please note, this widget does not need an href, icon or description on its parent service. To achieve the same effect as the examples above, see as an example:
The metric field in the configuration determines the type of system monitoring data to be displayed. Here are the supported metrics:
+
info: System information. Shows the system's hostname, OS, kernel version, CPU type, CPU usage, RAM usage and SWAP usage.
+
cpu: CPU usage. Shows how much of the system's computational resources are currently being used.
+
memory: Memory usage. Shows how much of the system's RAM is currently being used.
+
process: Top 5 processes based on CPU usage. Gives an overview of which processes are consuming the most resources.
+
containers: Docker or Kubernetes containers list. Shows up to 5 containers running on the system and their resource usage.
+
network:<interface_name>: Network data usage for the specified interface. Replace <interface_name> with the name of your network interface, e.g., network:enp0s25, as specified in glances.
+
sensor:<sensor_id>: Temperature of the specified sensor, typically used to monitor CPU temperature. Replace <sensor_id> with the name of your sensor, e.g., sensor:Package id 0 as specified in glances.
+
disk:<disk_id>: Disk I/O data for the specified disk. Replace <disk_id> with the id of your disk, e.g., disk:sdb, as specified in glances.
+
gpu:<gpu_id>: GPU usage for the specified GPU. Replace <gpu_id> with the id of your GPU, e.g., gpu:0, as specified in glances.
+
fs:<mnt_point>: Disk usage for the specified mount point. Replace <mnt_point> with the path of your disk, e.g., /mnt/storage, as specified in glances.
+
Views
+
All widgets offer an alternative to the full or "graph" view, which is the compact, or "graphless" view.
+
+
To switch to the alternative "graphless" view, simply pass chart: false as an option to the widget, like so:
To setup authentication, follow the official Gluetun documentation. Note that to use the api key method, you must add the route GET /v1/publicip/ip to the routes array in your Gluetun config.toml. Similarly, if you want to include the port_forwarded field, you must add the route GET /v1/openvpn/portforwarded to your Gluetun config.toml.
+
widget:
+type:gluetun
+url:http://gluetun.host.or.ip:port
+key:gluetunkey# Not required if /v1/publicip/ip endpoint is configured with `auth = none`
+
Specify a single check by including the uuid field or show the total 'up' and 'down' for all
+checks by leaving off the uuid field.
+
To use the Health Checks widget, you first need to generate an API key.
+
+
In your project, go to project Settings on the navigation bar.
+
Click on API key (read-only) and then click Create.
+
Copy the API key that is generated for you.
+
+
Allowed fields: ["status", "last_ping"] for single checks, ["up", "down"] for total stats.
+
widget:
+type:healthchecks
+url:http://healthchecks.host.or.ip:port
+key:<YOUR_API_KEY>
+uuid:<CHECK_UUID># optional, if not included total statistics for all checks is shown
+
Up to a maximum of four custom states and/or templates can be queried via the custom property like in the example below.
+The custom property will have no effect as long as the fields property is defined.
+
+
state will query the state of the specified entity_id
+
state labels and values can be user defined and may reference entity attributes in curly brackets
+
if no state label is defined it will default to "{attributes.friendly_name}"
+
if no state value is defined it will default to "{state} {attributes.unit_of_measurement}"
The Homebridge API is actually provided by the Config UI X plugin that has been included with Homebridge for a while, still it is required to be installed for this widget to work.
You can create an API key from inside Jellyfin at Settings > Advanced > Api Keys.
+
As of v0.6.11 the widget supports fields ["movies", "series", "episodes", "songs"]. These blocks are disabled by default but can be enabled with the enableBlocks option, and the "Now Playing" feature (enabled by default) can be disabled with the enableNowPlaying option.
+
widget:
+type:jellyfin
+url:http://jellyfin.host.or.ip
+key:apikeyapikeyapikeyapikeyapikey
+enableBlocks:true# optional, defaults to false
+enableNowPlaying:true# optional, defaults to true
+enableUser:true# optional, defaults to false
+enableMediaControl:false# optional, defaults to true
+showEpisodeNumber:true# optional, defaults to false
+expandOneStreamToTwoRows:false# optional, defaults to true
+
Uses the same admin role username and password used to login from the web.
+
Allowed fields: ["seriesCount", "totalFiles"].
+
widget:
+type:kavita
+url:http://kavita.host.or.ip:port
+username:username
+password:password
+key:kavitaapikey# Optional, e.g. if not using username and password
+
This widget shows either details about all containers or stacks (if showStacks is true) managed by Komodo or the number of running servers, containers and stacks when showSummary is enabled.
+
The api key and secret can be found in the Komodo settings.
widget:
+type:linkwarden
+url:http://linkwarden.host.or.ip
+key:myApiKeyHere# On your Linkwarden install, go to Settings > Access Tokens. Generate a token.
+
Use the base URL of the Mastodon instance you'd like to pull stats for. Does not require authentication as the stats are part of the public API endpoints.
If your moonraker instance has an active authorization and your homepage ip isn't whitelisted you need to add your api key (Authorization Documentation).
Use username & password, or the NC-Token key. Information about the token can be found under Settings > System. If both are provided, NC-Token will be used.
This widget uses the same authentication method as your browser when logging in (HTTP Basic Auth), and is often referred to as the ControlUsername and ControlPassword inside of Nzbget documentation.
The method field determines the type of data to be displayed and is required. Supported methods:
+
services.getStatus: Shows status of running services. Allowed fields: ["running", "stopped", "total"]
+
smart.getListBg: Shows S.M.A.R.T. status from disks. Allowed fields: ["passed", "failed"]
+
downloader.getDownloadList: Displays the number of tasks from the Downloader plugin currently being downloaded and total. Allowed fields: ["downloading", "total"]
The API key & secret can be generated via the webui by creating a new user at System/Access/Users. Ensure "Generate a scrambled password to prevent local database logins for this user" is checked and then edit the effective privileges selecting only:
Finally, create a new API key which will download an apikey.txt file with your key and secret in it. Use the values as the username and password fields, respectively, in your homepage config.
Use username & password, or the token key. Information about the token can be found in the Paperless-ngx API documentation. If both are provided, the token will be used.
This widget requires an additional tool, PeaNUT, as noted. Other projects exist to achieve similar results using a customapi widget, for example NUTCase.
+
+
widget:
+type:peanut
+url:http://peanut.host.or.ip:port
+key:nameofyourups
+username:username# only needed if set
+password:password# only needed if set
+
This widget requires the installation of the pfsense-api which is a 3rd party package for pfSense routers.
+
Once pfSense API is installed, you can set the API to be read-only in System > API > Settings.
+
There are two currently supported authentication modes: 'Local Database' and 'API Key' (v2) / 'API Token' (v1). For 'Local Database', use username and password with the credentials of an admin user. The specifics of using the API key / token depend on the version of the pfSense API, see the config examples below. Do not use both headers and username / password.
+
The interface to monitor is defined by updating the wan parameter. It should be referenced as it is shown under Interfaces > Assignments in pfSense.
+
Load is returned instead of cpu utilization. This is a limitation in the pfSense API due to the complexity of this calculation. This may become available in future versions.
widget:
+type:pfsense
+url:http://pfsense.host.or.ip:port
+username:user# optional, or API key
+password:pass# optional, or API key
+headers:# optional, or username/password
+X-API-Key:key
+wan:igb0
+version:2# optional, defaults to 1 for api v1
+fields:["load","memory","temp","wanStatus"]# optional
+
+
For version 1:
+
headers:# optional, or username/password
+Authorization:client_id client_token# obtained from pfSense API
+version:1
+
widget:
+type:photoprism
+url:http://photoprism.host.or.ip:port
+username:admin# required only if using username/password
+password:password# required only if using username/password
+key:# required only if using app passwords
+
Note: by default the "blocked" and "blocked_percent" fields are merged e.g. "1,234 (15%)" but explicitly including the "blocked_percent" field will change them to display separately.
+
widget:
+type:pihole
+url:http://pi.hole.or.ip
+version:6# required if running v6 or higher, defaults to 5
+key:yourpiholeapikey# optional, in v6 can be your password or app password
+
The core Plex API is somewhat limited but basic info regarding library sizes and the number of active streams is supported. For more detailed info regarding active streams see the Plex Tautulli widget.
You'll need to make sure you have the correct environment set for the integration to work properly. From the Environments section inside of Portainer, click the one you'd like to connect to and observe the ID at the end of the URL (should be), something like #!/endpoints/1, here 1 is the value to set as the env value. In order to generate an API key, please follow the steps outlined here https://docs.portainer.io/api/access.
+
Allowed fields:
+
+
For Docker mode (default): ["running", "stopped", "total"]
+
For Kubernetes mode (kubernetes: true): ["applications", "services", "namespaces"]
This widget can show metrics for your service defined by PromQL queries which are requested from a running Prometheus instance.
+
Quries can be defined in the metrics array of the widget along with a label to be used to present the metric value. You can optionally specify a global refreshInterval in milliseconds and/or define the refreshInterval per metric. Inside the optional format object of a metric various formatting styles and transformations can be applied (see below).
Supported values for format.type are text, number, percent, bytes, bits, bbytes, bbits, byterate, bibyterate, bitrate, bibitrate, date, duration, relativeDate, and text which is the default.
+
The dateStyle and timeStyle options of the date format are passed directly to Intl.DateTimeFormat and the style and numeric options of relativeDate are passed to Intl.RelativeTimeFormat. For the number format, options of Intl.NumberFormat can be used, e.g. maximumFractionDigits or minimumFractionDigits.
+
Data Transformation
+
You can manipulate your metric value with the following tools: scale, prefix and suffix, for example:
+
-query:my_custom_metric{}
+label:Metric 1
+format:
+type:number
+scale:1000# multiplies value by a number or fraction string e.g. 1/16
+-query:my_custom_metric{}
+label:Metric 2
+format:
+type:number
+prefix:"$"# prefixes value with given string
+-query:my_custom_metric{}
+label:Metric 3
+format:
+type:number
+suffix:"€"# suffixes value with given string
+
This widget shows the running and total counts of both QEMU VMs and LX Containers in the Proxmox cluster. It also shows the CPU and memory usage of the first node in the cluster.
widget:
+type:proxmoxbackupserver
+url:https://proxmoxbackupserver.host:port
+username:api_token_id
+password:api_token_secret
+datastore:datastore_name#optional; if ommitted, will display a combination of all datastores used / total
+
Allowed fields: ["platforms", "totalRoms", "saves", "states", "screenshots", "totalfilesize"].
+If more than (4) fields are provided, only the first (4) will be used.
This requires the httprpc plugin to be installed and enabled, and is part of the default ruTorrent plugins. If you have not explicitly removed or disable this plugin, it should be available.
+
Allowed fields: ["active", "upload", "download"].
+
widget:
+type:rutorrent
+url:http://rutorrent.host.or.ip
+username:username# optional, false if not used
+password:password# optional, false if not used
+
widget:
+type:speedtest
+url:http://speedtest.host.or.ip
+version:1# optional, default is 1
+key:speedtestapikey# required for version 2
+bitratePrecision:3# optional, default is 0
+
4 spools are displayed by default. If more than 4 spools are configured in spoolman you can use the spoolIds configuration option to control which are displayed.
Find your API key from inside Stash at Settings > Security > API Key. Note that the API key is only required if your Stash instance has login credentials.
Finnhub.io is currently the only supported provider for the stocks widget.
+You can sign up for a free api key at finnhub.io.
+You are encouraged to read finnhub.io's
+terms of service/privacy policy before
+signing up.
+
Allowed fields: no configurable fields for this widget.
+
You must set finnhub as a provider in your settings.yaml:
+
providers:
+finnhub:yourfinnhubapikeyhere
+
+
Next, configure the stocks widget in your services.yaml:
+
The service widget allows for up to 28 items in the watchlist. You may get rate
+limited if using the information and service widgets together.
The widget defaults to the first four above. If more than four fields are provided, only the first 4 are displayed.
+Category IDs can be obtained from the url when navigating to it, ?tab={categoryID}.
+
widget:
+type:suwayomi
+url:http://suwayomi.host.or.ip
+username:username#optional
+password:password#optional
+category:0#optional, defaults to all categories
+
You will need to generate an API access token from the keys page on the Tailscale dashboard.
+
To find your device ID, go to the machine overview page and select your machine. In the "Machine Details" section, copy your ID. It will end with CNTRL.
Allowed fields (up to 4): ["totalQueries","totalNoError","totalServerFailure","totalNxDomain","totalRefused","totalAuthoritative","totalRecursive","totalCached","totalBlocked","totalDropped","totalClients"].
+
Defaults to: ["totalQueries", "totalAuthoritative", "totalCached", "totalServerFailure"]
+
widget:
+type:technitium
+url:<url to dns server>
+key:biglongapitoken
+range:LastDay# optional, defaults to LastHour
+
+
API Key
+
This can be generated via the Technitium DNS Dashboard, and should be generated from a special API specific user.
+
Range
+
range value determines how far back of statistics to pull data for. The value comes directly from Technitium API documentation found here, defined as "type". The value can be one of: LastHour, LastDay, LastWeek, LastMonth, LastYear.
No extra configuration is required.
+If your traefik install requires authentication, include the username and password used to login to the web interface.
widget:
+type:transmission
+url:http://transmission.host.or.ip
+username:username
+password:password
+rpcUrl:/transmission/# Optional. Matches the value of "rpc-url" in your Transmission's settings.json file
+
A detailed pool listing is disabled by default, but can be enabled with the enablePools option.
+
To use the enablePools option with TrueNAS Core, the nasType parameter is required.
+
widget:
+type:truenas
+url:http://truenas.host.or.ip
+username:user# not required if using api key
+password:pass# not required if using api key
+key:yourtruenasapikey# not required if using username / password
+enablePools:true# optional, defaults to false
+nasType:scale# defaults to scale, must be set to 'core' if using enablePools with TrueNAS Core
+
(Find the Unifi Controller information widget here)
+
You can display general connectivity status from your Unifi (Network) Controller.
+
+
Warning
+
When authenticating you will want to use a local account that has at least read privileges.
+
+
An optional 'site' parameter can be supplied, if it is not the widget will use the default site for the controller.
+
Allowed fields: ["uptime", "wan", "lan", "lan_users", "lan_devices", "wlan", "wlan_users", "wlan_devices"] (maximum of four). Fields unsupported by the unifi device will not be shown.
+
+
Hint
+
If you enter e.g. incorrect credentials and receive an "API Error", you may need to recreate the container or restart the service to clear the cache.
+
+
widget:
+type:unifi
+url:https://unifi.host.or.ip:port
+site:Site Name# optional
+username:user
+password:pass
+key:unifiapikey# required if using API key instead of username/password
+
widget:
+type:unraid
+url:https://unraid.host.or.ip
+key:api-key
+pool1:pool1name# required only if using pool1 fields
+pool2:pool2name# required only if using pool2 fields
+pool3:pool3name# required only if using pool3 fields
+pool4:pool4name# required only if using pool4 fields
+
As Uptime Kuma does not yet have a full API the widget uses data from a single "status page". As such you will need a status page setup with a group of monitored sites, which is where you get the slug (the url without the /status/ portion). E.g. if your status page is URL http://uptimekuma.host/status/statuspageslug, insert slug: statuspageslug.
The UrBackup widget retrieves the total number of clients that currently have no errors, have errors, or haven't backed up recently. Clients are considered "Errored" or "Out of Date" if either the file or image backups for that client have errors/are out of date, unless the client does not support image backups.
+
The default number of days that can elapse before a client is marked Out of Date is 3, but this value can be customized by setting the maxDays value in the config.
+
Optionally, the widget can also report the total amount of disk space consumed by backups. This is disabled by default, because it requires a second API call.
+
Note: client status is only shown for backups that the specified user has access to. Disk Usage shown is the total for all backups, regardless of permissions.
+
Allowed fields: ["ok", "errored", "noRecent", "totalUsed"]. Note that totalUsed will not be shown unless explicitly included in fields.
Note: by default ["connected", "enabled", "total"] are displayed.
+
To detect if a device is connected the time since the last handshake is queried. threshold is the time to wait in minutes since the last handshake to consider a device connected. Default is 2 minutes.
+
+
+
+
Wg-Easy API Version
+
Homepage Widget Version
+
+
+
+
+
< v15
+
1 (default)
+
+
+
>= v15
+
2
+
+
+
+
widget:
+type:wgeasy
+url:http://wg.easy.or.ip
+version:2# optional, default is 1
+username:yourwgusername# required for v15 and above
+password:yourwgeasypassword
+threshold:2# optional
+
Find your API key under Settings > Account > Public token, click Generate if not yet generated, copy key after
+?token=.
+
Allowed fields: ["songs", "time", "artists"].
+
widget:
+type:yourspotify
+url:http://your-spotify-server.host.or.ip# if using lsio image, add /api/
+key:apikeyapikeyapikeyapikeyapikey
+interval:month# optional, defaults to week
+
+
Interval
+
Allowed values for interval: day, week, month, year, all.
+
+
Note
+
interval is different from predefined intervals you see in Your Spotify's UI.
+For example, This week in UI means from the start of this week, here week means past 7 days.