Skip to content

Commit

Permalink
v5.6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dckiller51 committed Oct 5, 2021
1 parent fd1a1c7 commit e46f9c6
Show file tree
Hide file tree
Showing 27 changed files with 44 additions and 40 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## v5.6.6

- Break. Delete webp icons and replace them with png icons to make them compatible with IOS and Safari browser. Attention you must replace your library in www/images/bodyscoreIcon/*.png

## v5.6.5

- added IT language (thanks to @Altar82)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ If you want to use the scales background image, download and add
to `<config>/www/images/` or configure your own preferred path.

For body score icons, download and add
[src/images/bodyscoreIcon/*.webp](https://raw.githubusercontent.com/dckiller51/lovelace-body-miscale-card/master/src/images/bodyscoreIcon)
[src/images/bodyscoreIcon/*.png](https://raw.githubusercontent.com/dckiller51/lovelace-body-miscale-card/master/src/images/bodyscoreIcon)
to `<config>/www/images/bodyscoreIcon/`.

## Configuration
Expand Down Expand Up @@ -242,7 +242,7 @@ body:
```

Translations: Automatic (setting of your homeassistant) or manual
Currently the languages available are `DE`,`EN`,`FR`,`NL`,`PT-BR`, you can contact me to integrate your native language
Currently the languages available are `DE`,`EN`,`FR`,`IT`,`NL`,`PT-BR`,`ZH-HANS`, you can contact me to integrate your native language

```yaml
- type: custom:body-miscale-card
Expand Down
18 changes: 9 additions & 9 deletions dist/body-miscale-card.js

Large diffs are not rendered by default.

54 changes: 27 additions & 27 deletions src/const.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { localize } from './localize/localize';

export const CARD_VERSION = '5.0.0';
export const CARD_VERSION = '5.6.6';

export const states = {
status: {
Expand Down Expand Up @@ -71,7 +71,7 @@ export const body_kg = {
bmi: {
key: 'bmi',
label: localize(`body.${'bmi'}`),
icon: '/local/images/bodyscoreIcon/bmi.webp',
icon: '/local/images/bodyscoreIcon/bmi.png',
direction: 'right',
height: '30px',
width: '100%',
Expand All @@ -97,7 +97,7 @@ export const body_kg = {
bmi_label: {
key: 'bmi_label',
label: localize(`body.${'bmi_label'}`),
icon: '/local/images/bodyscoreIcon/body_type.webp',
icon: '/local/images/bodyscoreIcon/body_type.png',
direction: 'right',
height: '30px',
width: '100%',
Expand All @@ -112,7 +112,7 @@ export const body_kg = {
visceral_fat: {
key: 'visceral_fat',
label: localize(`body.${'visceral_fat'}`),
icon: '/local/images/bodyscoreIcon/visceral_fat.webp',
icon: '/local/images/bodyscoreIcon/visceral_fat.png',
direction: 'right',
height: '30px',
width: '100%',
Expand All @@ -136,7 +136,7 @@ export const body_kg = {
body_fat: {
key: 'body_fat',
label: localize(`body.${'body_fat'}`),
icon: '/local/images/bodyscoreIcon/body_fat.webp',
icon: '/local/images/bodyscoreIcon/body_fat.png',
unit: ' %',
direction: 'right',
height: '30px',
Expand All @@ -163,7 +163,7 @@ export const body_kg = {
protein: {
key: 'protein',
label: localize(`body.${'protein'}`),
icon: '/local/images/bodyscoreIcon/protein.webp',
icon: '/local/images/bodyscoreIcon/protein.png',
unit: ' %',
direction: 'right',
height: '30px',
Expand All @@ -188,7 +188,7 @@ export const body_kg = {
water: {
key: 'water',
label: localize(`body.${'water'}`),
icon: '/local/images/bodyscoreIcon/water.webp',
icon: '/local/images/bodyscoreIcon/water.png',
unit: ' %',
direction: 'right',
height: '30px',
Expand All @@ -213,7 +213,7 @@ export const body_kg = {
muscle_mass: {
key: 'muscle_mass',
label: localize(`body.${'muscle_mass'}`),
icon: '/local/images/bodyscoreIcon/muscle_mass.webp',
icon: '/local/images/bodyscoreIcon/muscle_mass.png',
unit: ' kg',
direction: 'right',
height: '30px',
Expand All @@ -238,7 +238,7 @@ export const body_kg = {
bone_mass: {
key: 'bone_mass',
label: localize(`body.${'bone_mass'}`),
icon: '/local/images/bodyscoreIcon/bone_mass.webp',
icon: '/local/images/bodyscoreIcon/bone_mass.png',
unit: ' kg',
direction: 'right',
height: '30px',
Expand All @@ -263,7 +263,7 @@ export const body_kg = {
weight: {
key: 'weight',
label: localize(`body.${'weight'}`),
icon: '/local/images/bodyscoreIcon/ideal.webp',
icon: '/local/images/bodyscoreIcon/ideal.png',
unit: ' kg',
direction: 'right',
height: '30px',
Expand All @@ -290,7 +290,7 @@ export const body_kg = {
ideal: {
key: 'ideal',
label: localize(`body.${'ideal'}`),
icon: '/local/images/bodyscoreIcon/ideal.webp',
icon: '/local/images/bodyscoreIcon/ideal.png',
unit: ' kg',
direction: 'right',
height: '30px',
Expand All @@ -317,7 +317,7 @@ export const body_kg = {
basal_metabolism: {
key: 'basal_metabolism',
label: localize(`body.${'basal_metabolism'}`),
icon: '/local/images/bodyscoreIcon/basal_metabolism.webp',
icon: '/local/images/bodyscoreIcon/basal_metabolism.png',
unit: ' kcal',
direction: 'right',
height: '30px',
Expand All @@ -341,7 +341,7 @@ export const body_kg = {
body_type: {
key: 'body_type',
label: localize(`body.${'body_type'}`),
icon: '/local/images/bodyscoreIcon/body_type.webp',
icon: '/local/images/bodyscoreIcon/body_type.png',
direction: 'right',
height: '30px',
width: '100%',
Expand All @@ -356,7 +356,7 @@ export const body_kg = {
metabolic_age: {
key: 'metabolic_age',
label: localize(`body.${'metabolic_age'}`),
icon: '/local/images/bodyscoreIcon/metabolic_age.webp',
icon: '/local/images/bodyscoreIcon/metabolic_age.png',
unit: localize(`unit.${' years'}`),
direction: 'right',
height: '30px',
Expand All @@ -379,7 +379,7 @@ export const body_lb = {
bmi: {
key: 'bmi',
label: localize(`body.${'bmi'}`),
icon: '/local/images/bodyscoreIcon/bmi.webp',
icon: '/local/images/bodyscoreIcon/bmi.png',
direction: 'right',
height: '30px',
width: '100%',
Expand All @@ -405,7 +405,7 @@ export const body_lb = {
bmi_label: {
key: 'bmi_label',
label: localize(`body.${'bmi_label'}`),
icon: '/local/images/bodyscoreIcon/body_type.webp',
icon: '/local/images/bodyscoreIcon/body_type.png',
direction: 'right',
height: '30px',
width: '100%',
Expand All @@ -420,7 +420,7 @@ export const body_lb = {
visceral_fat: {
key: 'visceral_fat',
label: localize(`body.${'visceral_fat'}`),
icon: '/local/images/bodyscoreIcon/visceral_fat.webp',
icon: '/local/images/bodyscoreIcon/visceral_fat.png',
direction: 'right',
height: '30px',
width: '100%',
Expand All @@ -444,7 +444,7 @@ export const body_lb = {
body_fat: {
key: 'body_fat',
label: localize(`body.${'body_fat'}`),
icon: '/local/images/bodyscoreIcon/body_fat.webp',
icon: '/local/images/bodyscoreIcon/body_fat.png',
unit: ' %',
direction: 'right',
height: '30px',
Expand All @@ -471,7 +471,7 @@ export const body_lb = {
protein: {
key: 'protein',
label: localize(`body.${'protein'}`),
icon: '/local/images/bodyscoreIcon/protein.webp',
icon: '/local/images/bodyscoreIcon/protein.png',
unit: ' %',
direction: 'right',
height: '30px',
Expand All @@ -496,7 +496,7 @@ export const body_lb = {
water: {
key: 'water',
label: localize(`body.${'water'}`),
icon: '/local/images/bodyscoreIcon/water.webp',
icon: '/local/images/bodyscoreIcon/water.png',
unit: ' %',
direction: 'right',
height: '30px',
Expand All @@ -521,7 +521,7 @@ export const body_lb = {
muscle_mass: {
key: 'muscle_mass',
label: localize(`body.${'muscle_mass'}`),
icon: '/local/images/bodyscoreIcon/muscle_mass.webp',
icon: '/local/images/bodyscoreIcon/muscle_mass.png',
unit: ' lbs',
direction: 'right',
height: '30px',
Expand All @@ -546,7 +546,7 @@ export const body_lb = {
bone_mass: {
key: 'bone_mass',
label: localize(`body.${'bone_mass'}`),
icon: '/local/images/bodyscoreIcon/bone_mass.webp',
icon: '/local/images/bodyscoreIcon/bone_mass.png',
unit: ' lbs',
direction: 'right',
height: '30px',
Expand All @@ -571,7 +571,7 @@ export const body_lb = {
weight: {
key: 'weight',
label: localize(`body.${'weight'}`),
icon: '/local/images/bodyscoreIcon/ideal.webp',
icon: '/local/images/bodyscoreIcon/ideal.png',
unit: ' lbs',
direction: 'right',
height: '30px',
Expand All @@ -598,7 +598,7 @@ export const body_lb = {
ideal: {
key: 'ideal',
label: localize(`body.${'ideal'}`),
icon: '/local/images/bodyscoreIcon/ideal.webp',
icon: '/local/images/bodyscoreIcon/ideal.png',
unit: ' lbs',
direction: 'right',
height: '30px',
Expand All @@ -625,7 +625,7 @@ export const body_lb = {
basal_metabolism: {
key: 'basal_metabolism',
label: localize(`body.${'basal_metabolism'}`),
icon: '/local/images/bodyscoreIcon/basal_metabolism.webp',
icon: '/local/images/bodyscoreIcon/basal_metabolism.png',
unit: ' kcal',
direction: 'right',
height: '30px',
Expand All @@ -649,7 +649,7 @@ export const body_lb = {
body_type: {
key: 'body_type',
label: localize(`body.${'body_type'}`),
icon: '/local/images/bodyscoreIcon/body_type.webp',
icon: '/local/images/bodyscoreIcon/body_type.png',
direction: 'right',
height: '30px',
width: '100%',
Expand All @@ -664,7 +664,7 @@ export const body_lb = {
metabolic_age: {
key: 'metabolic_age',
label: localize(`body.${'metabolic_age'}`),
icon: '/local/images/bodyscoreIcon/metabolic_age.webp',
icon: '/local/images/bodyscoreIcon/metabolic_age.png',
unit: localize(`unit.${' years'}`),
direction: 'right',
height: '30px',
Expand Down
Binary file added src/images/bodyscoreIcon/basal_metabolism.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/images/bodyscoreIcon/basal_metabolism.webp
Binary file not shown.
Binary file added src/images/bodyscoreIcon/bmi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/images/bodyscoreIcon/bmi.webp
Binary file not shown.
Binary file added src/images/bodyscoreIcon/body_fat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/images/bodyscoreIcon/body_fat.webp
Binary file not shown.
Binary file added src/images/bodyscoreIcon/body_type.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/images/bodyscoreIcon/body_type.webp
Binary file not shown.
Binary file added src/images/bodyscoreIcon/bone_mass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/images/bodyscoreIcon/bone_mass.webp
Binary file not shown.
Binary file added src/images/bodyscoreIcon/ideal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/images/bodyscoreIcon/ideal.webp
Binary file not shown.
Binary file added src/images/bodyscoreIcon/metabolic_age.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/images/bodyscoreIcon/metabolic_age.webp
Binary file not shown.
Binary file added src/images/bodyscoreIcon/muscle_mass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/images/bodyscoreIcon/muscle_mass.webp
Binary file not shown.
Binary file added src/images/bodyscoreIcon/protein.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/images/bodyscoreIcon/protein.webp
Binary file not shown.
Binary file added src/images/bodyscoreIcon/visceral_fat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/images/bodyscoreIcon/visceral_fat.webp
Binary file not shown.
Binary file added src/images/bodyscoreIcon/water.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/images/bodyscoreIcon/water.webp
Binary file not shown.
4 changes: 2 additions & 2 deletions tracker.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"body-miscale-card": {
"updated_at": "2021-10-02",
"version": "v5.6.5",
"updated_at": "2021-10-05",
"version": "v5.6.6",
"remote_location": "https://raw.githubusercontent.com/dckiller51/lovelace-body-miscale-card/master/dist/body-miscale-card.js",
"visit_repo": "https://github.com/dckiller51/lovelace-body-miscale-card",
"changelog": "https://github.com/dckiller51/lovelace-body-miscale-card/blob/master/CHANGELOG.md"
Expand Down

0 comments on commit e46f9c6

Please sign in to comment.