net.atmowx.getStationHistory

atmowx.net

Schema Diff

+8 -1

From

CID
bafyreibzbf7u52z...
Indexed At
2026-07-24 15:05 UTC
View this version

To

CID
bafyreiejyuvzfrj...
Indexed At
2026-07-25 18:08 UTC
View this version

Compatibility Analysis

Backward Compatible

No changes detected.

1 1
{
2 2
  "id": "net.atmowx.getStationHistory",
3 3
  "defs": {
4 4
    "main": {
5 5
      "type": "query",
6 6
      "errors": [
7 7
        {
8 8
          "name": "StationNotFound",
9 9
          "description": "No indexed station with that AT-URI."
10 10
        },
11 11
        {
12 12
          "name": "RangeTooLarge",
13 13
          "description": "raw bucket over 5000 points; narrow the range or use hour/day."
14 14
        },
15 15
        {
16 16
          "name": "InvalidBucket",
17 17
          "description": "bucket must be raw, hour, or day."
18 18
        }
19 19
      ],
20 20
      "output": {
21 21
        "schema": {
22 22
          "type": "object",
23 23
          "required": [
24 24
            "station",
25 25
            "bucket",
26 26
            "series"
27 27
          ],
28 28
          "properties": {
29 29
            "bucket": {
30 30
              "type": "string"
31 31
            },
32 32
            "series": {
33 33
              "type": "array",
34 34
              "items": {
35 35
                "ref": "net.atmowx.getStationHistory#series",
36 36
                "type": "ref"
37 37
              }
38 38
            },
39 39
            "station": {
40 40
              "type": "string",
41 41
              "format": "at-uri"
42 42
            }
43 43
          }
44 44
        },
45 45
        "encoding": "application/json"
46 46
      },
47 47
      "parameters": {
48 48
        "type": "params",
49 49
        "required": [
50 50
          "station",
51 51
          "from",
52 52
          "to"
53 53
        ],
54 54
        "properties": {
55 55
          "to": {
56 56
            "type": "string",
57 57
            "format": "datetime"
58 58
          },
59 59
          "from": {
60 60
            "type": "string",
61 61
            "format": "datetime"
62 62
          },
63 63
          "bucket": {
64 64
            "type": "string",
65 65
            "default": "raw",
66 66
            "knownValues": [
67 67
              "raw",
68 68
              "hour",
69 69
              "day"
70 70
            ]
71 71
          },
72 72
          "station": {
73 73
            "type": "string",
74 74
            "format": "at-uri",
75 75
            "description": "AT-URI of the net.atmowx.station record."
76 76
          }
77 77
        }
78 78
      },
79 79
      "description": "Time series for one station. bucket=raw returns individual readings (capped at 5000 points; narrow the range or coarsen the bucket on RangeTooLarge). hour/day buckets return UTC-aligned min/avg/max (sum for precipitation). No auth."
80 80
    },
81 81
    "point": {
82 82
      "type": "object",
83 83
      "required": [
84 84
        "time"
85 85
      ],
86 86
      "properties": {
87 87
        "avg": {
88 88
          "ref": "net.atmowx.defs#quantity",
89 89
          "type": "ref"
90 90
        },
91 91
        "max": {
92 92
          "ref": "net.atmowx.defs#quantity",
93 93
          "type": "ref"
94 94
        },
95 95
        "min": {
96 96
          "ref": "net.atmowx.defs#quantity",
97 97
          "type": "ref"
98 98
        },
99 99
        "sum": {
100 100
          "ref": "net.atmowx.defs#quantity",
101 101
          "type": "ref",
102 102
          "description": "Precipitation buckets report sum instead of min/avg/max."
103 103
        },
104 104
        "time": {
105 105
          "type": "string",
106 106
          "format": "datetime",
107 107
          "description": "Reading time (raw) or UTC bucket start (hour/day)."
108 108
        },
109 109
        "value": {
110 110
          "ref": "net.atmowx.defs#quantity",
111 111
          "type": "ref",
112 112
          "description": "Present for bucket=raw."
113 113
        }
114 114
      }
115 115
    },
116 116
    "series": {
117 117
      "type": "object",
118 118
      "required": [
119 119
        "parameter",
120 120
        "unit",
121 121
        "points"
122 122
      ],
123 123
      "properties": {
124 124
        "unit": {
125 125
          "type": "string",
126 126
          "maxLength": 64,
127 127
          "description": "SI unit name, e.g. celsius, hectopascal, metersPerSecond, millimeters, percent, wattsPerSquareMeter."
128 128
        },
129 129
        "points": {
130 130
          "type": "array",
131 131
          "items": {
132 132
            "ref": "net.atmowx.getStationHistory#point",
133 133
            "type": "ref"
134 134
          }
135 135
        },
136 136
        "parameter": {
137 137
          "type": "string",
138 138
          "maxLength": 128,
139 139
          "knownValues": [
140 140
            "temperature",
141 141
            "dewPoint",
142 142
            "relativeHumidity",
143 143
            "pressureSeaLevel",
144 144
            "windSpeed",
145 145
            "windGust",
146 146
            "precipitationRate",
147 147
            "precipitationDay",
148 148
            "solarIrradiance",
149 -
            "uvIndex"
149 +
            "uvIndex",
150 +
            "pm1",
151 +
            "pm25",
152 +
            "pm10",
153 +
            "ozone",
154 +
            "no2",
155 +
            "so2",
156 +
            "co"
150 157
          ]
151 158
        }
152 159
      },
153 160
      "description": "One measured parameter's series. The parameter set is open: additional parameters may be served later without a schema change."
154 161
    }
155 162
  },
156 163
  "$type": "com.atproto.lexicon.schema",
157 164
  "lexicon": 1
158 165
}

Compare Other Versions

Lexicon Garden

@