diff --git a/.gitignore b/.gitignore index 7fdc65502..f6cc36383 100644 --- a/.gitignore +++ b/.gitignore @@ -46,4 +46,5 @@ next-env.d.ts # IDEs /.idea/ - +# MkDocs documentation +site*/ diff --git a/.vscode/settings.json b/.vscode/settings.json index 5a9e97f16..5fde0b3a9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,5 +2,18 @@ "files.exclude": { "**/.next": true, "**/node_modules": true - } -} \ No newline at end of file + }, + "yaml.schemas": { + "https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs.yml" + }, + "yaml.customTags": [ + "!ENV scalar", + "!ENV sequence", + "tag:yaml.org,2002:python/name:material.extensions.emoji.to_svg", + "tag:yaml.org,2002:python/name:material.extensions.emoji.twemoji", + "tag:yaml.org,2002:python/name:pymdownx.superfences.fence_code_format" + ], + "[python]": { + "editor.defaultFormatter": "ms-python.autopep8" + }, +} diff --git a/docs/assets/banner_dark@2x.png b/docs/assets/banner_dark@2x.png new file mode 100644 index 000000000..87bcd0a77 Binary files /dev/null and b/docs/assets/banner_dark@2x.png differ diff --git a/docs/assets/banner_light@2x.png b/docs/assets/banner_light@2x.png new file mode 100644 index 000000000..721446b81 Binary files /dev/null and b/docs/assets/banner_light@2x.png differ diff --git a/docs/assets/custom.css b/docs/assets/custom.css new file mode 100644 index 000000000..f959128ec --- /dev/null +++ b/docs/assets/custom.css @@ -0,0 +1,3 @@ +.md-typeset[data-page-id="landing"] .md-header-anchor { + display: none; +} diff --git a/docs/assets/favicon.ico b/docs/assets/favicon.ico new file mode 100644 index 000000000..5ffe0eb4e Binary files /dev/null and b/docs/assets/favicon.ico differ diff --git a/docs/assets/homepage_demo.png b/docs/assets/homepage_demo.png new file mode 100644 index 000000000..52c690288 Binary files /dev/null and b/docs/assets/homepage_demo.png differ diff --git a/docs/assets/light_squircle@2x.png b/docs/assets/light_squircle@2x.png new file mode 100644 index 000000000..e7a1ee29c Binary files /dev/null and b/docs/assets/light_squircle@2x.png differ diff --git a/docs/configs/bookmarks.md b/docs/configs/bookmarks.md new file mode 100644 index 000000000..1b1b10596 --- /dev/null +++ b/docs/configs/bookmarks.md @@ -0,0 +1,32 @@ +--- +title: Bookmarks +description: Bookmark Configuration +--- + +Bookmarks function much the same as [Services](services.md), 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](services.md#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. + +```yaml +- 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/ +``` + +Bookmarks diff --git a/docs/configs/custom-css-js.md b/docs/configs/custom-css-js.md new file mode 100644 index 000000000..a76ea6505 --- /dev/null +++ b/docs/configs/custom-css-js.md @@ -0,0 +1,17 @@ +--- +title: Custom CSS & JS +description: Adding Custom CSS or JS +--- + +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. + +```yaml +Service: + id: myserviceid + icon: icon.png + ... +``` diff --git a/docs/configs/docker.md b/docs/configs/docker.md new file mode 100644 index 000000000..c46d55bb7 --- /dev/null +++ b/docs/configs/docker.md @@ -0,0 +1,205 @@ +--- +title: Docker +description: Docker Configuration +--- + +Docker instances are configured inside the `docker.yaml` file. Both IP:PORT and Socket connections are supported. + +For IP:PORT, simply make sure your Docker instance [has been configured](https://gist.github.com/styblope/dc55e0ad2a9848f2cc3307d4819d819f) to accept API traffic over the HTTP API. + +```yaml +my-remote-docker: + host: 192.168.0.101 + port: 2375 +``` + +## Using Docker TLS + +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](https://docs.docker.com/engine/security/protect-access/#use-tls-https-to-protect-the-docker-daemon-socket). The file entries are relative to the `config` directory (location of `docker.yaml` file). + +```yaml +my-remote-docker: + host: 192.168.0.101 + port: 275 + tls: + keyFile: tls/key.pem + caFile: tls/ca.pem + certFile: tls/cert.pem +``` + +## Using Docker Socket Proxy + +Due to security concerns with exposing the docker socket directly, you can use a [docker-socket-proxy](https://github.com/Tecnativa/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: + +```yaml +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/benphelps/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: + +```yaml +my-docker: + host: dockerproxy + port: 2375 +``` + +## Using Socket Directly + +If you'd rather use the socket directly, first make sure that you're passing the local socket into the Docker container. + +!!! note + + In order to use the socket directly homepage must be running as root + +```yaml +homepage: + image: ghcr.io/benphelps/homepage:latest + container_name: homepage + volumes: + - /path/to/config:/app/config + - /var/run/docker.sock:/var/run/docker.sock # pass local proxy + ports: + - 3000:3000 + restart: unless-stopped +``` + +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: + +```yaml +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: + +```yaml +- 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. + +```yaml +services: + emby: + image: lscr.io/linuxserver/emby:latest + container_name: emby + ports: + - 8096:8096 + restart: unless-stopped + labels: + - homepage.group=Media + - homepage.name=Emby + - homepage.icon=emby.png + - homepage.href=http://emby.home/ + - homepage.description=Media server +``` + +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. + +```yaml +labels: + - homepage.group=Media + - homepage.name=Emby + - homepage.icon=emby.png + - homepage.href=http://emby.home/ + - homepage.description=Media server + - homepage.widget.type=emby + - homepage.widget.url=http://emby.home + - homepage.widget.key=yourembyapikeyhere + - homepage.widget.fields=["field1","field2"] # optional +``` + +## 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. + +```yaml +my-docker: + socket: /var/run/docker.sock + swarm: true +``` + +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. + +```yaml +.... + deploy: + placement: + constraints: + - node.role == manager +... +``` + +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: + +```yaml +.... + deploy: + labels: + - homepage.icon=foobar +... +``` + +## Ordering + +As of v0.6.4 discovered services can include an optional `weight` field to determine sorting such that: + +- Default weight for discovered services is 0 +- Default weight for configured services is their index within their group scaled by 100, i.e. (index + 1) \* 100 +- If two items have the same weight value, then they will be sorted by name + +## Show stats + +You can show the docker stats by clicking the status indicator but this can also be controlled per-service with: + +```yaml +- Example Service: + ... + showStats: true +``` + +Also see the settings for [show docker stats](docker.md#show-docker-stats). diff --git a/docs/configs/index.md b/docs/configs/index.md new file mode 100644 index 000000000..a43977f69 --- /dev/null +++ b/docs/configs/index.md @@ -0,0 +1,16 @@ +--- +title: Configuration +description: Homepage Configuration +--- + +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: + +1. **Use Indentation Carefully**: YAML relies on indentation, not brackets. +2. Avoid Tabs: Stick to spaces for indentation to avoid parsing errors. 2 spaces are common. +3. Quote Strings: Use single or double quotes for strings with special characters, this is especially important for API keys. +4. Key-Value Syntax: Use key: value format. Colon must be followed by a space. +5. 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](https://codebeautify.org/yaml-validator), heres another: [https://jsonformatter.org/yaml-validator](https://jsonformatter.org/yaml-validator). diff --git a/docs/configs/kubernetes.md b/docs/configs/kubernetes.md new file mode 100644 index 000000000..66360b16f --- /dev/null +++ b/docs/configs/kubernetes.md @@ -0,0 +1,138 @@ +--- +title: Kubernetes +description: Kubernetes Configuration +--- + +The Kubernetes connectivity has the following requirements: + +- Kubernetes 1.19+ +- Metrics Service +- An Ingress controller + +The Kubernetes connection is configured in the `kubernetes.yaml` file. There are 3 modes to choose from: + +- **disabled** - disables kubernetes connectivity +- **default** - uses the default kubeconfig [resolution](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/) +- **cluster** - uses a service account inside the cluster + +```yaml +mode: default +``` + +## Services + +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: + +```yaml +- 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: + +```yaml +- Element Chat: + icon: matrix-light.png + href: https://chat.example.com + description: Matrix Synapse Powered Chat + app: matrix-element + namespace: comms + podSelector: >- + app.kubernetes.io/instance in ( + matrix-element, + matrix-media-repo, + matrix-media-repo-postgresql, + matrix-synapse + ) +``` + +!!! note + + 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/`. + +```yaml +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: emby + annotations: + gethomepage.dev/enabled: "true" + gethomepage.dev/description: Media Server + gethomepage.dev/group: Media + gethomepage.dev/icon: emby.png + gethomepage.dev/name: Emby + gethomepage.dev/widget.type: "emby" + gethomepage.dev/widget.url: "https://emby.example.com" + gethomepage.dev/podSelector: "" + gethomepage.dev/weight: 10 # optional +spec: + rules: + - host: emby.example.com + http: + paths: + - backend: + service: + name: emby + port: + number: 8080 + path: / + pathType: Prefix +``` + +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.** + +### 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: + +```yaml +apiVersion: traefik.io/v1alpha1 +kind: IngressRoute +metadata: + name: emby + annotations: + gethomepage.dev/href: "https://emby.example.com" + gethomepage.dev/enabled: "true" + gethomepage.dev/description: Media Server + gethomepage.dev/group: Media + gethomepage.dev/icon: emby.png + gethomepage.dev/name: Emby + gethomepage.dev/widget.type: "emby" + gethomepage.dev/widget.url: "https://emby.example.com" + gethomepage.dev/podSelector: "" + gethomepage.dev/weight: 10 # optional +spec: + entryPoints: + - websecure + routes: + - kind: Rule + match: Host(`emby.example.com`) + services: + - kind: Service + name: emby + namespace: emby + port: 8080 + scheme: http + strategy: RoundRobin + weight: 10 +``` + +If the `href` attribute is not present, Homepage will ignore the specific IngressRoute. + +## Caveats + +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`. diff --git a/docs/configs/service-widgets.md b/docs/configs/service-widgets.md new file mode 100644 index 000000000..93ed968ed --- /dev/null +++ b/docs/configs/service-widgets.md @@ -0,0 +1,40 @@ +--- +title: Service Widgets +description: Service Widget Configuration +--- + +Unless otherwise noted, URLs should not end with a `/` or other API path. Each widget will handle the path on its own. + +Each service can have one widget attached to it (often matching the service type, but thats not forced). + +In addition to the href of the service, you can also specify the target location in which to open that link. See [Link Target](settings.md#link-target) for more details. + +Using Emby as an example, this is how you would attach the Emby service widget. + +```yaml +- Emby: + icon: emby.png + href: http://emby.host.or.ip/ + description: Movies & TV Shows + widget: + type: emby + url: http://emby.host.or.ip + key: apikeyapikeyapikeyapikeyapikey +``` + +## 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.** + +```yaml +- Sonarr: + icon: sonarr.png + href: http://sonarr.host.or.ip + widget: + type: sonarr + fields: ["wanted", "queued"] + url: http://sonarr.host.or.ip + key: apikeyapikeyapikeyapikeyapikey +``` diff --git a/docs/configs/services.md b/docs/configs/services.md new file mode 100644 index 000000000..0aca24ed8 --- /dev/null +++ b/docs/configs/services.md @@ -0,0 +1,190 @@ +--- +title: Services +description: Service Configuration +--- + +Services are configured inside the `services.yaml` file. You can have any number of groups, and any number of services per group. + +## Groups + +Groups are defined as top-level array entries. + +```yaml +- Group A: + - Service A: + href: http://localhost/ + +- Group B: + - Service B: + href: http://localhost/ +``` + +Service Groups + +## Services + +Services are defined as array entries on groups, + +```yaml +- Group A: + - Service A: + href: http://localhost/ + + - Service B: + href: http://localhost/ + + - Service C: + href: http://localhost/ + +- Group B: + - Service D: + href: http://localhost/ +``` + +Service Services + +## Descriptions + +Services may have descriptions, + +```yaml +- Group A: + - Service A: + href: http://localhost/ + description: This is my service + +- Group B: + - Service B: + href: http://localhost/ + description: This is another service +``` + +Service Descriptions + +## Icons + +Services may have an icon attached to them, you can use icons from [Dashboard Icons](https://github.com/walkxcode/dashboard-icons) automatically, by passing the name of the icon, with, or without `.png` or with `.svg` to use the svg version. + +You can also specify prefixed icons from [Material Design Icons](https://materialdesignicons.com) with `mdi-XX` or [Simple Icons](https://simpleicons.org/) with `si-XX`. + +You can specify a custom color by adding a hex color code as 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. + +```yaml +- Group A: + - Sonarr: + icon: sonarr.png + href: http://sonarr.host/ + description: Series management + +- Group B: + - Radarr: + icon: radarr.png + href: http://radarr.host/ + description: Movie management + +- Group C: + - Service: + icon: mdi-flask-outline + href: http://service.host/ + description: My cool service +``` + +Service Icons + +## Ping + +Services may have an optional `ping` property that allows you to monitor the availability of an endpoint you chose and have the response time displayed. You do not need to set your ping URL equal to your href URL. + +!!! note + + The ping 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 ping feature correctly display status. + +```yaml +- Group A: + - Sonarr: + icon: sonarr.png + href: http://sonarr.host/ + ping: http://sonarr.host/ + +- Group B: + - Radarr: + icon: radarr.png + href: http://radarr.host/ + ping: http://some.other.host/ +``` + +Ping + +You can also apply different styles to the ping indicator by using the `statusStyle` property. The default is no value, and displays the response time in ms, but you can also use `dot` or `simple`. `dot` showing a green dot for a successful ping, and `simple` showing either ONLINE or OFFLINE to match the status style of Docker containers. + + + +## Docker Integration + +Services may be connected to a Docker container, either running on the local machine, or a remote machine. + +```yaml +- 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 +``` + +Service Containers + +**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](docker.md#show-docker-stats) for more information + +Docker Stats Expanded + +## 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 [Service Widgets](service-widgets.md) page. + +Here is an example of a Radarr & Sonarr service, with their respective integrations. + +```yaml +- Group A: + - Sonarr: + icon: sonarr.png + href: http://sonarr.host/ + description: Series management + widget: + type: sonarr + url: http://sonarr.host + key: apikeyapikeyapikeyapikeyapikey + +- Group B: + - Radarr: + icon: radarr.png + href: http://radarr.host/ + description: Movie management + widget: + type: radarr + url: http://radarr.host + key: apikeyapikeyapikeyapikeyapikey +``` + +Service Integrations diff --git a/docs/configs/settings.md b/docs/configs/settings.md new file mode 100644 index 000000000..e9f9c7f65 --- /dev/null +++ b/docs/configs/settings.md @@ -0,0 +1,401 @@ +--- +title: Settings +description: Service Configuration +--- + +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. + +```yaml +title: My Awesome Homepage +``` + +## Start URL + +You can customize the start_url as required for installable apps. The default is "/". + +```yaml +startUrl: https://custom.url +``` + +## Background Image + +!!! warning "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. + +!!! warning "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. + +```yaml +background: https://images.unsplash.com/photo-1502790671504-542ad42d5189?auto=format&fit=crop&w=2560&q=80 +``` + +Or you may pass the path to a local image relative to e.g. `/app/public/images` directory. + +For example, inside of your Docker Compose file, mount a path to where your images are kept: + +```yaml +volumes: + - /my/homepage/images:/app/public/images +``` + +and then reference that image: + +```yaml +background: /images/background.png +``` + +### Background Opacity & Filters + +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. + +```yaml +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 backround blur, saturate and brightness filters. + +```yaml +cardBlur: sm # sm, "", 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. + +```yaml +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](#background-image) for more detailed information on how to provide your own files. + +## Theme + +You can configure a fixed them (and disable the theme switcher) by passing the `theme` option, like so: + +```yaml +theme: dark # or light +``` + +## Color Palette + +You can configured a fixed color palette (and disable the palette switcher) by passing the `color` option, like so: + +```yaml +color: slate +``` + +Supported colors are: `slate`, `gray`, `zinc`, `neutral`, `stone`, `amber`, `yellow`, `lime`, `green`, `emerald`, `teal`, `cyan`, `sky`, `blue`, `indigo`, `violet`, `purple`, `fuchsia`, `pink`, `rose`, `red`, `white` + +## 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, + +```yaml +layout: + Media: + style: row + columns: 4 +``` + +As an example, this would produce the following layout: + +Screenshot 2022-09-15 at 8 03 57 PM + +### 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. + +```yaml +layout: + - Auto-Discovered1: + - Configured1: + - Configured2: + - Auto-Discovered2: + - Configured3: + style: row + columns: 3 +``` + +### Headers + +You can hide headers for each section in the layout as well by passing `header` as false, like so: + +```yaml +layout: + Section A: + header: false + Section B: + style: row + columns: 3 + header: false +``` + +### Category Icons + +You can also add an icon to a category under the `layout` setting similar to the [options for service icons](services.md#icons), e.g. + +```yaml + 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](services.md#icons). + +```yaml +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: + +```yaml +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 +``` + +### Five Columns + +You can add a fifth column (when `style: columns` which is default) by adding: + +```yaml +fiveColumns: true +``` + +By default homepage will max out at 4 columns for column style + +### Collapsible sections + +You can disable the collapsible feature of services & bookmarks by adding: + +```yaml +disableCollapse: true +``` + +By default the feature is enabled. + +## Header Style + +There are currently 4 options for header styles, you can see each one below. + +underlined + +```yaml +headerStyle: underlined # default style +``` + +--- + +boxed + +```yaml +headerStyle: boxed +``` + +--- + +clean + +```yaml +headerStyle: clean +``` + +--- + +boxedWidgets + +```yaml +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: + +```yaml +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: + +```yaml +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, + +```yaml +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.: + +```yaml +- Example Service: + href: https://example.com/ + ... + target: _self +``` + +## Providers + +The `providers` section allows you to define shared API provider options and secrets. Currently this allows you to define your weather API keys in secret and is also the location of the Longhorn URL and credentials. + +```yaml +providers: + openweathermap: openweathermapapikey + weatherapi: weatherapiapikey + longhorn: + url: https://longhorn.example.com + username: admin + password: LonghornPassword +``` + +You can then pass `provider` instead of `apiKey` in your widget configuration. + +```yaml +- weather: + latitude: 50.449684 + longitude: 30.525026 + provider: weatherapi +``` + +## Quick Launch + +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 doesnt have focus). + +quicklaunch + +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 off 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. +- `hideVisitURL`: disable detecting and offering an option to open URLs. This is false by default, enabling the feature. + +```yaml +quicklaunch: + searchDescriptions: true + hideInternetSearch: true + hideVisitURL: true +``` + +## Homepage Version + +By default the release version is displayed at the bottom of the page. To hide this, use the `hideVersion` setting, like so: + +```yaml +hideVersion: 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. + +```yaml +logpath: /logfile/path +``` + +## Show Docker Stats + +You can show all docker stats expanded in `settings.yaml`: + +```yaml +showStats: true +``` + +or per-service (`services.yaml`) with: + +```yaml +- Example Service: + ... + showStats: true +``` + +If you have both set the per-service settings take precedence. + +## Hide Widget Error Messages + +Hide the visible API error messages either globally in `settings.yaml`: + +```yaml +hideErrors: true +``` + +or per service widget (`services.yaml`) with: + +```yaml +- Example Service: + ... + widget: + ... + hideErrors: true +``` + +If either value is set to true, the errror message will be hidden. diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 000000000..97a3704be --- /dev/null +++ b/docs/index.md @@ -0,0 +1,19 @@ +--- +title: Home +hide: + - navigation + - toc + - path +--- + +# + +
+ +

