Denaro icon indicating copy to clipboard operation
Denaro copied to clipboard

Feature requrest: Import/sync with cospend

Open 13hannes11 opened this issue 1 year ago • 5 comments

I am currently using cospend in my Nextcloud and I want to avoid needing to add everything twice. Therefore I think it would be great to have a sync feature with cospend. I however understand if such a feature is out of scope for this project.

13hannes11 avatar Jun 08 '23 20:06 13hannes11

We could look into it, but I don't know if cospend has an API that we can tap into.

Does cospend allow for exporting your data to a certain format? If we can't sync with cospend directly, we can add support for the file format that cospend exports too and support importing that in Denaro...

nlogozzo avatar Jun 09 '23 00:06 nlogozzo

We could look into it, but I don't know if cospend has an API that we can tap into.

https://github.com/julien-nc/cospend-nc/blob/main/docs/dev.md#public-api

Does cospend allow for exporting your data to a certain format?

According to description on Nextcloud Apps, it support import/export from IHateMoney compatible CSV format.

fsobolev avatar Jun 09 '23 02:06 fsobolev

it support import/export from IHateMoney compatible CSV format.

Might be best to implement this feature by supporting importing and exporting a IHateMoney CSV

nlogozzo avatar Jun 09 '23 17:06 nlogozzo

Adding documentation label to not forget to update docs to reflect the changes.

fsobolev avatar Jun 09 '23 18:06 fsobolev

Maybe this could be combined with support of an automatic import feature. Basically watch a folder for new files and auto import these.

This way in Nextcloud Cospend could be set to autoexport, we could use the Nextcloud client to sync that folder and then use autoimport.

13hannes11 avatar Jun 13 '23 11:06 13hannes11