Mycodo icon indicating copy to clipboard operation
Mycodo copied to clipboard

Add notes via API

Open samuk opened this issue 2 years ago • 5 comments

Is your feature request related to a problem? Please describe.

When on the farm I don't want to open a web app to add a note.

I'd like to be able to add them via an existing farm management app

Describe the solution you'd like Expose the note functionality in the Rest API so that notes can be added by other apps.

Describe alternatives you've considered

Running https://v1.farmos.org/guide/app/ and FarmOS as separate apps and syncing the data later somehow

Additional context I may be able to fund this feature request depending on the costs involved.

samuk avatar Dec 16 '23 19:12 samuk

It should be fairly easy to add a create/delete note tag and add note endpoints. I'll take a look at the code shortly.

kizniche avatar Dec 19 '23 19:12 kizniche

Nice, thanks.

I'm thinking I'd use the https://farmos.org/model/type/log/ taxonomy if possible

samuk avatar Dec 19 '23 21:12 samuk

Notes are text strings, so you can format the string any way you wish.

kizniche avatar Dec 20 '23 17:12 kizniche

This issue has been mentioned on Radical DIY Forum. There might be relevant details there:

https://forum.radicaldiy.com/t/aquaponics-atlas-beagleboard-ai-farmos/1726/2

kizniche avatar Dec 21 '23 13:12 kizniche

I just added a note creation endpoint on the master branch, but I haven't extensively tested it.

kizniche avatar Feb 27 '24 03:02 kizniche