< 122019-11-13⋎14 >

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
00:13*FijiDave has joined
00:14*FijiDave_ has quit (Ping timeout: 276 seconds)
01:57paul121[m]> Also, for paul121 the API instructions for FarmOS.py are not 100% correct - get all animals is farm.asset.get({'type':'animal'}) not farm.log.get
01:57paul121[m]skipper_is Thanks for noting that! Just merged your PR.
02:22paul121[m]skipper_is: You mentioned something about looping through logs & results in farmOS - this should work just fine! check out this gist.
02:22paul121[m]gist.github.com/paul121/011a5d56df1693b7
02:31paul121[m]Right now results are buried in the `'list'` key of what is returned... which is maybe not a very "pythonic" way to do it? But I think we're open to input on that
02:33paul121[m]Also, you mentioned creating models for `areas`, `assets`, and `logs` - I love this idea!
02:34paul121[m]I think it would make to sense to even just "supply" those with the farmOS.py library. They could be supplied under `farm.models.log`
02:34paul121[m]So you could do `from farm.models import log, area, asset`
02:36paul121[m]and in some way say `log = log(name="My log name", type="farm_observation")`
02:38paul121[m]The `pydantic` library is something i've been using in the farmOS aggregator - it adds some support for Typing in Python. Makes things a bit handier. Also allows you to inherit objects from one another. So we could have a base `log` object, and then inherit those properties to a `observation_log` type that has additional fields... etc
02:40*sent a long message: < >
07:11*FijiDave has quit (Ping timeout: 276 seconds)
08:19*JustTB has quit (Quit: Leaving.)
08:27*JustTB has joined
11:49*JustTB has quit (Ping timeout: 252 seconds)
12:05*JustTB has joined
12:46mstenta[m]Hey all
12:46mstenta[m]I won't be able to host the monthly call today
12:46mstenta[m]My son is home sick from school
12:48mstenta[m]Feel free to chat here! I'll try to check if there are folks with questions
12:50*JustTB has quit (Ping timeout: 268 seconds)
13:05*JustTB has joined
14:25mstenta[m]skipper_is: I haven't had a chance to play around with the Postgres migration yet :-/
14:26mstenta[m]I was wondering though: if I were able to fix the older issue you found, would that allow you to stay on postgres instead of migrate?
14:26mstenta[m]Because I do want to fix that anyway - so maybe it makes more sense for me to focus on that
15:50*JustTB has quit (Ping timeout: 276 seconds)
16:28*JustTB has joined
16:40mstenta[m]Hey skipper_is - side question: can you test out the new map drawing measurements stuff I'm working on? demo here: mstenta.github.io/farmOS-map/
16:40mstenta[m]See if you can break it
16:40mstenta[m]:-)
16:45*JustTB has quit (Read error: No route to host)
16:46skipper_is[m]Yea, if everything was stable, i'd stay on Postgres, it is my main DB for GIS, so it seems daft to be running two DBs
16:46skipper_is[m]Ooh, some funky weirdness with times..
16:47mstenta[m]Ok, what is your timeline for deploying it on your farm? Maybe I can try to get the postgres bug fixed before then... you're waiting for approval right?
16:48skipper_is[m]Well, we're deployed on my server, but it is located in france, so from data protection/privacy point of view, I'd like to keep it inhouse, so I'm waiting for IT to give me a server
16:48skipper_is[m]The principle of the college is onboard, so I think approval is ok, it is just getting IT to make it happen
16:49mstenta[m]ok
16:50skipper_is[m]It is mainly just that there is the occasional bug which stops everything from working, stops the field kit from syncing, throws weird errors etc.
16:50mstenta[m]yea... and i think we traced most things to that one issue
16:50skipper_is[m]And if I am wanting to showcase it for our farm, and maybe roll it out to the other college farms, I want it to be quite stable - hence why I was going to run it on MySQL
16:50mstenta[m]which i understand pretty well... just requires some focus time to fix
16:51skipper_is[m]Yea, I know, and because it is OS, I don't want to push for a fix, as it is all done through your free time
16:52mstenta[m]Yea, but it's good motivation - I do want farmOS to officially support PostgreSQL. It does for the most part. It's just that one clever custom query.
16:52mstenta[m](Clever custom queries are never a good idea) ;-)
16:52*sent a long message: < >
16:52skipper_is[m]At the minute it is just an init
16:52mstenta[m]> Ooh, some funky weirdness with times..
16:52mstenta[m]What are you referring to here?
16:53skipper_is[m]Ah my Riot.im is showing the testing of farmBOT as happening after the chats today
16:53skipper_is[m]When that happened yesterday
16:55skipper_is[m]Just creating a function to parse the json to a log object, but it is rather messy..
16:55skipper_is[m]I'm not happy with the implementation
16:56jgaehring[m]> I had a go at a class for logs
16:56jgaehring[m]oh funny, this looks like the makeLog factory we're using in Field Kit: github.com/farmOS/farmOS-client/blob/mas
16:56*bkumpula[m] has joined
16:57skipper_is[m]Oooo JS..... .....
17:01jgaehring[m]hahaha
17:01jgaehring[m]didn't say it was pretty
17:01jgaehring[m]but! it makes things a lot easier elsewhere, hides a lot of ugliness
17:01skipper_is[m]I haven't got around to learning JS :P
17:02skipper_is[m]Like klingon to me..
17:04*JustTB has joined
17:04skipper_is[m]There is no switch/case for Python?!
17:11*FijiDave has joined
17:14*sent a long message: < >
18:22*germarsh[m] has joined
19:18skipper_is[m]mstenta: The new map works really nicely
19:18skipper_is[m]Snapping is great!
19:29skipper_is[m]I've finally patched the restws file.. Will try again with the fieldkit
19:35skipper_is[m]It is still not syncing..
19:36skipper_is[m]Oh
19:36skipper_is[m]`Failed to load resource: the server responded with a status of 403 (Forbidden)`
19:47skipper_is[m]I am assuming field kit relogs if the cookie expires..
19:51jgaehring[m]right now it does not login again automatically if the token expires... hoping to smoothe out that process when we migrate to OAuth
19:52skipper_is[m]How long to tokens last?
19:59jgaehring[m]oh trying to remember...
20:01jgaehring[m]I believe it's about a week?
20:11skipper_is[m]So, I have to log out and back in again every week?
20:21jgaehring[m]you won't have to log out, but you'll be prompted to log back in when you try to sync after about a week

< 122019-11-13⋏14 >