IRC logs for #farmOS, 2019-07-30 (GMT)

2019-07-29
2019-07-31
TimeNickMessage
[20:41:29]* Unruly247 has quit (Quit: Leaving)
[20:55:29]* Unruly247 has joined #farmos
[22:50:42]* JustTB has quit (Ping timeout: 248 seconds)
[23:04:34]* JustTB has joined #farmos
[00:37:51]* Unruly247 has quit (Quit: Leaving)
[04:05:34]* JustTB has quit (Ping timeout: 258 seconds)
[04:23:06]* JustTB has joined #farmos
[16:35:38]<skipper_is[m]>Another question - Allowed file types... Is there any way of changing these? I'm having a poke and am looking at file_validate_extensions in the code which I feel like is what I'm after, but I've also seen the File module is the place to go - and you can apparently change that through the Fields UI... But I am having no such luck
[16:39:44]<mstenta[m]>@skipper_is:matrix.org: this might be what you're looking for:
[16:39:47]<mstenta[m]>https://github.com/farmOS/farmOS/blob/7.x-1.x/modules/farm/farm_fields/f...
[16:40:27]<mstenta[m]>farmOS takes a bit of a heavy handed approach by overriding the default file types using that function
[16:41:45]<mstenta[m]>The benefit is they can be edited in one place
[16:42:22]<mstenta[m]>If there are new types you think we should add, make a pull request!
[16:42:44]<mstenta[m]>Then you don't have to worry about maintaining your change between versions...
[16:43:05]<mstenta[m]>Or alternatively we could add a hook so you can add file types via your own custom module
[16:46:12]<skipper_is[m]>Ah ok, so the file types are hardcoded
[16:46:21]<skipper_is[m]>I was wondering whether there was an option hidden away somewhere in a secret menu
[16:46:48]<skipper_is[m]>I do some field walks occasionally with a dictaphone, so it'd be nice to be able to store the mp3/wav files to listen back to
[16:47:02]<mstenta[m]>Yea typically with Drupal, you configure that on each field separately
[16:47:05]<skipper_is[m]>So I'll do a pull
[16:47:16]<mstenta[m]>But that's redundant for us
[16:47:20]<skipper_is[m]>Yea, hence why I went down the Fields UI module
[16:47:21]<skipper_is[m]>Ah kk
[16:47:43]<mstenta[m]>Cool, yea make a PR! Audio file types are a great idea
[16:51:11]<skipper_is[m]>Any idea what apple/iphones use for their audio format? My android does wav or mp3... but I'm sure there are other commonly used formats
[16:51:16]<skipper_is[m]>I think OGG is one
[16:51:26]<mstenta[m]>Hmm not sure
[16:51:31]<mstenta[m]>We can always add more later
[16:51:35]<skipper_is[m]>True
[16:52:00]<mstenta[m]>Wav, mp3, and ogg are a good start
[16:52:27]<mstenta[m]>(then there's video formats... But that's a whole other can of worms) :-)
[16:53:41]<skipper_is[m]>Ooo, big file sizes too.. And would need an efficient way of delivering them...
[16:53:55]<skipper_is[m]>I'll stick to <a hrefs> in the description linking to a youtube video...
[16:54:36]<mstenta[m]>yea... video is tricky to host
[16:54:43]<mstenta[m]>storing the files is step 1
[16:55:01]<mstenta[m]>but streaming requires additional server stuff
[16:55:02]<mstenta[m]>afaik
[16:55:15]<mstenta[m]>youtube is a good option if you don't mind storing them there
[16:55:46]<mstenta[m]>thanks for the PR! will merge it in when i'm at my laptop tomorrow
[16:56:21]<skipper_is[m]>No problem, I look forward to using it!
[16:58:16]<skipper_is[m]>Has anyone used FarmOS with cell/mob/strip grazing, how did you map out/record the sections? Did you map them, or just say like 25% of the field?
[17:08:29]<skipper_is[m]>Also, can I make a change to the module code and have it affect the site, or does it need to be installed or something...
[18:42:00]<mstenta[m]>skipper_is: One way of doing that is by defining a specific geometry for your movements
[18:42:02]<mstenta[m]>See the last paragraph of this page: https://farmos.org/guide/location/
[18:43:19]<mstenta[m]>In that way, you only create your permanent paddocks as "Areas", and you can create more specific strip geometry on each movement log to designate specifically where in the paddock they were moved to
[18:44:07]<mstenta[m]>The Grazing module (https://github.com/farmOS/farm_grazing) doesn't give you the ability to define movement-specific geometries when you are planning, but you can open the logs that it creates and change the geometry manually
[18:44:21]<mstenta[m]>It just uses the overall paddock Area geometry