#define CT_RESPONSE "RES"
-#define CT_EVENT_TIME "time/alarm"
+#define CT_EVENT_TIME "device/alarm"
#define CT_EVENT_BATTERY "system/battery"
#define CT_EVENT_CHARGER "system/charger"
#define CT_EVENT_GPS "system/gps"
#define CT_EVENT_ACTIVITY_RUNNING "activity/running"
#define CT_EVENT_ACTIVITY_IN_VEHICLE "activity/in_vehicle"
#define CT_EVENT_PLACE "place/geofence"
-#define CT_CONDITION_TIME "time/now"
+#define CT_CONDITION_TIME "device/time"
#define CT_CONDITION_BATTERY "system/battery"
#define CT_CONDITION_CHARGER "system/charger"
#define CT_CONDITION_GPS "system/gps"
_D("BEGIN");
ASSERT_NOT_NULL(supported);
- if (event_item == CONTEXT_TRIGGER_EVENT_TIME) {
- *supported = true;
- return CONTEXT_TRIGGER_ERROR_NONE;
- }
-
*supported = false;
std::string eitem_str = convert_event_to_string(event_item);
_D("BEGIN");
ASSERT_NOT_NULL(supported);
- if (condition_item == CONTEXT_TRIGGER_CONDITION_TIME) {
- *supported = true;
- return CONTEXT_TRIGGER_ERROR_NONE;
- }
-
*supported = false;
std::string citem_str = convert_condition_to_string(condition_item);
#define RULE_INFO "{ \"templates\": [\
{\
- \"name\": \"time/alarm\",\
+ \"name\": \"device/alarm\",\
\"attributes\": [ { \"key\": \"TimeOfDay\", \"type\": 1, \"min\": 0, \"max\": 1439}, { \"key\": \"DayOfWeek\", \"type\": 2, \"acceptable\": [ \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\", \"Weekday\", \"Weekend\" ] } ]\
},\
{\
- \"name\": \"time/now\",\
+ \"name\": \"device/time\",\
\"attributes\": [ { \"key\": \"TimeOfDay\", \"type\": 1, \"min\": 0, \"max\": 1439}, { \"key\": \"DayOfWeek\", \"type\": 2, \"acceptable\": [ \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\", \"Weekday\", \"Weekend\" ] }, { \"key\" : \"DayOfMonth\", \"type\": 1, \"min\": 1, \"max\": 31} ]\
},\
{\