Mikrokosmos API - Yooru6/Urbanfarmlab GitHub Wiki

With this API you can get data from hydroponic greenhouse located in urbanfarmlab.

JSON data example:

{"id":"YETNqaxhk4QUv2elcq0a","name":"mikrokosmos","data":{"tvoc":266,"ph":7.98,"light":1,"co2":1624,"h":79.3,"ec":0.023,"id":1,"temp":25.5,"time":"2020-11-15 17:30:16","tempW":20.88},"publishTime":"2020-11-15T15:30:02.141Z"}

Data parameters:

Parameter Info
id ID
name name of the greenhouse
data Temperature(C), Humidity(%), Air Temperature(C), lightvalue(on/off), pH(1-14), EC(analog value), Co2(ppm), TVOC(ppm), Local Time(yyyy-mm-dd hh-mm-ss-)
publishTime date and time in time zone zero(yyyy-mm-dd hh:mm:ss)

Commands:

  • Get by ID
    • https://us-central1-amiable-hydra-279814.cloudfunctions.net/mikrokosmos/api/read/WRITEIDHERE
  • Get ALL
    • https://us-central1-amiable-hydra-279814.cloudfunctions.net/mikrokosmos/api/read
    • Ordered New->Old
  • Get by DATE
    • https://us-central1-amiable-hydra-279814.cloudfunctions.net/mikrokosmos/api/read/datetime/yyyy-mm-dd
    • Uses time variable from data
    • replace the yyyy-mm-dd part with the date for which you want the data
  • Get by TIME
    • https://us-central1-amiable-hydra-279814.cloudfunctions.net/mikrokosmos/api/read/datetime/hh:
    • Uses time variable from data
    • replace the hh part with the time for which you want the data
⚠️ **GitHub.com Fallback** ⚠️