< 132022-07-14⋎15 >

Topic for #farmOS is: farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Forum: farmOS.discourse.groupSet by mstenta on 2021-06-15 at 12:52
00:20jgaehring[m]<gbathree[m]> "Cool, I recently talked to..." <- oh man, we just mentioned Farmobile on today's monthly call! you'll flip when you hear how that came up... someone from the Free Software Conservancy joined the call to talk about how to keep John Deere honest in how they make the data and software on their newer tractors available to farmers... when he asked about examples of larger farmers collecting data via onboard systems, I mentioned
00:20jgaehring[m]Knuth Farms and pointed him to the In-Depth Angela did a year or so ago, where she goes into some detail about how she uses Farmobile together with farmOS and CropZilla... the Vice article I posted above is also related to that general discussion.
06:11*jonasbits has quit (Quit: No Ping reply in 180 seconds.)
06:12*jonasbits has joined
06:19*jonasbits has quit (Quit: No Ping reply in 180 seconds.)
06:20*jonasbits has joined
13:29gbathree[m]omg!
13:29gbathree[m]dude we could build around that
13:29gbathree[m]they are seriously interested based on this conversation
13:30gbathree[m]so context: general mills projects (Kansas and in Canada) which are the ones that are going to be int he coffee shop, were also testing using farmobile while collecting data in surveystack. The farmobile team was actually collecting the survyestack data on GM's request (they were basically managing the data collection end), and so we connected because they wanted to figure out how to more efficiently do the GM work together
13:31gbathree[m]when I talked to them about the conventions we're starting to build, and how we store data, they seemed very very keen (and very very much recognized the need) to create some thoughtful standards. From their perspective, they want to make sure their electronic field records (kind of a raw tractor data + estimated actual field operation based on the implements + information from the tractor) end up in a structure that anyone can use (ie...
13:31gbathree[m]ag data wallet ie... convention ie... switchboard)
13:37gbathree[m]and they were like 'how can we better integration with surveystack'... and I was like 'well, actually in this case you should just build a farmOS integration... because if a farmer is generating EFRs, they should get pushed/synced (whatever) to their farmOS instance directly and then any missing information could... (full message at libera.ems.host/_matrix/media/r0/downloa)
13:37mstenta[m]Angela would be very interested in this I'm sure
13:38mstenta[m]She's also keen on "spraying plans" for pre-planning spray activities ahead of time
13:38gbathree[m]I'm curious, she's obviously already using both... maybe I'm way off in my idea or maybe we're already close. Having an active farm using both services is a great connection point to initiate some work
15:37FarmerEd[m]I presume this is all for collecting data from modern Tractors through ISOBUS?
15:37FarmerEd[m]Any thoughts on older stuff? I've been considering a few projects to integrate farmOS with older pre computer age tractors using microcontrollers and possibly old tablet or touch screen laptop.
15:37mstenta[m] Indeed - FarmMobile plugs into the ISOBUS
15:38mstenta[m]Similar to this other one I described, which is open source: www.isoblue.org/
15:40FarmerEd[m]No ISOBUS here so would need to build bespoke system, to integrate agopenGPS and FarmOS.
16:00mstenta[m]farmOS dev call happening right now
17:02symbioquine[m]paul121: 32.7 KB ... Seems a bit large!
17:02mstenta[m]Ok so maybe that's a good reason to package some things!
17:08symbioquine[m]If you don't take the intermediate step of turning it into a Polygon object it goes down to 5.8 KB
17:09symbioquine[m]Context: github.com/paul121/farm_farmlab/tree/1.x
17:16symbioquine[m]<symbioquine[m]> "If you don't take the intermedia..." <- It goes up to 5.95 KB if you use the `ol/extent` functions to get the corner coordinates (untested code 😁);... (full message at libera.ems.host/_matrix/media/r0/downloa)
19:08paul121[m]> <@symbioquine:matrix.org> It goes up to 5.95 KB if you use the `ol/extent` functions to get the corner coordinates (untested code 😁);... (full message at libera.ems.host/_matrix/media/r0/downloa)
19:09paul121[m]I was using the Polygon method for convenience but yeah those look better :-)
19:09symbioquine[m]I think I spent 5 minutes on it :)
19:09symbioquine[m]Okay, maybe 8
19:11paul121[m]Could probably just implement the topLeft bottomLeft logic without importing too
19:11symbioquine[m]In less than 160 bytes?
19:12symbioquine[m]If I'm doing my math right that's the difference between 5.79 KB and 5.95 KB
19:12paul121[m]ohh yeah. sorry misread, definitely
19:14symbioquine[m]I wasn't super clear when I wrote it above. 5.79 KB is the size when you just return the transformed extent. (which would be broken, but is a useful baseline) 5.95 KB is using the `ol/extent` fns to produce a rectangle's coordinates.
19:14paul121[m]if this would useful more generally happy to make a PR to farmOS-map :-)
19:15paul121[m]* this would be useful more
19:15paul121[m]it seems like getting the view's extent could be useful for other use-cases but perhaps too early to decide that
19:16paul121[m]also symbioquine the ability to turn a single feature's geometry into the SVG.... that seems quite worthy to be included as well
19:16symbioquine[m]Maybe...
19:17symbioquine[m]I was thinking about putting it in a separate NPM module, but I'm not opposed to that
19:18paul121[m]and maybe include that NPM module in farmOS-map? :-)
19:18paul121[m]having it in farmOS-map would make it the easiest to use, but maybe I'm being lazy
19:24mstenta[m]@room I'm working on the farmOS Maple module port to v2... curious to get thoughts on data model for it...
19:24mstenta[m]www.drupal.org/project/farm_maple/issues
19:25mstenta[m]In v1, the module added a dedicated `sugar_bush` asset type (to represent stands of maple trees) and a `tap` log type (to represent when trees were tapped)
19:25mstenta[m]I'm leaning towards migrating these to ordinary `plant` assets and `activity` logs in v2.
19:26mstenta[m]Also thought about migrating them to `land` assets with a new `land_type` of `maple`... but I dunno.
19:26mstenta[m]What do you think?
19:27mstenta[m]Feels weird to add additional asset/log types for this (`farm_maple` was one of the earliest contrib modules I made for farmOS v1, so it was still pretty experimental)... hence why I'm rethinking it for v2
19:29mstenta[m]The `sugar_bush` asset type didn't have any special fields on it, so doesn't really need to be a dedicated asset type IMO. The only real benefit is conceptual separation from other assets. But filtering by Crop/variety on Plant assets achieves the same thing.
19:29mstenta[m]The `tap` log type added `tap_count` and `tap_size` fields - but those can just be quantities in v2 IMO.
19:29mstenta[m]I'm thinking about whipping up a simple Maple Tapping quick form to make it easier to record tapping events consistently.
19:32mstenta[m]I'm still on the fence about the asset type though... should it add a new `maple` asset type? Otherwise you wouldn't really know where to start if you're installing the module fresh...
19:34mstenta[m](Just typing this out is making me think a dedicated asset type DOES make sense...)
19:34mstenta[m]One that `is_fixed` and `is_location` by default (like `land` assets)
19:43paul121[m]<mstenta[m]> "(Just typing this out is..." <- This sounds similar to what we have discussed about orchards - a long-lived plant asset or a land asset w/ plant assets for each year?
19:44paul121[m]Not familiar with maple/syrup production. Might depend how those are managed
19:45mstenta[m]Yea thought about `forest` assets too - but yea I think the management is just different
19:45paul121[m]<mstenta[m]> "(Just typing this out is..." <- would this new asset type have a crop/variety reference field (`plant_type` or other?)?
19:45mstenta[m]And a `maple` asset might be a subset of a `forest`
19:45mstenta[m]I wondered about that too (`plant_type` field) - maybe that would be useful! But might punt on that for MVP
19:45mstenta[m]Then you could say what type(s) of trees are in a particular grove
19:46paul121[m]That seems kinda important? Although I guess it wasn't a feature in v1?
19:46mstenta[m]Right - it wasn't
19:46paul121[m]Dang. makes it hard to migrate to plant assets.
19:46mstenta[m]But another rabbit hole I started going down was: what about birch sap? should this be the `farm_sap` module? haha
19:47mstenta[m]But the huge majority of users would be focused on maple, and it could still be used for birch
19:47mstenta[m]naming...
19:47mstenta[m]always hard
19:47paul121[m]ahh. then migrate all `sugar_bush` assets to `plant` assets of type `maple`...
19:47paul121[m]as a default
19:47mstenta[m]yea i actually implemented that in a wip commit
19:47mstenta[m]but then started doubting that
19:49mstenta[m]for one thing: you'll pretty much always want `is_fixed` and `intrinsic_geometry` - which means users will need to know to manually set that when they set up new plant assets
19:50mstenta[m]unless we also have a quick form for mapping maple trees
19:50mstenta[m](same might be true of orchards, but maybe not all the time... maple groves are typically not "planted" - they are existing trees in a forest stand)
19:51mstenta[m]so adding a `maple` asset type with `is_fixed: true` is an easy solution to that
19:51mstenta[m]but yea... i dunno... `plant` asset? `maple` asset? 🫠
19:52mstenta[m]also makes it easier to reference `maple` assets specifically in a `MapleTap` quick form
19:52mstenta[m](filtering down to "Maple" crop/variety is also possible... but what if that term changes, new terms added, etc)
19:53mstenta[m]I think in practice maple producers do think about their groves as a distinct thing - so I feel like separating it does have a good amount of value from a UX perspective
19:53mstenta[m]And if you're also doing veggies it might be weird to have them mixed
19:54mstenta[m]🤷
19:55paul121[m]Yeah being able to make them a distinct thing seems important...
19:55paul121[m]Reminds me of asset categories idea
19:55paul121[m]IIRC Walt is going to be importing orchard as plant assets, possibly using transplanting logs for location
19:56paul121[m]Curious his thoughts on how to distinguish the two
19:56mstenta[m]also important to acknowledge: we aren't starting from scratch - the v1 module does have them as separate assets, and no one has complained or suggested that we change them to plantings... so doing so would be a change
19:57mstenta[m]they are `sugar_bush` assets (my early attempt to stay general with birch syrup etc in mind) - but IMO `maple` is better/simpler
19:57mstenta[m](and actually they are called "Maple" assets in the UI so it was just a machine name difference)
20:01mstenta[m]i think for now i'll just plow ahead with a new `maple` asset... but keep my wip branch that uses `plant` assets just in case
22:35mstenta[m]paul121: what do you think of this idea... "view mode quick forms"
22:35mstenta[m]imagine a quick form that simple renders an entity form in a given view mode
22:35mstenta[m]s/simple/simply/
22:35mstenta[m](and therefore already supports editing existing entities as well)
22:36mstenta[m]for simple quick forms, that could be pretty powerful
22:36mstenta[m]and... could potentially allow quick forms to be built through the UI - using Drupal's normal Field UI features, plus maybe an option we could add to "make a quick form for this view mode" 🤔
22:37mstenta[m]@pcambra basically took this approach with the NFA work
22:37mstenta[m](loading view modes in off-canvas)
22:37paul121[m]view mode or form display?
22:38mstenta[m]yes sorry, "form display"
22:38mstenta[m](i still use those interchangeably - bad habit)
22:39mstenta[m]> (loading view modes in off-canvas)
22:39mstenta[m](still eager to experiment more with this too!)
22:39paul121[m]yea I like that idea! is there a concept of "Form modes" tho?
22:39mstenta[m]yep!
22:40paul121[m]I actually just created a custom view mode for something but I don't see the UI for custom form mode... ?
22:40mstenta[m]oh hmm... i know there is... but hmm i wonder if they are programatically defined? not through the UI?
22:40mstenta[m]@pcambra used it in NFA so I know it's there
22:41paul121[m]ah okay yeah maybe. here is what I see:
22:41*uploaded an image: (22KiB) < libera.ems.host/_matrix/media/r0/downloa >
22:42paul121[m]oh oh I see it. `admin/structure/display-modes` lists Form modes, and View modes
22:42paul121[m]you only see the option to edit Form modes if you have additional ones :-)
22:42mstenta[m]github.com/Cambrico/farm_nfa/blob/2.x/co
22:42mstenta[m](an example of one @pcambra made)
22:43mstenta[m]basically a "quick form"!
22:43paul121[m]so - create quick forms for asset/log form modes, configured using entity form displays?
22:43mstenta[m]yea
22:44mstenta[m]maybe we could provide a simple quick form base class with core that does all the lifting, so you just extend it and specify the view_mode to use
22:44paul121[m]form_mode !!!
22:44paul121[m]:D
22:45paul121[m]or maybe the form_mode could have third party settings saying "use this as a quick form" ?
22:45mstenta[m]yeaa maybe
22:45paul121[m]and use plugin deriver to create the plugins?
22:45mstenta[m]i like that idea!
22:45mstenta[m]boom.
22:46mstenta[m]Quick form builder UI :-)
22:46mstenta[m]for very simple forms anyway
22:46paul121[m]Right, I think there's a way to expose a UI for third party settings too?
22:46mstenta[m]and from there we could start building out more widgets or something - to expand possibilities for individual fields
22:46mstenta[m]like @pcambra's quantity widget
22:46paul121[m]Or maybe we use a convention that the form_mode starts with `quick_form_*`
22:46mstenta[m]oh yea maybe
22:51paul121[m]mstenta[m]: does this allow submitting multiple quantities, each with different config?
22:51paul121[m]just thinking, most form widgets don't quite work like that
22:52paul121[m]but I imagine you could make one that requires a `delta` of 3, and item 1 needs to look like this, etc...
22:55mstenta[m]yea that was the idea - i forget where it stands, or if he's done more

< 132022-07-14⋏15 >