 	return on_or_off;
 }
 
-int zones_all_off(){
+int zones_all_off(String command){
 	// turn all zones off
 
 	Particle.publish("striide.garden.all_off");
-    for (int i = 0; i < num_of_zones; i++){
+    for (int i = 0; i < NUM_ZONES; i++){
 		digitalWrite(zones[i], LOW);
 	}
-}
-
-// ************************* TIME FUNCTIONS *************************
-
-void set_time_zone(float offset){
-	// set the current time zone
-	Time.zone(offset);
-}
-
-bool check_sync_timer(){
-	// check if 24 hours have passed
-	if (millis() - last_cloud_time_sync > ONE_DAY_MILLIS) {
-		return true;
-	} else {
-		return false;
-	}
-}
-
-void sync_time_with_cloud(){
-	// update current time on microprocessor
-// 	Particle.syncTime();
-	last_cloud_time_sync = millis();
-
-	Particle.publish("striide.garden.runzone");
-}
+}

void run_zone_for_duration(char zone_number, int duration){
	// turn on zone for duration

	// set timer and run
	//change_zone_valve(zone_number, true);
}

bool change_zone_valve(int zone_number, bool on_or_off){

	String status;

	if (on_or_off){
        // turn other zones off
        zones_all_off("");
        
		status = "on";
        digitalWrite(zones[zone_number-1], HIGH);
	} else {
