Skip to content

Latest commit

 

History

History
31 lines (28 loc) · 1.1 KB

File metadata and controls

31 lines (28 loc) · 1.1 KB

- type: custom-api
  title: Immich stats
  cache: 1d
  url: ${IMMICH_URL}/api/server/statistics
  headers:
    x-api-key: ${IMMICH_API_KEY}
    Accept: application/json
  template: |
    <div class="flex justify-between text-center">
      <div>
          <div class="color-highlight size-h3">{{ .JSON.Int "photos" | formatNumber }}</div>
          <div class="size-h6">PHOTOS</div>
      </div>
      <div>
          <div class="color-highlight size-h3">{{ .JSON.Int "videos" | formatNumber }}</div>
          <div class="size-h6">VIDEOS</div>
      </div>
      <div>
          <div class="color-highlight size-h3">{{ div (.JSON.Int "usage" | toFloat) 1073741824 | toInt | formatNumber }}GB</div>
          <div class="size-h6">USAGE</div>
      </div>
    </div>

Environment variables

  • IMMICH_URL - The URL for your immich server, including port but without trailing slash, e.g.: 'http://192.168.1.2:2283', or 'https://immich.example.com'
  • IMMICH_API_KEY - the API key of the server which can be found in Account settings -> API keys. Permissions required: server.statistics