< 292019-12-30⋎31 >

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
14:23mstenta[m]oh! that's good svenn7 !
14:23mstenta[m]"almost"?
14:50mstenta[m]generalredneck: thanks for the OpenCollective contribution!!
14:50mstenta[m]Very generous!
15:06*JustTB has joined
15:16*JustTB has quit (Ping timeout: 248 seconds)
15:48*leogaggl[m] has left ("Kicked by @appservice-irc:matrix.org : User has been idle for 30+ days.")
15:52*ayushj_[m] has left ("Kicked by @appservice-irc:matrix.org : User has been idle for 30+ days.")
15:52*xp42[m] has left ("Kicked by @appservice-irc:matrix.org : User has been idle for 30+ days.")
16:23*spitz234[m] has quit (Quit: User has been idle for 30+ days.)
16:38*munjoma[m] has left ("Kicked by @appservice-irc:matrix.org : User has been idle for 30+ days.")
16:53generalredneck[mFound you on the web... in www.drupal.org/project/restws/issues/108 :P
16:54mstenta[m]haha yup! that's me :-)
16:54generalredneck[mbetcha can't guess what I'm trying to do
16:55mstenta[m]`PUT` request?
16:55generalredneck[mwell I know CORS is a thing... I'm about to test out creating a log entity using Ajax
16:56mstenta[m]ah gotcha
16:56mstenta[m]have you seen farmOS.js?
16:56mstenta[m]github.com/farmOS/farmOS.js
16:56generalredneck[mno.
16:57generalredneck[mI saw an api package using pyton
16:57generalredneck[mdidn't see that one
16:57mstenta[m]yes! we have both py and js libraries :-)
16:57generalredneck[mI considered duplicating it in PHP for funsies
16:58mstenta[m]farmOS.py is used in farmOS-client (Field Kit)
16:58mstenta[m]oops, i mean farmOS.js
16:58mstenta[m]ha! that's actually where it started... but we didn't continue the farmOS.php library yet...
16:58generalredneck[mbut decided I would work on trying to convert a paper form into a webpage
16:58mstenta[m]github.com/farmOS/farmOS.php
16:58mstenta[m]oh neat!
16:58mstenta[m]pretty soon you'll be able to build "Field Modules" for use in Field Kit
16:59*uploaded an image: Peek 2019-12-30 10-56.gif (255KB) < matrix.org/_matrix/media/r0/download/mat >
16:59generalredneck[m☝️ something like that... where we show the number of eggs in the calendar days
17:00mstenta[m]oh neat!\
17:00mstenta[m]can you put the egg count inside an egg-shaped graphic? :-)
17:00generalredneck[mshould do it in a chicken and duck shaped graphic :P
17:00mstenta[m]even better
17:01generalredneck[mI could do it in drupal really easily but I was trying to do something not tied to the site.
17:02generalredneck[mlearning exercise since I'm a super strong backend PHP dev first and lack luster JS dev at best
17:03mstenta[m]Yea cool!
17:03mstenta[m]In general, I would like to see more stuff developed in the frontend moving forward
17:03mstenta[m]That's part of the goal of Field Kit
17:03mstenta[m]Leveraging Drupal's backend API features/headless/etc more
17:04mstenta[m]Especially in D8!
17:04generalredneck[myeah your data model lends itself well to the decoupled ideaology
17:04mstenta[m]That's the hope!
17:05mstenta[m]And I want to get to D8 as soon as possible... because people are starting to build stuff and I hate to pull the rug out with the inevitable breaking changes
17:05mstenta[m]At the very least, we can distinguish "farmOS 1.x API" from "farmOS 2.x API"
17:05mstenta[m]Lots of moving parts though... as always :-)
17:05generalredneck[myeah I was wondering if you were going to try and translate it as much as possible verbetium or if you were going to take the opportunity to refactor
17:06mstenta[m]We have funding for it though - so the gears are in motion!
17:06mstenta[m]There will be some refactoring... but for the most part I think the general models are solid
17:06generalredneck[mI know field collections is a thing (I personall hate em) and d8... custom entities and fields are a breeze
17:07mstenta[m]Small example: I want to move away from using Field Collections, and create custom field types where we need them
17:07mstenta[m]Haha exactly!
17:07mstenta[m]You beat me to it ;-)
17:07generalredneck[myeah since properties and fields are both 1st class citizens now
17:07mstenta[m]I actually wrote a shim module to make Field Collections work with restws in D7: www.drupal.org/project/restws_field_coll
17:07mstenta[m]But it will be nice to simplify those things
17:08generalredneck[myeah I saw that and if I recall one of my clients uses it.
17:08mstenta[m]oh cool! :-)
17:13generalredneck[mI like writing SAAS style apps in D8. It's a great way to prototype. Example I'm currently rewriting Evercurrent since we at Four Kitchens bought it. and it's so much cleaner in D8. Not that you can't do simular tactics in D7 with xautoload, and enabling a composer based workflow... but you have to hack the 2 styles together because you are joining "old and busted" with "New hotness".
17:13generalredneck[mthumbs.gfycat.com/GoldenUnnaturalCoati-s
17:14mstenta[m]haha yea
17:14mstenta[m]that's cool - i haven't heard of evercurrent
17:15generalredneck[mit's a lot like DropGuard
17:15generalredneck[mit's the only way that our support department can keep up with all 45 sites we have in one place
17:17generalredneck[mThe idea behind it is have a dashboard of all the sites with their current project states in one place and be alerted of security upgrades when they are needed. Every Wednesday is Contrib security release window and every 3rd Wednesday is Core Release window... so we have to know :P
17:17mstenta[m]Oh that sounds very helpful
17:17*sudokita[m] has left ("Kicked by @appservice-irc:matrix.org : User has been idle for 30+ days.")
17:18generalredneck[myeah trying to manage that kinda thing via drush (when your clients are behind vpns) or the old school drupal update emails is really hard.
17:26*lablab[m] has quit (Quit: User has been idle for 30+ days.)
17:27*wimpertier[m] has quit (Quit: User has been idle for 30+ days.)
17:34*applecreekacres[ has quit (Quit: User has been idle for 30+ days.)
17:36symbioquine_mstenta[m] I played some with the D8 rest API configurations without much luck. Even with a lot of module/configuration changes I couldn't get the API to return basic stuff like taxonomies/entities. Unless I'm missing something, it feels like D8 basically kills the viability of general-purpose API-based tooling since the author of such tooling could make very few assumptions about what APIs/formats a given Drupal installation
17:36symbioquine_might expose.
17:37*bkumpula[m] has quit (Quit: User has been idle for 30+ days.)
17:38symbioquine_Also, I had trouble finding very comprehensive/coherent documentation for the functionality that is exposed.
17:40*donblair[m] has quit (Quit: User has been idle for 30+ days.)
17:42mstenta[m]symbioquine_: Huh - I haven't played with it much myself either, but my assumption is that it works similarly to the way the `restws` module works in D7
17:42symbioquine_Obviously that isn't necessarily a problem for FarmOS, since FarmOS has the prerogative of choosing a more sane default configuration and documenting it well.
17:42mstenta[m]Automatically generates RESTful endpoints for each entity type
17:42mstenta[m]generalredneck: you might know more?
17:43generalredneck[mI'm looking... I've only ever generated my own Resources so far.
17:43mstenta[m]Yes true... we are essentially defining the API using the building blocks/features Drupal provides
17:43mstenta[m]So for farmOS, we define our entity types, which we can then publish and describe in our own documentation
17:43mstenta[m](like we do now: farmOS.org/development/api)
17:44generalredneck[mcontent for sure is a default resource... I just don't know about other entities
17:44symbioquine_"my assumption is that it works similarly to the way the `restws` module works in D7" - That's what I was hoping for, but either I wasn't using it right or you don't get that out-of-the-box...
17:44generalredneck[mand at one point I know the "UI" wasn't there and you have to use json configuration or enable them using your settings.php
17:45generalredneck[mgive me a minute to spin up a lando instance and I'll poke around because it's been a while
17:48symbioquine_Someone mentioned earlier, the question of making client libraries detect D7 vs D8. I think that could be done using the 'x-generator' header returned as part of the login page...
17:49generalredneck[myeah if you make sure to do that... I would use a differnt api version number though
17:49generalredneck[msome people hid the x-generator header because of the "security" implications
17:49mstenta[m]yea we did implement an "API version" in the `/farm.json` endpoint for that very reason
17:50generalredneck[mit's very popular to have the version as part of the URL as well
17:50mstenta[m]farmos.org/development/api/#farmjson
17:50generalredneck[mthat way you can provide simultaneous compatibility and handle apps that try to acces the older apis
17:50symbioquine_For a FarmOS-specific client depending on farm.json makes sense.
17:51mstenta[m]> it's very popular to have the version as part of the URL as well
17:51mstenta[m]yea! i would love that... unfortunately i don't think it's really feasible in our case because that would also imply that the code supports multiple versions
17:51generalredneck[m☝️ very true
17:51generalredneck[mbut you could always supply a deprecated message via all your resources on older versions.
17:52symbioquine_I think a more practical approach would be a stand-alone proxy which adapts between the two API versions.
17:53generalredneck[mDepends on your traffic... you produce a single point of failure there...
17:53mstenta[m]my thought is it could be handled downstream by the api consumer code
17:53mstenta[m]eg: check to see if the farmOS version is one that is supported, and only proceed if that's the case (because the code is built on those assumptions)
17:54mstenta[m]it's not ideal in every situation of course
17:54symbioquine_What do you mean generalredneck[m about a single point of failure?
17:55generalredneck[mif you have a proxy that directs traffic based on version
17:55symbioquine_mstenta[m], then each clients' code-base gets increasingly more complex the more versions of the FarmOS API it needs to support.
17:55generalredneck[mthat means the proxy is the point of failure
17:55generalredneck[mexample... a rouge syntax error would bring down all api endpoints
17:55symbioquine_What kind of failure are you anticipating?
17:56generalredneck[m> Even with a lot of module/configuration changes I couldn't get the API to return basic stuff like taxonomies/entities
17:56generalredneck[mabout this... what do you see at /admin/config/services/rest?
17:56symbioquine_Yeah, obviously it's only as good as the implementation :)
17:56generalredneck[mbah... markdown fail
17:56mstenta[m]symbioquine_: not necessarily... really depends on the changes being made. we will always try to maintain backwards compatability on the major version (eg: 1.x)... and minor versions will generally only ADD things
17:57mstenta[m]in the near future, the main thing it will be useful for is asking "is this farmOS 1.x or 2.x" - which will most likely have breaking changes
17:57generalredneck[msymbioquine_: about ☝️... what do you see at /admin/config/services/rest?
17:59*uploaded an image: image.png (359KB) < matrix.org/_matrix/media/r0/download/mat >
17:59generalredneck[myou should see something like☝️
17:59generalredneck[mobviously I have custom entities in this implementation and a custom resource
17:59mstenta[m]oh wow
18:00mstenta[m]that is nifty!
18:00mstenta[m]and so in our case, we will pre-enable the entity types we create by default in config
18:03symbioquine_user-images.githubusercontent.com/307544
18:06generalredneck[mobviously you can combine some creation (if the default resources don't cut it) by creating your own... www.drupal.org/docs/8/api/restful-web-se will be helpful and `drupal generate:plugin:rest:resource` will be your friend using Drupal Console
18:07generalredneck[mDrupal console uses a little dated code template... but it sure does help for getting moving fast.
18:11generalredneck[msymbioquine_: did that help out or did I miss out on something specific you were trying to accomplish?
18:21symbioquine_With D7 I can query a list of all the taxonomies by issuing a GET request against `/taxonomy_vocabulary.json`, but I haven't been able to get the equivalent to work with D8.
18:22mstenta[m]in your screenshot, it looks like the D8 equivalent URL is: /entity/taxonomy_vocabulary.json
18:23mstenta[m]symbioquine_: side question: i see that you have "oauth2" as an authentication option - are you using the `simple_oauth` module? (www.drupal.org/project/simple_oauth) paul121 has been looking into that for farmOS to use in D8
18:24symbioquine_"in your screenshot, it looks like the D8 equivalent URL is: /entity/taxonomy_vocabulary.json" - I've tried that. ...and various combinations of `_format` params.
18:25mstenta[m]oh hmm
18:25symbioquine_mstenta[m], experimenting with OAuth was actually the reason I started looking into D8 since I was having trouble getting it to work on D7.
18:27symbioquine_For this API-level testing though I'm just logging in, then getting a CSRF token from `/session/token` ,and passing that as part of my requests.
18:31generalredneck[mso your Accept type needs to match what you have in your "get" parameters.
18:31generalredneck[mrather your Content-Type header
18:32generalredneck[mI seem to recall there being issues... I'll try enabling taxonomy and the resourse locally real quick
18:35mstenta[m]You know... this actually relates to something we need in farmOS Field Kit...
18:35symbioquine_I've tried setting various content-type headers on my requests like; `Content-Type: application/vnd.api+json`
18:35mstenta[m]There isn't a built-in way in Drupal of asking "what bundles are available for this entity type?"
18:36mstenta[m]Which is what we need in Field Kit to know which log types are available
18:36mstenta[m](Since that depends on which modules you have installed)
18:36mstenta[m]So we worked around that by listing some of that info in `/farm.json` for now... but ultimately I feel like that should be a Drupal core feature
18:36mstenta[m]And that's essentially what the vocabularies are too...
18:36generalredneck[mthere is in D8
18:36mstenta[m]Oh??
18:36symbioquine_curl --cookie-jar farmOS-cookie.txt -d 'name=root&pass=test&form_id=user_login' 172.18.0.3/user/login
18:36symbioquine_TOKEN="$(curl --cookie farmOS-cookie.txt 172.18.0.3/session/token)"
18:36symbioquine_curl -i --cookie farmOS-cookie.txt -H "X-CSRF-Token: ${TOKEN}" 172.18.0.3/entity/taxonomy_vocabulary
18:37symbioquine_yields a 404
18:37generalredneck[mI say that... I thought /entity/node_type was a thing
18:37generalredneck[mbut looks like you got to know the node_type to be able to use it
18:37mstenta[m]Ah ok so there isn't a general way to get a list of bundles?
18:40generalredneck[mnot that I know of off the top of my head. You can't access configuration entities generically obviously... but that would be an easy resource to create
18:46mstenta[m]cool yea - so maybe we'll end up writing a simple contrib module for that
18:49mstenta[m]or just keep doing what we're doing with something custom in farmOS
18:51generalredneck[mmstenta: www.drupal.org/project/entity_rest_extra
18:51generalredneck[mdoesn't get super points for people using it... but looks like it has what you are asking for.
18:53mstenta[m]oh interesting!
19:05generalredneck[m> curl -i --cookie farmOS-cookie.txt -H "X-CSRF-Token: ${TOKEN}" 172.18.0.3/entity/taxonomy_vocabulary
19:05generalredneck[msymbioquine_ yeah you are right... there's not an endpoint for listing all vocabularies.
19:05generalredneck[mif you know what vocabulary you want... you can get it's information...
19:09generalredneck[mapparenlty that module above ☝️ was also proposed as a feature requiest www.drupal.org/node/2355291#comment-9241
19:15symbioquine_With the `farmos/farmos:8.x-2.x` docker image, I don't see any vocabularies at `/admin/structure/taxonomy` is that expected?
19:17mstenta[m]<symbioquine_ "With the `farmos/farmos:8.x-2.x`"> Oh... @sysymbioquine_ there is no farmOS version for Drupal 8 yet
19:17mstenta[m]Or rather: it has barely begun
19:18mstenta[m]Sorry I misunderstood your earlier I think
19:19mstenta[m]So yes. That's expected because no vocabularies have been created in farmOS 8.x-2.x yet
19:20symbioquine_Ok, I think the combination of having no vocabularies and D8 not providing any useful APIs when it doesn't have any data explains the behavior I was seeing.
19:21mstenta[m]Ah ok
19:21symbioquine_Weird for them not to include any "meta APIs" in the core system... feels like a step backwards.
19:21mstenta[m]Yea although drupal 7 core didn't either
19:22mstenta[m]It was the restws module that provided the vocabulary list I think
19:22mstenta[m]Just for vocabularies though
19:22mstenta[m]Not other entity types
19:23mstenta[m]But yea, I agree, it's a step backward from Drupal7+restws in that regard, it seems
19:27symbioquine_Makes sense
19:27generalredneck[mLooks like that module has some bugs we would have to figure out
19:29*uploaded an image: Screenshot_2019-12-30_13-28-45.png (128KB) < matrix.org/_matrix/media/r0/download/mat >
19:29mstenta[m]womp womp
19:29paul121[m]> symbioquine_: side question: i see that you have "oauth2" as an authentication option - are you using the `simple_oauth` module? (www.drupal.org/project/simple_oauth) paul121 has been looking into that for farmOS to use in D8
19:29paul121[m]Wooo! Excited about OAuth!
19:30symbioquine_Yeah, it would be ideal for tooling like my area-feat-proxy not to to need to deal with credentials directly. :)
19:30symbioquine_*feature
19:30paul121[m]I've only played with it a little bit in D8. But seems like `simple_oauth` is even more straight forward than the D7 module `oauth2_server`
19:32paul121[m]We're hoping to make tokens migrate when upgrading from D7 to D8, too! I think we could make this even easier by using JWT - because then they aren't saved to the DB. Just encrypted with a public/private key that would be moved to the new server
19:32symbioquine_Yeah, it seemed easier to set up Oauth2 with D8.
19:32paul121[m]Both the D7 and D8 modules support JWT, so hopefully it's compatible
21:05*uploaded a video: aggregator-demo.mp4 (341KB) < matrix.org/_matrix/media/r0/download/mat >
21:06paul121[m]Here's a demo of the OAuth2 Authorization Code flow in use with the Aggregator...
21:06paul121[m]This is the "new" Open Registration page I've been working on. Good example of OAuth capabilities
21:07mstenta[m]Wow! That is awesome paul121 !!!
21:09paul121[m]Thanks! Still hindered by having to do a "pop up" and not complete redirection
21:09paul121[m]But when a window is full-screen it opens a new tab instead of opening a new window.. almost like redirect.. haha
21:10mstenta[m]On the topic of exciting new features... @jgaehring:matrix.org and I are getting the "find nearby areas" working in Field Kit
21:10mstenta[m]twitter.com/getFarmier/status/1211756144
21:11paul121[m]!!! cool
21:13mstenta[m]Oh man... it was so exciting to walk outside just now (in the rain) and test it live with my garden beds
21:13mstenta[m]it works really well... i walked to different parts of the property and the list of "nearby" areas updated accordingly
21:16paul121[m]That'll be very useful!
21:17*ludwa6 has quit (Quit: ludwa6)
21:18symbioquine_paul121[m], couldn't you save the current registration state to the db or pass it through embedded in the url somehow then use redirects?
21:22generalredneck[mReally wish the other layers were as good as google maps... my property doesn't even show on the others
21:22generalredneck[mBut gmaps == $
21:23mstenta[m]I wish we could drop google maps
21:24mstenta[m]It is a HUGE pain to get it working with the new OpenLayers
21:24paul121[m]symbioquine_: From what I understand, the redirect URL has to be saved on the farmOS server. In the initial authorization request, you must supply the redirect_url *exactly* as it is configured on the server
21:24paul121[m]With the distributed nature of farmOS this makes things hard..
21:25symbioquine_generalredneck[m, Does your county provide GIS data? If so, you might be able to load that into QGIS and use github.com/symbioquine/farm-os-area-feat for certain mapping tasks...
21:25*spicyfawkes[m] has left ("User left")
21:25mstenta[m]paul121: IIRC that's a limitation of the `oauth2_server` module, correct?
21:25symbioquine_paul121[m], Oh, that's frustrating. I thought it was only prefix whitelisting for the redirects :(
21:25mstenta[m]But might not be a limitation of `simple_oauth` in D8?
21:26symbioquine_Admittedly, haven't played with it very much yet.
21:27paul121[m]mstenta: yeah, I think `simple_oauth` might allow you to supply any redirect_url ... but it's also a best practice to match the redirect url for security
21:28paul121[m]> The best way to ensure the user will only be directed to appropriate locations is to require the developer to register one or more redirect URLs when they create the application.
21:28paul121[m]from www.oauth.com/oauth2-servers/redirect-ur
21:28paul121[m]So in the case of the Aggregator (or any 3rd party app that uses OAuth) I'm curious if we need to think more about this. Because we're distributed, we can't register a redirect_url for all farmOS servers
21:29paul121[m]An OAuth2 client can be added and configured via a drupal hook
21:29paul121[m](`farmos_api_oauth` does this to configure the default OAuth2 server and client)
21:30paul121[m]But that means 3rd party apps have to supply a drupal module to do this, have it enabled, etc
21:30mstenta[m]right... that's not a reasonable expectation
21:31mstenta[m]i don't think...
21:31mstenta[m]this all will require some more thought, i agree
21:31mstenta[m]i need to run... evening == family time here
21:31mstenta[m]talk to you all later!
21:32paul121[m]👋
21:33generalredneck[m> generalredneck, Does your county provide GIS data? If so, you might be able to load that into QGIS and use github.com/symbioquine/farm-os-area-feat for certain mapping tasks...
21:33generalredneck[mYeah it's there. Gives a pretty good idea of property lines as they were in the past year. Just they dont show the same amount of water features and stuff you can get from satalite view on GMaps
21:34symbioquine_Bummer. Some counties provide higher resolution aerial imagery.
21:35mstenta[m]> But gmaps == $
21:35mstenta[m]generalredneck fwiw I have a single API key that I provide to all Farmier-hosted instances, and I haven't been charged anything yet - so their API request limits are very reasonable
21:36paul121[m]Oh interesting..
21:36*sent a long message: < matrix.org/_matrix/media/r0/download/mat >
21:37*uploaded an image: Screenshot_20191230-153545_Maps.jpg (176KB) < matrix.org/_matrix/media/r0/download/mat >
21:37*uploaded an image: Screenshot_20191230-153448_Chrome.jpg (123KB) < matrix.org/_matrix/media/r0/download/mat >
21:38generalredneck[mI'm 8281 and 8282
21:38paul121[m]symbioquine: I was curious with QGIS... can that host a map/tile layer that could be pulled in with farmOS or Openlayers?
21:40paul121[m]generalredneck: looks nice!! - the second image, is that public property lines of some sort?
21:41generalredneck[mYeah tax appraisal lines
21:44generalredneck[mOnly have 8 1/2 acres :p not a lot... but a find this close to Dallas
21:45symbioquine_paul121[m], I'm not sure about that. I think QGIS can run as some sort of feature server, but I don't know what it would take to configure the map in FarmOS to display features from it.
21:46symbioquine_The objective of farm-os-area-feature-proxy serves a different use-case. It only lets you work with the FarmOS areas data in external software that supports the WFS protocol.
21:46generalredneck[mInteresting. Didnt even know you could do that at all :p
21:48paul121[m]Right. But that's a great tool to have, too!
21:49paul121[m]I haven't had a chance to play with it yet. But your demo looked awesome.
21:49paul121[m]I'm curious how we can get custom imagery into farmOS.. for when someone comes asking if they can fly a drone over their farm and use the imagery..
21:51generalredneck[mYeah... I was thinking the same... even if someone wanted to do like a hand drawn map on a napkin (I'm only half kidding)
21:51generalredneck[mBecause like with my networking software showing my wifi radios I can do that...
21:52paul121[m]Do you have ubiquiti gear? :-)
21:52generalredneck[mUnifi has like $$$ to throw at a feature like that :p
21:53generalredneck[mHow'd you guess :p
21:54*JustTB has joined
21:54generalredneck[mThe beauty of small property and ubiquitous really great radios... not hard (or expensive) to throw up a mesh network all on the same ssid
21:55paul121[m]Yea! Which radios are you using?
21:56paul121[m]I've worked with the Nanobeams to create some ~0.5mi bridges on a farm property. But didn't touch whole-farm wifi coverage... yet :D
21:58generalredneck[mUnifi ac mesh uap-ac-m for most of them but I have a nanobeam and a lite beam for the high bandwidth applications like my office and the stables
21:59generalredneck[mThe mesh gets saturated really easily if you start using zoneminder on it
22:02generalredneck[mTheres a thought... hook up a zoneminder alarm script to FarmOS to write observations... especially if you were able to run the frame through some ai to determine what the frame was like the greater of zmninja wrote about here medium.com/zmninja/inside-the-hood-machi
22:03generalredneck[mIf the machine learning script could differentiate coyote for example :p
22:05paul121[m]What is zoneminder?
22:05paul121[m]That's a great setup!
22:07generalredneck[mZoneminder is a pho application for managing camera feeds
22:07paul121[m]Ah! It's open source, too! Neat.
22:08generalredneck[mBeen around for ages. And the support for cheap cameras is great... if you get the hang of it.
22:10paul121[m]Cool. I do some tech work for a local security company and have done a good bit of camera installs
22:10paul121[m]But we use ExacqVision software. Runs on linux at least, but not open. I've wondered if there was something out there
22:12paul121[m]But.... that would be super cool integration :D
22:12paul121[m]Or - "The tractor is parked in the shed - create a movement log"
22:13generalredneck[mThat one might be easier honestly
22:16generalredneck[mYou can choose areas on the camera view to fire different events when there is movement... so where the tractor sits would be an area and you could poll the api for when an event of that type fired. And then write a log for it.
22:16generalredneck[mI once did that with my camera at the gate to tell me when people drove up to it.
22:17symbioquine_> I'm curious how we can get custom imagery into farmOS.. for when someone comes asking if they can fly a drone over their farm and use the imagery..
22:17symbioquine_Yeah, there are definitely use-cases where it is far better to have the imagery appear directly within FarmOS.
22:19paul121[m]> You can choose areas on the camera view to fire different events when there is movement... so where the tractor sits would be an area and you could poll the api for when an event of that type fired. And then write a log for it.
22:19paul121[m]Oh neat! Another thought.... would it be easy to use those zoneminder to take images and attach them to logs?
22:20paul121[m]My thought... you could have an image captured every time the tractor is parked or left. And see who is driving
22:20generalredneck[mI don't see why not
22:20paul121[m]OR ... use zoneminder as a way of snapping pics in a distribution/pack house setting
22:20generalredneck[mThe event gives you frame URLs if you want
22:21paul121[m]That's neat. I'll have to try and play with that some, too
22:22generalredneck[mMotion detection takes some fiddling just fyi. Depends on how good the camera is.
22:23paul121[m]> Yeah, there are definitely use-cases where it is far better to have the imagery appear directly within FarmOS.
22:23paul121[m]symbioquine_ Yeah. There's some groups working on larger scale satellite imagery and classifications. And curious how we can get that info farmOS - they might have a models for a certain region or state
22:23paul121[m]> Motion detection takes some fiddling just fyi. Depends on how good the camera is.
22:23paul121[m]Right. I think the ExacqVision software does some of that, but I haven't been (paid to) play with it
22:25paul121[m]The latest client is a hemp farm.. they want an RFID system to track vehicles/tractors/atv's moving around the property. That's the next thing I get to play with. Being a farm I'm also trying to steer them towards farmOS...
22:26generalredneck[mLol
22:34paul121[m]Reading the Zoneminder docs, it could be cool to include live streaming on an Asset page
22:35paul121[m]Looks pretty easy. And you can add simple html to an asset page in farmOS... maybe you could try this generalredneck ;) zoneminder.readthedocs.io/en/stable/api.
22:36generalredneck[mYeah I was thinking it would be cool to have a media entity for it
22:37generalredneck[mThat would allow you to add the video as a entity reference in D8
22:40generalredneck[mOtherwise you could copy the video (or image) using php... that way the file doesn't get garbage collected... or if say the zoneminder server isn't public.
22:42generalredneck[mAlso that way you get the advantage of image styles and the like instead of always showing the full 1080p image :p
22:48paul121[m]Ohh I see
22:49paul121[m]Wait - would that be for saving media to DB?
22:50paul121[m]Or basically add more capabilities over just embedding a <img ... > tag?
22:57generalredneck[m> Or basically add more capabilities over just embedding a <img ... > tag?
22:57generalredneck[mThat one.
23:08paul121[m]Interesting. Didn't know about image styles!

< 292019-12-30⋏31 >