Skip to content
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

Print lables for location pages #510

Open
1 of 3 tasks
Agrigohar opened this issue Feb 2, 2025 · 3 comments
Open
1 of 3 tasks

Print lables for location pages #510

Agrigohar opened this issue Feb 2, 2025 · 3 comments
Labels
⬆️ enhancement New feature or request

Comments

@Agrigohar
Copy link

What is the problem you are trying to solve with this feature?

Surely I'm not the only user looking to use this for organizing spaces like the garage, where frequently you have many bins/boxes of other things.
We can currently add nested locations to achieve this, but there is not currently an easy way to make labels for bins/boxes as locations. The automatically generated QR codes for the location pages is a great start, though.

What is the solution you are proposing?

A label generator for locations, allowing you to select locations from the user's list to generate for.

What alternatives have you considered?

An alternative would be a dropdown or other selection on the current asset generation page to change modes to location labels instead of asset labels.

Additional context

No response

Contributions

  • I have searched through existing issues and feature requests to see if my idea has already been proposed.
  • If this feature is accepted, I would be willing to help implement and maintain this feature.
  • If this feature is accepted, I'm willing to sponsor the development of this feature.
@Agrigohar Agrigohar added the ⬆️ enhancement New feature or request label Feb 2, 2025
@niyisurvey
Copy link

It's sooooo nuts you asked this TWO days ago. Ive been trying to do this for over a year, tried googling for a solution again today, found the new repo, and found your comment :)

Ive come perhaps halfway in finding a -bit- of a solution:

=======================

First install jq.

