| 04:45 | * | FijiDave has joined |
| 04:49 | * | FijiDave_ has quit (Ping timeout: 276 seconds) |
| 04:49 | * | FijiDave_ has joined |
| 04:53 | * | FijiDave has quit (Ping timeout: 276 seconds) |
| 16:38 | * | FijiDave_ has quit (Ping timeout: 276 seconds) |
| 16:43 | * | FijiDave has joined |
| 17:52 | * | FijiDave has quit (Quit: Leaving...) |
| 18:29 | * | JustTB has quit (Quit: Leaving.) |
| 18:37 | * | JustTB has joined |
| 20:58 | skipper_is[m] | Can you create assets through FarmOS.py? |
| 21:03 | mstenta[m] | Yes should be able to |
| 21:03 | mstenta[m] | I don't think there's a function for it specifically, but you can make an http request |
| 21:03 | mstenta[m] | paul121 would be the best person to ask |
| 21:04 | skipper_is[m] | Yea, I've seen a send command, but no documentation, and I am assuming that the json to send must be built especially (In accordance with the API guide) |
| 21:05 | skipper_is[m] | I can't take the object from farm.animals.get() and farm.animals.send() the same object |
| 21:05 | skipper_is[m] | Well, I can, but it doesn't do anything |
| 21:05 | mstenta[m] | Ah yea no I don't think so |
| 21:06 | mstenta[m] | That's something we should get an open issue for |
| 21:08 | skipper_is[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 |
| 21:08 | mstenta[m] | Paul's at a conference this weekend, so maybe we can add some GitHub issues |
| 21:09 | skipper_is[m] | I'll just fork and pull request it... probably quicker |
| 21:11 | mstenta[m] | even better!! |
| 21:11 | mstenta[m] | are you experimenting with migrating via farmOS.py? |
| 21:11 | skipper_is[m] | Yea |
| 21:11 | skipper_is[m] | Well, I was :P |
| 21:12 | skipper_is[m] | I'm not too concerned about keeping users etc, as long as it says, more or less what happened in what field and when, I'm reasonably happy |
| 21:13 | skipper_is[m] | But IT haven't yet given me the greenlight (or a server....) so it is just me fiddling around at the moment |
| 21:18 | skipper_is[m] | I need a good couple of weeks where I can actively contribute to FarmOS.py... Create a bunch of classes for logs, assets, etc, and then we can iterate through them, and post those objects easier... |
| 21:19 | skipper_is[m] | And we can construct new objects easily enough, newlog=farm.log(name="This is a log",notes="some stuff",date=datetime object, etc etc) |
| 21:19 | skipper_is[m] | and then do farm.post(newlog) and it'll parse it back into JSON, and post it back onto farmOS |