Skip to content

Feature Request: Add Support for Alternative Grocy URL in Settings #34

@EarthBoundX5

Description

@EarthBoundX5

Feature Request

In the Barcode Buddy Settings, similar to the existing "Grocy API URL" section, add a new section for an External or Alternative Grocy URL.

Purpose

This feature would allow Barcode Buddy to use a different Grocy URL when generating URLs for actions like CREATE PRODUCT, ADD, and CONSUME. If an Alternative Grocy URL is provided, it would be used instead of the Grocy API URL for these action URLs.

Use Cases

  • Simplified User Adoption: Helps users who prefer not to configure complex container networking setups for Docker-hosted services.
  • Back End vs Front End Communication: Allows separating back end/Internal and front end/External communication paths for Barcode Buddy, improving flexibility in different network environments.

Example Configuration

Grocy API URL: http://[CONTAINER_IP]:[INTERNAL_PORT]/api/
Alternative Grocy URL: http://[DOCKERHOST_IP]:[EXTERNAL_PORT]/

Testing Notes

This has been tested successfully by manually changing the API URL to the Docker host and port. Internally, Barcode Buddy may have issues, but the generated URLs for actions like CREATE PRODUCT are properly formatted and work as expected.

Suggested Implementation

  • Add a new input field in the Settings for "Alternative Grocy URL."
  • If provided, use this URL instead of the Grocy API URL when generating action URLs.

This feature would make Barcode Buddy more adaptable to various deployment environments and improve overall usability for Docker-based setups.

(I used ChatGPT to help output and format my request)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions