#include <ArduinoJson.h>


const char* mychar = "01:30";
int startTime;

//************************************************************************************************
void setup() {
  
  Serial.begin(115200);
  Serial.println("Irrigation Setup");
}
//************************************************************************************************
//************************************************************************************************
void loop() {





startTime = (String(mychar).substring(0,2).toInt()*60)+(String(mychar).substring(3,5).toInt());;
Serial.println(String(mychar).substring(0,5));
Serial.println(startTime);



delay(1000); // this speeds up the simulation
}