Skip to content

Example 2

javier7ar edited this page Sep 12, 2017 · 19 revisions

AppEAR like application

A posible case use of Samplers is to build an application like appEAR. AppEAR is a citizen science project to learn and care about our aquatic environments. The user is placed on the field, close to the aquatic environment, and using the app answers a few questions about the place and takes some photos. Then the evaluation is sent via internet.

Flowchart:

appEAR Flowchart

JSON to generate the app (Samplers v0.4):

{
  "project": {
  "app_path" : "app/src/main/java/ar/com/app-ear/appEARApp/",
  "package_name" : "ar.com.app-ear.appEARApp"
  } ,
  
  "application": {
  "title" : "appEAR",
  "welcomeMessage" : "Bienvenido a la aplicación de appEAR para relevamiento de cursos de agua",
  "networkConfiguration" : {
      "url" : "http://www.app-ear.com.ar/samples/upload.php",
      "paramName" : "sample"
      },
  "googleMaps_API_KEY" : "YOUR_GENERATED_GOOGLE_API_KEY"
  } ,
  
  "workflow": {
  "actionLabel" : "Relevemos un curso de Agua",
    "steps": [
    {
      "id" : 1,
      "type" : "Information",
      "text" : "A continuación haremos una serie de preguntas sobre el curso de agua que quiere relevar.",
      "nextStepId": 2
    },
    {
      "id" : 2,
      "type": "SelectOne",
      "title" : "¿Qué tipo de ambiente es?",
      "options" : [
                  {
                   "id":1, 
                   "text":"Río de montaña",
                   "nextStepId": 3
                  },
                  {
                   "id":2, 
                   "text":"Río de llanura",
                   "nextStepId": 3
                  },
                  {
                   "id":3, 
                   "text":"Laguna",
                   "nextStepId": 3
                  },
                  {
                   "id":4, 
                   "text":"Estuario",
                   "nextStepId": 3
                  }
                 ]
    },

    {
      "id" : 3,
      "type" : "Photo",
      "text" : "Tome una foto del curso de agua",
      "nextStepId": 4
    },
    
    {
      "id" : 4,
      "type" : "Photo",
      "text" : "Tome una foto del curso de agua, desde un ángulo diferente",
      "nextStepId": 5
    },

    {
      "id" : 5,
      "type": "SelectOne",
      "title" : "¿Qué hay alrededor del lugar?",
      "options" : [
                  {
                   "id":1, 
                   "text":"Industrias",
                   "nextStepId": 6
                  },
                  {
                   "id":2, 
                   "text":"Ciudad con Edificios",
                   "nextStepId": 6
                  },
                  {
                   "id":3, 
                   "text":"Barrio de Casas",
                   "nextStepId": 6
                  },
                  {
                   "id":4, 
                   "text":"Campo",
                   "nextStepId": 6
                  },
                  {
                   "id":5, 
                   "text":"Zona Natural",
                   "nextStepId": 6
                  },
                  {
                   "id":6, 
                   "text":"No lo sé",
                   "nextStepId": 6
                  }
                 ]      
    },
    
    {
      "id" : 6,
      "type": "SelectOne",
      "title" : "¿Hay ganado cerca del sitio?",
      "options" : [
                  {
                   "id":1, 
                   "text":"Mucho, junto",
                   "nextStepId": 7
                  },
                  {
                   "id":2, 
                   "text":"Mucho, disperso",
                   "nextStepId": 7
                  },
                  {
                   "id":3, 
                   "text":"Poco",
                   "nextStepId": 7
                  },
                  {
                   "id":4, 
                   "text":"No hay ganado",
                   "nextStepId": 8
                  },
                  {
                   "id":5, 
                   "text":"No lo sé",
                   "nextStepId": 8
                  }
                 ]      
    },
    
    {
      "id" : 7,
      "type" : "Photo",
      "text" : "Tome una foto del ganado que hay cerca del sitio",
      "nextStepId": 8
    },

    {
      "id" : 8,
      "type": "SelectOne",
      "title" : "¿Cómo son los arboles?",
      "options" : [
                  {
                   "id":1, 
                   "text":"árboles poco variados",
                   "nextStepId": 9
                  },
                  {
                   "id":2, 
                   "text":"árboles muy variados",
                   "nextStepId": 9
                  },
                  {
                   "id":3, 
                   "text":"Sin árboles",
                   "nextStepId": 10
                  },
                  {
                   "id":4, 
                   "text":"No lo sé",
                   "nextStepId": 10
                  }
                 ]      
    },
    
    {
      "id" : 9,
      "type" : "Photo",
      "text" : "Tome una foto de los árboles que hay cerca del sitio",
      "nextStepId": 10
    },

    {
      "id" : 10,
      "type": "SelectOne",
      "title" : "¿Hay plantas acuáticas?",
      "options" : [
                  {
                   "id":1, 
                   "text":"Muchas",
                   "nextStepId": 11
                  },
                  {
                   "id":2, 
                   "text":"Algunas",
                   "nextStepId": 11
                  },
                  {
                   "id":3, 
                   "text":"No hay",
                   "nextStepId": 12
                  },
                  {
                   "id":4, 
                   "text":"No lo sé",
                   "nextStepId": 12
                  }
                 ]      
    },
    
    {
      "id" : 11,
      "type" : "Photo",
      "text" : "Tome una foto de las plantas acuáticas que hay en el sitio",
      "nextStepId": 12
    },

    {
      "id" : 12,
      "type": "SelectOne",
      "title" : "¿Es transparente el agua?",
      "options" : [
                  {
                   "id":1, 
                   "text":"Clara",
                   "nextStepId": 13
                  },
                  {
                   "id":2, 
                   "text":"Marrón",
                   "nextStepId": 13
                  },
                  {
                   "id":3, 
                   "text":"Oscura",
                   "nextStepId": 13
                  },
                  {
                   "id":4, 
                   "text":"No lo sé",
                   "nextStepId": 13
                  }
                 ]      
    },
    
    {
      "id" : 13,
      "type": "SelectOne",
      "title" : "¿Tiene mal olor?",
      "options" : [
                  {
                   "id":1, 
                   "text":"No tiene olor",
                   "nextStepId": 14
                  },
                  {
                   "id":2, 
                   "text":"Tiene feo olor",
                   "nextStepId": 14
                  },
                  {
                   "id":3, 
                   "text":"No lo sé",
                   "nextStepId": 14
                  }
                 ]      
    },
    
    {
      "id" : 14,
      "type": "MultipleSelect",
      "title" : "Observa junto al curso de agua:",
      "options" : [
                  {
                   "id":1, 
                   "text":"Aves acuáticas"
                  },
                  {
                   "id":2, 
                   "text":"Culebras"
                  },
                  {
                   "id":3, 
                   "text":"Ranas/Sapos"
                  },
                  {
                   "id":4, 
                   "text":"Peces"
                  },
                  {
                   "id":5, 
                   "text":"Filamentos de algas"
                  },
                  {
                   "id":6, 
                   "text":"Nutria / Carpincho"
                  },
                  {
                   "id":7, 
                   "text":"Libélulas"
                  },
                  {
                   "id":8, 
                   "text":"Mosquitos"
                  },
                  {
                   "id":9, 
                   "text":"Tortugas"
                  }
                 ],
      "nextStepId": 15
    },

    {
      "id" : 15,
      "type" : "Information",
      "text" : "Muchas gracias por colaborar con el pryecto!"
    }
    

    ]
  }
}

Clone this wiki locally