Skip to content

Instantly share code, notes, and snippets.

@ConnorRigby
Last active January 23, 2017 19:42
Show Gist options
  • Save ConnorRigby/cb948ff61479a4e91226678e6d71c3ce to your computer and use it in GitHub Desktop.
Save ConnorRigby/cb948ff61479a4e91226678e6d71c3ce to your computer and use it in GitHub Desktop.

IDEA(Connor): Farmware will just be specially constructed zipfile with a json manifest? we keep the scripts in organized folders under FS.path() <> "/farmware" so we would have something along the lines of:

[/state/farmware]
|-- [plant_detection]
|    |- PlantDetection.py
|    |- farmware.json
|
|-- [other_farmware]
  |- farmware.json
  |- do_some_cool_thing.rb
  • this means we will have to deal with maintaining disk usage on the state part
  • we will have to do some sort of validation (maybe just parse manifest file?)

This module will do an HTTP get to a url with a manifest.json file maybe? it parses that manifest.json file, and downloads a zip file containing the stuff required for the script to work?

{
   "package": "plant_detection",
   "language": "python",
   "author": "farmbot.io",
   "description": "detect plants from images?",
   "version": "0.0.1",
   "min_os_version_major": "3",
   "url": "url to this file?",
   "zip": "url to zip file?",
   "command": "python PlantDetection.py"
 }

then we can access the "Farmware" by pushing it onto the tracker stack?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment