{
  "$schema": "homarr-custom-widget-v2",
  "name": "JellyGlance now playing",
  "description": "Who is watching on Jellyfin right now.",
  "iconUrl": "https://jellyglance.com/project-logo.png",
  "url": "http://jellyglance:3000/api/widgets/nowplaying",
  "authType": "apiKeyHeader",
  "headerName": "x-api-token",
  "method": "GET",
  "displayType": "customJsx",
  "displayConfig": {
    "type": "customJsx",
    "template": "<Stack gap=\"sm\" p=\"xs\">\n  <Group justify=\"space-between\" align=\"center\">\n    <Group gap=\"xs\">\n      <Avatar src=\"https://jellyglance.com/project-logo.png\" size={24} radius=\"xl\" />\n      <Stack gap={0}>\n        <Text fw={800} size=\"sm\">Now playing</Text>\n        <Text size=\"xs\" c=\"dimmed\">{data.playing} live</Text>\n      </Stack>\n    </Group>\n    <Badge variant=\"light\" color={data.playing ? \"teal\" : \"violet\"}>{data.playing ? String(data.playing) + \" live\" : \"Idle\"}</Badge>\n  </Group>\n  <Grid gutter=\"xs\">\n    <Grid.Col span={6}><Card withBorder radius=\"md\" p=\"xs\"><Text size=\"xs\" c=\"green\">Live</Text><Text fw={800} size=\"lg\">{data.playing}</Text></Card></Grid.Col>\n    <Grid.Col span={6}><Card withBorder radius=\"md\" p=\"xs\"><Text size=\"xs\" c=\"orange\">Transcoding</Text><Text fw={800} size=\"lg\">{data.transcoding}</Text></Card></Grid.Col>\n  </Grid>\n  <Stack gap=\"xs\">\n    {data.items.map((row) =>\n      <Card withBorder radius=\"md\" p=\"xs\">\n        <Group justify=\"space-between\">\n          <Text size=\"sm\">{row.title}</Text>\n          <Text size=\"xs\" c=\"dimmed\">{row.viewer}</Text>\n        </Group>\n      </Card>\n    )}\n  </Stack>\n</Stack>"
  }
}
