< 042024-08-05⋎06 >

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
16:43symbioquine[m]github.com/farmOS/farmOS/pull/864 should be ready for review!
16:44symbioquine[m]Resulting tags/manifests: hub.docker.com/repository/docker/symbioq
16:47symbioquine[m]For those following along at home, docker run -p 80:80 --rm symbioquine/farmos works on X86_64 and Arm32v7/Arm64v8 architectures (I plan on deleting Docker hub symbioquine/farmos once the PR is merged, so don't depend on it for anything.)
18:20*middyeasy[m] has joined
18:22middyeasy[m]Hello All. First time on and so hope i have the right forum to ask my question. In regards to FarmOS and Android based survey apps. I was wondering if you all knew which Android APP GPS GNSS survey app could export to FarmOS with no manipulation. I was experiment with SW MAPS and exported to KML but when i went to import it threw an OPPS error and would not parse. Turns out once i stripped the layer color and font information from the KML
18:22middyeasy[m]it imported perfectly. As there is no way to remove this output that i can find i was wondering if you all knew of a good alternative. Thanks
19:07mstenta[m]Welcome middyeasy! The forum is a good place for questions like this too! farmOS.discourse.group - It's a little better in the sense that others might chime in over time (chat is a bit more ephemeral)
19:07mstenta[m]I'm not sure if I have any suggestions personally, although I'd be curious if we could fix the KML import issue so that it "just worked"
19:13middyeasy[m]it should be fairly simple. If the parse function could just ignore the following lines.
19:13middyeasy[m]<Placemark>... (full message at <matrix.org/_matrix/media/v3/download/mat>)
19:13middyeasy[m]So that it sees the file input like this.
19:13middyeasy[m]<Placemark>... (full message at <matrix.org/_matrix/media/v3/download/mat>)
19:14middyeasy[m]Ie JUST ignore this info
19:14middyeasy[m]<name>Layer1 1</name>
19:14middyeasy[m]<description> <![CDATA[<h4>Layer: Layer1</h4><h4>Feature ID: 1</h4><p>Remarks: </p><p>Fix Quality: DGPS</p>]]></description>
19:14middyeasy[m]<styleUrl>#Layer1-Style</styleUrl>
19:14mstenta[m]Question: was it the bulk kml importer or the "import from file" on an individual asset/log?
19:14middyeasy[m]then SW MAPS would be 100% compatible and Survey Android APP that is free with FarmOS.. all i do is just just delete those lines.
19:14middyeasy[m]I am using the import from file as a KML
19:15middyeasy[m]I have not expertiment with KMZ or the bulk one.
19:15middyeasy[m] * Ie JUST ignore the following lines:
19:16middyeasy[m] * then SW MAPS would be 100% compatible and Survey Android APP that is free with FarmOS would work really well. All i do is just just delete those 3 lines.
19:17mstenta[m]We use the GeoPHP library for parsing KML in that case
19:17mstenta[m]So it might be a bug with that upstream library
19:17mstenta[m]github.com/itamair/geoPHP
19:17middyeasy[m]I dont know.. my cats name is fluffy!
19:20middyeasy[m]So maybe i need to reach out to them about getting that updated first then.
19:21paul121[m]<middyeasy[m]> "Hello All. First time on and..." <- Can you share what the OPPS error is?
19:21middyeasy[m]But I am developing a robot that will tap into FarmOS and use precise data to do its job and I need FarmOS to be able to import precise data from something to do so and I can just manually edit these using something like find and replace with Notepad++ in the meantime.
19:21middyeasy[m]sure
19:22*uploaded an image: (176KiB) < matrix.org/_matrix/media/v3/download/mat >
19:24paul121[m]Thanks! There should be a more detailed error message in Administration -> Reports -> Recent log messages
19:24paul121[m]Unfortunately the browser console won't have useful information here
19:25middyeasy[m]JUST FYI. I bought a Sparkfun Torch .. it in theory is supposed to have 16mm accuracy with just a WIFI survey. I am curious to find out how far OFF the manually set GPS coordinates are in real like to the ones I placed using just the FARMOS drawing tools. And if they are way off.. Is there a way to adjust the image to match the actually coordinates?
19:25middyeasy[m]i can recreate it easily one sec let me try.
19:27middyeasy[m]Typephp... (full message at <matrix.org/_matrix/media/v3/download/mat>)
19:27middyeasy[m]Here is the KML file i am trying to import
19:27middyeasy[m]<?xml version="1.0" encoding="UTF-8"?>... (full message at <matrix.org/_matrix/media/v3/download/mat>)
19:28middyeasy[m]one should if so inclined be able to just put that into a notepad and name it test1.kml and see the same error in theory.
19:31middyeasy[m]s/like/life/
19:32middyeasy[m] * if one should be so inclined, one could just put that into a notepad and name it test1.kml and see the same error in theory.
19:36mstenta[m]> Message Exception: Serialization of 'SimpleXMLElement' is not allowed in serialize()
19:36mstenta[m]I've seen this error pop up from time to time in Farmier server logs - but never had a chance to dig into it. Maybe we can get to the bottom of it.
19:36mstenta[m]middyeasy: Would you mind opening a bug report in github.com/farmOS/farmOS/issues and posting this info and screenshot? Then we at least have a tracking issue to work from
19:37mstenta[m]> Is there a way to adjust the image to match the actually coordinates?
19:37mstenta[m]Best bet is probably to make your own image layers and use that in the map instead of the default MapBox layer
19:37paul121[m]Yeah. Seems like a bug in upstream XML serialization or maybe this is just invalid XML? Not quite sure.
19:38mstenta[m]I've heard MapBox/Google layers can be off by quite a bit, depending on where on the earth it is. Sometimes you can find more regional maps that are more accurate.
19:39*farmBOT has joined
19:39middyeasy[m]Is there a tutorial on how make your own image layer available?
19:39middyeasy[m]Yes ic an post on there for sure.
19:45mstenta[m]farmOS doesn't host map imagery itself, but if you have imagery available via a standard GeoServer (or a third-party service), it's relatively easy to add it to farmOS
19:45mstenta[m]This module allows you to add custom layers of various types via URL: www.drupal.org/project/farm_map_custom_l
19:47middyeasy[m]Ok thank you I will look into that now!
19:48middyeasy[m]OK new bug report given.
19:51mstenta[m]Thanks!
19:52mstenta[m]Based on your screenshot, this is actually the "bulk KML importer", not the individual Land asset importer... so it's actually slightly different code involved
19:52middyeasy[m]oh how do i do the other one?
19:53mstenta[m]Add a new land asset, upload the file to the asset, and then go to the Location tab and there's a button to import geometry from the uploaded file(s)
19:53mstenta[m]I would be curious if that works, but the bulk import doesn't
19:54mstenta[m]Here is the code we have for decoding KML in the bulk uploaded (notably NOT geophp)
19:54mstenta[m]github.com/farmOS/farmOS/blob/3a73ccf636
19:55mstenta[m]I bet the bug is in there somewhere...
19:55*uploaded an image: (1120KiB) < matrix.org/_matrix/media/v3/download/mat >
19:55middyeasy[m]My button appears to be greyed out
19:55mstenta[m]It's a rather custom implementation 😅
19:56mstenta[m]Hmm that's weird
19:56mstenta[m]Maybe try saving the asset first, and then edit again?
19:56middyeasy[m]Maybe you can try with my original code file put into a notepad and see if works?
19:56middyeasy[m]ok let me try that
19:57mstenta[m]Sorry I have to run right now... but please put any clues you find in your github issue!
19:57mstenta[m]I'll try to check back in later
19:57middyeasy[m]OK thank you nope still greyed out
19:57*uploaded an image: (1078KiB) < matrix.org/_matrix/media/v3/download/mat >
19:58mstenta[m]Wonder if it's a hosting issue... you could try creating a demo farmOS instance via farmos-demo.rootedsolutions.io/ to see if it works differently
19:58mstenta[m]Although I'm not sure if demos allow file uploads...
19:58middyeasy[m]OK thanks Ill play around with it for a whil.e
19:59mstenta[m]Just checked... looks like that button is disabled if there are no files uploaded to the file field:
19:59mstenta[m]github.com/farmOS/farmOS/blob/3a73ccf636
20:00mstenta[m]Make sure you upload a file with a .kml extension to the "Files" field on the asset first
20:15middyeasy[m]Dudes that worked!!!!
20:16middyeasy[m]When adding to file first. it ungreyed and uploaded!
20:17mstenta[m]Oh good!
20:17mstenta[m]Thats probably a better option for you anyway. The other one is mainly for creating a bunch of land assets in bulk (eg: for initial farm setup)
20:18mstenta[m]But KML filea can be uploaded to individual asset and logs of any type
20:19middyeasy[m]Sweet OK well now you can say you all have a known working Survey Android App called SW MAPS! thanks for the help!

< 042024-08-05⋏06 >