tils-first-weather-widget
Version:
An example development EXB widget (Grant Caroll, spatial-innovation.co.nz)
55 lines (54 loc) • 1.41 kB
TypeScript
import Accessor from "@arcgis/core/core/Accessor.js";
import { IWeather } from "./weather";
import { IWeatherCondition } from "./weather-condition";
export interface IForecastHour extends IWeather {
time_epoch: number;
time: string;
windchill_c: number;
windchill_f: number;
heatindex_c: number;
heatindex_f: number;
dewpoint_c: number;
dewpoint_f: number;
will_it_rain: number;
chance_of_rain: number;
will_it_snow: number;
chance_of_snow: number;
}
export default class ForecastHour extends Accessor implements IForecastHour {
time_epoch: number;
time: string;
windchill_c: number;
windchill_f: number;
heatindex_c: number;
heatindex_f: number;
dewpoint_c: number;
dewpoint_f: number;
will_it_rain: number;
chance_of_rain: number;
will_it_snow: number;
chance_of_snow: number;
temp_c: number;
temp_f: number;
is_day: number;
condition: IWeatherCondition;
wind_mph: number;
wind_kph: number;
wind_degree: number;
wind_dir: string;
pressure_mb: number;
pressure_in: number;
precip_mm: number;
precip_in: number;
humidity: number;
cloud: number;
feelslike_c: number;
feelslike_f: number;
vis_km: number;
vis_miles: number;
uv: number;
gust_mph: number;
gust_kph: number;
hour: string;
constructor(params: IForecastHour);
}