Tilez weather
Current weather, forecasts and warnings from Tilez Cloud, without a key of your own. Weather: OpenWeatherMap.
In a dashboard file: a connection with "driver": "casa-weather", its settings in config, and what a data source of it reads in that data source’s params (Connections and data sources).
Example
Section titled “Example”A dashboard with a connection of this driver, named weather, and a tile that reads it. Any number of tiles can read the same connection. In the editor, the values of params are picked from what the connection lists; ids in the example are made up.
{ "schemaVersion": 4, "connections": { "weather": { "driver": "casa-weather", "config": { "server": "https://casa-cloud.app", "serviceKey": "your service key", "lat": 50.85, "lon": 4.35 } } }, "screens": [ { "name": "Home", "tiles": [ { "type": "forecast", "label": "Weather", "layout": { "x": 1, "y": 1, "width": 2, "height": 2 }, "dataSource": { "connection": "weather", "params": { "read": "forecast" } } } ] } ]}Settings (config)
Section titled “Settings (config)”| Field | Type | Default | What |
|---|---|---|---|
server |
text | required | Tilez Cloud. Tilez Cloud’s address, such as https://casa-cloud.app. |
serviceKey |
text | required | Service key. Made on Tilez Cloud’s admin page, under Service keys. A credential. |
lat |
number, -90 to 90 | required | Latitude. Of the place, in decimal degrees, such as 50.85. |
lon |
number, -180 to 180 | required | Longitude. Of the place, in decimal degrees, such as 4.35. |
units |
one of metric, imperial |
Units. Metric (°C, km/h, mm) when left out, or imperial (°F, mph, in). | |
lang |
text | Language. Of descriptions and warnings, such as nl; the device’s when left out. | |
currentEvery |
number, above 0 | Current conditions every. Minutes; 15 when left out. | |
forecastEvery |
number, above 0 | Forecasts every. Minutes; 30 when left out. |
What a data source reads (params)
Section titled “What a data source reads (params)”| Field | Type | Default | What |
|---|---|---|---|
read |
text | required | Read. The current conditions, or the forecast for the forecast tile. |
value |
text | Value. Which of the current conditions; all of them, as a record, when left out. |