Common Lab Test Quantities profile

Hi all
We are working with @gbathree trying to connect several farms from Mendoza Argentina to FarmOS. I’m kind of new to FarmOS and I was triying to upload the results of a common soil lab test as logs to different farms. If I create all lab test Quantities for one farm is there a way to use those same Quantities for a different farms? I’m triying to avoid repeating it in all farms…
Great to be here :slight_smile:
Thanks

Hi @nanocastro - welcome to the community! :slight_smile:

Do you have separate farmOS instances (URLs) for each farmOS?

I’m not sure I understand your question exactly… are you looking for a way to create a standard “template” so that you always end up with the same types of data? Or are you asking about sharing data itself (eg: lab test values)?

Maybe if you describe your case in a little more detail I can offer a better suggestion. :slight_smile:

Hi Mike
Thanks for the really fast answer.
We have each farm in separate farmOS instance

Yes I’m looking for a way use the same “template” to add only the results of the tests for each farm

I hope that helps to make my case more understandable

Gotcha! Yea so there are a few different ways you might go about this.

One, which @gbathree might be able to help you with, is to create a SurveyStack survey that asks for a standard set of inputs, with a script that packages that up into a standardized “Lab test” log that it sends to each farmOS instance. That will ensure that all the logs end up with the same set of quantities. That would be possible to build without any changes to farmOS itself, but would require that you have all your farmOS instances connected to the SurveyStack Aggregator. Talk to @gbathree about that… :slight_smile:

Another option is to write a new farmOS module.

This module could provide a new “Quick Form”, which works very similar to a SurveyStack survey, but lives in farmOS itself.

https://farmos.org/development/module/quick/

Or, the module could provide a custom CSV importer, which expects a CSV with specific headers for the quantities that you want to gather.

There are certainly other ways! You could write a Python script using farmOS.py:

Or a Javascript app using farmOS.js:

I’ll leave it at that… maybe others will have more suggestions. :slight_smile:

Hi Mike
Thanks for your detailed answer… I will take a look to the options but I think we will do it through SurveyStack this time

1 Like