< 292018-10-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
06:18*alexheiss[m] has quit (Ping timeout: 250 seconds)
06:18*munjoma[m] has quit (Ping timeout: 250 seconds)
06:18*stanton[m] has quit (Ping timeout: 250 seconds)
06:19*alexheiss[m] has joined
06:20*munjoma[m] has joined
06:23*stanton[m] has joined
08:51*stanton[m] has quit (Ping timeout: 250 seconds)
08:51*alexheiss[m] has quit (Ping timeout: 250 seconds)
09:02*alexheiss[m] has joined
09:03*stanton[m] has joined
12:33jgaehring[m]yes, that's primarily what I have a mind to, in structuring the monorepo... i still need to play around with exactly how it works if import the npm packages from the monorepo into another repo, but it should be easy... or we could even include the farm_offline module in the monorepo too
12:37jgaehring[m]i think there's also some potential to reuse the http plugin for doing ajax, once that's made into its own package too, though i'm not 100% sure about that
13:11mstenta[m]awesome!
13:11mstenta[m]i love the idea of eventually including the same client UI in farmOS itself
13:12mstenta[m]and it's also neat if it can be used completely disconnected from either the native app OR the server (ie: running it as just a set of files on your desktop)
13:12mstenta[m]obviously not the priority right now... but it's exciting to think that we have that much flexibility, potentially.
13:13mstenta[m](it also just serves as an interesting design approach in general - and something that could be generalized to other applications - like the sensor stuff donblair is working on)
14:13jgaehring[m]yea, i've been thinking about how it could be an embedded UI for sensors as well, that would really be awesome!
14:18jgaehring[m]i now have the data plugin running as its own package successfully too, and have the client running much more smoothly as a package, but got snagged when I realized I created an (unrelated) bug when I removed jQuery, had to switch my focus back to that... otherwise i'm pretty confident i could start experimenting very soon with using these packages in other contexts besides the native app
15:12*mstenta has joined
15:22*farmBOT has joined
15:22mstenta[m]aw you killed farmBOT again
15:22mstenta[m]:-(
15:22mstenta[m]does anyone here know of a good IRC bot for logging?
15:23mstenta[m]preferably something that makes the log visible via a web UI?
15:23mstenta[m]farmBOT: log pointer?
15:23farmBOTirc.farmos.org/bot/log/farmOS/2018-10-30
15:24mstenta[m]I like the way this one works... but I'm curious about alternatives
15:26jgaehring[m]could it possibly be fixed to support unicode emoji's? would that be an easy fix?
15:26mstenta[m]maybe
15:27jgaehring[m]is it this? www.drupal.org/project/bot
15:27mstenta[m]Yup
15:28mstenta[m]No longer maintained... :-(
15:28mstenta[m]oh looks like there's an issue: www.drupal.org/project/bot/issues/188664
15:29mstenta[m]oh dang! "Converting the tables and database that run the bot to utf8 charset and utf8_general_ci collation should fix it."
15:29mstenta[m]is that all??
15:30jgaehring[m][fingers-crossed emoji]
15:30mstenta[m]Ah ok... a little more to it than that... but not much...
15:30mstenta[m]Well, I'll add that to my todo list ;-)
15:30mstenta[m]Haha
15:31jgaehring[m]haha, the very bottom of it i hope
15:31jgaehring[m]sorry again
15:31mstenta[m]I'm just impressed that you are so adept at emoji use
15:33*mstenta has quit (Quit: Leaving)
17:38*mstenta has joined
19:55*mstenta has quit (Quit: Leaving)
21:52jgaehring[m]looking at it more, i'm wondering how badly do we want the farm_offline module to be its own repo, are there reasons for how it will interact with Drupal core? There would be [ways to do it](stackoverflow.com/questions/39194648/npm) if it was not a part of the monorepo, but they're hacky
22:04mstenta[m]In the long run, it might actually be nice if the farm_offline module (or whatever it is named) lives in farmOS itself, and simply loads the built client js (which could be included as a library in Drupal)
22:04mstenta[m]Would something like that work?
22:05mstenta[m]In that context, it would use localstorage instead of websql
22:07mstenta[m]And the Drupal module would be thin... Essentially just a container that handles integrating the app into Drupal
22:07jgaehring[m]another option that would simplify things would be to publish these as public npm packages
22:08jgaehring[m]then instead of working out how to pull things from github, which works well but has limitations, we could just pull the packages from npm, much more cleanly
22:08mstenta[m]Ok
22:09jgaehring[m]should still have the same options to install the built version or pull it directly from source for development purposes
22:09mstenta[m]Yea let's take a look at it together sometime soon via screen share
22:09jgaehring[m]cool
22:09mstenta[m]I can show you what I'm imagining in terms of pulling the library into Drupal
22:10jgaehring[m]ok, yea, that would be helpful
22:10mstenta[m](and how that normally works in Drupal)
22:10mstenta[m]I can show you Openlayers as an example
22:11mstenta[m](a separate project/library that gets pulled in during farmOS build process)
22:11mstenta[m]There will definitely be some things to think about... Ie with login/authentication
22:12mstenta[m]I think it will help to start with getting it to work on its own with local storage first (ie running it from desktop locally)
22:13jgaehring[m]not sure if i could get a working version up fast, but i could try to make a duplicate of the native repo that just has the native code and pulls its dependencies (client and plugins) entirely as separate npm packages, from outside the monorepo, to see if that works
22:14jgaehring[m]that's right weren't you experimenting with localstorage on something? trying to remember the gist...
22:14mstenta[m]Yea just remembering open/closed state of the help text
22:14mstenta[m]Simple
22:15jgaehring[m]oh right
22:17jgaehring[m]yea, i'm thinking we could either use localstorage or indexeddb, which is meant for larger datasets
22:18mstenta[m]Ok
22:23jgaehring[m]that's right, had to Google "localstorage vs indexeddb" but the main difference is that localstorage is synchronous, so it could potentially cause the UI to lag while retrieving logs from storage, if it got to be a sufficiently large number of them
22:25jgaehring[m]but either way, same concept, we just make a plugin for whichever persistence API we want to use, and add that to the client in lieu of the websql plugin
22:26mstenta[m]Cool
22:28jgaehring[m]i'm curious to see how JS libraries are added to Drupal, if you could show me with a screenshare
22:29mstenta[m]Can't right now, but maybe I can explain
22:29mstenta[m](on my phone)
22:30mstenta[m]Basically farmOS gets "built" using a program called Drush
22:31jgaehring[m]oh at a later date, when we can do a hangout
22:31mstenta[m](and in Drupal 8, Composer, which is the standard for PHP dependency management, similar to npm)
22:32jgaehring[m]sorry, didn't mean ask for a long explainer now, but if you care to do a flyby now, by all means
22:32jgaehring[m]:)
22:32mstenta[m]No prob
22:33mstenta[m]So that build process gets Drupal core, along with modules, themes, and other things like js libraries
22:33mstenta[m]And puts them in the right place in the codebase
22:36jgaehring[m]Where does it get the js libraries from, can it pull them over a network?
22:36mstenta[m]Yea, from anywhere - github, or just a URL
22:36mstenta[m]In the case of JS libraries, those go into sites/all/libraries
22:37mstenta[m]And then the Libraries module in Drupal handles loading them
22:37mstenta[m]So modules can just say "hey I need this library on this page" and it loads it
22:37mstenta[m]Ie: if you make a map, it loads Openlayers
22:37cycix[m]I see there was some stuff above about running FarmOS locally as a desktop type app. I'm not sure if something like this project has been considered as a potential solution: github.com/cztomczak/phpdesktop
22:41mstenta[m]<mstenta[m] "Ie: if you make a map, it loads "> cycix: interesting
22:41mstenta[m]Oops didn't mean to quote that
22:46jgaehring[m]Very interesting cycix[m], is that anything like electron?
22:51jgaehring[m]mstenta[m]: ok, so Drush can download the package into sites/all/libraries, from git, or a cdn, or anywhere... wondering if it has npm support to download from their repositories, but if not, a nice thing about npm is unpkg, which automatically makes any npm package available as a cdn for script tags unpkg.com/
23:03cycix[m]I'm not sure I haven't used it either, but when I saw that above I thought about that mozilla prism program (I guess now discontinued) and that turned up in some searches. I thought it might be worth throwing out on the table.
23:09jgaehring[m]cycix[m]: yea, i'll have to check it out! we're playing around with the idea of ways we can extend the [client](farmos.org/development/client/) i'm working on to fit into other environments... right now it works with native, but we're toying with the idea of a Drupal module or even an embedded UI in a sensor
23:52mstenta[m]No Drush doesn't do npm as far as I know
23:53mstenta[m]With openlayers, for example, it just pulls the packaged release from GitHub, which has the built JS and CSS
23:53mstenta[m]So I wonder if we could provide something similar: a release that is just the JS and CSS
23:54mstenta[m]Basically what we are creating for PhoneGap Build... But with the localstorage driver instead of the native stuff
23:57mstenta[m]This is also worth considering, when farmOS moves to Drupal 8: medium.com/myplanet-musings/how-to-insta

< 292018-10-30⋏31 >