     return false;
 
   c.epoch = epoch;
-  strncpy(c.icon, current_observation[F("icon")] | "", sizeof(c.icon));
-  strncpy(c.weather, current_observation[F("weather")] | "", sizeof(c.weather));
+  strlcpy(c.icon, current_observation[F("icon")] | "", sizeof(c.icon));
+  strlcpy(c.weather, current_observation[F("weather")] | "", sizeof(c.weather));
   if (cfg.metric) {
     c.temp = current_observation[F("temp_c")];
     c.feelslike = atoi(current_observation[F("feelslike_c")] | "0");

  }
  c.humidity = atoi(current_observation[F("relative_humidity")] | "0");
  c.pressure_trend = atoi(current_observation[F("pressure_trend")] | "0");
  strncpy(c.wind_dir, current_observation[F("wind_dir")] | "", sizeof(c.wind_dir));;
  c.wind_degrees = current_observation[F("wind_degrees")];
  strncpy(c.city, current_observation[F("observation_location")][F("city")] | "", sizeof(c.city));
  JsonObject &sun = root[F("sun_phase")];
  strncpy(c.sunrise_hour, sun[F("sunrise")][F("hour")] | "", sizeof(c.sunrise_hour));
  strncpy(c.sunrise_minute, sun[F("sunrise")][F("minute")] | "", sizeof(c.sunrise_minute));
  strncpy(c.sunset_hour, sun[F("sunset")][F("hour")] | "", sizeof(c.sunset_hour));
  strncpy(c.sunset_minute, sun[F("sunset")][F("minute")] | "", sizeof(c.sunset_minute));
  JsonObject &moon = root[F("moon_phase")];
  strncpy(c.age_of_moon, moon[F("ageOfMoon")] | "", sizeof(c.age_of_moon));
  strncpy(c.moon_phase, moon[F("phaseofMoon")] | "", sizeof(c.moon_phase));
  strncpy(c.moonrise_hour, moon[F("moonrise")][F("hour")] | "", sizeof(c.moonrise_hour));
  strncpy(c.moonrise_minute, moon[F("moonrise")][F("minute")] | "", sizeof(c.moonrise_minute));
  strncpy(c.moonset_hour, moon[F("moonset")][F("hour")] | "", sizeof(c.moonset_hour));
  strncpy(c.moonset_minute, moon[F("moonset")][F("minute")] | "", sizeof(c.moonset_minute));
  return true;
}


    }
    f.ave_humidity = day[F("avehumidity")];
    f.wind_degrees = day[F("avewind")][F("degrees")];
    strlcpy(f.wind_dir, day[F("avewind")][F("dir")] | "", sizeof(f.wind_dir));
    strlcpy(f.conditions, day[F("conditions")] | "", sizeof(f.conditions));
    strlcpy(f.icon, day[F("icon")] | "", sizeof(f.icon));
  }
}