+![Alt text](assets/banner_dark@2x.png#only-light) +![Alt text](assets/banner_light@2x.png#only-dark) + +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. + +![Alt text](assets/homepage_demo.png) diff --git a/docs/installation/docker.md b/docs/installation/docker.md new file mode 100644 index 000000000..5fc9b1605 --- /dev/null +++ b/docs/installation/docker.md @@ -0,0 +1,57 @@ +--- +title: Docker Installation +description: Install and run homepage from Docker +--- + +Using docker compose: + +```yaml +version: "3.3" +services: + homepage: + image: ghcr.io/benphelps/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 +``` + +### 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. + +```yaml +version: "3.3" +services: + homepage: + image: ghcr.io/benphelps/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: + PUID: $PUID + PGID: $PGID +``` + +### With Docker Run + +```bash +docker run -p 3000:3000 -v /path/to/config:/app/config -v /var/run/docker.sock:/var/run/docker.sock ghcr.io/benphelps/homepage:latest +``` + +### Using Environment Secrets + +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 diff --git a/docs/installation/index.md b/docs/installation/index.md new file mode 100644 index 000000000..f1d317c45 --- /dev/null +++ b/docs/installation/index.md @@ -0,0 +1,25 @@ +--- +title: Installation +description: Docs intro +--- + +

+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. +

+ +
+ +
+:simple-docker: [  Install on Docker :octicons-arrow-right-24:](docker.md) +{ .card } + +:simple-kubernetes: [  Install on Kubernetes :octicons-arrow-right-24:](k8s.md) +{ .card } + +:simple-unraid: [  Install on UNRAID :octicons-arrow-right-24:](unraid.md) +{ .card } + +:simple-nextdotjs: [  Building from source :octicons-arrow-right-24:](source.md) +{ .card } + +
diff --git a/docs/installation/k8s.md b/docs/installation/k8s.md new file mode 100644 index 000000000..5a142e7a6 --- /dev/null +++ b/docs/installation/k8s.md @@ -0,0 +1,341 @@ +--- +title: Kubernetes Installation +description: Install on Kubernetes +--- + +## Install with Helm + +There is an [unofficial helm chart](https://github.com/jameswynn/helm-charts/tree/main/charts/homepage) that creates all the necessary manifests, including the service account and RBAC entities necessary for service discovery. + +```sh +helm repo add jameswynn https://jameswynn.github.io/helm-charts +helm install homepage jameswynn/homepage -f values.yaml +``` + +The helm chart allows for all the configurations to be inlined directly in your `values.yaml`: + +```yaml +config: + bookmarks: + - Developer: + - Github: + - abbr: GH + href: https://github.com/ + services: + - My First Group: + - My First Service: + href: http://localhost/ + description: Homepage is awesome + + - My Second Group: + - My Second Service: + href: http://localhost/ + description: Homepage is the best + + - My Third Group: + - My Third Service: + href: http://localhost/ + description: Homepage is 😎 + widgets: + # show the kubernetes widget, with the cluster summary and individual nodes + - kubernetes: + cluster: + show: true + cpu: true + memory: true + showLabel: true + label: "cluster" + nodes: + show: true + cpu: true + memory: true + showLabel: true + - search: + provider: duckduckgo + target: _blank + kubernetes: + mode: cluster + settings: + +# The service account is necessary to allow discovery of other services +serviceAccount: + create: true + name: homepage + +# This enables the service account to access the necessary resources +enableRbac: true + +ingress: + main: + enabled: true + annotations: + # Example annotations to add Homepage to your Homepage! + gethomepage.dev/enabled: "true" + gethomepage.dev/name: "Homepage" + gethomepage.dev/description: "Dynamically Detected Homepage" + gethomepage.dev/group: "Dynamic" + gethomepage.dev/icon: "homepage.png" + hosts: + - host: homepage.example.com + paths: + - path: / + pathType: Prefix +``` + +## Install with Kubernetes Manifests + +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: + +#### ServiceAccount + +```yaml +apiVersion: v1 +kind: ServiceAccount +metadata: + name: homepage + namespace: default + labels: + app.kubernetes.io/name: homepage +secrets: + - name: homepage +``` + +#### Secret + +```yaml +apiVersion: v1 +kind: Secret +type: kubernetes.io/service-account-token +metadata: + name: homepage + namespace: default + labels: + app.kubernetes.io/name: homepage + annotations: + kubernetes.io/service-account.name: homepage +``` + +#### ConfigMap + +```yaml +apiVersion: v1 +kind: ConfigMap +metadata: + name: homepage + namespace: default + labels: + app.kubernetes.io/name: homepage +data: + kubernetes.yaml: | + mode: cluster + settings.yaml: "" + #settings.yaml: | + # providers: + # longhorn: + # url: https://longhorn.my.network + custom.css: "" + custom.js: "" + bookmarks.yaml: | + - Developer: + - Github: + - abbr: GH + href: https://github.com/ + services.yaml: | + - My First Group: + - My First Service: + href: http://localhost/ + description: Homepage is awesome + + - My Second Group: + - My Second Service: + href: http://localhost/ + description: Homepage is the best + + - My Third Group: + - My Third Service: + href: http://localhost/ + description: Homepage is 😎 + widgets.yaml: | + - kubernetes: + cluster: + show: true + cpu: true + memory: true + showLabel: true + label: "cluster" + nodes: + show: true + cpu: true + memory: true + showLabel: true + - resources: + backend: resources + expanded: true + cpu: true + memory: true + - search: + provider: duckduckgo + target: _blank + docker.yaml: "" +``` + +#### ClusterRole and ClusterRoleBinding + +```yaml +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: homepage + labels: + app.kubernetes.io/name: homepage +rules: + - apiGroups: + - "" + resources: + - namespaces + - pods + - nodes + verbs: + - get + - list + - apiGroups: + - extensions + - networking.k8s.io + resources: + - ingresses + verbs: + - get + - list + - apiGroups: + - traefik.containo.us + resources: + - ingressroutes + verbs: + - get + - list + - apiGroups: + - metrics.k8s.io + resources: + - nodes + - pods + verbs: + - get + - list +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: homepage + labels: + app.kubernetes.io/name: homepage +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: homepage +subjects: + - kind: ServiceAccount + name: homepage + namespace: default +``` + +#### Service + +```yaml +apiVersion: v1 +kind: Service +metadata: + name: homepage + namespace: default + labels: + app.kubernetes.io/name: homepage + annotations: +spec: + type: ClusterIP + ports: + - port: 3000 + targetPort: http + protocol: TCP + name: http + selector: + app.kubernetes.io/name: homepage +``` + +#### Deployment + +```yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: homepage + namespace: default + labels: + app.kubernetes.io/name: homepage +spec: + revisionHistoryLimit: 3 + replicas: 1 + strategy: + type: RollingUpdate + selector: + matchLabels: + app.kubernetes.io/name: homepage + template: + metadata: + labels: + app.kubernetes.io/name: homepage + spec: + serviceAccountName: homepage + automountServiceAccountToken: true + dnsPolicy: ClusterFirst + enableServiceLinks: true + containers: + - name: homepage + image: "ghcr.io/benphelps/homepage:latest" + imagePullPolicy: Always + ports: + - name: http + containerPort: 3000 + protocol: TCP + volumeMounts: + - name: homepage-config + mountPath: /app/config + - name: logs + mountPath: /app/config/logs + volumes: + - name: homepage-config + configMap: + name: homepage + - name: logs + emptyDir: {} +``` + +#### Ingress + +```yaml +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: homepage + namespace: default + labels: + app.kubernetes.io/name: homepage + annotations: + gethomepage.dev/description: Dynamically Detected Homepage + gethomepage.dev/enabled: "true" + gethomepage.dev/group: Cluster Management + gethomepage.dev/icon: homepage.png + gethomepage.dev/name: Homepage +spec: + rules: + - host: "homepage.my.network" + http: + paths: + - path: "/" + pathType: Prefix + backend: + service: + name: homepage + port: + number: 3000 +``` diff --git a/docs/installation/source.md b/docs/installation/source.md new file mode 100644 index 000000000..586b62bf2 --- /dev/null +++ b/docs/installation/source.md @@ -0,0 +1,25 @@ +--- +title: Source Installation +description: Install and run homepage from source +--- + +First, clone the repository: + +```bash +git clone https://github.com/benphelps/homepage.git +``` + +Then install dependencies and build the production bundle (I'm using pnpm here, you can use npm or yarn if you like): + +```bash +pnpm install +pnpm build +``` + +If this is your first time starting, copy the `src/skeleton` directory to `config/` to populate initial example config files. + +Finally, run the server: + +```bash +pnpm start +``` diff --git a/docs/installation/unraid.md b/docs/installation/unraid.md new file mode 100644 index 000000000..192837d2b --- /dev/null +++ b/docs/installation/unraid.md @@ -0,0 +1,45 @@ +--- +title: UNRAID Installation +description: Install and run homepage on UNRAID +--- + +Homepage has an UNRAID community package that you may use to install homepage. This is the easiest way to get started with homepage on UNRAID. + +## Install the Plugin + +- In the UNRAID webGUI, go to the **Apps** tab. +- In the search bar, search for `homepage`. +- Click on **Install**. +- Change the parameters to your liking. + - Click on **APPLY**. + +## Run the Container + +- While the container is running, open the WebUI. + - Opening the page will generate the configuration files. + +You may need to set the permissions of the folders to be able to edit the files. + +- Click on the Homepage icon. +- Click on **Console**. + - Enter `chmod -R u-x,go-rwx,go+u,ugo+X /app/config` and press **Enter**. + - Enter `chmod -R u-x,go-rwx,go+u,ugo+X /app/public/icons` and press **Enter**. + - Enter `chown -R nobody:users /app/config` and press **Enter**. + - Enter `chown -R nobody:users /app/public/icons` and press **Enter**. + +## Some Other Notes + +- To use the [Docker integration](../configs/docker.md), you only need to use the `container:` parameter. There is no need to set the server. + + !!! note + + To view detailed container statistics (CPU, RAM, etc.), or if you use a remote docker socket, `container:` will still need to be set. For example: + + ``` + - Plex: + icon: /icons/plex.png + href: https://app.plex.com + container: plex + ``` + +- 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](../configs/services.md#icons) for more information. diff --git a/docs/more/development.md b/docs/more/development.md new file mode 100644 index 000000000..af5a58ddc --- /dev/null +++ b/docs/more/development.md @@ -0,0 +1,42 @@ +--- +title: Development +description: Homepage Development +--- + +## Development Overview + +First, clone the homepage repository. + +For installing NPM packages, this project uses [pnpm](https://pnpm.io/) (and so should you!): + +```bash +pnpm install +``` + +Start the development server: + +```bash +pnpm dev +``` + +Open [http://localhost:3000](http://localhost:3000) to start. + +This is a [Next.js](https://nextjs.org/) application, see their documentation for more information. + +## Code Linting + +Once dependencies have been installed you can lint your code with + +```bash +pnpm lint +``` + +## 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 have been requested and have at least 5 'up-votes' +- Widgets should be only one row of blocks +- Widgets should be no more than 4 blocks wide +- Minimize the number of API calls +- Avoid the use of custom proxy unless absolutely necessary diff --git a/docs/more/index.md b/docs/more/index.md new file mode 100644 index 000000000..1b8179835 --- /dev/null +++ b/docs/more/index.md @@ -0,0 +1,6 @@ +--- +title: More +description: More homepage resources and guides. +--- + +Here you'll find resources and guides for Homepage, troubleshooting tips, and more. diff --git a/docs/more/translations.md b/docs/more/translations.md new file mode 100644 index 000000000..ececcbafb --- /dev/null +++ b/docs/more/translations.md @@ -0,0 +1,14 @@ +--- +title: Translations +description: Contributing Translations +--- + +Homepage is developed in English, most other supported languages are provided via Google Translate. When a i18n key is not found, the fallback language is English. + +## 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. + +Everything can be done from a simple to use web interface here: https://hosted.weblate.org/projects/homepage/homepage/ + +When creating a new language, it can take 5 to 10 minutes before you'll see translatable strings added, but the process _is_ automatic. Once the strings are added, you can then start translating them. diff --git a/docs/more/troubleshooting.md b/docs/more/troubleshooting.md new file mode 100644 index 000000000..ea62181fa --- /dev/null +++ b/docs/more/troubleshooting.md @@ -0,0 +1,64 @@ +--- +title: Troubleshooting +description: Basic Troubleshooting + +hide: + - navigation +--- + +## General Troubleshooting Tips + +- 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`. + +## 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 try: + +1. Ensure that you follow the rule mentioned on https://gethomepage.dev/en/configs/service-widgets/. **Unless otherwise noted, URLs should not end with a / or other API path. Each widget will handle the path on its own.**. This is very important as including a trailing slash can result in an error. + +2. 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. + +3. 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: + + ``` + curl -L -k http://PIHOLEIPORHOST/admin/api.php + ``` + + Or for AdGuard: + + ``` + curl -L -k -u 'username:password' http://ADGUARDIPORHOST/control/stats + ``` + + Or for Portainer: + + ``` + curl -L -k -H 'X-Api-Key:YOURKEY' 'https://PORTAINERIPORHOST:PORT/api/endpoints/2/docker/containers/json' + ``` + + Sonarr: + + ``` + curl -L -k 'http://SONARRIPORHOST:PORT/api/v3/queue?apikey=YOURAPIKEY' + ``` + + 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](../configs/services.md#icons) instructions, you are still unable to see your icons please try recreating your container. diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css new file mode 100644 index 000000000..0756f2781 --- /dev/null +++ b/docs/stylesheets/extra.css @@ -0,0 +1,20 @@ +[data-md-toggle="search"]:not(:checked) ~ .md-header .md-search__form::after { + position: absolute; + top: .3rem; + right: .3rem; + display: block; + padding: .1rem .4rem; + color: var(--md-default-fg-color--lighter); + font-weight: bold; + font-size: .8rem; + border: .05rem solid var(--md-default-fg-color--lighter); + border-radius: .1rem; + content: "/"; + } + +[data-md-color-scheme="default"][data-md-color-primary="black"] { + [data-md-toggle="search"]:not(:checked) ~ .md-header .md-search__form::after { + color: var(--md-default-bg-color--lighter); + border-color: var(--md-default-bg-color--lighter); + } +} \ No newline at end of file diff --git a/docs/widgets/index.md b/docs/widgets/index.md new file mode 100644 index 000000000..b2c95a0fc --- /dev/null +++ b/docs/widgets/index.md @@ -0,0 +1,35 @@ +--- +title: Widgets +description: Homepage info and status widgets. +--- + +Homepage has two types of widgets: info and service. Below we'll cover each type and how to configure them. + +## 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.yml` file. Here's an example: + +```yaml +- Plex: + icon: plex.png + href: https://plex.my.host + description: Watch movies and TV shows. + server: localhost + container: plex + widget: + type: tautulli + url: http://172.16.1.1:8181 + key: aabbccddeeffgghhiijjkkllmmnnoo +``` + +## Info Widgets + +Info widgets are used to display information in the header, often about your system or environment. Info widgets are defined your `widgets.yml` file. Here's an example: + +```yaml +- openmeteo: + label: Current + latitude: 36.66 + longitude: -117.51 + cache: 5 +``` diff --git a/docs/widgets/info/datetime.md b/docs/widgets/info/datetime.md new file mode 100644 index 000000000..47feb45f7 --- /dev/null +++ b/docs/widgets/info/datetime.md @@ -0,0 +1,51 @@ +--- +title: Date & Time +description: Date & Time Information Widget Configuration +--- + +This allows you to display the date and/or time, can be heavily configured using [Intl.DateTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/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). + +```yaml +- datetime: + text_size: xl + format: + timeStyle: short +``` + +Any options passed to `format` are passed directly to [Intl.DateTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat), please reference the MDN documentation for all available options. + +Valid text sizes are `4xl`, `3xl`, `2xl`, `xl`, `md`, `sm`, `xs`. + +A few examples, + +```yaml +# 13:37 +format: + timeStyle: short + hourCycle: h23 +``` + +```yaml +# 1:37 PM +format: + timeStyle: short + hour12: true +``` + +```yaml +# 1/23/22, 1:37 PM +format: + dateStyle: short + timeStyle: short + hour12: true +``` + +```yaml +# 4 januari 2023 om 13:51:25 PST +locale: nl +format: + dateStyle: long + timeStyle: long +``` diff --git a/docs/widgets/info/glances.md b/docs/widgets/info/glances.md new file mode 100644 index 000000000..e5cbc7bc4 --- /dev/null +++ b/docs/widgets/info/glances.md @@ -0,0 +1,33 @@ +--- +title: Glances +description: Glances Information Widget Configuration +--- + +_(Find the Glances service widget [here](../services/glances.md))_ + +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](https://glances.readthedocs.io/en/latest/quickstart.html#web-server-mode). + +```yaml +- glances: + url: http://host.or.ip:port + username: user # optional if auth enabled in Glances + password: pass # optional if auth enabled in Glances + 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) + expanded: true # show the expanded view + label: MyMachine # optional +``` + +Multiple disks can be specified as: + +```yaml +disk: + - / + - /boot + ... +``` + +_Added in v0.4.18, updated in v0.6.11, v0.6.21_ diff --git a/docs/widgets/info/greeting.md b/docs/widgets/info/greeting.md new file mode 100644 index 000000000..0902814a0 --- /dev/null +++ b/docs/widgets/info/greeting.md @@ -0,0 +1,14 @@ +--- +title: Greeting +description: Greeting Information Widget Configuration +--- + +This allows you to display simple text, can be configured like so: + +```yaml +- greeting: + text_size: xl + text: Greeting Text +``` + +Valid text sizes are `4xl`, `3xl`, `2xl`, `xl`, `md`, `sm`, `xs`. diff --git a/docs/widgets/info/index.md b/docs/widgets/info/index.md new file mode 100644 index 000000000..52edeaade --- /dev/null +++ b/docs/widgets/info/index.md @@ -0,0 +1,4 @@ +--- +title: Info Widgets +description: Homepage info widgets. +--- diff --git a/docs/widgets/info/kubernetes.md b/docs/widgets/info/kubernetes.md new file mode 100644 index 000000000..d424a9c47 --- /dev/null +++ b/docs/widgets/info/kubernetes.md @@ -0,0 +1,31 @@ +--- +title: Kubernetes +description: Kubernetes Information Widget Configuration +--- + +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. + +```yaml +- 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 +``` diff --git a/docs/widgets/info/logo.md b/docs/widgets/info/logo.md new file mode 100644 index 000000000..ef3255f45 --- /dev/null +++ b/docs/widgets/info/logo.md @@ -0,0 +1,13 @@ +--- +title: Logo +description: Logo Information Widget Configuration +--- + +This allows you to display the homepage logo, you can optionally specify your own icon using similar options as other icons, see [service icons](../../configs/services.md#icons). + +```yaml +- logo: + icon: https://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/I_Love_New_York.svg/1101px-I_Love_New_York.svg.png # optional +``` + +_Added in v0.4.18, updated in 0.X.X_ diff --git a/docs/widgets/info/longhorn.md b/docs/widgets/info/longhorn.md new file mode 100644 index 000000000..4c7bbdbe4 --- /dev/null +++ b/docs/widgets/info/longhorn.md @@ -0,0 +1,29 @@ +--- +title: Longhorn +description: Longhorn Storage Widget Configuration +--- + +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. + +```yaml +- 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`. diff --git a/docs/widgets/info/openmeteo.md b/docs/widgets/info/openmeteo.md new file mode 100644 index 000000000..db1daac33 --- /dev/null +++ b/docs/widgets/info/openmeteo.md @@ -0,0 +1,18 @@ +--- +title: Open-Meteo +description: Open-Meteo Information Widget Configuration +--- + +No registration is required at all! See [https://open-meteo.com/en/docs](https://open-meteo.com/en/docs) + +```yaml +- 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 +``` + +You can optionally not pass a `latitude` and `longitude` and the widget will use your current location (requires a secure context, eg. HTTPS). diff --git a/docs/widgets/info/openweathermap.md b/docs/widgets/info/openweathermap.md new file mode 100644 index 000000000..63e7295d2 --- /dev/null +++ b/docs/widgets/info/openweathermap.md @@ -0,0 +1,19 @@ +--- +title: OpenWeatherMap +description: OpenWeatherMap Information Widget Configuration +--- + +The free tier "One Call API" is all thats required, you will need to [subscribe](https://home.openweathermap.org/subscriptions/unauth_subscribe/onecall_30/base) and grab your API key. + +```yaml +- 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 +``` + +You can optionally not pass a `latitude` and `longitude` and the widget will use your current location (requires a secure context, eg. HTTPS). diff --git a/docs/widgets/info/resources.md b/docs/widgets/info/resources.md new file mode 100644 index 000000000..43dea381a --- /dev/null +++ b/docs/widgets/info/resources.md @@ -0,0 +1,71 @@ +--- +title: Resources +description: Resources Information Widget Configuration +--- + +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](glances.md) displays statistics for the host machine on which it is installed. + +_Note: unfortunately, the package used for getting CPU temp ([systeminformation](https://systeminformation.io)) is not compatibile 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.** + +```yaml +- resources: + cpu: true + memory: true + disk: /disk/mount/path + cputemp: true + uptime: true + units: imperial # only used by cpu temp + refresh: 3000 # optional, in ms +``` + +You can also pass a `label` option, which allows you to group resources under named sections, + +```yaml +- resources: + label: System + cpu: true + memory: true + +- resources: + label: Storage + disk: /mnt/storage +``` + +Which produces something like this, + +Resource Groups + +If you have more than a single disk and would like to group them together under the same label, you can pass an array of paths instead, + +```yaml +- resources: + label: Storage + disk: + - /mnt/storage + - /mnt/backup + - /mnt/media +``` + +To produce something like this, + +Screenshot 2022-09-11 at 2 15 42 PM + +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. + +```yaml +- resources: + label: Array Disks + expanded: true + disk: + - /disk1 + - /disk2 + - /disk3 +``` + +![194136533-c4238c82-4d67-41a4-b3c8-18bf26d33ac2](https://user-images.githubusercontent.com/3441425/194728642-a9885274-922b-4027-acf5-a746f58fdfce.png) diff --git a/docs/widgets/info/search.md b/docs/widgets/info/search.md new file mode 100644 index 000000000..a03d711cb --- /dev/null +++ b/docs/widgets/info/search.md @@ -0,0 +1,31 @@ +--- +title: Search +description: Search Information Widget Configuration +--- + +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. + +```yaml +- search: + provider: google # google, duckduckgo, bing, baidu, brave or custom + focus: true # Optional, will set focus to the search bar on page load + target: _blank # One of _self, _blank, _parent or _top +``` + +or for a custom search: + +```yaml +- search: + provider: custom + url: https://lougle.com/?q= + target: _blank +``` + +multiple providers is also supported via a dropdown (excluding custom): + +```yaml +- search: + provider: [brave, google, duckduckgo] +``` + +_Added in v0.1.6, updated in 0.6.0_ diff --git a/docs/widgets/info/unifi_controller.md b/docs/widgets/info/unifi_controller.md new file mode 100644 index 000000000..29188270b --- /dev/null +++ b/docs/widgets/info/unifi_controller.md @@ -0,0 +1,24 @@ +--- +title: Unifi Controller +description: Unifi Controller Information Widget Configuration +--- + +_(Find the Unifi Controller service widget [here](../services/unifi-controller.md))_ + +You can display general connectivity status from your Unifi (Network) Controller. 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. + +_Note: If you enter e.g. incorrect credentials and receive an "API Error", you may need to recreate the container to clear the cache._ + +unifi_infowidget + +```yaml +- unifi_console: + url: https://unifi.host.or.ip:port + username: user + password: pass + site: Site Name # optional +``` + +_Added in v0.4.18, updated in 0.6.7_ diff --git a/docs/widgets/info/weather.md b/docs/widgets/info/weather.md new file mode 100644 index 000000000..338ca256e --- /dev/null +++ b/docs/widgets/info/weather.md @@ -0,0 +1,20 @@ +--- +title: Weather API +description: Weather API Information Widget Configuration +--- + +**Note: this widget is considered 'deprecated' since there is no longer a free Weather API tier for new members. See the openmeteo or openweathermap widgets for alternatives.** + +The free tier is all thats required, you will need to [register](https://www.weatherapi.com/signup.aspx) and grab your API key. + +```yaml +- weatherapi: + label: Kyiv # optional + latitude: 50.449684 + longitude: 30.525026 + units: metric # or imperial + apiKey: yourweatherapikey + cache: 5 # Time in minutes to cache API responses, to stay within limits +``` + +You can optionally not pass a `latitude` and `longitude` and the widget will use your current location (requires a secure context, eg. HTTPS). diff --git a/docs/widgets/services/adguard-home.md b/docs/widgets/services/adguard-home.md new file mode 100644 index 000000000..57fad6a61 --- /dev/null +++ b/docs/widgets/services/adguard-home.md @@ -0,0 +1,16 @@ +--- +title: Adguard Home +description: Adguard Home Widget Configuration +--- + +The username and password are the same as used to login to the web interface. + +Allowed fields: `["queries", "blocked", "filtered", "latency"]`. + +```yaml +widget: + type: adguard + url: http://adguard.host.or.ip + username: admin + password: password +``` diff --git a/docs/widgets/services/atsumeru.md b/docs/widgets/services/atsumeru.md new file mode 100644 index 000000000..06126f2e7 --- /dev/null +++ b/docs/widgets/services/atsumeru.md @@ -0,0 +1,16 @@ +--- +title: Atsumeru +description: Atsumeru Widget Configuration +--- + +Define same username and password that is used for login from web or supported apps + +Allowed fields: `["series", "archives", "chapters", "categories"]`. + +```yaml +widget: + type: atsumeru + url: http://atsumeru.host.or.ip:port + username: username + password: password +``` diff --git a/docs/widgets/services/audiobookshelf.md b/docs/widgets/services/audiobookshelf.md new file mode 100644 index 000000000..73e2b7447 --- /dev/null +++ b/docs/widgets/services/audiobookshelf.md @@ -0,0 +1,15 @@ +--- +title: Audiobookshelf +description: Audiobookshelf Widget Configuration +--- + +You can find your API token by logging into the Audiobookshelf web app as an admin, go to the config → users page, and click on your account. + +Allowed fields: `["podcasts", "podcastsDuration", "books", "booksDuration"]` + +```yaml +widget: + type: audiobookshelf + url: http://audiobookshelf.host.or.ip:port + key: audiobookshelflapikey +``` diff --git a/docs/widgets/services/authentik.md b/docs/widgets/services/authentik.md new file mode 100644 index 000000000..306107e0b --- /dev/null +++ b/docs/widgets/services/authentik.md @@ -0,0 +1,24 @@ +--- +title: Authentik +description: Authentik Widget Configuration +--- + +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. To do so follow these steps: + +1. Navigate to the Authentik Admin Portal +2. Expand Directory, the click Tokens & App passwords +3. Click the Create button +4. Fill out the dialog making sure to set Intent to API Token +5. Click the Create button on the dialog +6. Click the copy button on the far right of the newly created API Token + +Allowed fields: `["users", "loginsLast24H", "failedLoginsLast24H"]`. + +```yaml +widget: + type: authentik + url: http://authentik.host.or.ip:22070 + key: api_token +``` diff --git a/docs/widgets/services/autobrr.md b/docs/widgets/services/autobrr.md new file mode 100644 index 000000000..ba034d2ae --- /dev/null +++ b/docs/widgets/services/autobrr.md @@ -0,0 +1,15 @@ +--- +title: Autobrr +description: Autobrr Widget Configuration +--- + +Find your API key under `Settings > API Keys`. + +Allowed fields: `["approvedPushes", "rejectedPushes", "filters", "indexers"]`. + +```yaml +widget: + type: autobrr + url: http://autobrr.host.or.ip + key: apikeyapikeyapikeyapikeyapikey +``` diff --git a/docs/widgets/services/azuredevops.md b/docs/widgets/services/azuredevops.md new file mode 100644 index 000000000..a9142731d --- /dev/null +++ b/docs/widgets/services/azuredevops.md @@ -0,0 +1,26 @@ +--- +title: Azure DevOps +description: Azure DevOps Widget Configuration +--- + +This widget has 2 functions: + +1. Pipelines: checks if the relevant pipeline is running or not, and if not, reports the last status.\ + Allowed fields: `["result", "status"]`. + +2. 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 atleast 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](https://learn.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops&tabs=Windows#create-a-pat) + +```yaml +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 +``` diff --git a/docs/widgets/services/bazarr.md b/docs/widgets/services/bazarr.md new file mode 100644 index 000000000..3a48821e3 --- /dev/null +++ b/docs/widgets/services/bazarr.md @@ -0,0 +1,15 @@ +--- +title: Bazarr +description: Bazarr Widget Configuration +--- + +Find your API key under `Settings > General`. + +Allowed fields: `["missingEpisodes", "missingMovies"]`. + +```yaml +widget: + type: bazarr + url: http://bazarr.host.or.ip + key: apikeyapikeyapikeyapikeyapikey +``` diff --git a/docs/widgets/services/caddy.md b/docs/widgets/services/caddy.md new file mode 100644 index 000000000..52c1d4620 --- /dev/null +++ b/docs/widgets/services/caddy.md @@ -0,0 +1,12 @@ +--- +title: Caddy +description: Caddy Widget Configuration +--- + +Allowed fields: `["upstreams", "requests", "requests_failed"]`. + +```yaml +widget: + type: caddy + url: http://caddy.host.or.ip:adminport # default admin port is 2019 +``` diff --git a/docs/widgets/services/calendar.md b/docs/widgets/services/calendar.md new file mode 100644 index 000000000..794c0ed2d --- /dev/null +++ b/docs/widgets/services/calendar.md @@ -0,0 +1,25 @@ +--- +title: Calendar +description: Calendar widget +--- + +calendar + +This widget shows monthly calendar, with optional integrations to show events from supported widgets. + +```yaml +widget: + type: calendar + firstDayInWeek: sunday # optional - defaults to monday + integrations: # optional + - type: sonarr # active widget type that is currently enabled on homepage - possible values: radarr, sonarr, lidarr, readarr + 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) + params: # optional - additional params for the service + unmonitored: true # optional - defaults to false, used with *arr stack +``` + +Currently integrated widgets are [sonarr](sonarr.md), [radarr](radarr.md), [lidarr](lidarr.md) and [readarr](readarr.md). + +Supported colors can be found on [color palette](../../configs/settings.md#color-palette). diff --git a/docs/widgets/services/calibre-web.md b/docs/widgets/services/calibre-web.md new file mode 100644 index 000000000..f9090f8d3 --- /dev/null +++ b/docs/widgets/services/calibre-web.md @@ -0,0 +1,16 @@ +--- +title: Calibre-web +description: Calibre-web Widget Configuration +--- + +**Note: this widget requires a feature of calibre-web that has not yet been distributed in versioned release. The code is contained in ["nightly" lsio builds after 25/8/23](https://hub.docker.com/layers/linuxserver/calibre-web/nightly/images/sha256-b27cbe5d17503de38135d925e226eb3e5ba04c558dbc865dc85d77824d35d7e2) or running the calibre-web source code including commit [0499e57](https://github.com/janeczku/calibre-web/commit/0499e578cdd45db656da34cd2d7152c8d88ceb23).** + +Allowed fields: `["books", "authors", "categories", "series"]`. + +```yaml +widget: + type: calibreweb + url: http://your.calibreweb.host:port + username: username + password: password +``` diff --git a/docs/widgets/services/changedetectionio.md b/docs/widgets/services/changedetectionio.md new file mode 100644 index 000000000..674db9a89 --- /dev/null +++ b/docs/widgets/services/changedetectionio.md @@ -0,0 +1,13 @@ +--- +title: Changedetection.io +description: Changedetection.io Widget Configuration +--- + +Find your API key under `Settings > API`. + +```yaml +widget: + type: changedetectionio + url: http://changedetection.host.or.ip:port + key: apikeyapikeyapikeyapikeyapikey +``` diff --git a/docs/widgets/services/channelsdvrserver.md b/docs/widgets/services/channelsdvrserver.md new file mode 100644 index 000000000..390df42c9 --- /dev/null +++ b/docs/widgets/services/channelsdvrserver.md @@ -0,0 +1,10 @@ +--- +title: Channels DVR Server +description: Channels DVR Server Widget Configuration +--- + +```yaml +widget: + type: channelsdvrserver + url: http://192.168.1.55:8089 +``` diff --git a/docs/widgets/services/cloudflared.md b/docs/widgets/services/cloudflared.md new file mode 100644 index 000000000..3212a2788 --- /dev/null +++ b/docs/widgets/services/cloudflared.md @@ -0,0 +1,16 @@ +--- +title: Cloudflare Tunnels +description: Cloudflare Tunnels Widget Configuration +--- + +_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"]`. + +```yaml +widget: + type: cloudflared + accountid: accountid # from zero trust dashboard url e.g. https://one.dash.cloudflare.com//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 +``` diff --git a/docs/widgets/services/coin-market-cap.md b/docs/widgets/services/coin-market-cap.md new file mode 100644 index 000000000..a62c63f3c --- /dev/null +++ b/docs/widgets/services/coin-market-cap.md @@ -0,0 +1,25 @@ +--- +title: Coin Market Cap +description: Coin Market Cap Widget Configuration +--- + +Get your API key from your [CoinMarketCap Pro Dashboard](https://pro.coinmarketcap.com/account). + +Allowed fields: no configurable fields for this widget. + +```yaml +widget: + type: coinmarketcap + currency: GBP # Optional + symbols: [BTC, LTC, ETH] + key: apikeyapikeyapikeyapikeyapikey +``` + +You can also specify slugs instead of symbols (since symbols aren't garaunteed to be unique). If you supply both, slugs will be used. For example: + +```yaml +widget: + type: coinmarketcap + slugs: [chia-network, uniswap] + key: apikeyapikeyapikeyapikeyapikey +``` diff --git a/docs/widgets/services/customapi.md b/docs/widgets/services/customapi.md new file mode 100644 index 000000000..79ffc6fe2 --- /dev/null +++ b/docs/widgets/services/customapi.md @@ -0,0 +1,109 @@ +--- +title: Custom API +description: Custom Widget Configuration from the API +--- + +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. + +```yaml +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 + mappings: + - field: key # needs to be YAML string or object + label: Field 1 + format: text # optional - defaults to text + - field: # needs to be YAML string or object + path: + to: key2 + format: number # optional - defaults to text + label: Field 2 + - field: # needs to be YAML string or object + path: + to: + another: key3 + label: Field 3 + format: percent # optional - defaults to text +``` + +Supported formats for the values are `text`, `number`, `float`, `percent`, `bytes` and `bitrate`. + +## Example + +For the following JSON object from the API: + +```json +{ + "id": 1, + "name": "Rick Sanchez", + "status": "Alive", + "species": "Human", + "gender": "Male", + "origin": { + "name": "Earth (C-137)" + }, + "locations": [ + { + "name": "Earth (C-137)" + }, + { + "name": "Citadel of Ricks" + } + ] +} +``` + +Define the `mappings` section as an aray, for example: + +```yaml +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 +``` + +## Data Transformation + +You can manipulate data with the following tools `remap`, `scale` and `suffix`, for example: + +```yaml +- 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 +``` + +## Custom Headers + +Pass custom headers using the `headers` option, for example: + +```yaml +headers: + X-API-Token: token +``` diff --git a/docs/widgets/services/deluge.md b/docs/widgets/services/deluge.md new file mode 100644 index 000000000..2ce7023f8 --- /dev/null +++ b/docs/widgets/services/deluge.md @@ -0,0 +1,15 @@ +--- +title: Deluge +description: Deluge Widget Configuration +--- + +Uses the same password used to login to the webui, see [the deluge FAQ](https://dev.deluge-torrent.org/wiki/Faq#Whatisthedefaultpassword). + +Allowed fields: `["leech", "download", "seed", "upload"]`. + +```yaml +widget: + type: deluge + url: http://deluge.host.or.ip + password: password # webui password +``` diff --git a/docs/widgets/services/diskstation.md b/docs/widgets/services/diskstation.md new file mode 100644 index 000000000..571630632 --- /dev/null +++ b/docs/widgets/services/diskstation.md @@ -0,0 +1,36 @@ +--- +title: Synology Disk Station +description: Synology Disk Station Widget Configuration +--- + +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). + +Allowed fields: `["uptime", "volumeAvailable", "resources.cpu", "resources.mem"]`. + +To access these system metrics you need to connect to the DiskStation 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: + +1. Create a new user, i.e. `remote_stats`. +2. Set up a strong password for the new user +3. Under the `User Groups` tab of the user config dialogue check the box for `Administrators`. +4. On the `Permissions` tab check the top box for `No Access`, effectively prohibiting the user from accessing anything in the shared folders. +5. Under `Applications` check the box next to `Deny` in the header to explicitly prohibit login to all applications. +6. Now _only_ allow login to the `Download Station` application, 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. +7. When the `Preview` column shows `Allow` in the `Download Station` 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. + +```yaml +widget: + type: diskstation + url: http://diskstation.host.or.ip:port + username: username + password: password + volume: volume_N # optional +``` diff --git a/docs/widgets/services/downloadstation.md b/docs/widgets/services/downloadstation.md new file mode 100644 index 000000000..f97dd7fb5 --- /dev/null +++ b/docs/widgets/services/downloadstation.md @@ -0,0 +1,16 @@ +--- +title: Synology Download Station +description: Synology Download Station Widget Configuration +--- + +Note: the widget is not compatible with 2FA. + +Allowed fields: `["leech", "download", "seed", "upload"]`. + +```yaml +widget: + type: downloadstation + url: http://downloadstation.host.or.ip:port + username: username + password: password +``` diff --git a/docs/widgets/services/emby.md b/docs/widgets/services/emby.md new file mode 100644 index 000000000..52b9e8877 --- /dev/null +++ b/docs/widgets/services/emby.md @@ -0,0 +1,17 @@ +--- +title: Emby +description: Emby Widget Configuration +--- + +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. + +```yaml +widget: + type: emby + url: http://emby.host.or.ip + key: apikeyapikeyapikeyapikeyapikey + enableBlocks: true # optional, defaults to false + enableNowPlaying: true # optional, defaults to true +``` diff --git a/docs/widgets/services/evcc.md b/docs/widgets/services/evcc.md new file mode 100644 index 000000000..5fbbdf91a --- /dev/null +++ b/docs/widgets/services/evcc.md @@ -0,0 +1,12 @@ +--- +title: EVCC +description: EVCC Widget Configuration +--- + +Allowed fields: `["pv_power", "grid_power", "home_power", "charge_power]`. + +```yaml +widget: + type: evcc + url: http://evcc.host.or.ip:port +``` diff --git a/docs/widgets/services/fileflows.md b/docs/widgets/services/fileflows.md new file mode 100644 index 000000000..46762f333 --- /dev/null +++ b/docs/widgets/services/fileflows.md @@ -0,0 +1,12 @@ +--- +title: Fileflows +description: Fileflows Widget Configuration +--- + +Allowed fields: `["queue", "processing", "processed", "time"]`. + +```yaml +widget: + type: fileflows + url: http://your.fileflows.host:port +``` diff --git a/docs/widgets/services/flood.md b/docs/widgets/services/flood.md new file mode 100644 index 000000000..f9b8285bd --- /dev/null +++ b/docs/widgets/services/flood.md @@ -0,0 +1,14 @@ +--- +title: Flood +description: Flood Widget Configuration +--- + +Allowed fields: `["leech", "download", "seed", "upload"]`. + +```yaml +widget: + type: flood + url: http://flood.host.or.ip + username: username # if set + password: password # if set +``` diff --git a/docs/widgets/services/freshrss.md b/docs/widgets/services/freshrss.md new file mode 100644 index 000000000..a5e2c7d96 --- /dev/null +++ b/docs/widgets/services/freshrss.md @@ -0,0 +1,16 @@ +--- +title: FreshRSS +description: FreshRSS Widget Configuration +--- + +Please refer to [Enable the API in FreshRSS](https://freshrss.github.io/FreshRSS/en/users/06_Mobile_access.html#enable-the-api-in-freshrss) for the "API password" to be entered in the password field. + +Allowed fields: `["subscriptions", "unread"]`. + +```yaml +widget: + type: freshrss + url: http://freshrss.host.or.ip:port + username: username + password: password +``` diff --git a/docs/widgets/services/gamedig.md b/docs/widgets/services/gamedig.md new file mode 100644 index 000000000..2157c8867 --- /dev/null +++ b/docs/widgets/services/gamedig.md @@ -0,0 +1,15 @@ +--- +title: GameDig +description: GameDig Widget Configuration +--- + +Uses the [GameDig](https://www.npmjs.com/package/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"]`. + +```yaml +widget: + type: gamedig + serverType: csgo # see https://github.com/gamedig/node-gamedig#games-list + url: udp://server.host.or.ip:port +``` diff --git a/docs/widgets/services/ghostfolio.md b/docs/widgets/services/ghostfolio.md new file mode 100644 index 000000000..ca91a6100 --- /dev/null +++ b/docs/widgets/services/ghostfolio.md @@ -0,0 +1,23 @@ +--- +title: Ghostfolio +description: Ghostfolio Widget Configuration +--- + +Authentication requires manually obtaining a Bearer token which can be obtained by make a POST request to the API e.g. + +``` +curl -X POST http://localhost:3333/api/v1/auth/anonymous -H 'Content-Type: application/json' -d '{ "accessToken": "SECURITY_TOKEN_OF_ACCOUNT" }' +``` + +See the [official docs](https://github.com/ghostfolio/ghostfolio#authorization-bearer-token). + +_Note that the Bearer token is valid for 6 months, after which a new one must be generated._ + +Allowed fields: `["gross_percent_today", "gross_percent_1y", "gross_percent_max"]` + +```yaml +widget: + type: ghostfolio + url: http://ghostfoliohost:port + key: ghostfoliobearertoken +``` diff --git a/docs/widgets/services/glances.md b/docs/widgets/services/glances.md new file mode 100644 index 000000000..25241460f --- /dev/null +++ b/docs/widgets/services/glances.md @@ -0,0 +1,73 @@ +--- +title: Glances +description: Glances Widget Configuration +--- + +glances + +_(Find the Glances information widget [here](../services/glances.md))_ + +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. + +```yaml +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 + metric: cpu +``` + +_Please note, this widget does not need an `href`, `icon` or `description` on its parent service. To achive the same effect as the examples above, see as an example:_ + +```yaml +- CPU Usage: + widget: + type: glances + url: http://glances.host.or.ip:port + metric: cpu +- Network Usage: + widget: + type: glances + url: http://glances.host.or.ip:port + metric: network:enp0s25 +``` + +## Metrics + +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. + +`network:`: Network data usage for the specified interface. Replace `` with the name of your network interface, e.g., `network:enp0s25`, as specificed in glances. + +`sensor:`: Temperature of the specified sensor, typically used to monitor CPU temperature. Replace `` with the name of your sensor, e.g., `sensor:Package id 0` as specificed in glances. + +`disk:`: Disk I/O data for the specified disk. Replace `` with the id of your disk, e.g., `disk:sdb`, as specificed in glances. + +`gpu:`: GPU usage for the specified GPU. Replace `` with the id of your GPU, e.g., `gpu:0`, as specificed in glances. + +`fs:`: Disk usage for the specified mount point. Replace `` with the path of your disk, e.g., `/mnt/storage`, as specificed in glances. + +## Views + +All widgets offer an alternative to the full or "graph" view, which is the compact, or "graphless" view. + +Screenshot 2023-09-06 at 1 51 48 PM + +To switch to the alternative "graphless" view, simply passs `chart: false` as an option to the widget, like so: + +```yaml +- Network Usage: + widget: + type: glances + url: http://glances.host.or.ip:port + metric: network:enp0s25 + chart: false +``` diff --git a/docs/widgets/services/gluetun.md b/docs/widgets/services/gluetun.md new file mode 100644 index 000000000..be8e05e3f --- /dev/null +++ b/docs/widgets/services/gluetun.md @@ -0,0 +1,14 @@ +--- +title: Gluetun +description: Gluetun Widget Configuration +--- + +Requires [HTTP control server options](https://github.com/qdm12/gluetun/wiki/HTTP-control-server-options) to be enabled. + +Allowed fields: `["public_ip", "region", "country"]`. + +```yaml +widget: + type: gluetun + url: http://gluetun.host.or.ip +``` diff --git a/docs/widgets/services/gotify.md b/docs/widgets/services/gotify.md new file mode 100644 index 000000000..1eb16c03e --- /dev/null +++ b/docs/widgets/services/gotify.md @@ -0,0 +1,15 @@ +--- +title: Gotify +description: Gotify Widget Configuration +--- + +Get a Gotify client token from an existing client or create a new one on your Gotify admin page. + +Allowed fields: `["apps", "clients", "messages"]`. + +```yaml +widget: + type: gotify + url: http://gotify.host.or.ip + key: clientoken +``` diff --git a/docs/widgets/services/grafana.md b/docs/widgets/services/grafana.md new file mode 100644 index 000000000..5d3aab9eb --- /dev/null +++ b/docs/widgets/services/grafana.md @@ -0,0 +1,14 @@ +--- +title: Grafana +description: Grafana Widget Configuration +--- + +Allowed fields: `["dashboards", "datasources", "totalalerts", "alertstriggered"]`. + +```yaml +widget: + type: grafana + url: http://grafana.host.or.ip:port + username: username + password: password +``` diff --git a/docs/widgets/services/healthchecks.md b/docs/widgets/services/healthchecks.md new file mode 100644 index 000000000..c8effa924 --- /dev/null +++ b/docs/widgets/services/healthchecks.md @@ -0,0 +1,20 @@ +--- +title: Health checks +description: Health checks Widget Configuration +--- + +To use the Health Checks widget, you first need to generate an API key. To do this, follow these steps: + +1. Go to Settings in your check dashboard. +2. Click on API key (read-only) and then click _Create_. +3. Copy the API key that is generated for you. + +Allowed fields: `["status", "last_ping"]`. + +```yaml +widget: + type: healthchecks + url: http://healthchecks.host.or.ip:port + key: + uuid: +``` diff --git a/docs/widgets/services/homeassistant.md b/docs/widgets/services/homeassistant.md new file mode 100644 index 000000000..f792511c7 --- /dev/null +++ b/docs/widgets/services/homeassistant.md @@ -0,0 +1,36 @@ +--- +title: Home Assistant +description: Home Assistant Widget Configuration +--- + +You will need to generate a long-lived access token for an existing Home Assistant user in its profile. + +Allowed fields: `["people_home", "lights_on", "switches_on"]`. + +--- + +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)[https://www.home-assistant.io/docs/configuration/templating] + - if no template label is defined it will be empty + +```yaml +widget: + type: homeassistant + url: http://homeassistant.host.or.ip:port + key: access_token + custom: + - state: sensor.total_power + - state: sensor.total_energy_today + label: energy today + - template: "{{ states.switch|selectattr('state','equalto','on')|list|length }}" + label: switches on + - state: weather.forecast_home + label: wind speed + value: "{attributes.wind_speed} {attributes.wind_speed_unit}" +``` diff --git a/docs/widgets/services/homebridge.md b/docs/widgets/services/homebridge.md new file mode 100644 index 000000000..bd6acaf8b --- /dev/null +++ b/docs/widgets/services/homebridge.md @@ -0,0 +1,16 @@ +--- +title: Homebridge +description: Homebridge +--- + +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. + +Allowed fields: `["updates", "child_bridges"]`. + +```yaml +widget: + type: homebridge + url: http://homebridge.host.or.ip:port + username: username + password: password +``` diff --git a/docs/widgets/services/immich.md b/docs/widgets/services/immich.md new file mode 100644 index 000000000..007d33032 --- /dev/null +++ b/docs/widgets/services/immich.md @@ -0,0 +1,15 @@ +--- +title: Immich +description: Immich Widget Configuration +--- + +Allowed fields: `["users" ,"photos", "videos", "storage"]`. + +Note that API key must be from admin user. + +```yaml +widget: + type: immich + url: http://immich.host.or.ip + key: adminapikeyadminapikeyadminapikey +``` diff --git a/docs/widgets/services/index.md b/docs/widgets/services/index.md new file mode 100644 index 000000000..b8a41d765 --- /dev/null +++ b/docs/widgets/services/index.md @@ -0,0 +1,4 @@ +--- +title: Service Widgets +description: Homepage service widgets. +--- diff --git a/docs/widgets/services/jackett.md b/docs/widgets/services/jackett.md new file mode 100644 index 000000000..cdbb76387 --- /dev/null +++ b/docs/widgets/services/jackett.md @@ -0,0 +1,14 @@ +--- +title: Jackett +description: Jackett Widget Configuration +--- + +Jackett must not have any authentication for the widget to work. + +Allowed fields: `["configured", "errored"]`. + +```yaml +widget: + type: jackett + url: http://jackett.host.or.ip +``` diff --git a/docs/widgets/services/jdownloader.md b/docs/widgets/services/jdownloader.md new file mode 100644 index 000000000..bced032e6 --- /dev/null +++ b/docs/widgets/services/jdownloader.md @@ -0,0 +1,16 @@ +--- +title: JDownloader +description: NextPVR Widget Configuration +--- + +Basic widget to show number of items in download queue, along with the queue size and current download speed. + +Allowed fields: `["downloadCount", "downloadTotalBytes","downloadBytesRemaining", "downloadSpeed"]`. + +```yaml +widget: + type: jdownloader + username: JDownloader Username + password: JDownloader Password + client: Name of JDownloader Instance +``` diff --git a/docs/widgets/services/jellyfin.md b/docs/widgets/services/jellyfin.md new file mode 100644 index 000000000..14f97c63d --- /dev/null +++ b/docs/widgets/services/jellyfin.md @@ -0,0 +1,17 @@ +--- +title: Jellyfin +description: Jellyfin Widget Configuration +--- + +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. + +```yaml +widget: + type: jellyfin + url: http://jellyfin.host.or.ip + key: apikeyapikeyapikeyapikeyapikey + enableBlocks: true # optional, defaults to false + enableNowPlaying: true # optional, defaults to true +``` diff --git a/docs/widgets/services/jellyseerr.md b/docs/widgets/services/jellyseerr.md new file mode 100644 index 000000000..57267845a --- /dev/null +++ b/docs/widgets/services/jellyseerr.md @@ -0,0 +1,15 @@ +--- +title: Jellyseerr +description: Jellyseerr Widget Configuration +--- + +Find your API key under `Settings > General > API Key`. + +Allowed fields: `["pending", "approved", "available"]`. + +```yaml +widget: + type: jellyseerr + url: http://jellyseerr.host.or.ip + key: apikeyapikeyapikeyapikeyapikey +``` diff --git a/docs/widgets/services/kavita.md b/docs/widgets/services/kavita.md new file mode 100644 index 000000000..4c2b90e46 --- /dev/null +++ b/docs/widgets/services/kavita.md @@ -0,0 +1,16 @@ +--- +title: Kavita +description: Kavita Widget Configuration +--- + +Uses the same username and password used to login from the web. + +Allowed fields: `["seriesCount", "totalFiles"]`. + +```yaml +widget: + type: kavita + url: http://kavita.host.or.ip:port + username: username + password: password +``` diff --git a/docs/widgets/services/komga.md b/docs/widgets/services/komga.md new file mode 100644 index 000000000..0f972d715 --- /dev/null +++ b/docs/widgets/services/komga.md @@ -0,0 +1,16 @@ +--- +title: Komga +description: Komga Widget Configuration +--- + +Uses the same username and password used to login from the web. + +Allowed fields: `["libraries", "series", "books"]`. + +```yaml +widget: + type: komga + url: http://komga.host.or.ip:port + username: username + password: password +``` diff --git a/docs/widgets/services/kopia.md b/docs/widgets/services/kopia.md new file mode 100644 index 000000000..304e640ac --- /dev/null +++ b/docs/widgets/services/kopia.md @@ -0,0 +1,18 @@ +--- +title: Kopia +description: Kopia Widget Configuration +--- + +Allowed fields: `["status", "size", "lastrun", "nextrun"]`. + +You may optionally pass values for `snapshotHost` and / or `snapshotPath` to select a specific backup source for the widget. + +```yaml +widget: + type: kopia + url: http://kopia.host.or.ip:port + username: username + password: password + snapshotHost: hostname # optional + snapshotPath: path # optional +``` diff --git a/docs/widgets/services/lidarr.md b/docs/widgets/services/lidarr.md new file mode 100644 index 000000000..3c7fe48f6 --- /dev/null +++ b/docs/widgets/services/lidarr.md @@ -0,0 +1,15 @@ +--- +title: Lidarr +description: Lidarr Widget Configuration +--- + +Find your API key under `Settings > General`. + +Allowed fields: `["wanted", "queued", "artists"]`. + +```yaml +widget: + type: lidarr + url: http://lidarr.host.or.ip + key: apikeyapikeyapikeyapikeyapikey +``` diff --git a/docs/widgets/services/mastodon.md b/docs/widgets/services/mastodon.md new file mode 100644 index 000000000..1195af4b5 --- /dev/null +++ b/docs/widgets/services/mastodon.md @@ -0,0 +1,14 @@ +--- +title: Mastodon +description: Mastodon Widget Configuration +--- + +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. + +Allowed fields: `["user_count", "status_count", "domain_count"]`. + +```yaml +widget: + type: mastodon + url: https://mastodon.host.name +``` diff --git a/docs/widgets/services/mealie.md b/docs/widgets/services/mealie.md new file mode 100644 index 000000000..3167e812c --- /dev/null +++ b/docs/widgets/services/mealie.md @@ -0,0 +1,15 @@ +--- +title: Mealie +description: Mealie Widget Configuration +--- + +Generate a user API key under `Profile > Manage Your API Tokens > Generate`. + +Allowed fields: `["recipes", "users", "categories", "tags"]`. + +```yaml +widget: + type: mealie + url: http://mealie-frontend.host.or.ip + key: mealieapitoken +``` diff --git a/docs/widgets/services/medusa.md b/docs/widgets/services/medusa.md new file mode 100644 index 000000000..27b0f1d25 --- /dev/null +++ b/docs/widgets/services/medusa.md @@ -0,0 +1,13 @@ +--- +title: Medusa +description: Medusa Widget Configuration +--- + +Allowed fields: `["wanted", "queued", "series"]`. + +```yaml +widget: + type: medusa + url: http://medusa.host.or.ip:port + key: medusaapikeyapikeyapikeyapikeyapikey +``` diff --git a/docs/widgets/services/mikrotik.md b/docs/widgets/services/mikrotik.md new file mode 100644 index 000000000..18371217b --- /dev/null +++ b/docs/widgets/services/mikrotik.md @@ -0,0 +1,16 @@ +--- +title: Mikrotik +description: Mikrotik Widget Configuration +--- + +HTTPS may be required, [per the documentation](https://help.mikrotik.com/docs/display/ROS/REST+API#RESTAPI-Overview) + +Allowed fields: `["uptime", "cpuLoad", "memoryUsed", "numberOfLeases"]`. + +```yaml +widget: + type: mikrotik + url: https://mikrotik.host.or.ip + username: username + password: password +``` diff --git a/docs/widgets/services/minecraft.md b/docs/widgets/services/minecraft.md new file mode 100644 index 000000000..2d15f1f54 --- /dev/null +++ b/docs/widgets/services/minecraft.md @@ -0,0 +1,12 @@ +--- +title: Minecraft +description: Minecraft Widget Configuration +--- + +Allowed fields: `["players", "version", "status"]`. + +```yaml +widget: + type: minecraft + url: udp://minecraftserveripordomain:port +``` diff --git a/docs/widgets/services/miniflux.md b/docs/widgets/services/miniflux.md new file mode 100644 index 000000000..1327dd637 --- /dev/null +++ b/docs/widgets/services/miniflux.md @@ -0,0 +1,15 @@ +--- +title: Miniflux +description: Miniflux Widget Configuration +--- + +Api key is found under Settings > API keys + +Allowed fields: `["unread", "read"]`. + +```yaml +widget: + type: miniflux + url: http://miniflux.host.or.ip:port + key: minifluxapikey +``` diff --git a/docs/widgets/services/mjpeg.md b/docs/widgets/services/mjpeg.md new file mode 100644 index 000000000..d25a8de4e --- /dev/null +++ b/docs/widgets/services/mjpeg.md @@ -0,0 +1,14 @@ +--- +title: MJPEG +description: MJPEG Stream Widget Configuration +--- + +![camera-preview](https://github.com/benphelps/homepage-docs/assets/82196/dc375ae3-0670-489f-8db6-83ff1f423d12) + +Pass the stream URL from a service like [µStreamer](https://github.com/pikvm/ustreamer) or [camera-streamer](https://github.com/ayufan/camera-streamer). + +```yaml +widget: + type: mjpeg + stream: http://mjpeg.host.or.ip/webcam/stream +``` diff --git a/docs/widgets/services/moonraker.md b/docs/widgets/services/moonraker.md new file mode 100644 index 000000000..83293df24 --- /dev/null +++ b/docs/widgets/services/moonraker.md @@ -0,0 +1,12 @@ +--- +title: Moonraker (Klipper) +description: Moonraker (Klipper) Widget Configuration +--- + +Allowed fields: `["printer_state", "print_status", "print_progress", "layers"]`. + +```yaml +widget: + type: moonraker + url: http://moonraker.host.or.ip:port +``` diff --git a/docs/widgets/services/mylar.md b/docs/widgets/services/mylar.md new file mode 100644 index 000000000..dc49d0368 --- /dev/null +++ b/docs/widgets/services/mylar.md @@ -0,0 +1,15 @@ +--- +title: Mylar3 +description: Mylar3 Widget Configuration +--- + +API must be enabled in Mylar3 settings. + +Allowed fields: `["series", "issues", "wanted"]`. + +```yaml +widget: + type: mylar + url: http://mylar3.host.or.ip:port + key: yourmylar3apikey +``` diff --git a/docs/widgets/services/navidrome.md b/docs/widgets/services/navidrome.md new file mode 100644 index 000000000..87e45dca0 --- /dev/null +++ b/docs/widgets/services/navidrome.md @@ -0,0 +1,17 @@ +--- +title: Navidrome +description: Navidrome Widget Configuration +--- + +For detailed information about how to generate the token see http://www.subsonic.org/pages/api.jsp. + +Allowed fields: no configurable fields for this widget. + +```yaml +widget: + type: navidrome + url: http://navidrome.host.or.ip:port + user: username + token: token #md5(password + salt) + salt: randomsalt +``` diff --git a/docs/widgets/services/nextcloud.md b/docs/widgets/services/nextcloud.md new file mode 100644 index 000000000..1ef107b59 --- /dev/null +++ b/docs/widgets/services/nextcloud.md @@ -0,0 +1,25 @@ +--- +title: Nextcloud +description: Nextcloud Widget Configuration +--- + +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. + +Allowed fields: `["cpuload", "memoryusage", "freespace", "activeusers", "numfiles", "numshares"]`. + +Note "cpuload" and "memoryusage" were deprecated in v0.6.18 and a maximum of 4 fields can be displayed. + +```yaml +widget: + type: nextcloud + url: https://nextcloud.host.or.ip:port + key: token +``` + +```yaml +widget: + type: nextcloud + url: https://nextcloud.host.or.ip:port + username: username + password: password +``` diff --git a/docs/widgets/services/nextdns.md b/docs/widgets/services/nextdns.md new file mode 100644 index 000000000..5ba73c370 --- /dev/null +++ b/docs/widgets/services/nextdns.md @@ -0,0 +1,13 @@ +--- +title: NextDNS +description: NextDNS Widget Configuration +--- + +Api key is found under Account > API, profile ID is found under Setup > Endpoints > ID + +```yaml +widget: + type: nextdns + profile: profileid + key: yourapikeyhere +``` diff --git a/docs/widgets/services/nginx-proxy-manager.md b/docs/widgets/services/nginx-proxy-manager.md new file mode 100644 index 000000000..eb77a3ab9 --- /dev/null +++ b/docs/widgets/services/nginx-proxy-manager.md @@ -0,0 +1,16 @@ +--- +title: Nginx Proxy Manager +description: Nginx Proxy Manager Widget Configuration +--- + +Login with the same admin username and password used to access the web UI. + +Allowed fields: `["enabled", "disabled", "total"]`. + +```yaml +widget: + type: npm + url: http://npm.host.or.ip + username: admin_username + password: admin_password +``` diff --git a/docs/widgets/services/nzbget.md b/docs/widgets/services/nzbget.md new file mode 100644 index 000000000..36903e9bf --- /dev/null +++ b/docs/widgets/services/nzbget.md @@ -0,0 +1,16 @@ +--- +title: NZBget +description: NZBget Widget Configuration +--- + +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. + +Allowed fields: `["rate", "remaining", "downloaded"]`. + +```yaml +widget: + type: nzbget + url: http://nzbget.host.or.ip + username: controlusername + password: controlpassword +``` diff --git a/docs/widgets/services/octoprint.md b/docs/widgets/services/octoprint.md new file mode 100644 index 000000000..7dba46ace --- /dev/null +++ b/docs/widgets/services/octoprint.md @@ -0,0 +1,13 @@ +--- +title: OctoPrint +description: OctoPrintWidget Configuration +--- + +Allowed fields: `["printer_state", "temp_tool", "temp_bed", "job_completion"]`. + +```yaml +widget: + type: octoprint + url: http://octoprint.host.or.ip:port + key: youroctoprintapikey +``` diff --git a/docs/widgets/services/omada.md b/docs/widgets/services/omada.md new file mode 100644 index 000000000..907704107 --- /dev/null +++ b/docs/widgets/services/omada.md @@ -0,0 +1,17 @@ +--- +title: Omada +description: Omada Widget Configuration +--- + +The widget supports controller versions 3, 4 and 5. + +Allowed fields: `["connectedAp", "activeUser", "alerts", "connectedGateways", "connectedSwitches"]`. + +```yaml +widget: + type: omada + url: http://omada.host.or.ip:port + username: username + password: password + site: sitename +``` diff --git a/docs/widgets/services/ombi.md b/docs/widgets/services/ombi.md new file mode 100644 index 000000000..97c22ef18 --- /dev/null +++ b/docs/widgets/services/ombi.md @@ -0,0 +1,15 @@ +--- +title: Ombi +description: Ombi Widget Configuration +--- + +Find your API key under `Settings > Configuration > General`. + +Allowed fields: `["pending", "approved", "available"]`. + +```yaml +widget: + type: ombi + url: http://ombi.host.or.ip + key: apikeyapikeyapikeyapikeyapikey +``` diff --git a/docs/widgets/services/opendtu.md b/docs/widgets/services/opendtu.md new file mode 100644 index 000000000..81a924684 --- /dev/null +++ b/docs/widgets/services/opendtu.md @@ -0,0 +1,12 @@ +--- +title: OpenDTU +description: OpenDTU Widget +--- + +Allowed fields: `["yieldDay", "relativePower", "absolutePower", "limit"]`. + +```yaml +widget: + type: opendtu + url: http://opendtu.host.or.ip +``` diff --git a/docs/widgets/services/openmediavault.md b/docs/widgets/services/openmediavault.md new file mode 100644 index 000000000..67fe7b892 --- /dev/null +++ b/docs/widgets/services/openmediavault.md @@ -0,0 +1,25 @@ +--- +title: OpenMediaVault +description: OpenMediaVault Widget Configuration +--- + +Provides useful information from your OpenMediaVault + +```yaml +widget: + type: openmediavault + url: http://omv.host.or.ip + username: admin + password: pass + method: services.getStatus # required +``` + +## Methods + +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"]` diff --git a/docs/widgets/services/opnsense.md b/docs/widgets/services/opnsense.md new file mode 100644 index 000000000..d4ea44976 --- /dev/null +++ b/docs/widgets/services/opnsense.md @@ -0,0 +1,21 @@ +--- +title: OPNSense +description: OPNSense Widget Configuration +--- + +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**: + +- Diagnostics: System Activity +- Status: Traffic Graph + +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. + +Allowed fields: `["cpu", "memory", "wanUpload", "wanDownload"]`. + +```yaml +widget: + type: opnsense + url: http://opnsense.host.or.ip + username: key + password: secret +``` diff --git a/docs/widgets/services/overseerr.md b/docs/widgets/services/overseerr.md new file mode 100644 index 000000000..f4546ed5e --- /dev/null +++ b/docs/widgets/services/overseerr.md @@ -0,0 +1,15 @@ +--- +title: Overseerr +description: Overseerr Widget Configuration +--- + +Find your API key under `Settings > General`. + +Allowed fields: `["pending", "approved", "available", "processing"]`. + +```yaml +widget: + type: overseerr + url: http://overseerr.host.or.ip + key: apikeyapikeyapikeyapikeyapikey +``` diff --git a/docs/widgets/services/paperlessngx.md b/docs/widgets/services/paperlessngx.md new file mode 100644 index 000000000..6205b060f --- /dev/null +++ b/docs/widgets/services/paperlessngx.md @@ -0,0 +1,23 @@ +--- +title: Paperless-ngx +description: Paperless-ngx Widget Configuration +--- + +Use username & password, or the token key. Information about the token can be found in the [Paperless-ngx API documentation](https://docs.paperless-ngx.com/api/#authorization). If both are provided, the token will be used. + +Allowed fields: `["total", "inbox"]`. + +```yaml +widget: + type: paperlessngx + url: http://paperlessngx.host.or.ip:port + username: username + password: password +``` + +```yaml +widget: + type: paperlessngx + url: http://paperlessngx.host.or.ip:port + key: token +``` diff --git a/docs/widgets/services/pfsense.md b/docs/widgets/services/pfsense.md new file mode 100644 index 000000000..d37ac7372 --- /dev/null +++ b/docs/widgets/services/pfsense.md @@ -0,0 +1,25 @@ +--- +title: pfSense +description: pfSense Widget Configuration +--- + +This widget requires the installation of the [pfsense-api](https://github.com/jaredhendrickson13/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. + +Currently the only supported authentication mode is 'Local Database'. + +WAN interface to monitor can be defined by updating the `wan` param. + +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. + +Allowed fields: `["load", "memory", "temp", "wanStatus", "wanIP", "disk"]` (maximum of 4) + +```yaml +widget: + type: pfsense + url: http://pfsense.host.or.ip:port + username: user + password: pass + wan: igb0 +``` diff --git a/docs/widgets/services/photoprism.md b/docs/widgets/services/photoprism.md new file mode 100644 index 000000000..55a758579 --- /dev/null +++ b/docs/widgets/services/photoprism.md @@ -0,0 +1,14 @@ +--- +title: PhotoPrism +description: PhotoPrism Widget Configuration +--- + +Allowed fields: `["albums", "photos", "videos", "people"]`. + +```yaml +widget: + type: photoprism + url: http://photoprism.host.or.ip:port + username: admin + password: password +``` diff --git a/docs/widgets/services/pialert.md b/docs/widgets/services/pialert.md new file mode 100644 index 000000000..e3e597977 --- /dev/null +++ b/docs/widgets/services/pialert.md @@ -0,0 +1,14 @@ +--- +title: PiAlert +description: PiAlert Widget Configuration +--- + +Widget for [PiAlert](https://github.com/jokob-sk/Pi.Alert). + +Allowed fields: `["total", "connected", "new_devices", "down_alerts"]`. + +```yaml +widget: + type: pialert + url: http://ip:port +``` diff --git a/docs/widgets/services/pihole.md b/docs/widgets/services/pihole.md new file mode 100644 index 000000000..a92b8fda2 --- /dev/null +++ b/docs/widgets/services/pihole.md @@ -0,0 +1,17 @@ +--- +title: PiHole +description: PiHole Widget Configuration +--- + +As of v2022.12 [PiHole requires the use of an API key](https://pi-hole.net/blog/2022/11/17/upcoming-changes-authentication-for-more-api-endpoints-required/#page-content) if an admin password is set. Older versions do not require any authentication even if the admin uses a password. + +Allowed fields: `["queries", "blocked", "blocked_percent", "gravity"]`. + +```yaml +widget: + type: pihole + url: http://pi.hole.or.ip + key: yourpiholeapikey # optional +``` + +_Added in v0.1.0, udpated in v0.6.18_ diff --git a/docs/widgets/services/plex-tautulli.md b/docs/widgets/services/plex-tautulli.md new file mode 100644 index 000000000..6d0448fd6 --- /dev/null +++ b/docs/widgets/services/plex-tautulli.md @@ -0,0 +1,15 @@ +--- +title: Tautulli (Plex) +description: Tautulli Widget Configuration +--- + +Provides detailed information about currently active streams. You can find the API key from inside Tautulli at `Settings > Web Interface > API`. + +Allowed fields: no configurable fields for this widget. + +```yaml +widget: + type: tautulli + url: http://tautulli.host.or.ip + key: apikeyapikeyapikeyapikeyapikey +``` diff --git a/docs/widgets/services/plex.md b/docs/widgets/services/plex.md new file mode 100644 index 000000000..c2f936113 --- /dev/null +++ b/docs/widgets/services/plex.md @@ -0,0 +1,15 @@ +--- +title: Plex +description: Plex Widget Configuration +--- + +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](plex-tautulli.md). + +Allowed fields: `["streams", "albums", "movies", "tv"]`. + +```yaml +widget: + type: plex + url: http://plex.host.or.ip:32400 + key: mytokenhere # see https://www.plexopedia.com/plex-media-server/general/plex-token/ +``` diff --git a/docs/widgets/services/portainer.md b/docs/widgets/services/portainer.md new file mode 100644 index 000000000..33a6bea69 --- /dev/null +++ b/docs/widgets/services/portainer.md @@ -0,0 +1,16 @@ +--- +title: Portainer +description: Portainer Widget Configuration +--- + +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: `["running", "stopped", "total"]`. + +```yaml +widget: + type: portainer + url: https://portainer.host.or.ip:9443 + env: 1 + key: ptr_accesskeyaccesskeyaccesskeyaccesskey +``` diff --git a/docs/widgets/services/prometheus.md b/docs/widgets/services/prometheus.md new file mode 100644 index 000000000..4bbbd2515 --- /dev/null +++ b/docs/widgets/services/prometheus.md @@ -0,0 +1,12 @@ +--- +title: Prometheus +description: Prometheus Widget Configuration +--- + +Allowed fields: `["targets_up", "targets_down", "targets_total"]` + +```yaml +widget: + type: prometheus + url: http://prometheushost:port +``` diff --git a/docs/widgets/services/prowlarr.md b/docs/widgets/services/prowlarr.md new file mode 100644 index 000000000..dc12ee721 --- /dev/null +++ b/docs/widgets/services/prowlarr.md @@ -0,0 +1,15 @@ +--- +title: Prowlarr +description: Prowlarr Widget Configuration +--- + +Find your API key under `Settings > General`. + +Allowed fields: `["numberOfGrabs", "numberOfQueries", "numberOfFailGrabs", "numberOfFailQueries"]`. + +```yaml +widget: + type: prowlarr + url: http://prowlarr.host.or.ip + key: apikeyapikeyapikeyapikeyapikey +``` diff --git a/docs/widgets/services/proxmox.md b/docs/widgets/services/proxmox.md new file mode 100644 index 000000000..611a1c18a --- /dev/null +++ b/docs/widgets/services/proxmox.md @@ -0,0 +1,50 @@ +--- +title: Proxmox +description: Proxmox Widget Configuration +--- + +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. + +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. + +1. Navigate to the Proxmox portal, click on Datacenter +2. Expand Permissions, click on Groups +3. Click the Create button +4. Name the group something informative, like api-ro-users +5. Click on the Permissions "folder" +6. Click Add -> Group Permission + - Path: / + - Group: group from bullet 4 above + - Role: PVEAuditor + - Propagate: Checked +7. Expand Permissions, click on Users +8. Click the Add button + - User name: something informative like `api` + - Realm: Linux PAM standard authentication + - Group: group from bullet 4 above +9. Expand Permissions, click on API Tokens +10. Click the Add button + - User: user from bullet 8 above + - Token ID: something informative like the application or purpose like `homepage` + - Privilege Separation: Checked +11. Go back to the "Permissions" menu +12. Click Add -> API Token Permission + - Path: / + - API Token: select the Token ID created in Step 10 + - Role: PVE Auditor + - Propagate: Checked + +Use `username@pam!Token ID` as the `username` (e.g `api@pam!homepage`) setting and `Secret` as the `password` setting. + +Allowed fields: `["vms", "lxc", "resources.cpu", "resources.mem"]`. + +You can set the optional `node` setting when you want to show metrics for a single node. By default it will show the average for the complete cluster. + +```yaml +widget: + type: proxmox + url: https://proxmox.host.or.ip:8006 + username: api_token_id + password: api_token_secret + node: pve-1 # optional +``` diff --git a/docs/widgets/services/proxmoxbackupserver.md b/docs/widgets/services/proxmoxbackupserver.md new file mode 100644 index 000000000..b62f9ede9 --- /dev/null +++ b/docs/widgets/services/proxmoxbackupserver.md @@ -0,0 +1,14 @@ +--- +title: Proxmox Backup Server +description: Proxmox Backup Server Widget Configuration +--- + +Allowed fields: `["datastore_usage", "failed_tasks_24h", "cpu_usage", "memory_usage"]`. + +```yaml +widget: + type: proxmoxbackupserver + url: https://proxmoxbackupserver.host:port + username: api_token_id + password: api_token_secret +``` diff --git a/docs/widgets/services/pterodactyl.md b/docs/widgets/services/pterodactyl.md new file mode 100644 index 000000000..e66b7cfa2 --- /dev/null +++ b/docs/widgets/services/pterodactyl.md @@ -0,0 +1,13 @@ +--- +title: Pterodactyl +description: Pterodactyl Widget Configuration +--- + +Allowed fields: `["nodes", "servers"]` + +```yaml +widget: + type: pterodactyl + url: http://pterodactylhost:port + key: pterodactylapikey +``` diff --git a/docs/widgets/services/pyload.md b/docs/widgets/services/pyload.md new file mode 100644 index 000000000..ff4526946 --- /dev/null +++ b/docs/widgets/services/pyload.md @@ -0,0 +1,14 @@ +--- +title: Pyload +description: Pyload Widget Configuration +--- + +Allowed fields: `["speed", "active", "queue", "total"]`. + +```yaml +widget: + type: pyload + url: http://pyload.host.or.ip:port + username: username + password: password # only needed if set +``` diff --git a/docs/widgets/services/qbittorrent.md b/docs/widgets/services/qbittorrent.md new file mode 100644 index 000000000..8d507df2a --- /dev/null +++ b/docs/widgets/services/qbittorrent.md @@ -0,0 +1,16 @@ +--- +title: qBittorrent +description: qBittorrent Widget Configuration +--- + +Uses the same username and password used to login from the web. + +Allowed fields: `["leech", "download", "seed", "upload"]`. + +```yaml +widget: + type: qbittorrent + url: http://qbittorrent.host.or.ip + username: username + password: password +``` diff --git a/docs/widgets/services/qnap.md b/docs/widgets/services/qnap.md new file mode 100644 index 000000000..ac73e227b --- /dev/null +++ b/docs/widgets/services/qnap.md @@ -0,0 +1,22 @@ +--- +title: QNAP +description: QNAP Widget Configuration +--- + +Allowed fields: `["cpuUsage", "memUsage", "systemTempC", "poolUsage", "volumeUsage"]`. + +```yaml +widget: + type: qnap + url: http://qnap.host.or.ip:port + username: user + password: pass +``` + +If the QNAP device has multiple volumes, the _poolUsage_ will be a sum of all volumes. + +If only a single volume needs to be tracked, add the following to your configuration and the Widget will track this as _volumeUsage_: + +```yaml +volume: Volume Name From QNAP +``` diff --git a/docs/widgets/services/radarr.md b/docs/widgets/services/radarr.md new file mode 100644 index 000000000..d659020a3 --- /dev/null +++ b/docs/widgets/services/radarr.md @@ -0,0 +1,18 @@ +--- +title: Radarr +description: Radarr Widget Configuration +--- + +Find your API key under `Settings > General`. + +Allowed fields: `["wanted", "missing", "queued", "movies"]`. + +A detailed queue listing is disabled by default, but can be enabled with the `enableQueue` option. + +```yaml +widget: + type: radarr + url: http://radarr.host.or.ip + key: apikeyapikeyapikeyapikeyapikey + enableQueue: true # optional, defaults to false +``` diff --git a/docs/widgets/services/readarr.md b/docs/widgets/services/readarr.md new file mode 100644 index 000000000..0df61e2dc --- /dev/null +++ b/docs/widgets/services/readarr.md @@ -0,0 +1,15 @@ +--- +title: Readarr +description: Readarr Widget Configuration +--- + +Find your API key under `Settings > General`. + +Allowed fields: `["wanted", "queued", "books"]`. + +```yaml +widget: + type: readarr + url: http://readarr.host.or.ip + key: apikeyapikeyapikeyapikeyapikey +``` diff --git a/docs/widgets/services/rutorrent.md b/docs/widgets/services/rutorrent.md new file mode 100644 index 000000000..a073ad02b --- /dev/null +++ b/docs/widgets/services/rutorrent.md @@ -0,0 +1,16 @@ +--- +title: ruTorrent +description: ruTorrent Widget Configuration +--- + +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"]`. + +```yaml +widget: + type: rutorrent + url: http://rutorrent.host.or.ip + username: username # optional, false if not used + password: password # optional, false if not used +``` diff --git a/docs/widgets/services/sabnzbd.md b/docs/widgets/services/sabnzbd.md new file mode 100644 index 000000000..e0efb6853 --- /dev/null +++ b/docs/widgets/services/sabnzbd.md @@ -0,0 +1,15 @@ +--- +title: SABnzbd +description: SABnzbd Widget Configuration +--- + +Find your API key under `Config > General`. + +Allowed fields: `["rate", "queue", "timeleft"]`. + +```yaml +widget: + type: sabnzbd + url: http://sabnzbd.host.or.ip + key: apikeyapikeyapikeyapikeyapikey +``` diff --git a/docs/widgets/services/scrutiny.md b/docs/widgets/services/scrutiny.md new file mode 100644 index 000000000..5f9e1f889 --- /dev/null +++ b/docs/widgets/services/scrutiny.md @@ -0,0 +1,12 @@ +--- +title: Scrutiny +description: Scrutiny Widget Configuration +--- + +Allowed fields: `["passed", "failed", "unknown"]`. + +```yaml +widget: + type: scrutiny + url: http://scrutiny.host.or.ip +``` diff --git a/docs/widgets/services/sonarr.md b/docs/widgets/services/sonarr.md new file mode 100644 index 000000000..f9b6ff8b5 --- /dev/null +++ b/docs/widgets/services/sonarr.md @@ -0,0 +1,18 @@ +--- +title: Sonarr +description: Sonarr Widget Configuration +--- + +Find your API key under `Settings > General`. + +Allowed fields: `["wanted", "queued", "series"]`. + +A detailed queue listing is disabled by default, but can be enabled with the `enableQueue` option. + +```yaml +widget: + type: sonarr + url: http://sonarr.host.or.ip + key: apikeyapikeyapikeyapikeyapikey + enableQueue: true # optional, defaults to false +``` diff --git a/docs/widgets/services/speedtest-tracker.md b/docs/widgets/services/speedtest-tracker.md new file mode 100644 index 000000000..7ad3f4e37 --- /dev/null +++ b/docs/widgets/services/speedtest-tracker.md @@ -0,0 +1,16 @@ +--- +title: Speedtest Tracker +description: Speedtest Tracker Widget Configuration +--- + +No extra configuration is required. + +This widget is compatible with both [alexjustesen/speedtest-tracker](https://github.com/alexjustesen/speedtest-tracker) and [henrywhitaker3/Speedtest-Tracker](https://github.com/henrywhitaker3/Speedtest-Tracker). + +Allowed fields: `["download", "upload", "ping"]`. + +```yaml +widget: + type: speedtest + url: http://speedtest.host.or.ip +``` diff --git a/docs/widgets/services/syncthing-relay-server.md b/docs/widgets/services/syncthing-relay-server.md new file mode 100644 index 000000000..aa51f1a1a --- /dev/null +++ b/docs/widgets/services/syncthing-relay-server.md @@ -0,0 +1,14 @@ +--- +title: Syncthing Relay Server +description: Syncthing Relay Server Widget Configuration +--- + +Pulls stats from the [relay server](https://docs.syncthing.net/users/strelaysrv.html). [See here](https://github.com/benphelps/homepage/pull/230#issuecomment-1253053472) for more information on configuration. + +Allowed fields: `["numActiveSessions", "numConnections", "bytesProxied"]`. + +```yaml +widget: + type: strelaysrv + url: http://syncthing.host.or.ip:22070 +``` diff --git a/docs/widgets/services/tailscale.md b/docs/widgets/services/tailscale.md new file mode 100644 index 000000000..0db502c91 --- /dev/null +++ b/docs/widgets/services/tailscale.md @@ -0,0 +1,17 @@ +--- +title: Tailscale +description: Tailscale Widget Configuration +--- + +You will need to generate an API access token from the [keys page](https://login.tailscale.com/admin/settings/keys) on the Tailscale dashboard. + +To find your device ID, go to the [machine overview page](https://login.tailscale.com/admin/machines) and select your machine. In the "Machine Details" section, copy your `ID`. It will end with `CNTRL`. + +Allowed fields: `["address", "last_seen", "expires"]`. + +```yaml +widget: + type: tailscale + deviceid: deviceid + key: tailscalekey +``` diff --git a/docs/widgets/services/tdarr.md b/docs/widgets/services/tdarr.md new file mode 100644 index 000000000..ff182d432 --- /dev/null +++ b/docs/widgets/services/tdarr.md @@ -0,0 +1,12 @@ +--- +title: Tdarr +description: Tdarr Widget Configuration +--- + +Allowed fields: `["queue", "processed", "errored", "saved"]`. + +```yaml +widget: + type: tdarr + url: http://tdarr.host.or.ip +``` diff --git a/docs/widgets/services/traefik.md b/docs/widgets/services/traefik.md new file mode 100644 index 000000000..1d476338a --- /dev/null +++ b/docs/widgets/services/traefik.md @@ -0,0 +1,17 @@ +--- +title: Traefik +description: Traefik Widget Configuration +--- + +No extra configuration is required. +If your traefik install requires authentication, include the username and password used to login to the web interface. + +Allowed fields: `["routers", "services", "middleware"]`. + +```yaml +widget: + type: traefik + url: http://traefik.host.or.ip + username: username # optional + password: password # optional +``` diff --git a/docs/widgets/services/transmission.md b/docs/widgets/services/transmission.md new file mode 100644 index 000000000..c4960dd65 --- /dev/null +++ b/docs/widgets/services/transmission.md @@ -0,0 +1,17 @@ +--- +title: Transmission +description: Transmission Widget Configuration +--- + +Uses the same username and password used to login from the web. + +Allowed fields: `["leech", "download", "seed", "upload"]`. + +```yaml +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 +``` diff --git a/docs/widgets/services/truenas.md b/docs/widgets/services/truenas.md new file mode 100644 index 000000000..eb392e7c9 --- /dev/null +++ b/docs/widgets/services/truenas.md @@ -0,0 +1,17 @@ +--- +title: TrueNas +description: TrueNas Scale Widget Configuration +--- + +Allowed fields: `["load", "uptime", "alerts"]`. + +To create an API Key, follow [the official TrueNAS documentation](https://www.truenas.com/docs/scale/scaletutorials/toptoolbar/managingapikeys/). + +```yaml +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 +``` diff --git a/docs/widgets/services/tubearchivist.md b/docs/widgets/services/tubearchivist.md new file mode 100644 index 000000000..c662c0e13 --- /dev/null +++ b/docs/widgets/services/tubearchivist.md @@ -0,0 +1,15 @@ +--- +title: Tube Archivist +description: Tube Archivist Widget Configuration +--- + +Requires API key. + +Allowed fields: `["downloads", "videos", "channels", "playlists"]`. + +```yaml +widget: + type: tubearchivist + url: http://tubearchivist.host.or.ip + key: apikeyapikeyapikeyapikeyapikey +``` diff --git a/docs/widgets/services/unifi-controller.md b/docs/widgets/services/unifi-controller.md new file mode 100644 index 000000000..62c72aa66 --- /dev/null +++ b/docs/widgets/services/unifi-controller.md @@ -0,0 +1,23 @@ +--- +title: Unifi Controller +description: Unifi Controller Widget Configuration +--- + +_(Find the Unifi Controller information widget [here](../info/unifi_controller.md))_ + +You can display general connectivity status from your Unifi (Network) Controller. When authenticating you will want to use an 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_users", "wlan_users"]`. + +```yaml +widget: + type: unifi + url: https://unifi.host.or.ip:port + username: username + password: password + site: Site Name # optional +``` + +_Added in v0.4.18, updated in 0.6.7_ diff --git a/docs/widgets/services/unmanic.md b/docs/widgets/services/unmanic.md new file mode 100644 index 000000000..7e3b4ff27 --- /dev/null +++ b/docs/widgets/services/unmanic.md @@ -0,0 +1,12 @@ +--- +title: Unmanic +description: Unmanic Widget Configuration +--- + +Allowed fields: `["active_workers", "total_workers", "records_total"]`. + +```yaml +widget: + type: unmanic + url: http://unmanic.host.or.ip:port +``` diff --git a/docs/widgets/services/uptime-kuma.md b/docs/widgets/services/uptime-kuma.md new file mode 100644 index 000000000..1280eb4d2 --- /dev/null +++ b/docs/widgets/services/uptime-kuma.md @@ -0,0 +1,15 @@ +--- +title: Uptime Kuma +description: Uptime Kuma Widget Configuration +--- + +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 (without the `/status/` portion). + +Allowed fields: `["up", "down", "uptime", "incident"]`. + +```yaml +widget: + type: uptimekuma + url: http://uptimekuma.host.or.ip:port + slug: statuspageslug +``` diff --git a/docs/widgets/services/uptimerobot.md b/docs/widgets/services/uptimerobot.md new file mode 100644 index 000000000..5e1ba80cd --- /dev/null +++ b/docs/widgets/services/uptimerobot.md @@ -0,0 +1,30 @@ +--- +title: UptimeRobot +description: UptimeRobot Widget Configuration +--- + +To generate an API key, select `My Settings`, and either `Monitor-Specific API Key` or `Read-Only API Key`. + +A `Monitor-Specific API Key` will provide the following detailed information +for the selected monitor: + +- Current status +- Current uptime +- Date/time of last downtime +- Duration of last downtime + +Allowed fields: `["status", "uptime", "lastDown", "downDuration"]`. + +A `Read-Only API Key` will provide a summary of all monitors in your account: + +- Number of 'Up' monitors +- Number of 'Down' monitors + +Allowed fields: `["sitesUp", "sitesDown"]`. + +```yaml +widget: + type: uptimerobot + url: https://api.uptimerobot.com + key: uptimerobotapitoken +``` diff --git a/docs/widgets/services/urbackup.md b/docs/widgets/services/urbackup.md new file mode 100644 index 000000000..4efe2a094 --- /dev/null +++ b/docs/widgets/services/urbackup.md @@ -0,0 +1,23 @@ +--- +title: UrBackup +description: UrBackup Widget Configuration +--- + +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`._ + +```yaml +widget: + type: urbackup + username: urbackupUsername + password: urbackupPassword + url: http://urbackupUrl:55414 + maxDays: 5 # optional +``` diff --git a/docs/widgets/services/watchtower.md b/docs/widgets/services/watchtower.md new file mode 100644 index 000000000..24ef38e46 --- /dev/null +++ b/docs/widgets/services/watchtower.md @@ -0,0 +1,15 @@ +--- +title: Watchtower +description: Watchtower Widget Configuration +--- + +To use this widget, Watchtower needs to be configured to to [enable metrics](https://containrrr.dev/watchtower/metrics/). + +Allowed fields: `["containers_scanned", "containers_updated", "containers_failed"]`. + +```yaml +widget: + type: watchtower + url: http://your-ip-address:8080 + key: demotoken +``` diff --git a/docs/widgets/services/whatsupdocker.md b/docs/widgets/services/whatsupdocker.md new file mode 100644 index 000000000..01b90a98d --- /dev/null +++ b/docs/widgets/services/whatsupdocker.md @@ -0,0 +1,14 @@ +--- +title: Whats Up Docker +description: WhatsUpDocker Widget Configuration +--- + +Currently requires unauthenticated whatsupdocker instance. + +Allowed fields: `["monitoring", "updates"]`. + +```yaml +widget: + type: whatsupdocker + url: http://whatsupdocker:port +``` diff --git a/docs/widgets/services/xteve.md b/docs/widgets/services/xteve.md new file mode 100644 index 000000000..01ce67ce5 --- /dev/null +++ b/docs/widgets/services/xteve.md @@ -0,0 +1,14 @@ +--- +title: Xteve +description: Xteve Widget Configuration +--- + +Allowed fields: `["streams_all", "streams_active", "streams_xepg"]`. + +```yaml +widget: + type: xteve + url: http://xteve.host.or.ip + username: username # optional + password: password # optional +``` diff --git a/mkdocs.yml b/mkdocs.yml new file mode 100644 index 000000000..f39cb874f --- /dev/null +++ b/mkdocs.yml @@ -0,0 +1,227 @@ +site_name: homepage + +# Project information +site_url: https://gethomepage.dev/ + +# Repository +repo_name: benphelps/homepage +repo_url: https://github.com/benphelps/homepage +edit_uri: https://github.com/benphelps/homepage-docs/tree/main/docs/ + +nav: + - "Home": + - index.md + - "Installation": + - installation/index.md + - installation/docker.md + - installation/k8s.md + - installation/unraid.md + - installation/source.md + - "Configuration": + - configs/index.md + - configs/settings.md + - configs/bookmarks.md + - configs/services.md + - configs/service-widgets.md + - configs/kubernetes.md + - configs/docker.md + - configs/custom-css-js.md + - "Widgets": + - widgets/index.md + - "Service Widgets": + - widgets/services/index.md + - widgets/services/adguard-home.md + - widgets/services/atsumeru.md + - widgets/services/audiobookshelf.md + - widgets/services/authentik.md + - widgets/services/autobrr.md + - widgets/services/azuredevops.md + - widgets/services/bazarr.md + - widgets/services/caddy.md + - widgets/services/calendar.md + - widgets/services/calibre-web.md + - widgets/services/changedetectionio.md + - widgets/services/channelsdvrserver.md + - widgets/services/cloudflared.md + - widgets/services/coin-market-cap.md + - widgets/services/customapi.md + - widgets/services/deluge.md + - widgets/services/diskstation.md + - widgets/services/downloadstation.md + - widgets/services/emby.md + - widgets/services/evcc.md + - widgets/services/fileflows.md + - widgets/services/flood.md + - widgets/services/freshrss.md + - widgets/services/gamedig.md + - widgets/services/ghostfolio.md + - widgets/services/glances.md + - widgets/services/gluetun.md + - widgets/services/gotify.md + - widgets/services/grafana.md + - widgets/services/healthchecks.md + - widgets/services/homeassistant.md + - widgets/services/homebridge.md + - widgets/services/immich.md + - widgets/services/index.md + - widgets/services/jackett.md + - widgets/services/jdownloader.md + - widgets/services/jellyfin.md + - widgets/services/jellyseerr.md + - widgets/services/kavita.md + - widgets/services/komga.md + - widgets/services/kopia.md + - widgets/services/lidarr.md + - widgets/services/mastodon.md + - widgets/services/mealie.md + - widgets/services/medusa.md + - widgets/services/mikrotik.md + - widgets/services/minecraft.md + - widgets/services/miniflux.md + - widgets/services/mjpeg.md + - widgets/services/moonraker.md + - widgets/services/mylar.md + - widgets/services/navidrome.md + - widgets/services/nextcloud.md + - widgets/services/nextdns.md + - widgets/services/nginx-proxy-manager.md + - widgets/services/nzbget.md + - widgets/services/octoprint.md + - widgets/services/omada.md + - widgets/services/ombi.md + - widgets/services/opendtu.md + - widgets/services/openmediavault.md + - widgets/services/opnsense.md + - widgets/services/overseerr.md + - widgets/services/paperlessngx.md + - widgets/services/pfsense.md + - widgets/services/photoprism.md + - widgets/services/pialert.md + - widgets/services/pihole.md + - widgets/services/plex-tautulli.md + - widgets/services/plex.md + - widgets/services/portainer.md + - widgets/services/prometheus.md + - widgets/services/prowlarr.md + - widgets/services/proxmox.md + - widgets/services/proxmoxbackupserver.md + - widgets/services/pterodactyl.md + - widgets/services/pyload.md + - widgets/services/qbittorrent.md + - widgets/services/qnap.md + - widgets/services/radarr.md + - widgets/services/readarr.md + - widgets/services/rutorrent.md + - widgets/services/sabnzbd.md + - widgets/services/scrutiny.md + - widgets/services/sonarr.md + - widgets/services/speedtest-tracker.md + - widgets/services/syncthing-relay-server.md + - widgets/services/tailscale.md + - widgets/services/tdarr.md + - widgets/services/traefik.md + - widgets/services/transmission.md + - widgets/services/truenas.md + - widgets/services/tubearchivist.md + - widgets/services/unifi-controller.md + - widgets/services/unmanic.md + - widgets/services/uptime-kuma.md + - widgets/services/uptimerobot.md + - widgets/services/urbackup.md + - widgets/services/watchtower.md + - widgets/services/whatsupdocker.md + - widgets/services/xteve.md + - "Information Widgets": + - widgets/info/index.md + - widgets/info/datetime.md + - widgets/info/glances.md + - widgets/info/greeting.md + - widgets/info/kubernetes.md + - widgets/info/logo.md + - widgets/info/longhorn.md + - widgets/info/openmeteo.md + - widgets/info/openweathermap.md + - widgets/info/resources.md + - widgets/info/search.md + - widgets/info/unifi_controller.md + - widgets/info/weather.md + - more/troubleshooting.md + - "More": + - more/index.md + - more/development.md + - more/translations.md + +theme: + name: material + language: en + palette: + - media: "(prefers-color-scheme)" + toggle: + icon: material/brightness-auto + name: Switch to light mode + - media: "(prefers-color-scheme: light)" + scheme: default + primary: black + accent: black + toggle: + icon: material/brightness-7 + name: Switch to dark mode + - media: "(prefers-color-scheme: dark)" + scheme: slate + primary: black + accent: blue + toggle: + icon: material/brightness-4 + name: Switch to system preference + logo: assets/light_squircle@2x.png + favicon: assets/favicon.ico + features: + - navigation.instant + - content.action.edit + - search.suggest + - search.share + - content.code.copy + - content.code.select + - navigation.tracking + - navigation.tabs + - navigation.sections + - navigation.indexes + +extra_css: + - "stylesheets/extra.css" + +extra: + version: + provider: mike + +markdown_extensions: + - pymdownx.highlight: + anchor_linenums: true + line_spans: __span + pygments_lang_class: true + - pymdownx.emoji: + emoji_index: !!python/name:material.extensions.emoji.twemoji + emoji_generator: !!python/name:material.extensions.emoji.to_svg + - pymdownx.inlinehilite + - pymdownx.snippets + - pymdownx.superfences + - pymdownx.critic + - pymdownx.caret + - pymdownx.keys + - pymdownx.mark + - pymdownx.tilde + - pymdownx.details + - attr_list + - md_in_html + - admonition + +plugins: + - tags + - typeset +# - social + - optimize + - search: + pipeline: + - stemmer + - stopWordFilter + - trimmer diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 000000000..a86e7a805 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,28 @@ +Babel==2.12.1 +certifi==2023.7.22 +charset-normalizer==3.2.0 +click==8.1.7 +colorama==0.4.6 +ghp-import==2.1.0 +idna==3.4 +Jinja2==3.1.2 +Markdown==3.4.4 +MarkupSafe==2.1.3 +mergedeep==1.3.4 +mkdocs==1.5.3 +mkdocs-material @ git+https://github.com/benphelps/mkdocs-material-insiders.git@bcad61c278491d58e74c39e164b821cec795c161 +mkdocs-material-extensions==1.2 +packaging==23.1 +paginate==0.5.6 +pathspec==0.11.2 +platformdirs==3.10.0 +Pygments==2.16.1 +pymdown-extensions==10.3 +python-dateutil==2.8.2 +PyYAML==6.0.1 +pyyaml_env_tag==0.1 +regex==2023.8.8 +requests==2.31.0 +six==1.16.0 +urllib3==2.0.5 +watchdog==3.0.0