[09:03:53] | <mstenta[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`: https://github.com/farmOS/farmOS/issues/551 |
[09:04:05] | <mstenta[m]> | Curious if you have any ideas - when you have a chance |
[09:05:05] | <symbioquine[m]> | AFAIK `getChangeEventType` was removed in one of the OL releases... |
[09:05:19] | <symbioquine[m]> | I thought I'd fixed them already, but I guess I probably missed one |
[09:05:35] | <mstenta[m]> | Ah ok - that would explain it! :-) |
[09:06:08] | <mstenta[m]> | We did update the OL version semi-recently (before releasing 2.0.4): https://github.com/farmOS/farmOS-map/commit/e2762c92d9f938e318119224ea95... |
[09:06:54] | <mstenta[m]> | Should I open an issue in farmOS-map? |
[09:07:42] | <mstenta[m]> | PS your suggestion for https://github.com/farmOS/farmOS/issues/550 works nicely - I have a commit ready to go for that |
[09:07:43] | <symbioquine[m]> | I think so |
[09:08:03] | <mstenta[m]> | Bug squashing this morning! 🐛🔨 |
[09:08:11] | <symbioquine[m]> | I noticed :) |
[09:11:28] | <symbioquine[m]> | mstenta[m]: Maybe not worth it... |
[09:11:52] | <symbioquine[m]> | I think we just need to create a new release with the latest commits including this one: https://github.com/farmOS/farmOS-map/commit/777758f7218499e2211c5d75c1fa... |
[09:18:46] | <symbioquine[m]> | farmOS-map 2.0.4 was released before those fixes got in and we haven't released since then |
[09:21:19] | <mstenta[m]> | Oh ok! |
[09:21:34] | <mstenta[m]> | Well then... sounds like a 2.0.5 is in order :-) |
[09:22:34] | <FarmerEd[m]> | Busy morning mstenta: ? |
[09:22:42] | <mstenta[m]> | Ha sorry - lots of emails? |
[09:22:55] | <mstenta[m]> | Finally had some time to catch up on stuff |
[09:48:41] | <mstenta[m]> | symbioquine: mind if I go ahead and tag 2.0.5? |
[09:48:51] | <symbioquine[m]> | Of course! |
[09:49:09] | <mstenta[m]> | I'll follow our release procedure here: https://farmos.discourse.group/t/2-x-release-procedure/1070/4?u=mstenta |
[09:49:21] | <symbioquine[m]> | I was going to offer, but I'm scrambling to prototype some stuff for Asset Link... |
[09:49:34] | <mstenta[m]> | Cool! I got it :-) |
[09:49:53] | <symbioquine[m]> | mstenta[m]: Yep, I think that's right |
[09:51:02] | <FarmerEd[m]> | <mstenta[m]> "Ha sorry - lots of emails?" <- One or 2 😉😁 |
[10:16:10] | <mstenta[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 |
[10:16:29] | <mstenta[m]> | fingers are too fast this morning 😬 |
[10:18:51] | <FarmerEd[m]> | Think you were on a mission 🎉 |
[10:39:28] | <mstenta[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. |
[10:39:41] | <mstenta[m]> | paul121: you too! Not sure if you saw that |
[10:39:47] | <symbioquine[m]> | Yeah, definitely! |
[11:41:03] | * GudjonEinarMagnu has joined #farmos |
[11:47:46] | <paul121[m]> | <mstenta[m]> "paul121: you too! Not sure if..." <- I hadn't! Will definitely try to make it! |
[11:48:43] | <paul121[m]> | I'll be there |
[12:31:55] | <symbioquine[m]> | ACTION uploaded a video: (541KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/RAYAhFHwgxh... > |
[12:33:03] | <FarmerEd[m]> | Cool |
[12:35:49] | <symbioquine[m]> | ACTION uploaded a video: (722KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/ZQSOatCjpym... > |
[12:36:51] | <FarmerEd[m]> | Needs a baler counter plugin now for stock adjustment at the end of baling. 😉 |
[12:37:35] | <FarmerEd[m]> | Could be an excuse to put an android head unit in the tractor. |
[12:44:57] | <mstenta[m]> | wait wait wait wait wait... are you editing plugins on the fly? |
[12:45:04] | <symbioquine[m]> | Yeah |
[12:45:07] | <mstenta[m]> | 🤯 |
[12:47:05] | <symbioquine[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. |
[12:47:58] | <symbioquine[m]> | In the second clip, I copied the plugin example from [here](https://symbioquine.github.io/farmOS_asset_link/assetlink-plugin-api/tut...) and saved it as a new plugin. |
[12:48:16] | <mstenta[m]> | newb question: do `*.vue` plugins need to be transpiled? or does vue just process them on the fly? |
[12:48:22] | <mstenta[m]> | (I know very little about vue) |
[12:48:34] | <symbioquine[m]> | It wouldn't normally... |
[12:48:38] | <mstenta[m]> | based on this i'm assuming the latter |
[12:48:44] | <symbioquine[m]> | But Asset Link uses a fancy runtime library for that... |
[12:48:50] | <mstenta[m]> | ahh |
[12:48:56] | <symbioquine[m]> | https://github.com/FranckFreiburger/vue3-sfc-loader |
[12:49:19] | <mstenta[m]> | wow |
[12:51:53] | <symbioquine[m]> | symbioquine[m]: This opens up all sorts of interesting possible workflows... |
[12:51:53] | <symbioquine[m]> | * Iterating on the default plugins and later opening a PR for Asset Link |
[12:51:53] | <symbioquine[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 |
[12:51:53] | <symbioquine[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 |
[12:52:58] | <mstenta[m]> | Veeeery cool |
[12:53:11] | <mstenta[m]> | Also a bit scary 😅 |
[12:53:17] | <symbioquine[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. |
[12:56:02] | <symbioquine[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](https://www.tampermonkey.net/). |
[12:56:45] | <symbioquine[m]> | (including loading a copy of the "Manage plugins" plugin 😆) |
[12:57:08] | <symbioquine[m]> | * their own, so |
[13:02:17] | <symbioquine[m]> | <FarmerEd[m]> "Needs a baler counter plugin now..." <- What does your data model look like for tracking the stock? |
[13:26:01] | <symbioquine[m]> | ACTION uploaded a video: (206KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/XmERBNnXkEx... > |
[13:27:32] | <FarmerEd[m]> | Pretty much like that but.............. |
[13:28:35] | <symbioquine[m]> | https://gist.github.com/symbioquine/370e0a2b6797564a3a3f3985b099aa2c |
[13:28:39] | <FarmerEd[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 |
[13:29:25] | <FarmerEd[m]> | You wasted no time on that either |
[13:29:53] | <symbioquine[m]> | It was based on https://gist.github.com/symbioquine/7f1d67f504ab427c5d7e673baee01c65 |
[13:31:01] | <FarmerEd[m]> | ah, makes sense. |
[13:36:30] | <FarmerEd[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. |
[13:40:02] | <FarmerEd[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 |
[13:40:31] | <symbioquine[m]> | Should be a simple modification of the one I just prototyped :) |
[13:41:15] | <FarmerEd[m]> | Yea, sometimes I need simple to start |
[13:42:24] | <FarmerEd[m]> | Did you release the version with the editor yet? |
[13:42:47] | <symbioquine[m]> | No, just hacked that up yesterday/today mornings... |
[13:43:02] | <symbioquine[m]> | Soon I hope |
[13:43:50] | <FarmerEd[m]> | Grand and adding a plugin by url, can just point at a file on github? |
[13:44:21] | <symbioquine[m]> | Yeah... it needs to be the raw URL of a specific file |
[13:44:40] | <symbioquine[m]> | e.g. https://gist.githubusercontent.com/symbioquine/370e0a2b6797564a3a3f3985b... |
[13:45:14] | <FarmerEd[m]> | And they are just stored in browser cache then? |
[13:45:41] | <symbioquine[m]> | Yeah, in indexeddb |
[13:46:17] | <symbioquine[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 |
[13:46:32] | <symbioquine[m]> | I need to add a warning to the UI about that |
[13:52:31] | <FarmerEd[m]> | Anyway, looks great I'll have a better look a little later on and I'll let you know how I get on. |
[14:31:45] | * RafatKhashan[m] has joined #farmos |
[17:01:01] | <mstenta[m]> | cc Farmer Ed ^ |
[17:01:02] | <mstenta[m]> | Just opened a PR to fix the circular group membership issue: https://github.com/farmOS/farmOS/issues/561 |
[17:01:04] | <mstenta[m]> | s/561/562/ |