< 102019-11-11⋎12 >

farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Feature requests and bug reports: github.com/farmOS/farmOS/issuesSet by ChanServ on 2018-08-16 at 14:32
06:22*JustTB has quit (Quit: Leaving.)
07:36*JustTB has joined
15:33*ludwa6 has joined
15:35*ludwa6 has left
15:35*ludwa6 has joined
15:53ludwa6G’day room. Am having a bit of trouble with FieldKit version 0.4.8; since installing latest upgrade, it won’t sync with my instance at Farmier. Can anyone suggest anything that might help?
15:54mstenta[m]ludwa6: do you know what version you were on before? was it really old?
15:55mstenta[m]a little while back (months now) we made a necessary change to the database that Field Kit uses, which requires you to fully uninstall and reinstall for the new version to work
15:55mstenta[m]you could try that
15:55mstenta[m]but if you have any "unsynced" logs on your device, they will be lost when you uninstall
15:55mstenta[m]so check that first
15:56ludwa6good question, mike; it’s been awhile, and i just did the upgrade without looking, so i don’t remember prevous version.
15:56*sol5 has joined
15:56ludwa6so if i quit and reinstall, that should work? don’t care about loss of data at this point, so i will try.
15:59mstenta[m]yes, you'll need to completely uninstall the app and then reinstall it
15:59jgaehring[m](that update got pushed out in mid-July, FYI, it was the version 0.4.2 update)
16:00ludwa6hey Jamie: yeah, i remember doing the upgrade back then.
16:00ludwa6So i just did a deinstall/ reinstall, and it did sync just the two late tasks i have on dashboard. is that how it should work?
16:02mstenta[m]Oh good! so it did successfully pull them from the server?
16:02ludwa6apparently so, yes
16:02mstenta[m]It will only pull logs that are assigned to you, and are marked as "not done"
16:03ludwa6ok, that makes sense.
16:03ludwa6but now i just logged an observation on mobile, tried to sync, and it doesn’t seem to want to.
16:03jgaehring[m]> hey Jamie: yeah, i remember doing the upgrade back then.
16:03jgaehring[m]huh, I hope this isn't migration issue we didn't anticipate
16:03mstenta[m]hmm does it give any error? what happens?
16:04jgaehring[m]is there any error message? or does it just keep spinning?
16:04mstenta[m]be sure to open up /farm/logs/observations on your farmOS and refresh to see if it appears
16:04ludwa6ah, i see: yes, they do in fact appear.
16:05mstenta[m]ah great!
16:06ludwa6got this little challenge, maybe Don Blair told you about. We installed his Quahog sensor this morning, and it’s now pushing readings into the sensor module. Nice!
16:06ludwa6But now: how to i geolocate that sensor?
16:08ludwa6I dont’ see a geolocatoni field in the sensor template.
16:09ludwa6the larger challenge is to correlate remote sensing data with observations in the field.
16:10ludwa6for this, we need to have sensors geolocated, and be able to reference geocoded sensors in observations logged using FieldKit
16:15ludwa6in the sensor’s edit form, i see a location field. i should enter co-ordinates there manually? or is there a way to log the location onsite, using FieldKit?
16:16jgaehring[m]oh, I think you could use Field Kit to create a movement log for each sensor
16:18skipper_is[m]The location field should relate to an area, you can create a point area, and use that
16:20ludwa6ah, a point area. will try to create one for the sensor.
16:20skipper_is[m]You might be able to use fieldkit, but I'd probably just create an area called 'Steve the Sensor' or whatever it is, just as a point. Can be related to the field it is in. Then set the location of the sensor to that
16:21jgaehring[m]you can also create a movement log in farmOS and select a location on the map
16:21ludwa6makes sense, skipper_is ; will try that.
16:22ludwa6jgaering: i see the movement log form in FieldKit, but the map is a zoomed-out view of whole farm.
16:22ludwa6and i can’t zoom in to place the point with precision.
16:23ludwa6oh, wait: i now see a zoom control… but it is *super* slow, even though i am on a fast internet connection.
16:23jgaehring[m]in farmOS you can do... Add Log > Assets > Add Items then select the sensor you want, then under the Movemement tab, expand the Geometry field, and it will open up a map for you, then you can create a point
16:24jgaehring[m]> and i can’t zoom in to place the point with precision.
16:24jgaehring[m]ah yes, we've got some upstream updates which should improve precision, but it might be a week or two before that update goes out (it's tied to some more complicated updates)
16:25ludwa6yes, i’m gonna do it in farmOS… But now i am in Movement form of FieldKit i am curious. Will this update made it a useful tool for geolocated observations in the field?
16:26jgaehring[m]I'm hoping so
16:27ludwa6That’s what will make it really useful for me, if entries in field can be coded with location of the phone. is that possible, or will it be soon?
16:27jgaehring[m]it was a quick and easy fix I made while I was making some other modifications to the code around the geolocation stuff, but I haven't had a chance to test it out "in the field" quite yet
16:28ludwa6ok, jgaehring, i look forward to news about this as it develops.
16:28jgaehring[m]yea, that's the goal
16:29jgaehring[m]we're also going to make a change in the next few weeks that should allow you to drop a point (or a vertex of a polygon) at your current location while you're mapping a movement, which should make the whole process a lot easier
16:30ludwa6as we discussed with Don: remote sensing is great, as is a FieldKit for “subjective” observations… But if we can put the two things together, that makes for some powerful magic.
16:31ludwa6i like where you are going with this, jgaehring. rock on, mate! :-)
16:32jgaehring[m]thanks Walt!
16:33*farmBOT has joined
16:33ludwa6jgaehring: FYI: still no word on the open-sourcing of code related to those FlowerPower sensors we are using in GROW project -tho beta test program was to be announced Nov 1. soon as i get the link to repo, will send so you can have a look.
16:33ludwa6Don is enroute from Algarve to Lisbon, i believe, for his last night in country.
16:34ludwa6Was great to finally meet him (and wife & son) and have his help getting Quahog plugged into ground and into farmOS
16:35jgaehring[m]oh great, I look forward to taking a look at the repo!
16:57*sol5 has joined
17:28mstenta[m]> ah, a point area. will try to create one for the sensor.
17:28mstenta[m]@ludwa6 and skipper_is
17:28mstenta[m]there's a better way to do this
17:29mstenta[m]creating an area for the sensor isn't necessary
17:30mstenta[m]you can define a precise coordinate for the sensor's location WITHIN an existing area (which can be the general farm property area at the very least)
17:30ludwa6ok mstenta: how’s that done?
17:31mstenta[m]to do that, you basically need to set the sensor's location to the existing area, and then edit that movement log and specify a more precise geometry in the Geometry field under the "Movement To" area reference field
17:31mstenta[m]then the log is basically saying: "this sensor is located in this area at this specific point"
17:32mstenta[m]ah! ludwa6 it says you just rejoined - did you miss all my messages?
17:32mstenta[m]hah
17:32ludwa6no, i see your msgs since 5:28:
17:33mstenta[m]oh good :-)
17:33ludwa6but i’ve already create an area, as a point… gave it parent of the correct landplot, named it quahog_1 (actually that name auto-populated, once i started to type it in).
17:34mstenta[m]yes! so first: open up the sensor asset in farmOS
17:34ludwa6but it’s got nothing to do with a “Movement To”
17:34ludwa6i am on the sensor object now
17:35mstenta[m]ah ok... so you don't need that point area
17:35mstenta[m]it just clutters up your areas list
17:35mstenta[m]in the sensor, scroll down to the bottom and click "Logs with special purpose" and look to see if you have movement logs for the sensor asset
17:35ludwa6hm. i have edited the area, giving it that quahog_1 location, and now sensor object shows it correctly mapped.
17:36mstenta[m](these are just logs that "move" the asset to a location - that's how all locations are determined in farmOS: farmos.org/guide/location/)
17:36mstenta[m]if you have more than one, perhaps we can clean them up - you just need one
17:36mstenta[m]but assuming you just have one, do the following:
17:37ludwa6i don’t see any logs with special purpose… but i see two observations, corresponding to the first location i gave it (within a landplot) and then another where i gave it the point area i created subsequently.
17:37mstenta[m]that makes sense - adding an "area" specifically for the asset would work - but it's a bit "messy" in my opinion
17:37ludwa6yes, it was a bit clunky.
17:38mstenta[m]the better way is to use the "Movement Geometry" field, described at the bttom of this: farmos.org/guide/location/
17:38mstenta[m]ok gotcha
17:38mstenta[m]so... delete the newer log (that references the new point area you created)
17:38mstenta[m]then delete the new point area (you don't need it)
17:39mstenta[m]then... open the first observation log (which references the landplot)
17:41ludwa6done
17:41ludwa6now?
17:41mstenta[m]Edit the observation log
17:41mstenta[m]Click on the "Assets" tab on the left, then open the "Movement" box
17:42mstenta[m]You should see the "Movement to" field which references the landplot
17:42ludwa6yes
17:42mstenta[m]And under that, is a Geometry box. Open that and you should see a map with the landplot's geometry.
17:42ludwa6yes
17:42mstenta[m]Click the "X" button in the bottom of the map to clear that shape, then click the Point button and drop a point where the sensor is
17:42mstenta[m]Then save the log and go back to view the sensor asset
17:42mstenta[m]It should show that it is located in the landplot at that point
17:43ludwa6funny: there is a point (little grey circle) there. drop another dot on top of that?
17:44ludwa6that is i guess the point area i defined.
17:44mstenta[m]ah yes, that is probably the new area you created
17:44mstenta[m]yup
17:44ludwa6do i need to get rid of that first?
17:44mstenta[m]the map will show all areas as grey, for reference
17:44mstenta[m]no, you can get rid of it after if you want
17:44mstenta[m]it's harmless
17:44mstenta[m]but you don't need it anymore
17:45ludwa6no… if every movement has a corresponding area, that will quickly get to be a bit much
17:45mstenta[m]so, the same process can now be done with Field Kit, as Jamie described... and it's a bit easier than in the farmOS UI (which is a bit clunky to go through all those steps... I know...) :-)
17:45mstenta[m]yea exactly
17:46mstenta[m]areas should just represent "permanent" places
17:46mstenta[m]ideally
17:47mstenta[m]in Field Kit, you can: create a new log, click the movement tab, select the sensor, and the landplot, then click the map and edit the shape to be just a point
17:47ludwa6But in FieldKit, the map is unusable as it stands. So i guess that’ll have to wait for the “promiseware” Jamie spoke of some hours ago :-)
17:47mstenta[m]fewer steps :-) (i'm really excited about that new feature)
17:47ludwa6you and me both!
17:47mstenta[m]ah
17:48mstenta[m]well... so what Jamie was talking about might be slightly different... if i understand correctly
17:48mstenta[m]he made a change to the GPS code, so that it would be faster and more accurate
17:48mstenta[m]but that's not the same thing as the map itself
17:48mstenta[m]you said your map was zooming slowly? is that the issue you had?
17:49ludwa6he spoke of two things -one of which was the map, and one of which was the ability to record an observation with current location automatically geocoded on that record.
17:49ludwa6yes, the map is horribly slow, even on fast internet connection. really not usable.
17:51*sol5 has left
17:52mstenta[m]are the background map tiles loading slowly?
17:53mstenta[m]i've experienced that too from time to time - those are provided by Open Street Map, and it seems that their servers sometimes get painfully slow
17:54mstenta[m]there is an alternative option: MapBox satellite tiles
17:54ludwa6yes, the basemap is zoomed-out view of whole farm… then if you try to zoom in, it goes to an even more zoomed-out view that is so fuzzy as to be indiscerible. then it never comes into focus again, even after some minutes.
17:54mstenta[m]do you have a few minutes to try that with me and see if it works better for you?
17:54ludwa6sure. right now there is just one option under base layers: openStreetMap
17:55mstenta[m]ok yea... it's probably the OSM tiles
17:55ludwa6sux
17:55mstenta[m]yea, i'll add MapBox... one moment...
17:57mstenta[m]ok can you try closing your app and reopening it?
17:58ludwa6done
17:58mstenta[m]does mapbox appear as another layer option now?
17:59ludwa6hm. map showed up real sharp… but then i clicked on it, and it went to fuzzy view of all europe and africa again.
17:59ludwa6and that icon with base layers shows just OpenStreetMap again.
18:00mstenta[m]ah ok... jgaehring when does FK load `/farm.json` to get the MapBox key?
18:00mstenta[m]oh... or is that not deployed to v0.4.8??
18:00mstenta[m]ludwa6 this is a super beta feature we just added recently... ;-)
18:00ludwa6fine, if we can get it working
18:01mstenta[m]ludwa6: in the meantime, try this out...
18:01mstenta[m]go to farmos.github.io/farmOS-map
18:01mstenta[m]that is a demo of the farmOS mapping library, with both OSM and MapBox
18:01ludwa6i see
18:02mstenta[m]see if you notice the same delay in OSM on that... and if MapBox is any better for you
18:02ludwa6no, this works great on my desktop.
18:03ludwa6but not in FieldKit
18:03mstenta[m]i am experiencing noticeable slowness with OSM when i test that too, for what it's worth
18:04mstenta[m]oh? OSM too?
18:04mstenta[m]hmm... i'm not sure why that would be. and ultimately we might not have much control over it
18:05ludwa6OSM is the only option under BaseMaps in FieldKit… and it sux.
18:05jgaehring[m]> ah ok... jgaehring when does FK load `/farm.json` to get the MapBox key?
18:05jgaehring[m]When the My Logs screen first loads
18:05mstenta[m]field kit is using the same code - and making the same requests for those tiles
18:05mstenta[m]jgaehring: ok thanks - if Walt closed and opened the app, should that refresh it?
18:06jgaehring[m]As long as he's logged in yes
18:06*reboots FieldKit again
18:07mstenta[m]ludwa6: can you confirm your farmOS URL for me? (feel free to direct message me if you don't want to broadcast it here) i added the MapBox key to what I assume is your farmOS... but hopefully i made the right assumption :-)
18:07ludwa6vdl.farmos.net
18:08mstenta[m]ok that's what i thought :-)
18:08ludwa6ok, so still: when i try to log a movement, i get a nice sharp map displayed under asset to move/ move to boxes...
18:08mstenta[m]the mapbox key is in place, so it's just a matter of Field Kit finding it and adding it to the map
18:09ludwa6… but when i click on that good map of my farm, it zooms out to a view of half the world, with an icon at top right that reveals just one BaseMap option: OpenStreetMap
18:09ludwa6and trying to zoom in on that map is brutal.
18:10ludwa6so lo-rez, it is useless
18:10mstenta[m]ok so that sounds like two issues
18:10ludwa6when i get anywhere near S of Portugal, it is so fuzzy, you can’t even make out the coastline any more
18:10mstenta[m]1) mapbox layer isn't being added
18:11mstenta[m]2. the "static" map and the "editable" map are starting you in different places
18:11mstenta[m]jgaehring: can you point me to the place in the code that controls these two scenarios?
18:11mstenta[m]i may be able to see what's going on
18:12mstenta[m](and by two scenarios i mean where the map zooms to)
18:12mstenta[m](for the "static" and "editable" maps)
18:14jgaehring[m]is the mapbox layer being added for the first screen, under the Movement tab?
18:15mstenta[m]the first screen doesn't have a layer switcher
18:15jgaehring[m]what assets or areas are you referencing before you go to the second screen?
18:16jgaehring[m]github.com/farmOS/farmOS-client/blob/mas
18:17mstenta[m]is that included in v0.4.8
18:17mstenta[m]really need to start tagging commits... ;-)
18:17mstenta[m]release commits*
18:20jgaehring[m]that's the master branch, so it's 0.4.8
18:21mstenta[m]ok cool
18:21jgaehring[m]I wonder if this could be an issue with Mapbox's tiles for Portugal
18:22mstenta[m]hmm i wonder why it's not getting pulled in for Walt
18:22mstenta[m]it's in farm.json
18:22ludwa6the map that i’m using for everything these days is this: www.geoportal.org/?f:selectedAreaCoordin
18:22mstenta[m]he said it works in farmos.github.io/farmOS-map
18:23ludwa6mstenta: that one is not bad, but several years out of date
18:23ludwa6pretty good resolution tho.
18:23mstenta[m]nice!
18:23mstenta[m]i wonder if they offer a tile server
18:24mstenta[m]if so, we could add it as a layer in OpenLayers maps
18:24ludwa6that would rock. it’s so good, i can almost see the sensor in the ground :-)
18:24jgaehring[m]also wondering if this could be related: github.com/farmOS/farmOS-client/issues/2
18:24jgaehring[m]...reading into it again now
18:25mstenta[m]that could be related to the second issue he's experiencing
18:25mstenta[m]ludwa6: when you first click the "Movement" tab, are you selecting an area that has a geometry?
18:26mstenta[m](in the "Movement to" field)
18:26mstenta[m]it should auto-populate the map with the selected area's shape
18:26mstenta[m]and it will use that same shape (and auto-zoom) when you then click on the map to go into "edit mode"
18:26ludwa6it did show the area’s shape. but click on it, and then… back out to the view from nowhere
18:27jgaehring[m]> is the mapbox layer being added for the first screen, under the Movement tab?
18:27jgaehring[m]there's no layer switcher, but it should automatically load the Mapbox layers if the API key is present
18:27mstenta[m]oh ok, i forgot about that... thought it needed to be saved in the layer memory (localstorage)... but that wasn't available then
18:28mstenta[m]> it did show the area’s shape. but click on it, and then… back out to the view from nowhere
18:28mstenta[m]huh that's weird
18:32jgaehring[m]I'm trying to figure out the steps to reproduce...
18:32mstenta[m]ludwa6: can you try farmos.app
18:32ludwa6Q: should upcoming tasks that are assigned to me show up in my FieldKit? cuz i just created one on desktop, and it doesn’t show up, tho i pressed sync now and even rebooted the FieldKit
18:32mstenta[m]that is the same app - just in the browser instead of a native app
18:32ludwa6i am there.
18:32mstenta[m]curious if you have the same issue there
18:32jgaehring[m]ludwa6: do you experience these issues when you create a brand new log without adding any assets or areas to it?
18:32ludwa6but it says i have no logs at all to display -not even the 3 in FieldKit. let alone the one i'
18:33ludwa6jgaehring: dunno, will try
18:34jgaehring[m]> Q: should upcoming tasks that are assigned to me show up in my FieldKit? cuz i just created one on desktop, and it doesn’t show up, tho i pressed sync now and even rebooted the FieldKit
18:34jgaehring[m]as long as you marked it as _not_ done... but logs default to being marked as done, so you would have needed to uncheck that manually
18:35jgaehring[m]it's possible if we have a log with corrupted data, like in the movement field, that could be messing up the syncing process
18:36ludwa6i dunno, but it’s a mess, with things on both sides of desktop / mobile fence that don’t match, and the browser version of FieldKit shows nothing.
18:37ludwa6maybe i should uninstall and reinstall again -dya think?
18:37ludwa6what’s in FieldKit right now doesn’t matter
18:40ludwa6the browser version of FieldKit does in fact show two overdue tasks, when i click the “upload” arrow at top RH corner of screen
18:40ludwa6but it doesn'
18:40ludwa6doesn’t show the task i assigned myself, to be done on next Friday
18:41mstenta[m]did you log in on farmos.app?
18:41mstenta[m]with the same username?
18:41ludwa6mstenta: yes
18:41mstenta[m]ah ok
18:41mstenta[m](sorry riot is moving slow)
18:42mstenta[m]ludwa6: can you post a screenshot of farmOS vs Field Kit?
18:43mstenta[m]also: i wonder if you have any filters applied in field kit (the little funnel button in the top right) - those will show/hide certain logs in field kit (doesn't affect what gets pulled from farmOS - just affects what's visible in FK)
18:43*tries to remember how to upload file in IRC
18:44mstenta[m]ah yea... maybe use imgur.com - free upload
18:44mstenta[m]then you can just paste a link
18:47ludwa6imgur.com/a/MBnu4t8
18:48mstenta[m]Ahhhhhh
18:49mstenta[m]Field Kit doesn't support soil tests :-(
18:49mstenta[m]although it may support all log types soon!
18:49ludwa6so: lemme try something else. an observation, perhaps.
18:50mstenta[m]When we started it was just for observations, then we added activities, seedings, inputs, harvests - but it's a hard-coded list still
18:50mstenta[m]github.com/farmOS/farmOS-client/issues/2
18:51ludwa6ok, so that observation showed up in web version of FieldKit
18:52ludwa6and in mobile! ok, so that’s one problem solved.
18:52ludwa6anything more to do on the map problem?
18:53mstenta[m]ok! great!
18:53mstenta[m]did you try farmOS.app for the map issue? did it have the same issue as the app?
18:54*goes to check
18:55ludwa6web version: when i try to add a log item, shift to movements view… i just get the two text fields, no map at all
19:04mstenta[m]oh..... jgaehring is farmOS.app broken?
19:04mstenta[m]does it have field module code deployed for testing?
19:05mstenta[m]i'm seeing an error in console: `Error installing Test module`
19:06jgaehring[m]what's the version in farmOS.app?
19:07jgaehring[m]you may need to close that tab and reload it for the newest version to install
19:07jgaehring[m]> i'm seeing an error in console: `Error installing Test module`
19:07jgaehring[m]yea I made a mistake when building the last version for the web
19:07jgaehring[m]forgot to switch git branches
19:07jgaehring[m]that shouldn't cause any problems though
19:08mstenta[m]oh ok - yea it's v0.4.8
19:13jgaehring[m]right, but Walt might not have that version
19:13jgaehring[m](service workers might have something older cached)
19:13mstenta[m]ah right
19:13ludwa6i am running 0,4.8, says my iPhone
19:14mstenta[m]i wonder: could we make the service worker perform a request to a file (eg: `/VERSION.txt`) and auto update if it's out of sync?
19:14jgaehring[m]ah, that's strange then
19:14mstenta[m]ludwa6: is it 0.4.8 on farmOS.app as well?
19:15ludwa6no -there it says 0.4.4
19:16mstenta[m]ah ok!
19:16ludwa6are we not all looking at the same thing at farmos.app ?
19:16mstenta[m]yes that's what we're looking at too...
19:16mstenta[m]but it has some caching involved which means you're looking at an older version
19:16jgaehring[m]> i wonder: could we make the service worker perform a request to a file (eg: `/VERSION.txt`\) and auto update if it's out of sync?
19:16jgaehring[m]um, that probably wouldn't be the most effective way... we could just fine-tune the service worker to flush the cache if we want, but that may not necessarily present the best UX (eg, screen atutomatically refreshing w/o the user wanting it to)... we can consider it though
19:16mstenta[m](service worker caching... a bit different than normal browser caching)
19:17mstenta[m](so that it can work offline)
19:17ludwa6i haven’t visited this app for many moons -since it was first announced in the discourse group, i think
19:17mstenta[m]ludwa6: what browser are you using?
19:18ludwa6Google Chrome Version 78.0.3904.97 (Official Build) (64-bit)
19:18jgaehring[m]if you close the tab and reopen it, it should flush the cacheeeeeeeeeeee
19:18jgaehring[m]oops, sticky keyboard ;-)
19:19ludwa6right -now i see the map in web version
19:19jgaehring[m]great!
19:19ludwa6and here, the layers work as they should
19:19mstenta[m]great! and satellite layer?
19:19jgaehring[m]and is it just OSM, or do you see the MapBox sattelite view?
19:19jgaehring[m]great!
19:19ludwa6i’m on the MapBox view now
19:20ludwa6works fine in web app.
19:20mstenta[m]hooray!
19:20jgaehring[m]I'd still like to go through the steps to reproduce on the iOS app if we can
19:20mstenta[m]getting closer... :-)
19:20ludwa6you need me for this? i gotta go for supper momentarily
19:20jgaehring[m]wondering again if this relates to issue #236
19:21ludwa6if there’s something i can do to help now, let me know… else it must wait an hour or so
19:21jgaehring[m]oh no worries
19:22jgaehring[m]when you get a chance, I'd like to know if the issue with the maps persists when you open up a brand new log, without entering any data
19:23ludwa6yes, it persists.
19:23*breaks for dinner
19:23jgaehring[m]if it is related to issue 236, it may work fine with a fresh log (assuming there's some corruption of the data that Field Kit can't handle, thereby messing up the maps)
19:23jgaehring[m]ah, darn
19:23mstenta[m]jgaehring: i wonder...
19:23jgaehring[m]thanks Walt, all good feedback, enjoy your supper!!!
19:24mstenta[m]the map is loading all farm areas... (displayed in gray)
19:24mstenta[m]yea thanks Walt! super helpful - we can finish later
19:24jgaehring[m]right
19:25mstenta[m]... if it took longer than normal to load those areas (if there were a lot of them), could it be that the map is being displayed before they are available, and so it's not zooming in?
19:25mstenta[m]how are those being added to the map currently? can you point me to the relevant code?
19:26jgaehring[m]hmm, I don't think so...
19:26mstenta[m]because it sounds like the map is not zooming in. and iirc the map is set to zoom to that layer
19:27mstenta[m]so if that layer wasn't available, for whatever reason, then the zoomToLayer() would fail
19:27mstenta[m](is that the function you're using in FK?)
19:29jgaehring[m]github.com/farmOS/farmOS-client/blob/mas
19:30jgaehring[m]`this.geoJSON` is the areas' GeoJSON
19:30mstenta[m]ah ok
19:30mstenta[m]hmm so... this is probably not the same issue but...
19:30jgaehring[m]`this.wkt` is the Movement Geometry
19:31mstenta[m]i see that there are two `if` conditions that run `zoomToLayer` and `zoomToVectors`
19:31mstenta[m]will those both run under certain conditions?
19:31jgaehring[m]and bear in mind, this is the general Map.vue component that's used in both EditLog.vue (the static map) and EditMap.vue (the editable map)
19:31mstenta[m]if so, that might cause weird behavior
19:32mstenta[m]the `zoomToVectors` and `zoomToLayer` functions are a bit tricky...
19:32mstenta[m]github.com/farmOS/farmOS-map/blob/master
19:33mstenta[m]ah... soo....
19:34mstenta[m]do we need to wrap the `zoomToLayer()` in an `on('change'` listener?
19:34mstenta[m]`zoomToLayer()` will only zoom `if (source.getState() === 'ready' && source.getFeatures().length > 0)`
19:35mstenta[m]so i wonder if, in Walt's case, that's not true when it is being run
19:35mstenta[m]but... i dunno... i mean... it's loading WKT, which I would think would be instanct
19:35mstenta[m]instant*
19:36jgaehring[m]hm yea, it was pretty hairy getting all those conditionals to work in the right way... but make sure to note, it's `once('change')`, not `on('change')`
19:37mstenta[m]right right `once`
19:37mstenta[m]that's what i meant
19:37mstenta[m]it's important to have that listener, especially with a source that is requested via HTTP request, because it won't have a geometry until that request finishes... at which point `change` will be fired
19:38mstenta[m]i'm not sure if it's necessary for non-HTTP request layers though
19:38mstenta[m]i would think that would be available immediately, but maybe it's not
19:41mstenta[m]this is just a guess... might be a red herring
19:42jgaehring[m]> it's important to have that listener, especially with a source that is requested via HTTP request, because it won't have a geometry until that request finishes... at which point `change` will be fired
19:42jgaehring[m]right, that's why I needed to do that specifically for the geoJSON layer
19:43mstenta[m]oh hmm... you know... `once` might actually be an issue in some cases...
19:43jgaehring[m]> i would think that would be available immediately, but maybe it's not
19:43jgaehring[m]correct, the WKT is available immediately, so if the WKT is present, we zoom on that layer immediately
19:43mstenta[m]well.. not in this case actually i guess
19:43mstenta[m](sorry , out of order riot messages)
19:44mstenta[m]hmm well - might be easier to debug with Walt present...
19:45mstenta[m]we can ask him if the WKT features are showing up or not (he'll have to manually zoom to them
19:45jgaehring[m]yea
19:46mstenta[m]the fact that it's working in farmOS.app, and not FK, is strange
19:47mstenta[m]iOS i mean
19:49jgaehring[m]yea
19:50jgaehring[m]Greg hasn't reported any issues with it has he?
19:51mstenta[m]I vaguely remember something similar with him
19:51mstenta[m]But I think it got resolved?
19:51mstenta[m]I'm not sure if they are actively using it yet
19:55mstenta[m]in the meantime... i'm getting back into the line/polygon measurement stuff :-)
19:56mstenta[m]i just need to figure out the best way to tie the measurement tooltips to specific features (rather than just specific coordinates), so that i can update them when shapes change
19:57mstenta[m]this feels like something that would be a lot easier in Vue/React :-)
19:58jgaehring[m]haha, yea, probably
20:22*back. Dunno what you mean about WKT features… but any attempt to zoom on map is essentially useless.
20:27mstenta[m]when you say "essentially useless" does that mean broken? or just annoyingly slow?
20:28ludwa6soon as i touch the map that appears on movement screen by default, it changes to a global view of OpenStreetMap that loses resolution as you zoom in on it, such that a 10k square km selection is essentially inscrutable.
20:28mstenta[m]"WKT features" refers to the shapes that should show up on your map in gray (representing all the areas from your farmOS)
20:28mstenta[m]if you open the map in farmOS.app, you should see the grey area outlines (double check that...)
20:28ludwa6and it never resolves into a usable image, no matter how long i wait
20:29*FijiDave has joined
20:29ludwa6yes, correct: farmos.app shows the grey boundary areas
20:29mstenta[m]hmm yea that's really annoying... makes it hard to debug
20:29ludwa6on a hi-rez map
20:29mstenta[m]so i guess we need to debug the mapbox layer first... so that we can debug the zoom issue
20:30mstenta[m]ludwa6: what version of iOS are you using, do you know? (@jg
20:30mstenta[m](jgaehring are you able to see this in the Apple Test Flight system?)
20:31ludwa6no way to see grey farm plot boundaries on the iOS view; can barely distinguish white of continental landmass from blue of ocean when zoomed in to size of southern portugal.
20:31mstenta[m]ludwa6: oh... how about we try this: can you open the browser on your phone and go to farmOS.app there? let's see if that is any different than on your desktop
20:31mstenta[m]just looking for any difference we can find at this point so we have something to dig into
20:32jgaehring[m]> "WKT features" refers to the shapes that should show up on your map in gray (representing all the areas from your farmOS)
20:32jgaehring[m]other way around, wkt is the orange shapes, geojson is the gray
20:32ludwa6in fact i have farmOS open in iPhone’s safari brower. am looking to find the version…
20:33ludwa6anyway: just went to “add area” in safari on iPhone… and it gives me a good map of farm context, with grey boudaries of all my areas, and i can zoom in on it no problem.
20:33ludwa6iOS version is 13.1.3
20:33jgaehring[m]> ([jgaehring](matrix.to/#/@jgaehring:matrix.org) are you able to see this in the Apple Test Flight system?)
20:33jgaehring[m]hmm, don't think so, but I can check
20:34mstenta[m]oh right - thanks for the clarification jgaehring
20:34mstenta[m]oh you mean you opened vdl.farmos.net?
20:34mstenta[m]try opening farmOS.app instead
20:35mstenta[m]i want to see if, on your phone, farmOS.app (in Safari), has the same issues as the iOS FK app
20:35ludwa6mstenta: ok, will try
20:36mstenta[m]namely:
20:36mstenta[m]1. map does not automatically zoom to gray areas
20:36mstenta[m]2. MapBox layer is not available as an option
20:38ludwa6mstenta: farmos.app map works fine in Safari on iPhone
20:39ludwa6with grey boundary areas on hi-rez map, speedy update on zoom, etc.
20:39mstenta[m]ah ok interesting
20:39mstenta[m]wellll... worth noting: you can "install" farmOS.app and use it just like a standard iOS app
20:40ludwa6?
20:40mstenta[m]oh crap i may have spoken too soon ... I don't know if Apple supports that yet
20:40ludwa6there is no installing a web app on iOS, AFAIK
20:41mstenta[m]on Android, farmOS.app will automatically popup a window that says "Install on home screen" and it will show an icon just like normal apps, without the need to install anything
20:41jgaehring[m]it's supported for the features we have, except the camera
20:41mstenta[m]"progressive web app"
20:41jgaehring[m]"install" is a bit of a misnomer
20:41mstenta[m]right... that's the only issue: camera isn't working yet
20:41jgaehring[m]basically, it's added to your home screen and cached for offline use
20:42mstenta[m]jgaehring: is it correct that iOS does not support that yet?
20:43jgaehring[m]iOS does not prompt you to add a PWA to your home sreen the way Android does
20:43jgaehring[m]but you can add it to your homescreen manually
20:43jgaehring[m]and all the other guts of the PWA are supported
20:43jgaehring[m]at least the pwa features we use
20:43ludwa6jgaehring: do you know how to add to iOS home screen?
20:44jgaehring[m]it gets a little weird for stuff like push notifications, and background tasks
20:44mstenta[m]oh cool!
20:45mstenta[m]so in that case, you might be able to do that ludwa6 , and uninstall the app itself
20:45mstenta[m]we're hoping to get the camera stuff worked out in the near future... but everything else should work
20:45ludwa6i don’t know about this, adding to home screen. Closest thing i can conceive is bookmarking the app in Safari.
20:46jgaehring[m]you use the share button in iOS safari
20:46jgaehring[m]and then one of the options it gives you is "Add to Home Screen"
20:46mstenta[m]yea it kinda like a special bookmark :-)
20:47mstenta[m]but better, and works offline
20:47jgaehring[m]right
20:48ludwa6ah, i see how to do it. OK, it’s on my home screen. will test offline use. if that works… Cool!
20:48mstenta[m]cool!
20:55ludwa6interesting: i just turned my iPhone’s wifi off, created an observation in iOS FieldKit, synced, and it showed up in desktop immediately. I’m at home with 3g access… But i will try this in the field tomorrow, where i have spottty connectivity, to see if it will hold the entry in memory until i get internet connected again. If that works, this PWA tech may serve the need.
20:56jgaehring[m]awesome!
20:56ludwa6only: did i understand you right, that camera doesn’t work in this PWA app on mobile?
20:57jgaehring[m]correct, however, you can upload images that you've already taken
20:57jgaehring[m]we're working to fix the feature for opening the camera directly from the app
21:00ludwa6one PITA with this PWA version on iPhone is: i have to submit credentials every time i launch it.
21:00mstenta[m]yea - so you can take a photo with your camera, so that it saves to the phone, then open field kit and "select from file"
21:01mstenta[m](workaround)
21:07*gotta go; g’nite guys
21:07*ludwa6 has quit (Quit: ludwa6)
21:08mstenta[m]night ludwa6 ! great talking!
21:12jgaehring[m]night Walt, thanks for everything!
22:36*JustTB has quit (Ping timeout: 246 seconds)
22:51*JustTB has joined
23:13*sol5 has joined

< 102019-11-11⋏12 >