< 282022-08-29⋎30 >

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
13:03mstenta[m]symbioquine: It appears the snapping grid is broken in farmOS currently. I traced this issue to the `instance.addBehavior('snappingGrid');` line in `farmOS.map.behaviors.wkt.js`: github.com/farmOS/farmOS/issues/551
13:04mstenta[m]Curious if you have any ideas - when you have a chance
13:05symbioquine[m]AFAIK `getChangeEventType` was removed in one of the OL releases...
13:05symbioquine[m]I thought I'd fixed them already, but I guess I probably missed one
13:05mstenta[m]Ah ok - that would explain it! :-)
13:06mstenta[m]We did update the OL version semi-recently (before releasing 2.0.4): github.com/farmOS/farmOS-map/commit/e276
13:06mstenta[m]Should I open an issue in farmOS-map?
13:07mstenta[m]PS your suggestion for github.com/farmOS/farmOS/issues/550 works nicely - I have a commit ready to go for that
13:07symbioquine[m]I think so
13:08mstenta[m]Bug squashing this morning! 🐛🔨
13:08symbioquine[m]I noticed :)
13:11symbioquine[m]mstenta[m]: Maybe not worth it...
13:11symbioquine[m]I think we just need to create a new release with the latest commits including this one: github.com/farmOS/farmOS-map/commit/7777
13:18symbioquine[m]farmOS-map 2.0.4 was released before those fixes got in and we haven't released since then
13:21mstenta[m]Oh ok!
13:21mstenta[m]Well then... sounds like a 2.0.5 is in order :-)
13:22FarmerEd[m]Busy morning mstenta: ?
13:22mstenta[m]Ha sorry - lots of emails?
13:22mstenta[m]Finally had some time to catch up on stuff
13:48mstenta[m]symbioquine: mind if I go ahead and tag 2.0.5?
13:48symbioquine[m]Of course!
13:49mstenta[m]I'll follow our release procedure here: farmos.discourse.group/t/2-x-release-pro
13:49symbioquine[m]I was going to offer, but I'm scrambling to prototype some stuff for Asset Link...
13:49mstenta[m]Cool! I got it :-)
13:49symbioquine[m]mstenta[m]: Yep, I think that's right
13:51FarmerEd[m]<mstenta[m]> "Ha sorry - lots of emails?" <- One or 2 😉😁
14:16mstenta[m]Whelp - I accidentally pushed my `2.x` to origin before I intended too... so a bunch of things are fixed 🎉 - but I was hoping to review with paul121 before pushing - hopefully everything's good
14:16mstenta[m]fingers are too fast this morning 😬
14:18FarmerEd[m]Think you were on a mission 🎉
14:39mstenta[m]Oh symbioquine forgot to ask... are you interested/available to join the Human Centered Design session on farmOS-map stuff this Wednesday at 1 pm Eastern? I can get you included on the invite if you aren't already.
14:39mstenta[m]paul121: you too! Not sure if you saw that
14:39symbioquine[m]Yeah, definitely!
15:41*GudjonEinarMagnu has joined
15:47paul121[m]<mstenta[m]> "paul121: you too! Not sure if..." <- I hadn't! Will definitely try to make it!
15:48paul121[m]I'll be there
16:31*uploaded a video: (541KiB) < libera.ems.host/_matrix/media/r0/downloa >
16:33FarmerEd[m]Cool
16:35*uploaded a video: (722KiB) < libera.ems.host/_matrix/media/r0/downloa >
16:36FarmerEd[m]Needs a baler counter plugin now for stock adjustment at the end of baling. 😉
16:37FarmerEd[m]Could be an excuse to put an android head unit in the tractor.
16:44mstenta[m]wait wait wait wait wait... are you editing plugins on the fly?
16:45symbioquine[m]Yeah
16:45mstenta[m]🤯
16:47symbioquine[m]The toolbar "config action" menu item is defined by a plugin. In the first clip, I edited that plugin to change its icon from a gear to a horse. Under the hood that copies/disables the default plugin (which is loaded over http) into the indexeddb local storage as part of saving the change. Thus, upon save, the old plugin is disabled and the new plugin is loaded.
16:47symbioquine[m]In the second clip, I copied the plugin example from [here](symbioquine.github.io/farmOS_asset_link/) and saved it as a new plugin.
16:48mstenta[m]newb question: do `*.vue` plugins need to be transpiled? or does vue just process them on the fly?
16:48mstenta[m](I know very little about vue)
16:48symbioquine[m]It wouldn't normally...
16:48mstenta[m]based on this i'm assuming the latter
16:48symbioquine[m]But Asset Link uses a fancy runtime library for that...
16:48mstenta[m]ahh
16:48symbioquine[m]github.com/FranckFreiburger/vue3-sfc-loa
16:49mstenta[m]wow
16:51symbioquine[m]symbioquine[m]: This opens up all sorts of interesting possible workflows...
16:51symbioquine[m]* Iterating on the default plugins and later opening a PR for Asset Link
16:51symbioquine[m]* Customizing the default plugins and uploading them somewhere (e.g. a GitHub Gist) and sharing the url so others can test it out in a peer-to-peer fashion
16:51symbioquine[m]* Customizing the default plugins and sharing them with the site admin so they can serve it as the default for other users of the farmOS installation
16:52mstenta[m]Veeeery cool
16:53mstenta[m]Also a bit scary 😅
16:53symbioquine[m]And, of course, for farmOS installations where the admins don't want their users messing with plugins at all, the whole "Manage plugins" plugin can be disabled.
16:56symbioquine[m]Obviously, that just makes it harder, not impossible, for users to run their own code. The users' browsers are their own so they could run whatever they want via the developer tools JS console or a [user script](www.tampermonkey.net/).
16:56symbioquine[m](including loading a copy of the "Manage plugins" plugin 😆)
16:57symbioquine[m]* their own, so
17:02symbioquine[m]<FarmerEd[m]> "Needs a baler counter plugin now..." <- What does your data model look like for tracking the stock?
17:26*uploaded a video: (206KiB) < libera.ems.host/_matrix/media/r0/downloa >
17:27FarmerEd[m]Pretty much like that but..............
17:28symbioquine[m]gist.github.com/symbioquine/370e0a2b6797
17:28FarmerEd[m]I'd been toying with the idea for a while about using a microcontroller to count the bales as made then do exactly that at the end
17:29FarmerEd[m]You wasted no time on that either
17:29symbioquine[m]It was based on gist.github.com/symbioquine/7f1d67f504ab
17:31FarmerEd[m]ah, makes sense.
17:36FarmerEd[m]Honestly even without the microcontroller to count the bales that solution would be ideal on a cheap android head unit in the tractor (or Just on the Phone to be fair). A second option for bales used as feeding out would complete it.
17:40FarmerEd[m]You don't need to go out of your way for that one, I could give it a go if I find time later as a first attempt at looking at your plugins
17:40symbioquine[m]Should be a simple modification of the one I just prototyped :)
17:41FarmerEd[m]Yea, sometimes I need simple to start
17:42FarmerEd[m]Did you release the version with the editor yet?
17:42symbioquine[m]No, just hacked that up yesterday/today mornings...
17:43symbioquine[m]Soon I hope
17:43FarmerEd[m]Grand and adding a plugin by url, can just point at a file on github?
17:44symbioquine[m]Yeah... it needs to be the raw URL of a specific file
17:44symbioquine[m]e.g. gist.githubusercontent.com/symbioquine/3
17:45FarmerEd[m]And they are just stored in browser cache then?
17:45symbioquine[m]Yeah, in indexeddb
17:46symbioquine[m]FarmerEd[m]: obviously, caution should be exercised with that feature since it could be a security risk if you point at untrusted sources/domains
17:46symbioquine[m]I need to add a warning to the UI about that
17:52FarmerEd[m]Anyway, looks great I'll have a better look a little later on and I'll let you know how I get on.
18:31*RafatKhashan[m] has joined
21:01mstenta[m]cc Farmer Ed ^
21:01mstenta[m]Just opened a PR to fix the circular group membership issue: github.com/farmOS/farmOS/issues/561
21:01mstenta[m]s/561/562/

< 282022-08-29⋏30 >