< 072020-04-08⋎09 >

farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Feature requests and bug reports: github.com/farmOS/farmOS/issuesSet by ChanServ on 2018-08-16 at 14:32
08:36*komatek[m] has joined
14:49symbioquine[m]Is there a reason many of the modules in the farmOS github don't have license files checked in? e.g. farm_eggs, farm_bee, farm_map_no. Couldn't this conceivably be considered a blocker for safely creating derivative code?
16:29*JustTB has joined
16:56*ludwa6 has joined
16:57ludwa6g’day room. Anybody out there using the PWA (Progressive Web App) to access a farmOS server?
16:58ludwa6cuz @mstenta sez i should be able to login to my instance af Farmier via Safari on iOS, but it’s not working for me. So i’m wondering if it’s JUST me, or a larger issue.
17:09ludwa6whups -forget what i said; problem solved. Turns out my browser was remembering an older version of the PWA (0.4.15)… But when i logged in using a fresh tab in Safari (and the “prevent cross-stie tracking” feature disabled; that is the catch), now it works. Thanks for the fix, mstenta and jgaehring .
17:09*ludwa6 has quit (Quit: ludwa6)
17:11jgaehring[m]cool, glad you got it working! and we should have a better fix in place sometime soon, so you no longer need to disable that feature as a workaround
17:16mstenta[m]Great! So glad to hear that ludwa6 !
17:17mstenta[m]Yes, the Oauth piece has been a long time coming - so this is the fire under our butts to finally do it. :-)
17:17mstenta[m]Issue link: github.com/farmOS/farmOS-client/issues/3
17:26mstenta[m]Reminder to everyone: the farmOS monthly call is today!
17:26mstenta[m]In about half an hour :-)
17:26mstenta[m]farmos.org/community/monthly-call/
17:26mstenta[m]I believe the plan is to talk about farmOS customization and module development a bit... and record it for posterity.
17:27mstenta[m]Nick at Botl Farm put together a rough agenda for that: docs.google.com/document/d/1yO15xdGGH4Yk
17:39*JustTB has quit (Ping timeout: 256 seconds)
18:18*JustTB has joined
18:21skipper_is[m]Question RE the columns, can we add columns from another module? Eg, if I had a module that added an extra field to animal records, could it be added to the animal table?
20:13mstenta[m]Here is the recording of today's monthly call:
20:13mstenta[m]youtu.be/V1oTO3QSSWY
20:14mstenta[m]I will post this to the forum as well
20:16mstenta[m]farmos.discourse.group/t/video-developin
20:18paul121[m]that was a really great overview of Views and Features! Learned a lot! Glad we recorded it 👍️
20:23skipper_is[m]Yea, I've already made a dashboard hook based on what was discussed
20:23mstenta[m]Excellent!
20:25skipper_is[m]I'm going to have to pick your brains about a view hook, adding an additional column to the animals list/table that gives age in weeks/months/years
20:28mstenta[m]Ah! Interesting
20:28mstenta[m]So... what I would probably recommend doing FIRST is just calculating that and dynamically sticking that into the Animal record page itself
20:29mstenta[m]eg: where it says "Date of birth: Sunday, January 4, 2015" - might be able to just tack on " (X days/weeks/years old)"
20:29skipper_is[m]Yea, would be useful to have anyway
20:29mstenta[m]this is actually something I've wanted too :-)
20:31skipper_is[m]I'm just trying to figure out whether to do all 3, or do days up to like 3 weeks, then weeks up to X months
20:31skipper_is[m]Etc
20:31mstenta[m]skipper_is: IN FACT.....
20:31mstenta[m]github.com/farmOS/farmOS/blob/7.x-1.x/mo
20:31mstenta[m]that is the function we can do it in
20:32mstenta[m]i already added a bit of code there to automatically link the birthdate to a birth log, if one exists
20:33skipper_is[m]I'd still be tempted to have another heading for age
20:33mstenta[m]> I'm just trying to figure out whether to do all 3, or do days up to like 3 weeks, then weeks up to X months
20:33mstenta[m]i wonder if we could just use something like www.php.net/manual/en/function.date-diff
20:34skipper_is[m]Sorted! I was thinking I'd have to roll my own
20:34mstenta[m]stackoverflow.com/questions/20972565/php
20:35mstenta[m]yea might be a few ways to do it - but yea hopefully we can use something that already exists
20:35mstenta[m]less decisions to make :-)
20:35skipper_is[m]Indeed
20:36mstenta[m]> I'd still be tempted to have another heading for age
20:36mstenta[m]yea - it would be cool to have a Views Field handler too... so it could be a column on the Assets > Animals table
20:36skipper_is[m]I suspect it would be best of it showed days/weeks/months, rather than choosing automatically...
20:36mstenta[m]that's a bit more complicated
20:36mstenta[m]but certainly doable
20:36skipper_is[m]Or yea, we make a configuration option
20:36skipper_is[m]Views column isn't as simple as a hook?
20:36mstenta[m](Views would be more complicated i mean)
20:37skipper_is[m]I was hoping it would just be hook_asset_livestock_view_column()
20:37mstenta[m]yea... so Views is very object oriented, so it would involve creating a new PHP class
20:37mstenta[m]not hard... but a bit of a different process
20:38skipper_is[m]I suppose we could just so it in core..
20:38*sent a long message: < matrix.org/_matrix/media/r0/download/mat >
20:38mstenta[m]mmm yea - i think that's what i would suggest/prefer
20:39mstenta[m]altering Views config is possible... but i tend to avoid it
20:39mstenta[m](overriding via hooks i mean)
20:39skipper_is[m]Yea, but just adding that into it would be more straight forward
20:41mstenta[m]agreed
20:41skipper_is[m]I can have a look at it tomorrow if you like
20:42skipper_is[m]Also, can you create an asset with a specific asset ID? Or is that set by the DB? I'm just thinking about migrating from PgSQL to mySQL and the easiest way to do that with my 700+ logs...
20:44mstenta[m]Nope - that's set by the db
20:45mstenta[m]I really think figuring out how to do a pgsql dump -> mysql import would be the best approach
20:45mstenta[m]It just seems like there's some tweaks needed to get that to work... but it's a pretty general problem so I'm sure we could find some better how-tos online
20:56paul121[m]Quick question..
20:56paul121[m]The Map isn't displaying on the farmOS dashboard page
20:56paul121[m]I have a Google API key and have created an area
20:57paul121[m]Is there anything else you need before that displays? (I don't see the `toggle map` button either)
20:57paul121[m]Map displays on the Areas page
20:58mstenta[m]hmm
20:58mstenta[m]if you don't see toggle map that suggests the map isn't being loaded at all
20:58mstenta[m]any errors in console?
20:58mstenta[m]clear cache?
20:58mstenta[m]did you update version recently?
20:59paul121[m]`This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”.`
20:59paul121[m]fresh install of farmOS
21:00mstenta[m]hmmmmm
21:00mstenta[m]i gotta run
21:00mstenta[m]but might ask more questions via chat....
21:00paul121[m]map loads fine on the Areas page (added an area, referencing a custom map layer)
21:00paul121[m]no prob
21:04mstenta[m]Weird
21:04mstenta[m]That zoom message is unrelated
21:04mstenta[m]I get that too
21:05mstenta[m]Not sure what it is but assuming it is upstream Openlayers
21:07paul121[m]tried chrome and firefox :/
21:07paul121[m]its just the "Map Banner"
21:38mstenta[m]So strange. Are you using the 1.3 release?
21:38mstenta[m]Or 7.x-1.x branch?
21:39mstenta[m]New installs on Farmier are working, fwiw
21:45paul121[m]7.x.-1.x
21:45paul121[m]the farmOS/farmos:dev image

< 072020-04-08⋏09 >