I’m working on our farm data input forms, which will push to farmOS. But it’s also giving me a chance to review what we’ll need for the API switchboard, and a reminder of the tricky bits.
One thing I’m considering is units - so complicated… but there is (what seems to be) an amazing unit conversion library. It doesn’t have every unit we’d want but it has many (like I’d way row feet, yards, etc for smaller producers. You can also do rates with different values.
Here’s the lib: https://gentooboontoo.github.io/js-quantities/?utm_source=cdnjs&utm_medium=cdnjs_link&utm_campaign=cdnjs_library
Here’s the list of units: https://github.com/gentooboontoo/js-quantities/blob/master/src/quantities/definitions.js
Seems like a well designed lib. Any ideas @mstenta @sudokita @mark.easter @plawrence maybe @jgaehring ? Is this something we could use across many OpenTEAM components - would you consider integrating it into your software or does this not solve a problem for you?
It seems (especially given his clear ‘definitions’ file) that this seems like a great start. Maybe fork or just contribute back additional items as needed.