| 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:53 | ludwa6 | G’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:54 | mstenta[m] | ludwa6: do you know what version you were on before? was it really old? |
| 15:55 | mstenta[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:55 | mstenta[m] | you could try that |
| 15:55 | mstenta[m] | but if you have any "unsynced" logs on your device, they will be lost when you uninstall |
| 15:55 | mstenta[m] | so check that first |
| 15:56 | ludwa6 | good 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:56 | ludwa6 | so if i quit and reinstall, that should work? don’t care about loss of data at this point, so i will try. |
| 15:59 | mstenta[m] | yes, you'll need to completely uninstall the app and then reinstall it |
| 15:59 | jgaehring[m] | (that update got pushed out in mid-July, FYI, it was the version 0.4.2 update) |
| 16:00 | ludwa6 | hey Jamie: yeah, i remember doing the upgrade back then. |
| 16:00 | ludwa6 | So 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:02 | mstenta[m] | Oh good! so it did successfully pull them from the server? |
| 16:02 | ludwa6 | apparently so, yes |
| 16:02 | mstenta[m] | It will only pull logs that are assigned to you, and are marked as "not done" |
| 16:03 | ludwa6 | ok, that makes sense. |
| 16:03 | ludwa6 | but now i just logged an observation on mobile, tried to sync, and it doesn’t seem to want to. |
| 16:03 | jgaehring[m] | > hey Jamie: yeah, i remember doing the upgrade back then. |
| 16:03 | jgaehring[m] | huh, I hope this isn't migration issue we didn't anticipate |
| 16:03 | mstenta[m] | hmm does it give any error? what happens? |
| 16:04 | jgaehring[m] | is there any error message? or does it just keep spinning? |
| 16:04 | mstenta[m] | be sure to open up /farm/logs/observations on your farmOS and refresh to see if it appears |
| 16:04 | ludwa6 | ah, i see: yes, they do in fact appear. |
| 16:05 | mstenta[m] | ah great! |
| 16:06 | ludwa6 | got 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:06 | ludwa6 | But now: how to i geolocate that sensor? |
| 16:08 | ludwa6 | I dont’ see a geolocatoni field in the sensor template. |
| 16:09 | ludwa6 | the larger challenge is to correlate remote sensing data with observations in the field. |
| 16:10 | ludwa6 | for this, we need to have sensors geolocated, and be able to reference geocoded sensors in observations logged using FieldKit |
| 16:15 | ludwa6 | in 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:16 | jgaehring[m] | oh, I think you could use Field Kit to create a movement log for each sensor |
| 16:18 | skipper_is[m] | The location field should relate to an area, you can create a point area, and use that |
| 16:20 | ludwa6 | ah, a point area. will try to create one for the sensor. |
| 16:20 | skipper_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:21 | jgaehring[m] | you can also create a movement log in farmOS and select a location on the map |
| 16:21 | ludwa6 | makes sense, skipper_is ; will try that. |
| 16:22 | ludwa6 | jgaering: i see the movement log form in FieldKit, but the map is a zoomed-out view of whole farm. |
| 16:22 | ludwa6 | and i can’t zoom in to place the point with precision. |
| 16:23 | ludwa6 | oh, wait: i now see a zoom control… but it is *super* slow, even though i am on a fast internet connection. |
| 16:23 | jgaehring[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:24 | jgaehring[m] | > and i can’t zoom in to place the point with precision. |
| 16:24 | jgaehring[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:25 | ludwa6 | yes, 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:26 | jgaehring[m] | I'm hoping so |
| 16:27 | ludwa6 | That’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:27 | jgaehring[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:28 | ludwa6 | ok, jgaehring, i look forward to news about this as it develops. |
| 16:28 | jgaehring[m] | yea, that's the goal |
| 16:29 | jgaehring[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:30 | ludwa6 | as 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:31 | ludwa6 | i like where you are going with this, jgaehring. rock on, mate! :-) |
| 16:32 | jgaehring[m] | thanks Walt! |
| 16:33 | * | farmBOT has joined |
| 16:33 | ludwa6 | jgaehring: 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:33 | ludwa6 | Don is enroute from Algarve to Lisbon, i believe, for his last night in country. |
| 16:34 | ludwa6 | Was great to finally meet him (and wife & son) and have his help getting Quahog plugged into ground and into farmOS |
| 16:35 | jgaehring[m] | oh great, I look forward to taking a look at the repo! |
| 16:57 | * | sol5 has joined |
| 17:28 | mstenta[m] | > ah, a point area. will try to create one for the sensor. |
| 17:28 | mstenta[m] | @ludwa6 and skipper_is |
| 17:28 | mstenta[m] | there's a better way to do this |
| 17:29 | mstenta[m] | creating an area for the sensor isn't necessary |
| 17:30 | mstenta[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:30 | ludwa6 | ok mstenta: how’s that done? |
| 17:31 | mstenta[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:31 | mstenta[m] | then the log is basically saying: "this sensor is located in this area at this specific point" |
| 17:32 | mstenta[m] | ah! ludwa6 it says you just rejoined - did you miss all my messages? |
| 17:32 | mstenta[m] | hah |
| 17:32 | ludwa6 | no, i see your msgs since 5:28: |
| 17:33 | mstenta[m] | oh good :-) |
| 17:33 | ludwa6 | but 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:34 | mstenta[m] | yes! so first: open up the sensor asset in farmOS |
| 17:34 | ludwa6 | but it’s got nothing to do with a “Movement To” |
| 17:34 | ludwa6 | i am on the sensor object now |
| 17:35 | mstenta[m] | ah ok... so you don't need that point area |
| 17:35 | mstenta[m] | it just clutters up your areas list |
| 17:35 | mstenta[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:35 | ludwa6 | hm. i have edited the area, giving it that quahog_1 location, and now sensor object shows it correctly mapped. |
| 17:36 | mstenta[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:36 | mstenta[m] | if you have more than one, perhaps we can clean them up - you just need one |
| 17:36 | mstenta[m] | but assuming you just have one, do the following: |
| 17:37 | ludwa6 | i 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:37 | mstenta[m] | that makes sense - adding an "area" specifically for the asset would work - but it's a bit "messy" in my opinion |
| 17:37 | ludwa6 | yes, it was a bit clunky. |
| 17:38 | mstenta[m] | the better way is to use the "Movement Geometry" field, described at the bttom of this: farmos.org/guide/location/ |
| 17:38 | mstenta[m] | ok gotcha |
| 17:38 | mstenta[m] | so... delete the newer log (that references the new point area you created) |
| 17:38 | mstenta[m] | then delete the new point area (you don't need it) |
| 17:39 | mstenta[m] | then... open the first observation log (which references the landplot) |
| 17:41 | ludwa6 | done |
| 17:41 | ludwa6 | now? |
| 17:41 | mstenta[m] | Edit the observation log |
| 17:41 | mstenta[m] | Click on the "Assets" tab on the left, then open the "Movement" box |
| 17:42 | mstenta[m] | You should see the "Movement to" field which references the landplot |
| 17:42 | ludwa6 | yes |
| 17:42 | mstenta[m] | And under that, is a Geometry box. Open that and you should see a map with the landplot's geometry. |
| 17:42 | ludwa6 | yes |
| 17:42 | mstenta[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:42 | mstenta[m] | Then save the log and go back to view the sensor asset |
| 17:42 | mstenta[m] | It should show that it is located in the landplot at that point |
| 17:43 | ludwa6 | funny: there is a point (little grey circle) there. drop another dot on top of that? |
| 17:44 | ludwa6 | that is i guess the point area i defined. |
| 17:44 | mstenta[m] | ah yes, that is probably the new area you created |
| 17:44 | mstenta[m] | yup |
| 17:44 | ludwa6 | do i need to get rid of that first? |
| 17:44 | mstenta[m] | the map will show all areas as grey, for reference |
| 17:44 | mstenta[m] | no, you can get rid of it after if you want |
| 17:44 | mstenta[m] | it's harmless |
| 17:44 | mstenta[m] | but you don't need it anymore |
| 17:45 | ludwa6 | no… if every movement has a corresponding area, that will quickly get to be a bit much |
| 17:45 | mstenta[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:45 | mstenta[m] | yea exactly |
| 17:46 | mstenta[m] | areas should just represent "permanent" places |
| 17:46 | mstenta[m] | ideally |
| 17:47 | mstenta[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:47 | ludwa6 | But 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:47 | mstenta[m] | fewer steps :-) (i'm really excited about that new feature) |
| 17:47 | ludwa6 | you and me both! |
| 17:47 | mstenta[m] | ah |
| 17:48 | mstenta[m] | well... so what Jamie was talking about might be slightly different... if i understand correctly |
| 17:48 | mstenta[m] | he made a change to the GPS code, so that it would be faster and more accurate |
| 17:48 | mstenta[m] | but that's not the same thing as the map itself |
| 17:48 | mstenta[m] | you said your map was zooming slowly? is that the issue you had? |
| 17:49 | ludwa6 | he 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:49 | ludwa6 | yes, the map is horribly slow, even on fast internet connection. really not usable. |
| 17:51 | * | sol5 has left |
| 17:52 | mstenta[m] | are the background map tiles loading slowly? |
| 17:53 | mstenta[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:54 | mstenta[m] | there is an alternative option: MapBox satellite tiles |
| 17:54 | ludwa6 | yes, 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:54 | mstenta[m] | do you have a few minutes to try that with me and see if it works better for you? |
| 17:54 | ludwa6 | sure. right now there is just one option under base layers: openStreetMap |
| 17:55 | mstenta[m] | ok yea... it's probably the OSM tiles |
| 17:55 | ludwa6 | sux |
| 17:55 | mstenta[m] | yea, i'll add MapBox... one moment... |
| 17:57 | mstenta[m] | ok can you try closing your app and reopening it? |
| 17:58 | ludwa6 | done |
| 17:58 | mstenta[m] | does mapbox appear as another layer option now? |
| 17:59 | ludwa6 | hm. map showed up real sharp… but then i clicked on it, and it went to fuzzy view of all europe and africa again. |
| 17:59 | ludwa6 | and that icon with base layers shows just OpenStreetMap again. |
| 18:00 | mstenta[m] | ah ok... jgaehring when does FK load `/farm.json` to get the MapBox key? |
| 18:00 | mstenta[m] | oh... or is that not deployed to v0.4.8?? |
| 18:00 | mstenta[m] | ludwa6 this is a super beta feature we just added recently... ;-) |
| 18:00 | ludwa6 | fine, if we can get it working |
| 18:01 | mstenta[m] | ludwa6: in the meantime, try this out... |
| 18:01 | mstenta[m] | go to farmos.github.io/farmOS-map |
| 18:01 | mstenta[m] | that is a demo of the farmOS mapping library, with both OSM and MapBox |
| 18:01 | ludwa6 | i see |
| 18:02 | mstenta[m] | see if you notice the same delay in OSM on that... and if MapBox is any better for you |
| 18:02 | ludwa6 | no, this works great on my desktop. |
| 18:03 | ludwa6 | but not in FieldKit |
| 18:03 | mstenta[m] | i am experiencing noticeable slowness with OSM when i test that too, for what it's worth |
| 18:04 | mstenta[m] | oh? OSM too? |
| 18:04 | mstenta[m] | hmm... i'm not sure why that would be. and ultimately we might not have much control over it |
| 18:05 | ludwa6 | OSM is the only option under BaseMaps in FieldKit… and it sux. |
| 18:05 | jgaehring[m] | > ah ok... jgaehring when does FK load `/farm.json` to get the MapBox key? |
| 18:05 | jgaehring[m] | When the My Logs screen first loads |
| 18:05 | mstenta[m] | field kit is using the same code - and making the same requests for those tiles |
| 18:05 | mstenta[m] | jgaehring: ok thanks - if Walt closed and opened the app, should that refresh it? |
| 18:06 | jgaehring[m] | As long as he's logged in yes |
| 18:06 | * | reboots FieldKit again |
| 18:07 | mstenta[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:07 | ludwa6 | vdl.farmos.net |
| 18:08 | mstenta[m] | ok that's what i thought :-) |
| 18:08 | ludwa6 | ok, so still: when i try to log a movement, i get a nice sharp map displayed under asset to move/ move to boxes... |
| 18:08 | mstenta[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:09 | ludwa6 | … 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:09 | ludwa6 | and trying to zoom in on that map is brutal. |
| 18:10 | ludwa6 | so lo-rez, it is useless |
| 18:10 | mstenta[m] | ok so that sounds like two issues |
| 18:10 | ludwa6 | when i get anywhere near S of Portugal, it is so fuzzy, you can’t even make out the coastline any more |
| 18:10 | mstenta[m] | 1) mapbox layer isn't being added |
| 18:11 | mstenta[m] | 2. the "static" map and the "editable" map are starting you in different places |
| 18:11 | mstenta[m] | jgaehring: can you point me to the place in the code that controls these two scenarios? |
| 18:11 | mstenta[m] | i may be able to see what's going on |
| 18:12 | mstenta[m] | (and by two scenarios i mean where the map zooms to) |
| 18:12 | mstenta[m] | (for the "static" and "editable" maps) |
| 18:14 | jgaehring[m] | is the mapbox layer being added for the first screen, under the Movement tab? |
| 18:15 | mstenta[m] | the first screen doesn't have a layer switcher |
| 18:15 | jgaehring[m] | what assets or areas are you referencing before you go to the second screen? |
| 18:16 | jgaehring[m] | github.com/farmOS/farmOS-client/blob/mas |
| 18:17 | mstenta[m] | is that included in v0.4.8 |
| 18:17 | mstenta[m] | really need to start tagging commits... ;-) |
| 18:17 | mstenta[m] | release commits* |
| 18:20 | jgaehring[m] | that's the master branch, so it's 0.4.8 |
| 18:21 | mstenta[m] | ok cool |
| 18:21 | jgaehring[m] | I wonder if this could be an issue with Mapbox's tiles for Portugal |
| 18:22 | mstenta[m] | hmm i wonder why it's not getting pulled in for Walt |
| 18:22 | mstenta[m] | it's in farm.json |
| 18:22 | ludwa6 | the map that i’m using for everything these days is this: www.geoportal.org/?f:selectedAreaCoordin |
| 18:22 | mstenta[m] | he said it works in farmos.github.io/farmOS-map |
| 18:23 | ludwa6 | mstenta: that one is not bad, but several years out of date |
| 18:23 | ludwa6 | pretty good resolution tho. |
| 18:23 | mstenta[m] | nice! |
| 18:23 | mstenta[m] | i wonder if they offer a tile server |
| 18:24 | mstenta[m] | if so, we could add it as a layer in OpenLayers maps |
| 18:24 | ludwa6 | that would rock. it’s so good, i can almost see the sensor in the ground :-) |
| 18:24 | jgaehring[m] | also wondering if this could be related: github.com/farmOS/farmOS-client/issues/2 |
| 18:24 | jgaehring[m] | ...reading into it again now |
| 18:25 | mstenta[m] | that could be related to the second issue he's experiencing |
| 18:25 | mstenta[m] | ludwa6: when you first click the "Movement" tab, are you selecting an area that has a geometry? |
| 18:26 | mstenta[m] | (in the "Movement to" field) |
| 18:26 | mstenta[m] | it should auto-populate the map with the selected area's shape |
| 18:26 | mstenta[m] | and it will use that same shape (and auto-zoom) when you then click on the map to go into "edit mode" |
| 18:26 | ludwa6 | it did show the area’s shape. but click on it, and then… back out to the view from nowhere |
| 18:27 | jgaehring[m] | > is the mapbox layer being added for the first screen, under the Movement tab? |
| 18:27 | jgaehring[m] | there's no layer switcher, but it should automatically load the Mapbox layers if the API key is present |
| 18:27 | mstenta[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:28 | mstenta[m] | > it did show the area’s shape. but click on it, and then… back out to the view from nowhere |
| 18:28 | mstenta[m] | huh that's weird |
| 18:32 | jgaehring[m] | I'm trying to figure out the steps to reproduce... |
| 18:32 | mstenta[m] | ludwa6: can you try farmos.app |
| 18:32 | ludwa6 | 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:32 | mstenta[m] | that is the same app - just in the browser instead of a native app |
| 18:32 | ludwa6 | i am there. |
| 18:32 | mstenta[m] | curious if you have the same issue there |
| 18:32 | jgaehring[m] | ludwa6: do you experience these issues when you create a brand new log without adding any assets or areas to it? |
| 18:32 | ludwa6 | but it says i have no logs at all to display -not even the 3 in FieldKit. let alone the one i' |
| 18:33 | ludwa6 | jgaehring: dunno, will try |
| 18:34 | jgaehring[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:34 | jgaehring[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:35 | jgaehring[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:36 | ludwa6 | i 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:37 | ludwa6 | maybe i should uninstall and reinstall again -dya think? |
| 18:37 | ludwa6 | what’s in FieldKit right now doesn’t matter |
| 18:40 | ludwa6 | the browser version of FieldKit does in fact show two overdue tasks, when i click the “upload” arrow at top RH corner of screen |
| 18:40 | ludwa6 | but it doesn' |
| 18:40 | ludwa6 | doesn’t show the task i assigned myself, to be done on next Friday |
| 18:41 | mstenta[m] | did you log in on farmos.app? |
| 18:41 | mstenta[m] | with the same username? |
| 18:41 | ludwa6 | mstenta: yes |
| 18:41 | mstenta[m] | ah ok |
| 18:41 | mstenta[m] | (sorry riot is moving slow) |
| 18:42 | mstenta[m] | ludwa6: can you post a screenshot of farmOS vs Field Kit? |
| 18:43 | mstenta[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:44 | mstenta[m] | ah yea... maybe use imgur.com - free upload |
| 18:44 | mstenta[m] | then you can just paste a link |
| 18:47 | ludwa6 | imgur.com/a/MBnu4t8 |
| 18:48 | mstenta[m] | Ahhhhhh |
| 18:49 | mstenta[m] | Field Kit doesn't support soil tests :-( |
| 18:49 | mstenta[m] | although it may support all log types soon! |
| 18:49 | ludwa6 | so: lemme try something else. an observation, perhaps. |
| 18:50 | mstenta[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:50 | mstenta[m] | github.com/farmOS/farmOS-client/issues/2 |
| 18:51 | ludwa6 | ok, so that observation showed up in web version of FieldKit |
| 18:52 | ludwa6 | and in mobile! ok, so that’s one problem solved. |
| 18:52 | ludwa6 | anything more to do on the map problem? |
| 18:53 | mstenta[m] | ok! great! |
| 18:53 | mstenta[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:55 | ludwa6 | web 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:04 | mstenta[m] | oh..... jgaehring is farmOS.app broken? |
| 19:04 | mstenta[m] | does it have field module code deployed for testing? |
| 19:05 | mstenta[m] | i'm seeing an error in console: `Error installing Test module` |
| 19:06 | jgaehring[m] | what's the version in farmOS.app? |
| 19:07 | jgaehring[m] | you may need to close that tab and reload it for the newest version to install |
| 19:07 | jgaehring[m] | > i'm seeing an error in console: `Error installing Test module` |
| 19:07 | jgaehring[m] | yea I made a mistake when building the last version for the web |
| 19:07 | jgaehring[m] | forgot to switch git branches |
| 19:07 | jgaehring[m] | that shouldn't cause any problems though |
| 19:08 | mstenta[m] | oh ok - yea it's v0.4.8 |
| 19:13 | jgaehring[m] | right, but Walt might not have that version |
| 19:13 | jgaehring[m] | (service workers might have something older cached) |
| 19:13 | mstenta[m] | ah right |
| 19:13 | ludwa6 | i am running 0,4.8, says my iPhone |
| 19:14 | mstenta[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:14 | jgaehring[m] | ah, that's strange then |
| 19:14 | mstenta[m] | ludwa6: is it 0.4.8 on farmOS.app as well? |
| 19:15 | ludwa6 | no -there it says 0.4.4 |
| 19:16 | mstenta[m] | ah ok! |
| 19:16 | ludwa6 | are we not all looking at the same thing at farmos.app ? |
| 19:16 | mstenta[m] | yes that's what we're looking at too... |
| 19:16 | mstenta[m] | but it has some caching involved which means you're looking at an older version |
| 19:16 | jgaehring[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:16 | jgaehring[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:16 | mstenta[m] | (service worker caching... a bit different than normal browser caching) |
| 19:17 | mstenta[m] | (so that it can work offline) |
| 19:17 | ludwa6 | i haven’t visited this app for many moons -since it was first announced in the discourse group, i think |
| 19:17 | mstenta[m] | ludwa6: what browser are you using? |
| 19:18 | ludwa6 | Google Chrome Version 78.0.3904.97 (Official Build) (64-bit) |
| 19:18 | jgaehring[m] | if you close the tab and reopen it, it should flush the cacheeeeeeeeeeee |
| 19:18 | jgaehring[m] | oops, sticky keyboard ;-) |
| 19:19 | ludwa6 | right -now i see the map in web version |
| 19:19 | jgaehring[m] | great! |
| 19:19 | ludwa6 | and here, the layers work as they should |
| 19:19 | mstenta[m] | great! and satellite layer? |
| 19:19 | jgaehring[m] | and is it just OSM, or do you see the MapBox sattelite view? |
| 19:19 | jgaehring[m] | great! |
| 19:19 | ludwa6 | i’m on the MapBox view now |
| 19:20 | ludwa6 | works fine in web app. |
| 19:20 | mstenta[m] | hooray! |
| 19:20 | jgaehring[m] | I'd still like to go through the steps to reproduce on the iOS app if we can |
| 19:20 | mstenta[m] | getting closer... :-) |
| 19:20 | ludwa6 | you need me for this? i gotta go for supper momentarily |
| 19:20 | jgaehring[m] | wondering again if this relates to issue #236 |
| 19:21 | ludwa6 | if there’s something i can do to help now, let me know… else it must wait an hour or so |
| 19:21 | jgaehring[m] | oh no worries |
| 19:22 | jgaehring[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:23 | ludwa6 | yes, it persists. |
| 19:23 | * | breaks for dinner |
| 19:23 | jgaehring[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:23 | jgaehring[m] | ah, darn |
| 19:23 | mstenta[m] | jgaehring: i wonder... |
| 19:23 | jgaehring[m] | thanks Walt, all good feedback, enjoy your supper!!! |
| 19:24 | mstenta[m] | the map is loading all farm areas... (displayed in gray) |
| 19:24 | mstenta[m] | yea thanks Walt! super helpful - we can finish later |
| 19:24 | jgaehring[m] | right |
| 19:25 | mstenta[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:25 | mstenta[m] | how are those being added to the map currently? can you point me to the relevant code? |
| 19:26 | jgaehring[m] | hmm, I don't think so... |
| 19:26 | mstenta[m] | because it sounds like the map is not zooming in. and iirc the map is set to zoom to that layer |
| 19:27 | mstenta[m] | so if that layer wasn't available, for whatever reason, then the zoomToLayer() would fail |
| 19:27 | mstenta[m] | (is that the function you're using in FK?) |
| 19:29 | jgaehring[m] | github.com/farmOS/farmOS-client/blob/mas |
| 19:30 | jgaehring[m] | `this.geoJSON` is the areas' GeoJSON |
| 19:30 | mstenta[m] | ah ok |
| 19:30 | mstenta[m] | hmm so... this is probably not the same issue but... |
| 19:30 | jgaehring[m] | `this.wkt` is the Movement Geometry |
| 19:31 | mstenta[m] | i see that there are two `if` conditions that run `zoomToLayer` and `zoomToVectors` |
| 19:31 | mstenta[m] | will those both run under certain conditions? |
| 19:31 | jgaehring[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:31 | mstenta[m] | if so, that might cause weird behavior |
| 19:32 | mstenta[m] | the `zoomToVectors` and `zoomToLayer` functions are a bit tricky... |
| 19:32 | mstenta[m] | github.com/farmOS/farmOS-map/blob/master |
| 19:33 | mstenta[m] | ah... soo.... |
| 19:34 | mstenta[m] | do we need to wrap the `zoomToLayer()` in an `on('change'` listener? |
| 19:34 | mstenta[m] | `zoomToLayer()` will only zoom `if (source.getState() === 'ready' && source.getFeatures().length > 0)` |
| 19:35 | mstenta[m] | so i wonder if, in Walt's case, that's not true when it is being run |
| 19:35 | mstenta[m] | but... i dunno... i mean... it's loading WKT, which I would think would be instanct |
| 19:35 | mstenta[m] | instant* |
| 19:36 | jgaehring[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:37 | mstenta[m] | right right `once` |
| 19:37 | mstenta[m] | that's what i meant |
| 19:37 | mstenta[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:38 | mstenta[m] | i'm not sure if it's necessary for non-HTTP request layers though |
| 19:38 | mstenta[m] | i would think that would be available immediately, but maybe it's not |
| 19:41 | mstenta[m] | this is just a guess... might be a red herring |
| 19:42 | jgaehring[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:42 | jgaehring[m] | right, that's why I needed to do that specifically for the geoJSON layer |
| 19:43 | mstenta[m] | oh hmm... you know... `once` might actually be an issue in some cases... |
| 19:43 | jgaehring[m] | > i would think that would be available immediately, but maybe it's not |
| 19:43 | jgaehring[m] | correct, the WKT is available immediately, so if the WKT is present, we zoom on that layer immediately |
| 19:43 | mstenta[m] | well.. not in this case actually i guess |
| 19:43 | mstenta[m] | (sorry , out of order riot messages) |
| 19:44 | mstenta[m] | hmm well - might be easier to debug with Walt present... |
| 19:45 | mstenta[m] | we can ask him if the WKT features are showing up or not (he'll have to manually zoom to them |
| 19:45 | jgaehring[m] | yea |
| 19:46 | mstenta[m] | the fact that it's working in farmOS.app, and not FK, is strange |
| 19:47 | mstenta[m] | iOS i mean |
| 19:49 | jgaehring[m] | yea |
| 19:50 | jgaehring[m] | Greg hasn't reported any issues with it has he? |
| 19:51 | mstenta[m] | I vaguely remember something similar with him |
| 19:51 | mstenta[m] | But I think it got resolved? |
| 19:51 | mstenta[m] | I'm not sure if they are actively using it yet |
| 19:55 | mstenta[m] | in the meantime... i'm getting back into the line/polygon measurement stuff :-) |
| 19:56 | mstenta[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:57 | mstenta[m] | this feels like something that would be a lot easier in Vue/React :-) |
| 19:58 | jgaehring[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:27 | mstenta[m] | when you say "essentially useless" does that mean broken? or just annoyingly slow? |
| 20:28 | ludwa6 | soon 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:28 | mstenta[m] | "WKT features" refers to the shapes that should show up on your map in gray (representing all the areas from your farmOS) |
| 20:28 | mstenta[m] | if you open the map in farmOS.app, you should see the grey area outlines (double check that...) |
| 20:28 | ludwa6 | and it never resolves into a usable image, no matter how long i wait |
| 20:29 | * | FijiDave has joined |
| 20:29 | ludwa6 | yes, correct: farmos.app shows the grey boundary areas |
| 20:29 | mstenta[m] | hmm yea that's really annoying... makes it hard to debug |
| 20:29 | ludwa6 | on a hi-rez map |
| 20:29 | mstenta[m] | so i guess we need to debug the mapbox layer first... so that we can debug the zoom issue |
| 20:30 | mstenta[m] | ludwa6: what version of iOS are you using, do you know? (@jg |
| 20:30 | mstenta[m] | (jgaehring are you able to see this in the Apple Test Flight system?) |
| 20:31 | ludwa6 | no 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:31 | mstenta[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:31 | mstenta[m] | just looking for any difference we can find at this point so we have something to dig into |
| 20:32 | jgaehring[m] | > "WKT features" refers to the shapes that should show up on your map in gray (representing all the areas from your farmOS) |
| 20:32 | jgaehring[m] | other way around, wkt is the orange shapes, geojson is the gray |
| 20:32 | ludwa6 | in fact i have farmOS open in iPhone’s safari brower. am looking to find the version… |
| 20:33 | ludwa6 | anyway: 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:33 | ludwa6 | iOS version is 13.1.3 |
| 20:33 | jgaehring[m] | > ([jgaehring](matrix.to/#/@jgaehring:matrix.org) are you able to see this in the Apple Test Flight system?) |
| 20:33 | jgaehring[m] | hmm, don't think so, but I can check |
| 20:34 | mstenta[m] | oh right - thanks for the clarification jgaehring |
| 20:34 | mstenta[m] | oh you mean you opened vdl.farmos.net? |
| 20:34 | mstenta[m] | try opening farmOS.app instead |
| 20:35 | mstenta[m] | i want to see if, on your phone, farmOS.app (in Safari), has the same issues as the iOS FK app |
| 20:35 | ludwa6 | mstenta: ok, will try |
| 20:36 | mstenta[m] | namely: |
| 20:36 | mstenta[m] | 1. map does not automatically zoom to gray areas |
| 20:36 | mstenta[m] | 2. MapBox layer is not available as an option |
| 20:38 | ludwa6 | mstenta: farmos.app map works fine in Safari on iPhone |
| 20:39 | ludwa6 | with grey boundary areas on hi-rez map, speedy update on zoom, etc. |
| 20:39 | mstenta[m] | ah ok interesting |
| 20:39 | mstenta[m] | wellll... worth noting: you can "install" farmOS.app and use it just like a standard iOS app |
| 20:40 | ludwa6 | ? |
| 20:40 | mstenta[m] | oh crap i may have spoken too soon ... I don't know if Apple supports that yet |
| 20:40 | ludwa6 | there is no installing a web app on iOS, AFAIK |
| 20:41 | mstenta[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:41 | jgaehring[m] | it's supported for the features we have, except the camera |
| 20:41 | mstenta[m] | "progressive web app" |
| 20:41 | jgaehring[m] | "install" is a bit of a misnomer |
| 20:41 | mstenta[m] | right... that's the only issue: camera isn't working yet |
| 20:41 | jgaehring[m] | basically, it's added to your home screen and cached for offline use |
| 20:42 | mstenta[m] | jgaehring: is it correct that iOS does not support that yet? |
| 20:43 | jgaehring[m] | iOS does not prompt you to add a PWA to your home sreen the way Android does |
| 20:43 | jgaehring[m] | but you can add it to your homescreen manually |
| 20:43 | jgaehring[m] | and all the other guts of the PWA are supported |
| 20:43 | jgaehring[m] | at least the pwa features we use |
| 20:43 | ludwa6 | jgaehring: do you know how to add to iOS home screen? |
| 20:44 | jgaehring[m] | it gets a little weird for stuff like push notifications, and background tasks |
| 20:44 | mstenta[m] | oh cool! |
| 20:45 | mstenta[m] | so in that case, you might be able to do that ludwa6 , and uninstall the app itself |
| 20:45 | mstenta[m] | we're hoping to get the camera stuff worked out in the near future... but everything else should work |
| 20:45 | ludwa6 | i don’t know about this, adding to home screen. Closest thing i can conceive is bookmarking the app in Safari. |
| 20:46 | jgaehring[m] | you use the share button in iOS safari |
| 20:46 | jgaehring[m] | and then one of the options it gives you is "Add to Home Screen" |
| 20:46 | mstenta[m] | yea it kinda like a special bookmark :-) |
| 20:47 | mstenta[m] | but better, and works offline |
| 20:47 | jgaehring[m] | right |
| 20:48 | ludwa6 | ah, i see how to do it. OK, it’s on my home screen. will test offline use. if that works… Cool! |
| 20:48 | mstenta[m] | cool! |
| 20:55 | ludwa6 | interesting: 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:56 | jgaehring[m] | awesome! |
| 20:56 | ludwa6 | only: did i understand you right, that camera doesn’t work in this PWA app on mobile? |
| 20:57 | jgaehring[m] | correct, however, you can upload images that you've already taken |
| 20:57 | jgaehring[m] | we're working to fix the feature for opening the camera directly from the app |
| 21:00 | ludwa6 | one PITA with this PWA version on iPhone is: i have to submit credentials every time i launch it. |
| 21:00 | mstenta[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:01 | mstenta[m] | (workaround) |
| 21:07 | * | gotta go; g’nite guys |
| 21:07 | * | ludwa6 has quit (Quit: ludwa6) |
| 21:08 | mstenta[m] | night ludwa6 ! great talking! |
| 21:12 | jgaehring[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 |