-
Notifications
You must be signed in to change notification settings - Fork 3
/
WCWU_WeatherData.cs
83 lines (80 loc) · 2.71 KB
/
WCWU_WeatherData.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Json;
//
// Data Structure
//
namespace ASCOM.MyCloudPWS
{
[DataContract]
public class WeatherDataWCWU
{
[DataMember]
// "observations":[{
public List<Observations> observations { get; set; }
}
public class Observations
{
//[DataMember]
// "stationID": "KAZTUCSO2296",
public string stationID { get; set; }
// "obsTimeUtc": "2021-08-21T01:39:39Z",
public string obsTimeUtc { get; set; }
// "obsTimeLocal": "2021-08-20 18:39:39",
public string obsTimeLocal { get; set; }
// "neighborhood": "Catalina Foothills",
public string neighborhood { get; set; }
// "softwareType": "myAcuRite",
public string softwareType { get; set; }
// "country": "US",
public string country { get; set; }
// "solarRadiation": null,
public double? solarRadiation { get; set; }
// "lon": -110.854523,
public double? lon { get; set; }
// "realtimeFrequency": null,
public double? realtimeFrequency { get; set; }
// "epoch": 1629509979,
public long? epoch { get; set; }
// "lat": 32.28858,
public double? lat { get; set; }
// "uv": null,
public double? uv { get; set; }
// "windDir": 225,
public int? winddir { get; set; }
// "humidity": 35.0,
public double? humidity { get; set; }
// "qcStatus": 1,
public int? qcStatus { get; set; }
//"imperial" or "metric": {
// public Measures imperial { get; set; }
public Measures metric { get; set; }
}
public class Measures
{
// "temp":282.53,
public double? temp { get; set; }
// "heatIndex": 94.3,
public double? heatIndex { get; set; }
// "dewPt": 61.0,
public double? dewpt { get; set; }
// "windChill": 93.6,
public double? windChill { get; set; }
// "windSpeed": 0.0,
public double? windSpeed { get; set; }
// "windGust": 5.0,
public double? windGust { get; set; }
// "pressure":996,
public double? pressure { get; set; }
// "precipRate": 0.00,
public double precipRate { get; set; }
// "precipTotal": 0.00,
public double? precipTotal { get; set; }
// "elev": 2690.0
public double? elev { get; set; }
// public int? cod { get; set; }
}
}