[21:57:50] | <Ujeeee[m]> | ACTION uploaded an image: (915KiB) < https://libera.ems.host/_matrix/media/v3/download/matrix.org/LFAkffUxydK... > |
[21:57:51] | <Ujeeee[m]> | will be really usefull if we can see inventory in this screen. So we are not needed to click the assets and navigate back and fort to review inventory. |
[01:27:16] | <Ujeeee[m]> | I enable mapbox module, and use my access token, then I upload my geoTIFF to mapbox and make "style" to use it. But it is not available in farmOS. this is just my experiment of "maybe this will work" it is really not the case? |
[01:42:43] | <FarmerEd[m]> | No, I'm afraid there is probably a little more to it than that, I believe you will need to make a custom module to load your tiles. But it shouldn't be a massive task using existing code with a little modification of a few lines of JS. |
[01:45:21] | <FarmerEd[m]> | this is the core weather map module: |
[01:45:22] | <FarmerEd[m]> | https://github.com/farmOS/farmOS/tree/616261498d87103eba3651254ac25f9f4c... |
[01:46:07] | <FarmerEd[m]> | here is a module I hacked together to add weather layers: |
[01:46:10] | <FarmerEd[m]> | https://github.com/Farmer-Eds-Shed/farmOS_OpenWeatherMap |
[01:52:10] | <FarmerEd[m]> | Mostly the difference, is renaming to make a unique module, and the tile paths in the JS, yours would end up looking more like the core module as the layers are from Mapbox anyway. |
[02:30:48] | <lordeddi[m]> | hi ☕️,... (full message at <https://libera.ems.host/_matrix/media/v3/download/libera.chat/4cecac6d91...) |
[04:16:51] | <Ujeeee[m]> | <FarmerEd[m]> "Mostly the difference, is..." <- so it is going to be new modul right? oke |
[04:19:41] | <FarmerEd[m]> | Yes, |
[04:19:41] | <FarmerEd[m]> | I'd say start a forum topic on it and you'll probably find plenty of help.. |
[04:19:41] | <FarmerEd[m]> | You should have a dev instance of farmOS for this type of tinkering so you don't break your production instance. |
[05:34:24] | <Ujeeee[m]> | I have modified the JS code and update info file, then rename the folder to "mapbox2" for now. then I compressed the folder. And I want to test installing the module in my docker development instance. Where I can do this? I actually just a line of code in JS code of mapbox module, So maybe there is more simple way to do this. |
[05:34:55] | <Ujeeee[m]> | * actually just add a line |
[05:43:21] | <FarmerEd[m]> | Well you need for it to be a module unless you make a PR that is accepted as a change to the core module. |
[05:43:21] | <FarmerEd[m]> | But with a little more development you could make it configurable via the UI to make it easier for the next person looking for the feature. |
[05:44:55] | <FarmerEd[m]> | You don't need to compress the folders for installation, just drop them into the modules folder maybe bind mount a custom modules folder for your own projects. |
[05:47:41] | <Ujeeee[m]> | FarmerEd[m]: Not really sure where the module folder is. I am using docker and only bind /opt/drupal/web/sites |
[06:09:50] | <FarmerEd[m]> | All additional modules will need binding or they will disappear after a restart as the modules folder is outside of the sites folder. |
[06:09:50] | <FarmerEd[m]> | I'm out on the farm at the moment away from computer but can provide more details later if someone else doesn't first. |
[06:12:42] | <Ujeeee[m]> | thank you, I will try my best for now. |
[06:48:39] | * explore has quit (Quit: Connection closed for inactivity) |
[06:50:45] | <Ujeeee[m]> | I did it, I just need to bind custom module correctly |
[06:50:52] | <Ujeeee[m]> | ACTION uploaded an image: (923KiB) < https://libera.ems.host/_matrix/media/v3/download/matrix.org/LvphYgrBlBt... > |
[07:07:54] | <Ujeeee[m]> | I think I did it, I put custom modules in /opt/drupal/web/sites/all/modules/custom |
[07:28:58] | * explore has joined #farmos |
[08:11:05] | <FarmerEd[m]> | Cool just needs a tab / path field in farm settings now to make it easier for anyone to enter a custom path to their own tilesets.😉 |
[08:19:07] | <mstenta[m]> | Nice job Ujeeee! |
[08:21:30] | <mstenta[m]> | Looks great! |
[08:23:44] | <mstenta[m]> | > hi ☕️,... (full message at <https://libera.ems.host/_matrix/media/v3/download/libera.chat/b68b82b50d...) |
[08:38:56] | <Ujeeee[m]> | <FarmerEd[m]> "Cool just needs a tab / path..." <- yeah just need to add more path to custome mapbox style |
[08:39:05] | <Ujeeee[m]> | s/custome/custom/ |
[13:58:45] | * explore has quit (Quit: Connection closed for inactivity) |
[16:56:27] | * explore has joined #farmos |