-
-
Notifications
You must be signed in to change notification settings - Fork 999
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
Feature: Add Homebox widget #3095
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of having a custom proxy (that needs to be maintained) couldn’t we just use the token directly, ie ask users to supply that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m going to go ahead and request that the above change be made to accept this PR. It seems trivial to get the token with the bundled swagger ui and I think that’s all this proxy does.
Let us know if you need info/help
We cannot use the token directly, Homebox does not currently support long-lived API tokens. The auth token that gets retrieved expires in a week after fetch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…0.8.9@869c800 by renovate (#19065) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ghcr.io/gethomepage/homepage](https://togithub.com/gethomepage/homepage) | patch | `v0.8.8` -> `v0.8.9` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>gethomepage/homepage (ghcr.io/gethomepage/homepage)</summary> ### [`v0.8.9`](https://togithub.com/gethomepage/homepage/releases/tag/v0.8.9) [Compare Source](https://togithub.com/gethomepage/homepage/compare/v0.8.8...v0.8.9) #### What's Changed - Feature: Add list view for custom api by [@​sgrtye](https://togithub.com/sgrtye) and [@​shamoon](https://togithub.com/shamoon) in [gethomepage/homepage#2891 - Change: use Script component instead of async script for custom.js by [@​Cyberbeni](https://togithub.com/Cyberbeni) in [gethomepage/homepage#2901 - Change: move custom.css linking to head to avoid FOUC by [@​Cyberbeni](https://togithub.com/Cyberbeni) and [@​shamoon](https://togithub.com/shamoon) in [gethomepage/homepage#2916 - Enhancement: Add enablePools option to TrueNAS service widget by [@​dstotz](https://togithub.com/dstotz) and [@​shamoon](https://togithub.com/shamoon) in [gethomepage/homepage#2908 - Enhancement: Add requestBody as option for customapi widget by [@​dstotz](https://togithub.com/dstotz) in [gethomepage/homepage#2921 - Enhancement: allow api auth with moonraker service by [@​stevendejongnl](https://togithub.com/stevendejongnl) and [@​shamoon](https://togithub.com/shamoon) in [gethomepage/homepage#2934 - Add Plant-it widget by [@​MDeLuise](https://togithub.com/MDeLuise) and [@​shamoon](https://togithub.com/shamoon) in [gethomepage/homepage#2941 - Chore(deps): Bump systeminformation from 5.21.24 to 5.22.0 by [@​dependabot](https://togithub.com/dependabot) in [gethomepage/homepage#2999 - Chore(deps-dev): Bump eslint from 8.56.0 to 8.57.0 by [@​dependabot](https://togithub.com/dependabot) in [gethomepage/homepage#3000 - Chore(deps-dev): Bump postcss from 8.4.33 to 8.4.35 by [@​dependabot](https://togithub.com/dependabot) in [gethomepage/homepage#3001 - Chore(deps): Bump recharts from 2.11.0 to 2.12.1 by [@​dependabot](https://togithub.com/dependabot) in [gethomepage/homepage#3002 - Fix: support cyrillic characters in quicklaunch by [@​shamoon](https://togithub.com/shamoon) in [gethomepage/homepage#3020 - Fix: docker status labels colors by [@​RoboMagus](https://togithub.com/RoboMagus) and [@​shamoon](https://togithub.com/shamoon) in [gethomepage/homepage#3028 - Enhancement: Add formatting options to weather widgets by [@​benphelps](https://togithub.com/benphelps) in [gethomepage/homepage#3093 - Feature: Add Homebox widget by [@​cadeluca](https://togithub.com/cadeluca) in [gethomepage/homepage#3095 #### New Contributors - [@​Cyberbeni](https://togithub.com/Cyberbeni) made their first contribution in [gethomepage/homepage#2901 - [@​dstotz](https://togithub.com/dstotz) made their first contribution in [gethomepage/homepage#2908 - [@​stevendejongnl](https://togithub.com/stevendejongnl) made their first contribution in [gethomepage/homepage#2934 - [@​MDeLuise](https://togithub.com/MDeLuise) made their first contribution in [gethomepage/homepage#2941 - [@​cadeluca](https://togithub.com/cadeluca) made their first contribution in [gethomepage/homepage#3095 **Full Changelog**: gethomepage/homepage@v0.8.8...v0.8.9 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 10pm on monday" in timezone Europe/Amsterdam, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMzUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjIzNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->
--------- Co-authored-by: shamoon <[email protected]>
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. See our contributing guidelines for more details. |
Proposed change
Adds a Homebox service widget. Returns statistics (options are number of items, items with a warranty, locations, labels, users, and total value of items) for the user's group. Default values are set as
["items", "locations", "totalValue"]
. Available fields, defaults, and config are noted in the added documentation.Example:
![image](https://private-user-images.githubusercontent.com/32560733/311494985-f7381695-bafc-480c-906d-768c8fc34403.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA4MDcyMjEsIm5iZiI6MTcyMDgwNjkyMSwicGF0aCI6Ii8zMjU2MDczMy8zMTE0OTQ5ODUtZjczODE2OTUtYmFmYy00ODBjLTkwNmQtNzY4YzhmYzM0NDAzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEyVDE3NTUyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkxZGUzNjkyOTVjYTUzOGJhYmMxY2JjNDJlNGFhZGJlMzMyNDc2OTQ2Y2JlYWY0OTBiNzg1MmUyZmRkN2MyZmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.7Xiufa59jv754C6I28F9S1V2bbws1mvdQB0rSdSdCa0)
This widget required implementation of a custom proxy to login, which it does by hitting the
/users/login
API endpoint. Then the/groups/statistics
endpoint is used for the actual data and the/groups
endpoint is used to retrieve the currency the user has configued in Homebox. This currency value is used for formatting thetotalValue
field.Example API responses:
![image](https://private-user-images.githubusercontent.com/32560733/311495290-1ee00207-005c-43fd-b8e4-f6a63a0552cc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA4MDcyMjEsIm5iZiI6MTcyMDgwNjkyMSwicGF0aCI6Ii8zMjU2MDczMy8zMTE0OTUyOTAtMWVlMDAyMDctMDA1Yy00M2ZkLWI4ZTQtZjZhNjNhMDU1MmNjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEyVDE3NTUyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEzNzU0ZGQ0NDdmYTA4N2M1OTRiZDM1MDYwNGVlNjdhOWNhNDk2N2FlYjJkYzk5MzYzNTMwZWJmZmJlMDdjODkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.pbYiOero7d3rTtstwGNY19KSF-9UKGEpYK7pqZg4iqo)
![image](https://private-user-images.githubusercontent.com/32560733/311495317-df5d152d-f478-4a02-942c-62cc5344f410.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA4MDcyMjEsIm5iZiI6MTcyMDgwNjkyMSwicGF0aCI6Ii8zMjU2MDczMy8zMTE0OTUzMTctZGY1ZDE1MmQtZjQ3OC00YTAyLTk0MmMtNjJjYzUzNDRmNDEwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEyVDE3NTUyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQwNzVmYjc5MGIzMWIwMGNlNDk3NGNlMWM5NjhjOTIwNzIyNzEwZDcwYzJjYjgzNGU3YmY3MTk3YjIzODYzYTQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.HC_jRvldliOhQeINBnQFDu1ZNvOxS4QXNeRnu7kqMqU)
![image](https://private-user-images.githubusercontent.com/32560733/311495339-85d64f76-fc10-48d5-9816-a7523cf01640.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA4MDcyMjEsIm5iZiI6MTcyMDgwNjkyMSwicGF0aCI6Ii8zMjU2MDczMy8zMTE0OTUzMzktODVkNjRmNzYtZmMxMC00OGQ1LTk4MTYtYTc1MjNjZjAxNjQwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEyVDE3NTUyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYwMGQyYzk0MTY5OWViNDliMGI0YTA0ZGQxNzk4ZTEyNmFjN2Q4OTkxZTYzZTg2YTE0ZWEwYmVmNmY4ZmQ0Y2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Lx2I15hgHYyaTdAw7VKIE17dyjkIQncycqO2_vL9ApI)
Closes #1389
Type of change
Checklist: