| [04:36:40] | * komatek[m] has joined #farmos |
| [10:49:41] | <symbioquine[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? |
| [12:29:47] | * JustTB has joined #farmos |
| [12:56:30] | * ludwa6 has joined #farmos |
| [12:57:22] | <ludwa6> | g’day room. Anybody out there using the PWA (Progressive Web App) to access a farmOS server? |
| [12:58:54] | <ludwa6> | cuz @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. |
| [13:09:05] | <ludwa6> | whups -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 . |
| [13:09:28] | * ludwa6 has quit (Quit: ludwa6) |
| [13:11:19] | <jgaehring[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 |
| [13:16:42] | <mstenta[m]> | Great! So glad to hear that ludwa6 ! |
| [13:17:05] | <mstenta[m]> | Yes, the Oauth piece has been a long time coming - so this is the fire under our butts to finally do it. :-) |
| [13:17:19] | <mstenta[m]> | Issue link: https://github.com/farmOS/farmOS-client/issues/311 |
| [13:26:06] | <mstenta[m]> | Reminder to everyone: the farmOS monthly call is today! |
| [13:26:10] | <mstenta[m]> | In about half an hour :-) |
| [13:26:15] | <mstenta[m]> | https://farmos.org/community/monthly-call/ |
| [13:26:47] | <mstenta[m]> | I believe the plan is to talk about farmOS customization and module development a bit... and record it for posterity. |
| [13:27:16] | <mstenta[m]> | Nick at Botl Farm put together a rough agenda for that: https://docs.google.com/document/d/1yO15xdGGH4YkqhRXjtAkmI6SZy0uelwN3w2k... |
| [13:39:38] | * JustTB has quit (Ping timeout: 256 seconds) |
| [14:18:06] | * JustTB has joined #farmos |
| [14:21:35] | <skipper_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? |
| [16:13:50] | <mstenta[m]> | Here is the recording of today's monthly call: |
| [16:13:52] | <mstenta[m]> | https://youtu.be/V1oTO3QSSWY |
| [16:14:00] | <mstenta[m]> | I will post this to the forum as well |
| [16:16:36] | <mstenta[m]> | https://farmos.discourse.group/t/video-developing-farmos/299 |
| [16:18:19] | <paul121[m]> | that was a really great overview of Views and Features! Learned a lot! Glad we recorded it 👍️ |
| [16:23:32] | <skipper_is[m]> | Yea, I've already made a dashboard hook based on what was discussed |
| [16:23:57] | <mstenta[m]> | Excellent! |
| [16:25:55] | <skipper_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 |
| [16:28:09] | <mstenta[m]> | Ah! Interesting |
| [16:28:38] | <mstenta[m]> | So... what I would probably recommend doing FIRST is just calculating that and dynamically sticking that into the Animal record page itself |
| [16:29:38] | <mstenta[m]> | eg: where it says "Date of birth: Sunday, January 4, 2015" - might be able to just tack on " (X days/weeks/years old)" |
| [16:29:42] | <skipper_is[m]> | Yea, would be useful to have anyway |
| [16:29:42] | <mstenta[m]> | this is actually something I've wanted too :-) |
| [16:31:43] | <skipper_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 |
| [16:31:48] | <skipper_is[m]> | Etc |
| [16:31:50] | <mstenta[m]> | skipper_is: IN FACT..... |
| [16:31:53] | <mstenta[m]> | https://github.com/farmOS/farmOS/blob/7.x-1.x/modules/farm/farm_livestoc... |
| [16:31:54] | <mstenta[m]> | that is the function we can do it in |
| [16:32:09] | <mstenta[m]> | i already added a bit of code there to automatically link the birthdate to a birth log, if one exists |
| [16:33:28] | <skipper_is[m]> | I'd still be tempted to have another heading for age |
| [16:33:55] | <mstenta[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 |
| [16:33:55] | <mstenta[m]> | i wonder if we could just use something like https://www.php.net/manual/en/function.date-diff.php |
| [16:34:34] | <skipper_is[m]> | Sorted! I was thinking I'd have to roll my own |
| [16:34:58] | <mstenta[m]> | https://stackoverflow.com/questions/20972565/php-time-ago-in-years-month... |
| [16:35:17] | <mstenta[m]> | yea might be a few ways to do it - but yea hopefully we can use something that already exists |
| [16:35:20] | <mstenta[m]> | less decisions to make :-) |
| [16:35:36] | <skipper_is[m]> | Indeed |
| [16:36:04] | <mstenta[m]> | > I'd still be tempted to have another heading for age |
| [16:36:04] | <mstenta[m]> | yea - it would be cool to have a Views Field handler too... so it could be a column on the Assets > Animals table |
| [16:36:10] | <skipper_is[m]> | I suspect it would be best of it showed days/weeks/months, rather than choosing automatically... |
| [16:36:10] | <mstenta[m]> | that's a bit more complicated |
| [16:36:14] | <mstenta[m]> | but certainly doable |
| [16:36:31] | <skipper_is[m]> | Or yea, we make a configuration option |
| [16:36:46] | <skipper_is[m]> | Views column isn't as simple as a hook? |
| [16:36:57] | <mstenta[m]> | (Views would be more complicated i mean) |
| [16:37:28] | <skipper_is[m]> | I was hoping it would just be hook_asset_livestock_view_column() |
| [16:37:44] | <mstenta[m]> | yea... so Views is very object oriented, so it would involve creating a new PHP class |
| [16:37:53] | <mstenta[m]> | not hard... but a bit of a different process |
| [16:38:39] | <skipper_is[m]> | I suppose we could just so it in core.. |
| [16:38:41] | <mstenta[m]> | ACTION sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/xSjAwhUEMprpgbrG... > |
| [16:38:58] | <mstenta[m]> | mmm yea - i think that's what i would suggest/prefer |
| [16:39:17] | <mstenta[m]> | altering Views config is possible... but i tend to avoid it |
| [16:39:28] | <mstenta[m]> | (overriding via hooks i mean) |
| [16:39:52] | <skipper_is[m]> | Yea, but just adding that into it would be more straight forward |
| [16:41:11] | <mstenta[m]> | agreed |
| [16:41:34] | <skipper_is[m]> | I can have a look at it tomorrow if you like |
| [16:42:51] | <skipper_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... |
| [16:44:50] | <mstenta[m]> | Nope - that's set by the db |
| [16:45:22] | <mstenta[m]> | I really think figuring out how to do a pgsql dump -> mysql import would be the best approach |
| [16:45:55] | <mstenta[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 |
| [16:56:12] | <paul121[m]> | Quick question.. |
| [16:56:33] | <paul121[m]> | The Map isn't displaying on the farmOS dashboard page |
| [16:56:50] | <paul121[m]> | I have a Google API key and have created an area |
| [16:57:13] | <paul121[m]> | Is there anything else you need before that displays? (I don't see the `toggle map` button either) |
| [16:57:22] | <paul121[m]> | Map displays on the Areas page |
| [16:58:20] | <mstenta[m]> | hmm |
| [16:58:30] | <mstenta[m]> | if you don't see toggle map that suggests the map isn't being loaded at all |
| [16:58:37] | <mstenta[m]> | any errors in console? |
| [16:58:38] | <mstenta[m]> | clear cache? |
| [16:58:43] | <mstenta[m]> | did you update version recently? |
| [16:59:11] | <paul121[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”.` |
| [16:59:16] | <paul121[m]> | fresh install of farmOS |
| [17:00:25] | <mstenta[m]> | hmmmmm |
| [17:00:26] | <mstenta[m]> | i gotta run |
| [17:00:32] | <mstenta[m]> | but might ask more questions via chat.... |
| [17:00:37] | <paul121[m]> | map loads fine on the Areas page (added an area, referencing a custom map layer) |
| [17:00:47] | <paul121[m]> | no prob |
| [17:04:11] | <mstenta[m]> | Weird |
| [17:04:17] | <mstenta[m]> | That zoom message is unrelated |
| [17:04:44] | <mstenta[m]> | I get that too |
| [17:05:11] | <mstenta[m]> | Not sure what it is but assuming it is upstream Openlayers |
| [17:07:41] | <paul121[m]> | tried chrome and firefox :/ |
| [17:07:51] | <paul121[m]> | its just the "Map Banner" |
| [17:38:09] | <mstenta[m]> | So strange. Are you using the 1.3 release? |
| [17:38:24] | <mstenta[m]> | Or 7.x-1.x branch? |
| [17:39:54] | <mstenta[m]> | New installs on Farmier are working, fwiw |
| [17:45:29] | <paul121[m]> | 7.x.-1.x |
| [17:45:49] | <paul121[m]> | the farmOS/farmos:dev image |