Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta.wh_period #24

Open
marvil1961 opened this issue Sep 29, 2024 · 1 comment
Open

meta.wh_period #24

marvil1961 opened this issue Sep 29, 2024 · 1 comment

Comments

@marvil1961
Copy link

Thank you for your very complete dashboard. I have managed to get most of the cards working except the very last one
I am using solcast for my PV forecasting and it seems that the entity meta.wh_period is missing on my installation. What is a weather period - can I not get it from solcast directly? or where is it generated?
image

My code:
entities:
- entity: sensor.sunsynk_12kw_ss_solar_power #12kW Single phase
name: Solar Power
line:
color: rgb(255, 155, 48)
shape: spline
width: 1
fill: tozeroy
fillcolor: rgba(255, 155, 48, 0.3)
yaxis: y3
show_value: false
showlegend: false
- entity: sensor.solcast_pv_forecast_forecast_today
line:
color: rgb(125, 125, 125)
shape: spline
fill: tozeroy
filters:
- fn: |
({meta}) => {
const entries = Object.entries(meta.wh_period);
const xs = entries.map(([start, ]) => new Date(start));
const ys = entries.map(([
, value]) => value);
return { xs, ys };
}
yaxis: y1
showlegend: true
- entity: sensor.solcast_pv_forecast_forecast_tomorrow
line:
color: rgb(90,90,90)
shape: spline
fill: tozeroy
filters:
- fn: |
({meta}) => {
const entries = Object.entries(meta.wh_period);
const xs = entries.map(([start, ]) => new Date(start));
const ys = entries.map(([
, value]) => value);
return { xs, ys };
}
yaxis: y1
- entity: sensor.solcast_pv_forecast_forecast_day_3
line:
color: rgb(50,50,50)
shape: spline
fill: tozeroy
filters:
- fn: |
({meta}) => {
const entries = Object.entries(meta.wh_period);
const xs = entries.map(([start, ]) => new Date(start));
const ys = entries.map(([
, value]) => value);
return { xs, ys };
}

@slipx06
Copy link
Owner

slipx06 commented Sep 29, 2024

Hi. I switched to Meteo but if you are using Solcast then have look here for the fix #22 (comment)

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

No branches or pull requests

2 participants