kizniche / Mycodo

An environmental monitoring and regulation system
http://kylegabriel.com/projects/
GNU General Public License v3.0
2.96k stars 494 forks source link

Add notes via API #1357

Closed samuk closed 8 hours ago

samuk commented 9 months ago

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.

kizniche commented 9 months ago

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.

samuk commented 9 months ago

Nice, thanks.

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

kizniche commented 9 months ago

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

kizniche commented 9 months ago

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 commented 7 months ago

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