Then go to your swagger page (http://homeboxIP:7745/swagger/index.html)

Then go to [Authentication] ,
User Login.

Enter your details then go to "try it out" then edit your sign in details, then "Execute". This gets you your bearer token.

Then try this:

curl -s -H "Authorization: Bearer [PUT UR TOKEN HERE]"
http://[HOMEBOX IP ADDRESS]:7745/api/v1/locations | jq -r '.[] | "(.id) - (.name)"

I get this then:

3b8e03b3-5b0b-4b2d-887f-b6f809976fe7 - Bedroom
256e39d3-90f4-4353-a6eb-41e56cdc05f0 - Drawers Column 1
26c5027b-d806-44dc-b640-1606de80b61b - Drawers Column 2
fad7a858-73ad-4633-bab9-8f58b8397f4c - Drawers Column 3
5b83de80-77fb-4427-a78d-e7cb38c351b1 - Fridge Drawers 1
389fcef3-af73-4d41-9887-565ddba332b7 - Hallway
ae1e85a8-9214-4034-a1f5-849e842449e6 - Kitchen
9514ae77-4bfd-46fd-8b9c-ea8164a5ba31 - Left Drawers
e262d913-1865-4d9b-90ec-3742d431668d - Left Drawers Column 1
5b2e9f15-e778-411e-936e-14975cd5e878 - Left Drawers Column 2
5a89aec4-18f1-49b6-a13b-62cc736e57a8 - Left Drawers Column 3
99950b3f-a6ae-49f4-97a1-a72518e3c8da - Left Drawers Column 4
4e88a948-aeec-4ad0-93b4-f6aa4b5066fc - Living Room
9f635d5a-da89-4442-b701-c2ffb981a2d6 - Office
d52bb865-294e-4520-b9c0-4ad9e883454d - Right Drawers 1
d13352fd-8e43-43e7-9e61-c59292c6a250 - Right Drawers 2
1d6060a9-df3d-4b68-96c4-5d33108e6b2c - Tray 1
681ae668-64bb-4635-8086-635c5812d331 - Tray 1
c7931019-cd07-439b-bb3e-40fab5c40fb2 - Tray 1
f9a3ccb0-bd88-4c63-a065-1d1450535171 - Tray 1
02e20f99-7b18-4bb2-9cf0-c0a4087bf43c - Tray 1
511c187f-63a3-4382-baae-aa1a5b8d5032 - Tray 1
2f4ade03-b1c6-45a4-9b9c-8cefb7a564dd - Tray 10
354e9b00-8501-4543-bd6a-fcf29352e878 - Tray 10
88eaf7e7-f15b-4a9a-97ab-3ae3720877df - Tray 10
14714c4a-6660-42bc-98af-d3b86b24dce0 - Tray 10
f7e5c4bd-b0e2-43de-a9b1-e334465711e1 - Tray 10
c49078c3-4717-4406-bb27-dad0b914f52a - Tray 11
9fc8c7e8-f32a-4371-b405-903e739df967 - Tray 11
d577c082-c032-4efb-85d4-9d49d07d7226 - Tray 11
264e6a2f-c809-4f30-923d-2aa61c98bd8e - Tray 11
5ff5c821-768a-4f4a-bfee-00cbb3059efb - Tray 12
1b9c26e0-6b33-49ea-9b50-a5a07b8cc91d - Tray 12
1619b038-019d-4e4c-a52d-8b68fee6551f - Tray 13
e95752f4-cae2-4118-9bc3-a49f63e67e17 - Tray 13
19782c77-14f5-4aec-9d04-add2c055cbb6 - Tray 14
361f87f3-163d-444d-b769-ca5a181eb387 - Tray 14
8555d6d5-7e35-4df8-baca-f8492fbfb974 - Tray 15
bf6d0bee-1c15-4bdd-8fc2-aeeea87357c4 - Tray 15
474419ef-3bf1-4515-a6d6-e2e70d155a83 - Tray 16
167b7c85-8a82-4b27-83cf-e9fafcff612a - Tray 16
f1f4ce83-d3f0-41b6-bc56-8dd80ffc1906 - Tray 17
b769959a-24c7-4090-b47c-4a82295db8e0 - Tray 18
ddf73d89-c96c-4a02-a4dd-4f01c66f1724 - Tray 19
95f124b2-7d3a-4757-98a1-e82441ed2a22 - Tray 2
e8724211-32d1-4b47-b2a9-43e6b8dbdae3 - Tray 2
851d0bbe-dfbf-454f-aeb8-1b5cfd7d5af4 - Tray 2
764745f8-ef02-4412-90f9-a5d9b9aa0b68 - Tray 2
11d04da1-6e19-4a8d-b4a6-69a76b7606e7 - Tray 2
cb8f9012-813e-46da-81ad-e2cc676a9768 - Tray 2
fb032aa7-06a1-4a1a-9899-10b62362fee1 - Tray 20
d3296768-e76c-4f14-8e67-16185fbd45c1 - Tray 21
180dd536-b632-43c2-8c5d-e9c483bc0c6f - Tray 22
c90c4578-3541-45a0-9098-6addf68f64ef - Tray 3
7134335b-ff2a-4f04-994e-de8730626e05 - Tray 3
13bbe503-cde0-4586-ade3-c20a947ffdda - Tray 3
5263b918-befb-4425-b609-0515a0944364 - Tray 3
55c24654-680c-47d0-8530-6bdd13875416 - Tray 3
18f0e875-4e93-4b4b-9ed3-8651f3f81edd - Tray 3
e81a1271-fb36-44ba-a038-f77b6ce40328 - Tray 3
dbae992a-08db-4bf5-8490-6699b5a0d32e - Tray 4
e659c74e-44db-4527-99f5-2ef2b581ec18 - Tray 4
191b583f-e71b-41a6-8072-b420e7a56e19 - Tray 4
ec35db01-5564-4a94-9116-15ead1af9202 - Tray 4
3a643b7e-a2d5-4d19-ace2-b62b3bb8af96 - Tray 4
21cae8f3-9ced-4c51-9d2d-1e85d95e9266 - Tray 4
3652d455-4bdf-446a-b0e8-cd4f2d939609 - Tray 4
96f189d5-c36e-49b3-a5fb-dd47cc86e6c1 - Tray 5
ff8d76ff-c3f8-4a31-be06-959cd2ce59d8 - Tray 5
1b489fdc-285e-4694-b045-e9f2ff288422 - Tray 5
a3f8d1ac-bd53-41fd-889e-b2b6a5e523cf - Tray 5
095902a9-6630-4105-b423-bd298d6e6900 - Tray 5
6b16c3f0-ea87-4193-a47f-781acc58a19e - Tray 5
1ab5c250-9d8d-432c-bd05-da7187d32fd4 - Tray 5
e7d5c32f-aee9-43a4-8aaa-cf44c62eb751 - Tray 6
42ab9fa1-572c-4c09-995f-26a0808ad0e0 - Tray 6
2fb04827-53f2-4de1-aad9-d3e512040226 - Tray 6
1c3fd321-d857-4909-87d5-73f364c538e0 - Tray 6
32ace99b-7cc9-4f2c-ac1b-872c45164fed - Tray 6
48e15b33-9485-4e3f-809f-ba35a1f32f18 - Tray 6
a503e69c-c111-4cae-a0ee-b30eee3c6c1e - Tray 6
47e15712-e37f-4798-a6f6-c9de0ec36864 - Tray 7
b89d8758-2ed8-4ed6-bcad-1257a400c921 - Tray 7
7500c355-b08d-45bb-8e14-b31efe512d73 - Tray 7
661891f3-fcff-4077-8043-b8d5fccedad7 - Tray 7
4fe0311d-39db-4a71-b63b-22cecfa9bf6c - Tray 7
9657bb41-e57a-478d-b514-9dbbefb11782 - Tray 7
cd252e18-7ca0-4f8c-bbfd-1801b0af05a8 - Tray 8
94d3d886-a54c-4a29-886c-53bf4174725a - Tray 8
00173054-f2fe-4bd9-bb1c-2ba517061608 - Tray 8
431cef3e-fbf2-4900-aab5-79783a287276 - Tray 8
405aa6d7-e1bb-41a5-b70f-db477524859a - Tray 8
54815458-f1fc-4cfc-8e2b-b7d73c7f499a - Tray 8
ab38c876-424e-413a-b13b-c8d0ec02f909 - Tray 9
0ad3415c-4b68-44f3-915f-236263e2bae7 - Tray 9
a38dee28-e725-44fc-ac09-3708080b02fd - Tray 9
08bce1db-c0bc-4b00-8ec2-67ec333e8702 - Tray 9
4d65e82d-f98f-4468-bc73-d2becdd6ab59 - Tray 9
1783ab23-4e66-483c-ad90-33a4ef6f37e0 - Wall Drawers

Now this string is basically the bit that goes after the http://[HOMEBOX IP ADDRESS]:7745/location/

EG:

http://[HOMEBOX IP ADDRESS]:7745/location/08bce1db-c0bc-4b00-8ec2-67ec333e8702

This is as far as I have got, for now. I have 99 locations, so Im just goign to use a qr code generator or something with the URL.

I know there must be a less grubby way and more elegant way of doing this, but I'm not a coder and don't really know what I'm doing, besides what's in the docs.

@niyisurvey
Copy link

May I ask, is there a way to even just be able to export all the location URLS in the reports or CSV or something? An easy way to do that from the instance would be amazing!!

@thevortexcloud
Copy link

thevortexcloud commented Feb 6, 2025

I know there must be a less grubby way and more elegant way of doing this, but I'm not a coder and don't really know what I'm doing, besides what's in the docs.

I personally wrote some code a few days ago to do something similar for individual items. It just spits out a custom QR code as a PNG with the name of the item next to it. It can probably be adapted for locations, but I have not tried. If people are interested I might share the program (just don't expect it to be flawless).

That said from looking at the swagger there is no way to search for locations. You can either get a specific location or all locations. Which seems rather odd to me.

May I ask, is there a way to even just be able to export all the location URLS in the reports or CSV or something

You are already most of the way there to making a CSV. A CSV is just a text file with the values comma separated, and one line per row. EG

location,id,url
study,000000,https://link
box1,000001,https://link2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⬆️ enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants