New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds custom service for Proxmox #519
Conversation
Hey @bastienwirtz , it would be great that, if you're merging this, you could add the |
Of course @luixal! And thanks for the contribution! |
Thank you @luixal and @jordantrizz. I did not expect such a response! |
No needed, but thank you too! I also have a proxmox node as a home server so it fits my needs too :) Good thing on this project is that super-easy to contribute :) |
Thanks to you folks for contributing! |
I didn't do much, it was all Luixal. I'm still looking to show more information similar to a dashboard, id, name, status, CPU, mem, and IP. But this isn't the intent of homer, nor is there is a means to display a block of HTML anywhere aside from "message:". Having the option to displaying full width content would be great for minimalistic dashboards. You're getting a ton of data with the proxmox API so it shouldn't be any extra commands. |
Yep, putting the minimum info in the card was tricky @jordantrizz . I was thinking about including an icon on the right side that opens a modal on click to show, for example, the list of VMs and it's status info. I didn't went so far because, as you say, Homer doesn't seem to be oriented into something like that. |
You made it look easy 😎 I think it would be a good idea for proxmox, portainer, and even being able to grab information from unifi or mikrotik devices. But you're right, I don't know if good for Homer and who we would need to convince. |
I don't see it about convincing anyone, I see this project as a lightweigth homepage and adding too much info (specially remote info with complex API calls) would make it too heavy for what it's intended. Personally, I have the heavy info in Home Assistant's dashboards, which I access from Homer :) |
Makes sense, I really should be looking at Home Assistant as it has a ton of other integrations I would need. What's the overhead of running Home Assistant, would a Synology be enough? |
Shouldn't be too much. There's people who runs it on a RaspberryPi and a bunch of people running it on Synology devices :) |
Sure! Just don't merge the last PR related to proxmox and I can add it there. |
Cool ! Thanks @luixal. |
Not sure if this is correctly set up, @bastienwirtz is there any way to test this locally? I've made the subfolders and put the responses from the api into index files (I've tried .html and .php) but I can't get it to work locally. The service makes two api calls (both of them GET methods). I've hardcoded the
and
I've created this structure. Following the pihole example i tried with
but none seem to work. I've configured my - name: "Proxmox - Node1"
logo: "https://camo.githubusercontent.com/2df2ac41e1b8a1484be236c75e395981b31bfd670eff46b5c182ea0be9475310/68747470733a2f2f7777772e70726f786d6f782e636f6d2f696d616765732f70726f786d6f782f50726f786d6f785f73796d626f6c5f7374616e646172645f6865782e706e67"
type: "Proxmox"
tag: "sys"
url: "https://localhost:5173/proxmox"
node: "node1"
warning_value: 50
danger_value: 80
api_token: "PVEAPIToken=root@pam!monitoring=b47646c1asdf555" and queries are sent to:
but they throw an Any idea about what's wrong or how to test this? or should I make the PR like this and you handle the rest? |
|
@luixal To test it you have to serve the cd dummy-data
npx http-server --cors |
Not sure if this is the right place. I have a CORS error on homer for the Proxmox query. Proxmox Homer lable says: Browser says:
Here's my Custom Locations script/code in Ngninx Proxy Manager for proxmox.my.lan:
And, homer config:
|
@bastienwirtz ok, I was thinking that Homer served this files directly on the demo app. In case is useful for someone, I had to use: npx http-server --cors=Authorization for CORS to accept the @CreationGuy I'm using this in the Advanced tab in NGINX Proxy Manager (not sure if everyhing is needed):
|
I swapped to that, getting: If I go to that status page above, I get: If I put my code back, I don't get open resety error. |
I can't get it to work. What is the |
@luixal
I now get this on Homer in the browser console:
That URL shows: Does that mean I have something wrong in the config.yml?
|
Shoot, I got it working.............. All of this time, it was a check box in PVE. Privilege Separation was checked in the API Token section.... @luixal Is there a way to have the info not get cut off on homer? I can only see as far as Mem: 12.x |
I noticed that in small screens data get cut off. I'll make something to hide some fields as user needs. As this happens on small screens, maybe just setting a smaller font size would do the trick. I'll make some tests and show results. Could you open an issue about this so we don't hijack this PR? |
Description
Adds a custom service for Proxmox.
Fixes #516
Type of change
Checklist:
config.yml
file