< 182019-08-19⋎20 >

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
01:42*JustTB has quit (Ping timeout: 245 seconds)
07:12*JustTB has joined
07:40*JustTB has quit (Quit: Leaving.)
08:33*JustTB has joined
11:58skipper_is[m]Yea, I've been using that, dunno where I got 2 from, as that was the vocab for animals..
12:00skipper_is[m]github.com/Skipper-is/SMS-Egg-Logger
12:00skipper_is[m]I've refactored it all, so it is a bit neater, and better documented
12:01mstenta[m]Awesome!!
12:01mstenta[m]That's really cool @skipper_is:matrix.org
12:02mstenta[m]We should add a link to that somewhere on farmOS.org perhaps
12:02mstenta[m]It would be great to get better organized about linking to projects and solutions in the farmOS community
12:07skipper_is[m]I should remake it for C++, but I can't find a straightforward solution to string arrays...
12:08skipper_is[m]It is a bit pointless running an entire MicroPython stack for just that, but it works!
12:09mstenta[m]@donblair:matrix.org: has been using micro Python
12:10mstenta[m]Sounds pretty nice
12:10skipper_is[m]I've always looked down on Python.. Like it was just a tinkering language, but it is just so handy! I always seem to come back to it!
12:11mstenta[m]I've only just recently started using it and I love it
12:11skipper_is[m]I know, it is just so easy to learn and implement
12:11mstenta[m]Languages get you where you need to go :-)
12:11skipper_is[m]Indeed!
12:12mstenta[m]"first make it work" :-)
12:12mstenta[m]Then you can make it "right" or "fast" or whatever if/when you need to
12:13skipper_is[m]Yea, and to be fair, it doesn't need to be fast in this case, how often do you collect eggs? Like 2x a day tops...
12:13skipper_is[m]Not needing microsecond accuracy
12:13mstenta[m]Right exactly!
12:13mstenta[m]No need for premature optimization in this case :-)
12:14skipper_is[m]I'll have to figure out an elegant way of sending milk readings, does the farmOS json files accept queries of any kind? Like can I ask for "cattle with an ID like ...2345"?
12:14skipper_is[m]Eartag Id, rather than the db id..
12:17skipper_is[m]I can use /farm_asset.json?type=animal but that just fetches the whole lot, &name=...bob seems to work.. Will have to have a play
12:17skipper_is[m]Just don't fancy having to parse the entire JSON on the microcontroller
12:21mstenta[m]Hmm I forget
12:21mstenta[m]I don't think you can query by id tag at the moment
12:21mstenta[m]Because that is stored in a field collection
12:21mstenta[m]farmos.org/development/api/#animal-id-ta
12:22mstenta[m]There's a to-do to move away from using field collections because of that reason (doesn't work great with API)
12:22skipper_is[m]Yea, I think the only way I could do it with less client side processing would be to narrow it down by species
12:22skipper_is[m]Then parse and process that lot client side
12:22mstenta[m]Ah yea
12:23skipper_is[m]But if someone has 200 cattle, probably not feasable, but then they probably wouldn't be trying to text their milk yields...
12:23mstenta[m]So one thing to consider: you could create a custom endpoint on the farmOS server itself
12:23mstenta[m]In a custom module
12:23skipper_is[m]Personally. No :P
12:23mstenta[m]Which takes exactly the parameters you want
12:24skipper_is[m]I imagine someone could! I can just about add an extra parameter to a map, but that is about it so far!
12:24mstenta[m]Then your Python logic would be simpler
12:24mstenta[m]Essentially just a relay to that endpoint
12:25mstenta[m]Menu callbacks are pretty simple in Drupal
12:25skipper_is[m]Yea, but I've not even looked at how endpoints are defined...
12:25mstenta[m]hook_menu
12:25skipper_is[m]and rest can hook into any hook_menu?
12:26mstenta[m]You could look at the one that creates /farm.json as a relatively simple example
12:27mstenta[m]With a custom endpoint you handle parsing the request and returning json yourself
12:27mstenta[m]It doesn't use the REST module at all
12:27skipper_is[m]Yea, which could take some slightly more fuzzy parameters
12:27skipper_is[m]I'l have to have a look... At one point, starting my new job in a weeks time, so it'll have to wait... Need to move house first too...
12:28mstenta[m]Cool! Let me know if you need any pointers! :-)
12:28skipper_is[m]Yea, definitely will do!
12:47donblair[m]Oh, this egg poster is brilliant :)
12:47donblair[m]I had no idea there was a design combining the ESP32 and the SIM800 -- that's brilliant!
12:48donblair[m]I was using the same hardware combination myself but hacked together
12:50donblair[m]I'm using the SIM800 to do an HTTP GET to my own server, which then relays the info via a POST to FarmOS
12:50donblair[m]Thanks for posting your code, skipper_is -- it's much better-structured than mine, inspiring
12:51donblair[m]+100 for the ease of use of Micropython / Circuitpython -- especially when handling strings :)
12:52donblair[m]And I think it's true: for most applications in environmental monitoring / actuation / agriculture, I can't imagine one would run into speed limitations in Micropython / Circuitpython ...
12:53donblair[m]... and it makes the tech so much more accessible for so many more people
14:00skipper_is[m]Yea, I know! Odd that I couldn't make direct post requests to FarmOS, but had to echo them through an extra PHP page...
14:01mstenta[m]Oh so was there an issue posting directly?
14:06skipper_is[m]Yea, when I did a get it was fine
14:07skipper_is[m]But when I posted, not so much!
14:07skipper_is[m]Got a bunch of weird bytes...
14:07mstenta[m]Huh strange
14:07mstenta[m]And that's only when the request was made via Micropython?
14:07skipper_is[m]Yup
14:07mstenta[m]You experienced that too donblair ?
14:08skipper_is[m]Same request through Postman no problems
14:10skipper_is[m]I didn't have time to poke around and try and find the source of the problem, but I'll have another go tonight
14:11mstenta[m]No worries - just curious if it was a farmOS issue
14:11skipper_is[m]Yea, no idea.. it was a 404 code, but not my usual 404 page...
14:12skipper_is[m]It was just a weird bunch of bytes...
14:12skipper_is[m]And Changing post to get, no 404!
14:13mstenta[m]How are you authenticating?
14:13skipper_is[m]Basic
14:13mstenta[m]Ah gotcha
14:14skipper_is[m]Also annoying that MicroPython doesn't have a base64 encode function .
14:16skipper_is[m]Is basic preferred, or token?
14:16mstenta[m]When you say "basic" do you mean you installed the basic authentication module for restws?
14:17mstenta[m]That works fine, but is not available on Farmier hosted sites
14:18mstenta[m]The farmOS.py and farmOS.js libraries authenticate with Drupal username and password, and store the cookie and restws token
14:18mstenta[m]I'm eager to implement Oauth2 as a next step
14:20skipper_is[m]@donblair:matrix.org: you seen this? store.rakwireless.com/products/rak7200-l
14:20paul121[m]I wanted to a ask, I'm not too familiar with micropython.... But is farmOS.py not compatible?
14:20paul121[m]But very cool @skipper_is:matrix.org !!!
14:21mstenta[m]Oh good question paul121
14:21mstenta[m]I assume not... but maybe it is
14:21skipper_is[m]<paul121[m] "I wanted to a ask, I'm not too f"> I've not looked at farmOS.py
14:22mstenta[m]Ah! Might find it useful!
14:22mstenta[m]github.com/farmOS/farmOS.py
14:22mstenta[m]Although might not work on micropython
14:23skipper_is[m]I'll give it a spin, but I think there are some dependencies that aren't available on MicroPython
14:23mstenta[m]Oh paul121 ! You might be interested in skipper_is 's project...
14:23mstenta[m]Allows posting egg harvests via text :-)
14:24paul121[m]Yes! Just finished the README! Wish I had it for when I collect eggs tomorrow!!
14:24mstenta[m]skipper_is: you should post this to the farmOS forum too... doesn't have to be a long post or anything ... just so that folks who are browsing over there are aware of it
14:24skipper_is[m]Not that many dependencies for FarmOS.py, so it might work, requests isn't available, but there is a micro- version of it that may be similar
14:25mstenta[m]Hmm maybe we need a micro-farmOS.py ;-)
14:25skipper_is[m]I can have a look at porting it
14:25paul121[m]> Hmm maybe we need a micro-farmOS.py ;-)
14:26*farmBOT has joined
14:26paul121[m]What is farmBOT btw?
14:26mstenta[m]Usually jgaehring 's responsible for that
14:26mstenta[m]farmBOT: hello
14:26paul121[m]Haha
14:26mstenta[m]farmBOT: hello
14:27mstenta[m]Hmm :-(
14:27mstenta[m]farmBOT is an IRC bot that does not like emojis
14:27mstenta[m]And doesn't seem to be responding at all right now
14:27jgaehring[m]hahaha
14:28*mstenta has joined
14:28mstentafarmBOT: hello
14:28mstentahello
14:29mstenta[m]oh well... ¯\_(ツ)_/¯
14:29*mstenta has quit (Client Quit)
14:30skipper_is[m]Or doesn't like metal...
14:31paul121[m]RIP
14:33paul121[m]Well, @skipper_is:matrix.org, getting farmOS.py to work on micropython would be way cool. Let us know if you have any questions on the farmOS.py side
14:33paul121[m]I might need to get some hardware.. is there a good board you recommend for development?
14:38skipper_is[m]I like the ESP32 modules, as you can get LoRa ones, and ones with sim cards etc
14:39skipper_is[m]Just about any variant of esp32 you can imagine is available on Banggood...
14:40skipper_is[m]Or the MicroPython PyBoard, if you want to go OEM
14:43paul121[m]Cool! I learned of micropython from PyBoard but imagined there was other hardware as well.
14:44paul121[m]Lots of possibilities.. SMS logging wouldn't have passed my mind! So cool!
14:44paul121[m]What was your motivation?
14:47skipper_is[m]I want to see if I can port the base64 module as well... Would be very handy having that in built into my egg logger
14:47skipper_is[m]I'm about to take on a small farm, which has a bunch of chickens
14:48skipper_is[m]At the moment they're just logging eggs on a sheet of paper, but what happens to that info.. no one could tell me...
14:49paul121[m]> At the moment they're just logging eggs on a sheet of paper, but what happens to that info.. no one could tell me...
14:50*farmBOT has joined
14:50paul121[m]Sorry!!
14:50mstenta[m]haha
14:50skipper_is[m]They're a bit technophobic too (biodynamic farm...) So I didn't want to make them use the full smartphone app yet
14:51skipper_is[m]And SMS is pretty accessible to even the most technophobic person
14:51paul121[m]Totally. SMS is a great solution
14:51paul121[m]Also it's easy on board new people. Without having to teach the full farmOS app and ecosystem
14:52skipper_is[m]Exactly
14:52mstenta[m]It's also a step towards voice recognition! Most phones let you speak texts
14:52skipper_is[m]Yea, but I am imagining them to have like Nokia 3310s...
14:52skipper_is[m]Oooo...voice recognition on MicroPython.....
14:52skipper_is[m]Probably not powerful enough.
14:53mstenta[m]skipper_is: I could see this turning into a general purpose farmOS logging component :-)
14:53skipper_is[m]XD
14:53mstenta[m]The trick with voice recog is that you first need to be able to understand the text
14:53paul121[m]We need to create an SMS API
14:53skipper_is[m]Need to figure out the fuzzy logic with the field names etc first..
14:53mstenta[m]So by developing some standard farmOS text commands, it's an easy next step to voice recog
14:53mstenta[m]Yes exactly - that's the real work
14:54mstenta[m]But if we just had a set of accepted commands... that could be a start
14:54mstenta[m]And some built in assumptions
14:54skipper_is[m]Yea, like 5 eggs... :)
14:54mstenta[m]Yea simple!
14:54skipper_is[m]Just find whatever numbers are there if you've said the word egg on there XD
14:54mstenta[m]"Harvest [qty] [units] from [planting name]"
14:55skipper_is[m]I need to look more closely at that sometime... It'll be happy to take 5 eggs 23 as 523 eggs..
14:55mstenta[m]And even if it returned "Command not recognized"... at least you have it recorded! And you can go fix it later that night
14:55mstenta[m]Better than just forgetting it into the ether of your brain haha
14:55skipper_is[m]True
14:56skipper_is[m]Could even post the voice command as a file to the actual log
14:56mstenta[m]Yea!
14:56mstenta[m]logs have a "data" field
14:56mstenta[m]that is hidden
14:56skipper_is[m]Are births coming to the app soon?
14:56mstenta[m]but could be useful for this maybe
14:56mstenta[m]brb - phone call...
14:56skipper_is[m]Does that correspond to the file/photo section?
14:56paul121[m]Wow cool ideas!
14:57skipper_is[m]Also, what do you guys record for deaths in FarmOS proper?
14:58paul121[m]I don't believe the `data` field corresponds to file/photo
14:58skipper_is[m]Ah ok, so is it accessible later on? Or only through the api
14:58paul121[m]It's more of a general purpose space to dump data
14:58mstenta[m]> Does that correspond to the file/photo section?
14:58mstenta[m]No it's a separate text field that arbitrary data can be stored to, like XML/JSON/etc
14:58mstenta[m]Only through API currently
14:59skipper_is[m]Might be better to store the voice command in the files section, so you can check it through FarmOS proper
15:04skipper_is[m]Also, in the app, can equipment be searchable like assets?
15:04skipper_is[m]Got a big long list of equipment....
15:08paul121[m]> Might be better to store the voice command in the files section, so you can check it through FarmOS proper
15:08paul121[m]I agree!
15:10paul121[m]> Also, in the app, can equipment be searchable like assets?
15:10paul121[m]I'm not sure... On my phone and can't pull up a test right now
15:10skipper_is[m]Plus you could use the same functionality if you're doing a field walk for example
15:11*uploaded an image: Screenshot_20190819-161047_Chrome.jpg (354KB) < matrix.org/_matrix/media/v1/download/mat >
15:11skipper_is[m]Assets are like this
15:11*uploaded an image: Screenshot_20190819-161115_Chrome.jpg (337KB) < matrix.org/_matrix/media/v1/download/mat >
15:11skipper_is[m]Equipment like this...
15:11paul121[m]Ahhh I see. I thought you meant browser based farmOS! That's a good question for @jgaehring:matrix.org
15:12skipper_is[m]No, sorry :)
15:12skipper_is[m]The search is much easier!
15:12paul121[m]Good to know!
15:13paul121[m]Maybe it could be a UI option? If you have few equipment/assets, it displays the dropdown, or you can choose a search?
15:14skipper_is[m]Yea, I guess that's work, search is really quick
15:16jgaehring[m]> Also, in the app, can equipment be searchable like assets?
15:16jgaehring[m]that shouldn't be too hard, come to think of it I'm a little surprised we didn't do that in the first place
15:20jgaehring[m]do you want to open an issue in github.com/farmOS/farmOS-client/issues, skipper_is ?
15:24skipper_is[m]Done
15:55skipper_is[m]Doesn't look like the MicroPython port of FarmOS.py will be that hard, there are libraries for most of the dependencies (well, urllib.parse so far)
16:18paul121[m]<skipper_is[m] "Doesn't look like the MicroPytho"> Great
16:19paul121[m]Yeah, I'm looking at it now, I think `requests` and `urllib.parse` might be the only dependencies
16:20paul121[m]And `urllib.parse` isn't used all too much, just to make parsing url's easier. That could be changed if we needed
16:20paul121[m](changed for a micro-pyton port)
16:37skipper_is[m]Urequests is built in and may have what we need
16:37skipper_is[m]Collections.defaultdict
16:38skipper_is[m]I've not yet looked at the code, just tried to import it and fight the fires as they arise
16:39skipper_is[m]After supper I'll have some time to poke around properly
17:44paul121[m]Excited to hear what you find
17:44paul121[m]@skipper_is:matrix.org: !
17:46skipper_is[m]So far I've found that Micropython hates modules with capital letters..
17:46skipper_is[m]FarmOS has become farmos
17:47paul121[m]Hmm interesting
17:47skipper_is[m]Very odd..
17:47skipper_is[m]Because I'm sure I've had modules with capital letters in before..
17:47skipper_is[m]It does just seem to be picky sometimes
17:48skipper_is[m]It didn't like egg_poster either, but was happy with eggposter...
17:48skipper_is[m]But it is fine with parse_qs
17:48skipper_is[m]Temperamental, that is what it is
17:50skipper_is[m]And it is happy with import urllib.parse
17:51skipper_is[m]But import urllib.parse as steve
17:51skipper_is[m]AttributeError: 'module' object has no attribute 'parse'
17:53skipper_is[m]I think I might have more luck rebuilding it from scratch...
17:53skipper_is[m]Am going to shamelessly copy and paste blocks of code though
17:58skipper_is[m]Wow, it really is temperamental... I created a blank farmOS.py file, and it imports just fine...
17:58skipper_is[m]Useless thing.....
17:59skipper_is[m]Maybe it was just silently unhappy about the dependencies
18:01paul121[m]Hmmm yeah
18:02paul121[m]I'm curious if you replace the `requests` dependecy with the `urequests` ?
18:03skipper_is[m]urequests lacks Sessions
18:04skipper_is[m]So session.py is going to need rewriting anyway
18:06paul121[m]Ah ok. Thats not too bad then. I think you would just need to rewrite the `APISession` class
18:06skipper_is[m]Yea, looking at that one now
18:07paul121[m](I believe) `sessions.py` just uses `request.session` to save cookies for authentication
18:08skipper_is[m]Ah okay, I'm still going through the functions to figure out what is what
18:08paul121[m]Let me know if you have any questions
18:08skipper_is[m]Yea, it is getting the token in authenticate
18:10skipper_is[m]The token is stored in the Session cookies?
18:10skipper_is[m]No.. its stored in self.token...
18:12paul121[m]Yeah, right here: github.com/farmOS/farmOS.py/blob/c263fd9
18:12skipper_is[m]So... I can't figure out why Sessions is involved...
18:12paul121[m]I'm going to try it real quick without Sessions
18:13skipper_is[m]I've removed too much for it to work in Python3 XD
18:14skipper_is[m]I can't quite see what sessions is doing, as the token is stored in the class instance
18:15paul121[m]Right. I can't remember for sure if `requests.sessions` automatically handles some of the cookies in the background
18:15paul121[m]Setting up authentication was a little tricky
18:18skipper_is[m]Well, it doesn't work straight off...
18:18skipper_is[m]class APISession(requests):
18:18skipper_is[m]TypeError: module() takes at most 2 arguments (3 given)
18:20paul121[m]Right :/
18:20skipper_is[m]Without requests in the class, it works... to a point
18:20skipper_is[m]And that point is farmOS.authenticate
18:21paul121[m]-- The Session object allows you to persist certain parameters across requests.
18:21paul121[m]from the documentation
18:21paul121[m]So by using the `requests.session` object, it makes things much simpler :)
18:22skipper_is[m]Well, it looks like we might have to go more complex...
18:24skipper_is[m]Ah, the only use I could find of it was in http_request
18:24skipper_is[m]it calls self.request, but requests.request should do the job
18:24skipper_is[m]...should
18:25paul121[m]Yeah, you just have to pass credentials/cookies/tokens to the `self.request(args)` call each time
18:25paul121[m]Using HTTP Basic Auth this isn't so hard
18:25skipper_is[m]Way easier for me XD
18:25paul121[m]That is what the `requests.session` handles
18:25skipper_is[m]But would require a base64 module
18:25skipper_is[m]Unless you fancy porting requests.session
18:26paul121[m]remind me what base64 is need for again? I think I missed that from earlier
18:27skipper_is[m]Basic Authentication in the header looks like "Autherization: basic asdasfjsdfkjsdflkasd"
18:27skipper_is[m]Or words to that effect
18:27skipper_is[m]aslkdjasjfhfkjhas part is the "username:password" encoded in base64
18:28paul121[m]ahhhh yes. I see where this is going :)
18:28skipper_is[m]for example, if my username is skipper, and my password is FarmOS, my asdjhasjkknf part would look like c2tpcHBlcjpGYXJtT1M=
18:28skipper_is[m]So we can just encode the username/password and stick it in the header
18:29paul121[m]right
18:29mstenta[m]could you put them in the URL instead?
18:29skipper_is[m]Don't think it works
18:29skipper_is[m]I've not tried to be honest... but I don't think you can have it as a url parameter
18:29mstenta[m]eg: user:pass@myfarmos.org
18:29skipper_is[m]Oo dunno.... maybe then...
18:30mstenta[m]stackoverflow.com/questions/2716990/http
18:30skipper_is[m]I thought you meant like ?username=
18:30skipper_is[m]Depreciated in 2005...
18:30mstenta[m]worth a try!
18:30mstenta[m]not sure if it's supported in all http libs
18:31paul121[m]Just looked at your code skipper_is , I see you hard coded the base64 user/pass
18:31paul121[m]I understand now!
18:31skipper_is[m]Yea, will have to look urequests is a bit finicky about just about everything, but we can try it
18:31skipper_is[m]Yea, initial version used base64.encode()
18:31skipper_is[m]but it isn't ported to micropyhton
18:31skipper_is[m]*python
18:32mstenta[m]oh didn't know [user]:[pass]@[domain]/ was deprecated
18:32mstenta[m]even so... if it still works.... would make things easier
18:32skipper_is[m]Neither did I
18:32skipper_is[m]stackoverflow.com/questions/2716990/http
18:33skipper_is[m]Nope, wrong one..
18:33skipper_is[m]Very old question but nevertheless: this approach has been deprecated by ietf.org/rfc/rfc3986.txt: "Use of the format "user:password" in the userinfo field is deprecated." – Madbreaks Feb 13 at 20:14
18:33skipper_is[m]That... anyway
18:33skipper_is[m]There is a micropython port actually of base64
18:34skipper_is[m]but I was going to try and keep mine additional dependency free, so it was really simple to use
18:34skipper_is[m]I'm not sure if micropython works with setup.py...
18:36*sent a long message: < matrix.org/_matrix/media/v1/download/mat >
18:37skipper_is[m]Hmm.... session is now struggling with a https address...
18:38skipper_is[m]That is it, I'm rolling my own..
18:39paul121[m]This might be of interest: github.com/lucien2k/wipy-urllib
18:40mstenta[m]skipper_is: hmm not sure but IIRC donblair ended up moving to ESP32 partly because ESP8266 couldn't do HTTPS
18:40paul121[m]Another `urequests` that might support Cookies and Basic Auth
18:43skipper_is[m]I don't think the ESP8266 has the SSL module
18:44skipper_is[m]I've got an 8266, I'll try it out at one point, but I know they cut the networking back a bit on that board because of size limits
18:44skipper_is[m]I want to avoid external libraries, just for ease of use really..
18:45mstenta[m]yea that sounds like what Don described
18:45skipper_is[m]I might also flatten everything down into 1 file to upload to the board, just so it is just upload and go operation
18:48paul121[m]Totally. If you can get it working thats a great starting point
18:48paul121[m]Then maybe clean it up from there
18:49skipper_is[m]Yea, well I'm wrestling with Python accepting 2 classes in one file at the moment XD
18:49skipper_is[m]Oh, open bracket...
18:50paul121[m]haha good luck :D
19:15skipper_is[m]So, a bit more digging, and I've figured out the cookies and token side... I've not done much with OAuth, so was all new to me, and basically, unless we use an external library to keep cookies, we're stuck with basic authentication
19:56skipper_is[m]Right... so I chickened out... I'm going to try and roll everything in to one, a new version of urequests with cookies, and a base64 encoder
20:06skipper_is[m]It is especially annoying as the urequests library built in receives the cookies, but doesn't make them visible or anything....If it just made all the raw data available would be nice!
20:31skipper_is[m]@donblair:matrix.org: how do you deploy to MicroPython?
20:48donblair[m]Hi skipper_is -- apologies that I haven't fully been following the thread here, so not sure if this will address any issues you're having -- but I'm using an ESP32 with the latest ESP32 release of Micropython, and the following code to post to FarmOS (this example uses a DHT22 temp + humidity sensor) github.com/edgecollective/quahog-quickst
21:06skipper_is[m]Ah ok, so you upload those 3 files, then launch f.py on boot?
21:19donblair[m]Oh, sorry my code is disorganized -- it's actually just that one file, "farmos_post_dht22.py", as a simple example of posting to FarmOS ... the other files are modifications of it :)
21:20donblair[m]If I recall, none of the "import" statements require any additional files to be loaded on the board, as all of the modules are already included in Micropython
21:21donblair[m]I can quickly try to remove references to the DHT22 sensor, if that's useful? And just leave code for posting a "dummy" variable to FarmOS ...
21:25donblair[m]skipper_is: I just now made a version of the code that simply posts dummy variable values to FarmOS, here: gist.github.com/dwblair/280d1394e99e5cdd -- let me know if you have any q's ... Cheerio!
21:49donblair[m]Just to be clear: I believe you should only require that sole file (the one in the gist) for it to work
21:57*JustTB has quit (Quit: Leaving.)
22:15*JustTB has joined

< 182019-08-19⋏20 >