Skip to content

Sample Data

HyunSeob edited this page Mar 25, 2016 · 1 revision

Recipe

POST

recipe = {
  user: '56f4ccc45b250b8c6d11cba6', // User Object Id
  action: 'toggle',
  date: '00 30 12 * * *',           // Cron Date String
  device: '2',                      // Device UUID
  type: 'datetime', 
  usage: { }                        // Empty object if type is 'datetime'
};
recipe = {
  user: '56f4ccc45b250b8c6d11cba6', // User Object Id
  action: 'off',
  device: '3',                      // Device UUID
  type: 'usage',
  usage: {
    calc: 'average',
    condition: 'under',
    device: '3',
    minute: 30,
    value: 12
  }
};
Clone this wiki locally