| [23:45:50] | * FijiDave has joined #farmos |
| [23:49:08] | * FijiDave_ has quit (Ping timeout: 276 seconds) |
| [23:49:40] | * FijiDave_ has joined #farmos |
| [23:53:41] | * FijiDave has quit (Ping timeout: 276 seconds) |
| [11:38:17] | * FijiDave_ has quit (Ping timeout: 276 seconds) |
| [11:43:06] | * FijiDave has joined #farmos |
| [12:52:42] | * FijiDave has quit (Quit: Leaving...) |
| [13:29:14] | * JustTB has quit (Quit: Leaving.) |
| [13:37:48] | * JustTB has joined #farmos |
| [15:58:04] | <skipper_is[m]> | Can you create assets through FarmOS.py? |
| [16:03:38] | <mstenta[m]> | Yes should be able to |
| [16:03:49] | <mstenta[m]> | I don't think there's a function for it specifically, but you can make an http request |
| [16:03:58] | <mstenta[m]> | paul121 would be the best person to ask |
| [16:04:50] | <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) |
| [16:05:15] | <skipper_is[m]> | I can't take the object from farm.animals.get() and farm.animals.send() the same object |
| [16:05:27] | <skipper_is[m]> | Well, I can, but it doesn't do anything |
| [16:05:58] | <mstenta[m]> | Ah yea no I don't think so |
| [16:06:18] | <mstenta[m]> | That's something we should get an open issue for |
| [16:08:05] | <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 |
| [16:08:44] | <mstenta[m]> | Paul's at a conference this weekend, so maybe we can add some GitHub issues |
| [16:09:57] | <skipper_is[m]> | I'll just fork and pull request it... probably quicker |
| [16:11:07] | <mstenta[m]> | even better!! |
| [16:11:26] | <mstenta[m]> | are you experimenting with migrating via farmOS.py? |
| [16:11:34] | <skipper_is[m]> | Yea |
| [16:11:39] | <skipper_is[m]> | Well, I was :P |
| [16:12:46] | <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 |
| [16:13:12] | <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 |
| [16:18:03] | <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... |
| [16:19:12] | <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) |
| [16:19:51] | <skipper_is[m]> | and then do farm.post(newlog) and it'll parse it back into JSON, and post it back onto farmOS |