2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.windcentrale.internal.dto;
15 import java.time.ZonedDateTime;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
20 * The live {@link WindmillStatus} provided by the Windcentrale API.
22 * @author Wouter Born - Initial contribution
25 public class WindmillStatus {
29 public int powerPerShare;
31 public int powerPercentage;
33 public ZonedDateTime timestamp = ZonedDateTime.now();
35 public int totalRuntime;
37 public String windDirection = "";
41 public int yearProduction;
43 public double yearRuntime;
46 public String toString() {
47 return "WindmillStatus [power=" + power + ", powerPerShare=" + powerPerShare + ", powerPercentage="
48 + powerPercentage + ", timestamp=" + timestamp + ", totalRuntime=" + totalRuntime + ", windDirection="
49 + windDirection + ", windPower=" + windPower + ", yearProduction=" + yearProduction + ", yearRuntime="