Skip to content

Expose full Tempest forecast data to plugin locals - #150

Closed
EbonyBirch wants to merge 1 commit into
usetrmnl:masterfrom
EbonyBirch:master
Closed

EbonyBirch wants to merge 1 commit into
usetrmnl:masterfrom
EbonyBirch:master

Conversation

@EbonyBirch

Copy link
Copy Markdown

Exposes the complete Tempest better_forecast response through the plugin locals as tempest_data.
The plugin already fetches this payload internally, but currently only exposes a limited subset of its fields to views and Plugin Merge consumers.
Adding tempest_data: forecast_data makes the remaining Tempest data available without introducing any additional API requests or changing existing fields.
This includes values such as pressure, pressure trend, dew point, wet-bulb temperature, wet-bulb globe temperature, solar radiation, air density, lightning information, precipitation statistics, and other data already present in the better_forecast response.
Existing locals remain unchanged, so this should be backward-compatible.

@EbonyBirch

Copy link
Copy Markdown
Author

Tempest plugin doesn't expose pressure and other stuff (lightning, dew point, rain duration, wet bulb temperatures, etc.) that Tempest provides. It'd be great if those were made available, so there'd be a way to create alternatives (Recipes) that focus on specific things (e.g. pressure for people suffering from meteoropathy) without some additional helpers, instead of just shuffling the available data around the screen.

The idea is, to switch from something like this (OG):

Image

to this:

Image

(here it's still the "uv" instead of "uv_short", but once that's fixed, it should look sleek)

Same on the X - currently:

Image

vs. modified:

Image

( Keep in mind that it's not the final version, I'm constantly modifying and testing the layout, but I wanted to give a preview here. )

@ryanckulp

Copy link
Copy Markdown
Contributor

thanks for the suggestion, looking into this. might be best to throw a bunch of additional markers (the ones you mentioned) into a new meta payload, so you can click Remix and add them wherever you see fit. otherwise we'd need a new layout option, as modifying 30k+ displays without warning is not a good idea.

stay tuned, will reply here.

@ryanckulp

Copy link
Copy Markdown
Contributor

@EbonyBirch this is now ready for you, see new meta object with everything you requested:

  • sea-level and station pressure
  • pressure_trend
  • dew point
  • wet bulb and wet bulb globe temperature
  • lightning counts and last strike distance
  • rain minutes today and yesterday
  • solar radiation
  • brightness
  • air density, and more

units are also included because raw values arrive in celsius or mb (pressure), which may not match an end-user's format preference. so you'll wanna add some math/formatting f you choose to make this new layout a published Recipe.

anyway -- this works on both the Tempest plugin as well as the Weather plugin, when a Tempest public station is the data source.

visit your weather plugin and click "Edit Markup" to remix. enjoy :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants