< 112022-12-12⋎13 >

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
08:15*heartburn has quit (Ping timeout: 255 seconds)
08:17*heartburn has joined
09:59*uploaded an image: (302KiB) < libera.ems.host/_matrix/media/v3/downloa >
10:05FarmerEd[m]> You might be taking this node-red stuff too far Farmer Ed 😆
10:05FarmerEd[m]Only getting started 🤓
10:05FarmerEd[m]Here is an App built with Node-Red, running locally on my phone so no need for a remote Node-Red server. This version is accessing the farmOS API in real time, but could easily be converted to an offline tool too.
10:06FarmerEd[m]It pulls the image from farmOS or uses a placeholder image if none were stored.
11:41mstenta[m]🤯
11:42mstenta[m]That's incredible!
11:42mstenta[m]Did you build the UI with Node Red too?
11:43FarmerEd[m]Yes, completely
11:44FarmerEd[m]It is possible to use additional Html, js, Vue etc. But that is just using the basic UI nodes.
11:44mstenta[m]> You might be taking this node-red stuff too far Farmer Ed 😆
11:44mstenta[m]I take it all back!
11:46FarmerEd[m]😃
15:03*farmBOT has joined
17:07paul121[m]<mstenta[m]> "paul121: I'm trying to get..." <- I believe we have configuration for this in our phpcs file. or when we run phpcs there is a flag to configure this IIRC
17:09mstenta[m]i figured it out... it was a mistake in my local env
17:10mstenta[m](a very strange one too... not one that i would expect would cause this issue)
17:10mstenta[m]> I don't know _why_ exactly it wasn't working... but I found that I had both `web/profiles/farm` and `web/profiles/profiles/farm` (by accident) and deleting the latter made tests work again 🤷
17:15paul121[m]<mstenta[m]> "I *think* we landed on defaultin..." <- 👍️
18:41paul121[m]soooo a limitation of our current GeoJSON feature is that it is not paginated :-/ This shouldn't be an issue until an instance has many 100s of assets with geometries. But it's an issue for Rothamsted's Experiment plan which in can in some cases have this many assets
18:41paul121[m] As I understand WFS/OGC features API might have support for pagination or "offsets"... cc: symbioquine
18:41symbioquine[m]Yeah, I think so...
18:42symbioquine[m]It's been a while
18:42symbioquine[m]WFS definitely does, I just can't remember whether I implemented it yet or not :)
18:43paul121[m]cool!
18:44paul121[m]it would also be a question if Openlayers client can consume the pages
18:44symbioquine[m]I definitely implemented bounding box queries, so if you zoom in it would get just the features for the area you're viewing
18:46symbioquine[m]Oh, yeah I'm only advertising the BBOX filter capability: github.com/symbioquine/farmOS_wfs/blob/3
18:46symbioquine[m]So I think that's the answer for now...
18:48paul121[m]I'm also curious if we could improve the speed of geojson requests. Right now it is computed from WKT each time it is requested, but really it should only need to be computed once, at the time the geometry is saved
18:48paul121[m]similar to how the bbox is computed and saved in the table as well
18:49mstenta[m]yea that seems like something the geofield modules should just do
18:49symbioquine[m]Oh, yeah I think pagination isn't really in the WFS 1.1.0 spec that I implemented, you'd need WFS 2.0 for that...
18:49symbioquine[m]But OpenLayers supports it in either: github.com/openlayers/openlayers/blob/3b
18:50symbioquine[m]Since I guess some WFS implementations go off-spec and provide it with WFS 1.1.0 anyway.
18:52symbioquine[m]Happy to accept a PR for farmOS_wfs that does the same thing if it brings it in line with was QGIS and OpenLayers support when talking to a WFS 1.1.0 server...
18:52symbioquine[m]or possibly implementing WFS 2.0 in farmOS_wfs, but that would be a much larger change
18:54paul121[m]cool! I'm not sure which I would prioritize... both would be amazing haha
18:56symbioquine[m]Yeah, no pressure :)
18:57paul121[m]WFS 2.0 would be an amazing initiative. maybe something we could try to advocate funding for
18:57paul121[m]it seems it would be quite useful for integrating with all sorts of existing things
18:58symbioquine[m]There's also the newer "OGC Features API"
18:58paul121[m]righttt
18:58symbioquine[m]I was kinda letting the "dust settle" to see what would be better from a QGIS/OpenLayers support perspective.
18:58symbioquine[m]WFS 1.1.0 is perfectly functional for most things
19:01paul121[m]and there are major changes between all of these? not just additional features?
19:02symbioquine[m]yeah, to varying degrees I think
19:02symbioquine[m]Would need to do some careful reading of the specs to answer properly :)
19:04symbioquine[m]I can't remember which protocol versions it becomes a possibility in, but GeoJSON is a possible response format
19:04paul121[m]yeah. well I'd be curious to learn more! it would be great to eventually have a formal proposal/spec of what would be needed to implement the latest versions, prioritize features/filters, etc...
19:04paul121[m]oh cool
19:04symbioquine[m]gis.stackexchange.com/a/251743/64579
21:14mstenta[m]> the automated tests really killed that dream 😜
21:14mstenta[m]idle thought but... i wonder if there's any argument for packaging farmOS releases without test code?
21:14mstenta[m]i wonder what the size difference would be (and if it would matter)
21:15mstenta[m]might be a bit tricky to do, too... because tests are all nested in each module directory
21:15mstenta[m]but could probably figure out some way
21:15symbioquine[m]Or just calculate the code ratios in a way that ignores the tests
21:16mstenta[m]ah that's interesting too
21:16mstenta[m]fwiw i learned that GitHub looks at this file when calculating code ratios: github.com/farmOS/farmOS/blob/2.x/.gitat
21:17mstenta[m]I had to add that in order for YAML to get counted at all
21:18mstenta[m]github.com/github/linguist/blob/master/d
21:19symbioquine[m]Cool!
21:19mstenta[m]maybe: */tests/*.php -linguist-detectable
21:20symbioquine[m]Could we just bump them into a new fake language "PHP Tests"?
21:20mstenta[m]huh
21:20symbioquine[m]So they still show up, but aren't mixed in with the regular PHP code?
21:20mstenta[m]interesting idea
21:20mstenta[m]or just "tests"
21:21mstenta[m]maybe i'll try a quick test on my fork
21:30mstenta[m]hmm i think it only works for languages defined in github.com/github/linguist/blob/master/l
21:36mstenta[m]tried these - no effect:... (full message at <libera.ems.host/_matrix/media/v3/downloa>)
21:37mstenta[m]hard to tell how the caching of it works... but i did try this initially and it did have an effect (but seemed to jump back and forth with refresh, probably diff load balancers or something)(:
21:37mstenta[m]`*.php -linguist-detectable`
21:37mstenta[m]oh well giving up :-)
21:37mstenta[m]timebox exceeded
21:39mstenta[m]> i wonder what the size difference would be (and if it would matter)
21:39mstenta[m]in either case, this was kind of a different question... whether or not there would be justification for offering slimmer packaged releases that don't include all the testing code
21:39mstenta[m]maybe nice on a raspberry pi... but i suppose even there storage is pretty cheap these days...
21:39mstenta[m]the tarball size of farmOS 2.0.0-beta8.1 is 81.3 MB
21:40mstenta[m]i bet the vendor code takes up the bulk of that, so excluding our test code probably wouldn't really make much difference

< 112022-12-12⋏13 >