lovelace-battery-entity icon indicating copy to clipboard operation
lovelace-battery-entity copied to clipboard

Add to custom updater - should be json

Open Tom-ahawk opened this issue 5 years ago • 5 comments

Thansk for developing this card.

I am getting this error when using custom updater:

"Common(get_repo_data) - Custom URL should be json, not .js - 'https://raw.githubusercontent.com/cbulock/lovelace-battery-entity/master/battery-entity.js'"

Tom-ahawk avatar Mar 26 '19 13:03 Tom-ahawk

I've updated the instructions, please try again with this URL:

https://raw.githubusercontent.com/cbulock/lovelace-battery-entity/master/tracker.json

cbulock avatar Mar 26 '19 14:03 cbulock

I have changed to: card_urls: - https://raw.githubusercontent.com/cbulock/lovelace-battery-entity/master/tracker.json

I am not getting any errors in the HA-log, but the "battery-entity" card does not show up in the "tracker-card"?

resources:

  • type: module url: /local/custom-lovelace/battery-entity.js

Tom-ahawk avatar Mar 26 '19 14:03 Tom-ahawk

Ok, I haven't used the custom updater myself. I'll spend some time later to get familiar with it and see what I'm doing wrong.

cbulock avatar Mar 26 '19 15:03 cbulock

I am not an expert.
You can find all info here.

You should add this json file.

{
"battery-entity": {
        "changelog": "https://github.com/cbulock/lovelace-battery-entity",
        "remote_location": "https://raw.githubusercontent.com/cbulock/lovelace-battery-entity/master/battery-entity.js",
        "version": "0.1.0",
        "visit_repo": "https://github.com/cbulock/lovelace-battery-entity"
    }
}

gabrielemariotti avatar Apr 08 '19 19:04 gabrielemariotti

There is currently a tracker.json file in the repo, but it sounds like that's not operating as it should https://github.com/cbulock/lovelace-battery-entity/blob/master/tracker.json

cbulock avatar Apr 08 '19 19:04 cbulock