-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Added PiAlert widget #1493
Added PiAlert widget #1493
Conversation
Thank you but we only accept service widget PRs based on feature requests with interest (currently arbitrarily designated as 5 "up-votes") from the community... Feel free to open FR for this See https://gethomepage.dev/en/more/development/#service-widget-guidelines |
Hi! I opened a FR #1495 and it received 5 up-votes. Any chance to reopen this PR? Thank you |
This works fine in my testing, please see the small changes. Any other reason this was marked as a draft? |
Ps. Please create a documentation PR as noted above |
Thank you. It was marked as draft because I needed to finish a few things (as you did, thank you) and I still need to create a PR in the documentation repo. I will do ASAP |
Done! |
Great thanks |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. |
Proposed change
This PR introduces the new PiAlert widget that pulls stats from PiAlert's APi (https://github.com/jokob-sk/Pi.Alert).
The user will be able to add the widget to the services.yaml file using the following configuration:
The PiAlert's API are not documented, I am using as endpoint /php/server/devices.php?action=getDevicesTotals, that returns the following response:
It is an array where each item corresponds respectively to AllDevices, Connected, Favorites, NewDevices, DownAlerts, Archived.
Type of change
Checklist:
pnpm lint
.