< 142022-02-15⋎16 >

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
03:23*jonasbits has quit (Ping timeout: 252 seconds)
03:27*jonasbits has joined
05:22*UgeshB[m] has joined
05:23UgeshB[m]@here i am not able get the files i uploaded through api as well as in UI i am getting the below error. someone please help me to resolve the issue ERROR: "Error generating image, missing source file."
16:58symbioquine[m]There were a few gotchas, but I figured out how to do KML Import with JupyterLite too: farmos.discourse.group/t/share-your-jupy
16:58*uploaded an image: (986KiB) < libera.ems.host/_matrix/media/r0/downloa >
16:58mstenta[m]Whoa!
17:12paul121[m]> from pyodide.http import pyfetch
17:12paul121[m]this looks useful :-)
17:12symbioquine[m]Yeah
17:12symbioquine[m]pyodide.org/en/stable/usage/api/python-a
17:14paul121[m]so once concern I have with building importers here..... creating duplicate data by running the notebook twice
17:15paul121[m]each time I've tested these notebooks I feel like I click "run" multiple times, and in different places, before I end up seeing the result
17:15paul121[m]maybe I need to be more patient/get a better understanding for how this works..
17:15paul121[m]but I see this being an issue! any ideas on how to protect against that?
17:17symbioquine[m]paul121[m]: Create a "UUID mapping file" ahead of time, then write those IDs along with each entry...
17:18symbioquine[m]Such a file could be a JSON file with entries like `{"ALABAMA": "2f087aad-68e2-441b-8484-cb4ce5a3cd45"...}`
17:18symbioquine[m]For the states KML import example that is.
17:19symbioquine[m]Then the importer can catch the HTTP 409 conflict error and skip those.
17:20symbioquine[m]That's how I'd do it.
17:20paul121[m]Ah interesting, 409 error. Cool
17:20symbioquine[m]Obviously, these are just proofs of concept. Everybody's use-cases will differ.
17:20symbioquine[m]In some cases it might make sense to modify the source data to include those UUIDs or use some other value for deduplicating the data.
17:23*uploaded an image: (36KiB) < libera.ems.host/_matrix/media/r0/downloa >
17:26*uploaded an image: (12KiB) < libera.ems.host/_matrix/media/r0/downloa >
17:27symbioquine[m]<paul121[m]> "each time I've tested these..." <- I wonder if perhaps the kernel wasn't fully initialized so it just queued up the cell executions?
17:27symbioquine[m]It takes a bit for it to download all the relevant packages and start up.
17:30paul121[m]Yeah that's possible. I think I noticed this more when trying some of the various jupyterlite "lab demo" notebooks - there are some examples each using different graphing/mapping libraries.. probably takes some time to load each of those
17:42paul121[m]hard to link to these in the live environment, but there is an example that pulls in geojson to a leaflet map.. then graphs data associated with each geojson feature.. github.com/jupyterlite/jupyterlite/blob/
17:43paul121[m]seems like pulling in geojson from farmOS is some low-hanging fruit :-)
17:46symbioquine[m]Hmmm, I should test that again... I think I found it needed extensions that weren't included by default in JupyterLite
17:48paul121[m]ah hmm. yeah I'm not sure how they got it configured but it was this "demo" environment: jupyterlite.readthedocs.io/en/latest/_st
17:50symbioquine[m]Cool
19:36symbioquine[m]I guess they're pulling in all this stuff: github.com/jupyterlite/jupyterlite/blob/
20:16symbioquine[m]I think the build is orchestrated in [dodo.py](github.com/jupyterlite/jupyterlite/blob/) - it might just be me, but I don't find that to be an intuitive workflow declaration pattern/format 😒
23:04*jonasbits has quit (Ping timeout: 252 seconds)
23:25*botlfarm[m] has joined

< 142022-02-15⋏16 >