< 122022-04-13⋎14 >

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
04:59Noaht[m]Is it possible to add more supported file upload types? I need to upload .asc files, but cant
10:00mstenta[m]Noaht: here is where the list of file types is defined: github.com/farmOS/farmOS/blob/3cebccc2d1
10:01mstenta[m]If you have the `farm_update` module installed (it is by default) , edit that line, and clear cache, it should update all the fields on all entity types
10:02mstenta[m]Of course, you'll need to maintain that change everytime you update farmOS
10:03mstenta[m]Or, we could consider adding that file type to farmOS via a pull request
10:03mstenta[m]Curious what you use that file type for?
10:04mstenta[m]Another idea (if this is something we end up running into often): perhaps we should add a hook so that other modules can extend the core list of file types
15:00paul121[m]Noaht: I think you could also use `hook_entity_field_storage_info_alter()` to change the `file_extension` settings for either of the file or image fields: api.drupal.org/api/drupal/core%21lib%21D
15:01paul121[m]this would also allow you to change on a per-bundle level - for example, only the `file` field on obersvation logs could allow `.asc` files
15:01paul121[m]but agree, it would be nice to expose the "default file extensions" for both the image and file fields
15:56lordeddi[m]hi all,... (full message at libera.ems.host/_matrix/media/r0/downloa)
15:56mstenta[m]farmOS 2.0.0-beta4 has been released! 🎉 github.com/farmOS/farmOS/releases/tag/2.
15:56mstenta[m]ludwa6 including the PR you were waiting for ;-)
15:57lordeddi[m] * hi all,... (full message at libera.ems.host/_matrix/media/r0/downloa)
15:57mstenta[m]lordeddi: what version of farmOS? and do you have any customizations or is it all default install?
15:58lordeddi[m]2.0.0-beta3, quite a fresh install, no real customizations other than adding some modules from the settings modules list
15:58mstenta[m]lordeddi: i wonder if you can try it with some other locations?
15:58mstenta[m]does the location in question have a geometry?
15:59mstenta[m]`Error: Call to a member function geometryType() on null` suggests an issue with the location geometry perhaps...
15:59lordeddi[m]moving to some locations works, others don't, this is why i also think it is geometry
15:59mstenta[m]ok yea that was going to be my suspicion
15:59mstenta[m]does the geometry of the location (that doesn't work) display properly on maps?
15:59lordeddi[m]i re-created a property and added the geometry from a KML file
15:59lordeddi[m]and it failed again
15:59lordeddi[m]maybe there is an issue using the kml ?
16:00mstenta[m]if you draw the geometry manually does it work?
16:00lordeddi[m]i pasted the kml in the new property, into that text box
16:00lordeddi[m]mstenta[m]: lemme try that quickly
16:00mstenta[m]ooh yes that won't work
16:00mstenta[m]the text box under the map expects WKT, not KML
16:00mstenta[m]if you want to import KML you can upload a KML file to the asset's "Files" field, and them click the button under the map to import from it
16:01lordeddi[m]ah, gottit, so i upload a file and do that
16:01lordeddi[m]it did both when creating the asset, as i'm still discovering farmOS
16:01lordeddi[m]thanks for the support !
16:02mstenta[m]great! sure thing!
16:02lordeddi[m]<mstenta[m]> "farmOS 2.0.0-beta4 has been..." <- this is great news !
16:02mstenta[m]gotta run - back later...
17:07FarmerEd[m]<mstenta[m]> "farmOS 2.0.0-beta4 has been..." <- Good news, I just updated.
17:07FarmerEd[m]Is there somewhere to confirm the installed version? I know I'm on a new release as I see some minor UI changes but for future reference.
17:07FarmerEd[m]The status report shows Drupal, PHP, Apache and SQL versions but just 2.x for farmOS
17:08mstenta[m]> The status report shows Drupal, PHP, Apache and SQL versions but just 2.x for farmOS
17:08mstenta[m]Oh hmm, if you're using a tagged version it *should* show it in the status report
17:09mstenta[m]the other place to look is in `/api` under `meta.farm`
17:09mstenta[m]but that will probably show the same thing... so i wonder: how did you update? you're using docker? are you using the tagged docker image? `farmos/farmos:2.0.0-beta4`
17:10mstenta[m]but also: are you bind-mounting the whole codebase as a volume? if so, then it will not update automatically
17:12FarmerEd[m]Docker, but I have to build the images from git as Raspberry pi
17:12FarmerEd[m]just sites in bind mount
17:13FarmerEd[m]and some modules
17:13mstenta[m]ah ok - what's your build process?
17:13mstenta[m]i'll show you where the "version" number gets set...
17:13mstenta[m]ultimately it needs to get set here: github.com/farmOS/farmOS/blob/1e56b6f8ae
17:14mstenta[m]and this is where that happens: github.com/farmOS/farmOS/blob/1e56b6f8ae
17:14mstenta[m]it assumes that the `FARMOS_VERSION` environment variable is set via `docker build --build-arg`
17:15mstenta[m]defaults to `2.x` here: github.com/farmOS/farmOS/blob/1e56b6f8ae
17:16mstenta[m]here's where our build script sets that argument: github.com/farmOS/farmOS/blob/1e56b6f8ae
17:16mstenta[m]so you probably just need to do something similar
17:16mstenta[m]`docker build --build-arg FARMOS_REPO=github.com/${FARMOS_REPO} --build-arg FARMOS_VERSION=${FARMOS_VERSION} -t farmos/farmos:2.x docker`
17:16mstenta[m]simplified:
17:16mstenta[m]`docker build --build-arg FARMOS_VERSION=2.0.0-beta4 -t farmos/farmos:2.0.0-beta4 docker`
17:17FarmerEd[m]Ah ok, so I give it the version when building
17:17mstenta[m]yep!
17:17mstenta[m]fyi we are getting closer to building ARM images! www.drupal.org/project/farm/issues/32031
17:17mstenta[m]i merged two PRs recently that clear the way for it
17:17FarmerEd[m]look forward to it
17:18FarmerEd[m]Although was contemplating the viability of a VPS too.
17:21FarmerEd[m]Cheers Mike, I'll add the above to my notes
17:22mstenta[m]👍
17:23mstenta[m]Oh be sure to run update.php and clear caches too!
17:46FarmerEd[m]😁I did that bit,
17:51mstenta[m]The farmOS monthly call is in 10 minutes - all are welcome! farmos.org/community/monthly-call/
18:59*uploaded an image: (11KiB) < libera.ems.host/_matrix/media/r0/downloa >
19:12paul121[m]hmm I worry my browser was caching old css when I was testing Gin beta1
19:12paul121[m]the farmOS logo doesn't look too great:
19:13*uploaded an image: (5KiB) < libera.ems.host/_matrix/media/r0/downloa >
19:13*uploaded an image: (14KiB) < libera.ems.host/_matrix/media/r0/downloa >
19:14paul121[m]if/when you start using farmOS beta4 report back if you see the same :-)
19:41mstenta[m]oh yea i noticed that too! :-(
19:41mstenta[m]i think the CSS needs some tweaking to give it some space
22:31Noaht[m]<mstenta[m]> "Curious what you use that file..." <- It's just some old point cloud yield data that should really be formatted as a tif, but for whatever reason it wasn't. I spent some time trying to convert it to .tif, but kept running into problem after problem with losing pieces of the data during conversion.

< 122022-04-13⋏14 >