bastienwirtz / homer

A very simple static homepage for your server.
https://homer-demo.netlify.app/
Apache License 2.0
8.95k stars 770 forks source link

Uptime Kuma custom service not working #686

Open Ashkaan opened 11 months ago

Ashkaan commented 11 months ago

Describe the bug No extra data shows under Uptime Kuma.

Expected behavior I should see the current status of my Uptime Kuma issues.

Logs & errors Please include any usefull information: See screenshots:

Screenshots

image

Configuration If applicable, copy related homer yaml configuration here.

      - name: "Uptime Kuma"
        logo: "assets/images/uptimekuma.png"
        type: "UptimeKuma"
        url: "<status page>"
Ashkaan commented 10 months ago

Could you guys maybe just include specific instructions to make CORS work with various setups? For example, I'm using HAProxy. I've spent hours trying to figure out how to make Homer work, and I can't.

dataprolet commented 7 months ago

Have you read this: https://github.com/bastienwirtz/homer/blob/main/docs/troubleshooting.md#my-custom-service-card-doesnt-work-nothing-appears-or-offline-status-is-displayed-pi-hole-sonarr-ping-

Ashkaan commented 7 months ago

Yes, I did. Thank you for that.

I set "Access-Control-Allow-Origin: *" for both Homer and the underlying service (in this case Proxmox). When I set that for both, it's true that the error in the console goes away, but now it's just blank:

image
   - name: "Proxmox"
    logo: "assets/images/proxmox.png"
    subtitle: "Modern hypervisor"
    <<: *bare-metal
    keywords: "server"
    url: "https://proxmox.<domain>"
    type: "Proxmox"
    node: "proxmox-1a"
    warning_value: 50
    danger_value: 80
    api_token: "PVEAPIToken=<token>"
    target: "_blank"