Skip to content

Question on how to handle trmnlp IDs #150

@depau

Description

@depau

Hi!

By reading the source code I eventually figured out it is possible to use trmnlp by overriding the server manually in the config:

~/.config/trmnlp/config.yml

base_url: https://trmnl.my.host
api_key: XYZ

By also reading the source code I eventually figured out it is possible to use trmnlp push/pull as long as a trmnlp ID is defined both remotely and locally.

I have a few questions about that:

  • Are these IDs supposed to be universally unique? If I understand correctly, when creating a recipe on usetrmnl.com an ID gets assigned and you can stick with that. However I am not using it and I do not intend to use it, so how should I pick my ID? It would have been nice if UUIDs were used, since by design they are Universally Unique.
  • What should we do with recipes we publish to https://github.com/bnussbau/trmnl-recipe-catalog? For the one I submitted yesterday I simply removed the id from settings.yml. However that's very inconvenient, since while I can still push it via trmnlp push --id XX, it creates a new recipe every time I do so. Should trmnlp/byos_laravel internally set the ID to whatever was specified as --id when pushing a recipe like this?
  • How am I supposed to pull a recipe that was created via the web UI if no trmnlp ID is assigned? For the time being I just used SQLite to update the plugin row and add a random ID myself. Is a more elegant way to do this planned?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions