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

Automatic XML file export #161

Open
FedericoCeratto opened this issue Feb 1, 2024 · 3 comments
Open

Automatic XML file export #161

FedericoCeratto opened this issue Feb 1, 2024 · 3 comments

Comments

@FedericoCeratto
Copy link

Hello and thanks for developing Gourmand. It works very well with Tournant and Syncthing.
It would be really neat if Gourmand could export the XML file for Tournant every time something is changed.
Users could configure the file location.

@FriedrichFroebel
Copy link
Contributor

This sounds like a rather specific approach. Wouldn't a simple CLI interface suffice here for you to add a cronjob, file watcher or similar?

@FedericoCeratto
Copy link
Author

Perhaps I misunderstood the intended workflow. I'll describe my setup to clarify:
I'm using Gourmand on a desktop and Tournant on a phone.
Tournant loads the recipes from a directory on the phone that is kept in sync with the desktop using https://syncthing.net/ based on this
My goal is to be able to create or edit a recipe on the desktop and immediately get the update on the phone.
(afact this should also work with git-annex or dropbox )

@FriedrichFroebel
Copy link
Contributor

Personally, I do not think that adding automated exports of the database file to an XML file on every change is something which should be part of the Gourmand core application. Instead, I proposed to use the automation tools of your system to trigger a CLI command of Gourmand to do the export, maybe bound to other/your own conditions. On Linux-based systems, possible triggers could be cron or file system watchers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants