Skip to content

Commit

Permalink
update for rebranding and bump version to 0.90
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidFW1960 committed Jun 8, 2021
1 parent 5b86b93 commit 59ed636
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 56 deletions.
47 changes: 24 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,14 @@

## IMPORTANT CHANGES

In the latest BOM component, a number of sensors have been renamed.
This should not affect existing component however the renaming I have found is here:
~~~~
sensor.gosford_wind_speed > sensor.gosford_wind_speed_kilometre
sensor.gosford_temperature > sensor.gosford_temp
sensor.gosford_temperature_feels_like > sensor.gosford_temp_feels_like
sensor.kariong_min* > sensor.kariong_temp_max*
sensor.kariong_min* > sensor.kariong_temp_max*
sensor.kariong_icon* > sensor.kariong_icon_descriptor*
Added day 6 forecast
sensor.gosford_gust_speed > sensor.gosford_gust_speed_kilometre
sensor.gosford_wind_speed > sensor.gosford_wind_speed_kilometre
sensor.gosford_gust_speed_knots > sensor.gosford_gust_speed_knot
sensor.gosford_wind_speed_knots > sensor.gosford_wind_speed_knot
~~~~
I have amended the docs to reflect this and have also updated the ICON instructions.
I have renamed this card to remove the emphasis on BOM. This is a generic card that works with any provider

VERY IMPORTANT NOTE:
As of HA 0.117.x, the BOM Core Sensor component is removed as it violates ADR14 rule regarding web scraping.
NON-Australian Users: This card and docs has always been a generic card with an emphasis on BOM in Australia however it will work with ANY weather provider that can supply the sensors.

I have made some changes so that this card now uses the new [BOM Component by Brendan](https://github.com/bremor/bureau_of_meteorology )
AUSTRALIA ONLY NOTE: I have made some changes to the docs so that this card now uses the new [BOM Component by Brendan](https://github.com/bremor/bureau_of_meteorology )
This new repo can be added to HACS See also the excellent new [BOM Radar Card by @therat here](https://github.com/theOzzieRat/bom-radar-card )

I have updated the lovelace.yaml and templates as well for this new component.
I have updated the lovelace.yaml and templates (NOTE THESE AE EXAMPLES and can be customised for your needs) as well for this new component.

When you install Brendans new BOM Component, you will get sensors that look like this:
For the Observations, they will be named for the BOM Observation station like.. sensor.gosford_temperature as an example.
Expand All @@ -39,11 +23,28 @@ IF you are using the old card as well with the 7 days forecast, note the new com
![image](bom-weather.png)

This card is a modification of a fork of iammexx/home-assistant-config dark-sky-weather-card

NOTE: This card REQUIRES the BOM custom component as per above note.
This card provides MANY additional features as well as compatability with later versions of home assistant.
New features not in original card include:
- Lit 2
- Only use Day time icons for forecast for future days (days 1-5)
- More icons
- Adds Locale customisation for number formats
- Added to card-picker in Lovelace
- Added option to show minimum or maximum first in forecast
- Added option to show 1 decimal place to temperatures
- Added option to display windspeeds in knots
- Show rainfall as an intensity or absolute number
- Removed leading zeros if 12hr time
- Added Wind Gust
- Can use different icon sets
- Added extra (5th) row of slots
- Added slots (optional) for UV and fire danger ratings
- Added possibility of rainfall to forecast

NOTE: This card REQUIRES any weather component that can provide the required sensors. (like the new BOM Component if in Australia)
Alternately, if you are using DarkSky (or any other provider), the important thing is that any entities parsed to the card must be provided by that platform and you should carefully check the sensor names exist. Parsing a non existant sensor to the card will cause the card to fail to display!

The BOM Weather Card provides current and forecasted weather conditions using the. You configure the card by passing in sensor entities from the BOM component (or any other weather component but the examples here are based on BOM).
The Weather Card provides current and forecast weather conditions using HA sensors. You configure the card by passing in sensor entities from the weather component.

The [weather package](https://github.com/DavidFW1960/bom-weather-card/blob/master/weather.yaml ) in the repo shows configuration for this card. This package is for HA versions > 0.115.0.

Expand Down
2 changes: 1 addition & 1 deletion bom-weather-card.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// #### Add card info to console
console.info(
`%cBOM-WEATHER-CARD\n%cVersion 0.89a `,
`%cGENERIC-WEATHER-CARD\n%cVersion 0.90 `,
"color: #043ff6; font-weight: bold; background: white",
"color: white; font-weight: bold; background: #043ff6"
);
Expand Down
45 changes: 13 additions & 32 deletions info.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

## Latest Changes

Slight rebranding so people know it's not a BOM specific card but generic.

Correctedjs for lit changes and also fixed shadowroot issues

## Older
This release corrects a bug in the night icon for the sunny condition. It is a breaking change.
This affects you if you use hybrid icons
You need to copy the day.png to sunny-day.png and night.png to sunny-night.png or re-download and extract the icons from the zip file again. (Don't rename the old one as that will break installations using old icons.)
Expand All @@ -16,40 +21,27 @@ This is only applicable if you are using the hybrid or new icon set!!!
THIS IS A BREAKING CHANGE unless you are configured to use the old icons.
I have also changed the forecast icon to never use the night icon - it will now always use day.




Added new slot popforecast so if you display a slot as popforecast it will now show the predicted instead of actual rainfall today
This card will now respect locale formatting (commas instead of decimal points etc)

Also added my illuminance sensor and history graph to display and a to sunny-day.png and night.png to sunny-night.pnglso a more information card utilising some of the other templates.


Added this card to the card picker in Lovelace

In the latest BOM component, a number of sensors have been renamed.
This should not affect existing component however the renaming I have found is here:
~~~~
sensor.gosford_wind_speed > sensor.gosford_wind_speed_kilometre
sensor.gosford_temperature > sensor.gosford_temp
sensor.gosford_temperature_feels_like > sensor.gosford_temp_feels_like
sensor.kariong_min* > sensor.kariong_temp_max*
sensor.kariong_min* > sensor.kariong_temp_max*
sensor.kariong_icon* > sensor.kariong_icon_descriptor*
Added day 6 forecast
sensor.gosford_gust_speed > sensor.gosford_gust_speed_kilometre
sensor.gosford_wind_speed > sensor.gosford_wind_speed_kilometre
sensor.gosford_gust_speed_knots > sensor.gosford_gust_speed_knot
sensor.gosford_wind_speed_knots > sensor.gosford_wind_speed_knot
~~~~
I have amended the docs to reflect this and have also updated the ICON instructions.
Also made an adjustment to the css to display the temperature correctly again.

Option to show the apparent and current temperature to 1 decimal place
Add to lovelace:
```
show_decimals: true
```
The default if not specified is false

This version includes the option to have maximum temperature before the minimum.
It is a new 'flag' as:
````yaml
tempformat: highlow
````

I also updated some of the docs/packages to clarify some settings etc

VERY IMPORTANT NOTE:
Expand All @@ -67,17 +59,6 @@ It MAY be that there will be some new conditions from BOM. If icons are missing

IF you are using the old card as well with the 7 days forecast, note the new component only provides 6 days now and additionally I have added some icons so make sure you grab the bom_icons.zip file and extract the contents to /config/www/bom_icons The animated icons for the card itself are unchanged.

## Older
Also made an adjustment to the css to display the temperature correctly again.

Option to show the apparent and current temperature to 1 decimal place
Add to lovelace:
```
show_decimals: true
```
The default if not specified is false


I have been having a problem with the Beaufort rating not updating if using knots. This release corrects that.
Also thanks to @rudders Adrian for fixing the other issues with refreshing the card automatically.

Expand Down

0 comments on commit 59ed636

Please sign in to comment.