Custom_updater and tracker-card not reporting correctly

Problem with the tracker-card. I hade 1.20 then I updated the card. Then bang… _“ERROR (MainThread) [frontend.js.latest.201902200] https://192.168.10.90:8123/customcards/tracker-card.js:231:1 Uncaught SyntaxError: Unexpected token export”

Running hassio 0.88 on Ubuntu 18.04 and Lovelace in yaml mode. Any ideas?

Manual update to 1.2.2, works good.

Mines working OK, but all the custom components have dropped out.

Unfortunately as 0.88 moved the location of custom_components and the custom_component github repo’s store the phyical location on our HA installs, we need to wait for the authors to update their version file to reflect the new storage locations.

So I updated the tracker card and custom updater along with all custom cards. I deleted all “?v=…” from the urls under resources. The tracker card doesn’t show at all. Instead I get this error in home-assistant.log:

2019-02-22 23:29:33 ERROR (MainThread) [frontend.js.latest.201902200] http://xxx.xxx.xxx.xxx:8123/customcards/custom-lovelace/tracker-card.js?track=true:201:54 TypeError: null is not an object (evaluating ‘card.querySelector(’#’ + pending_updates[i][0]).addEventListener’)

Running hass.io 0.88.1 in docker on Ubuntu 18.04 with lovelace in yaml mode.

Any idea what I might be doing wrong?

Edit:
After the latest updates of both custom updater and tracker card and deleting “mode: storage”, everything works fine.

1 Like

I have same problem. What I did:
docker exec -it container_name bash
#pip install pyupdate

Hi everyone,
I just installed custom_updater and tracker-card. The card appears in the frontend but I cannot see the version of current installed addons:

immagine

I enabled ‘custom_updater:’ in configuration.yaml and have the following in the ui file:

resources:
  - url: /local/custom_ui/slider-entity-row.js?track=true
    type: js
  - url: /local/custom_ui/card-tools.js?track=true
    type: js
  - url: /local/custom_ui/layout-card.js?track=true
    type: js
  - url: /local/custom_ui/tracker-card.js?track=true
    type: module
  - url: /local/custom_ui/mini-media-player-bundle.js?v=1.0.2
    type: module

Any tip to solve this issue?

Many thanks,
SoL

Tap update all and it will populate

I have the following resources defined:

resources:
  - type: js
    url: /customcards/custom_ui/browser-commander.js
  - type: js
    url: /customcards/custom_ui/button-card.js
  - type: js
    url: /customcards/custom_ui/card-modder.js
  - type: js
    url: /customcards/custom_ui/card-tools.js
  - type: js
    url: /customcards/custom_ui/fold-entity-row.js
  - type: js
    url: /customcards/custom_ui/mini-graph-card-bundle.js?v=0.3.3
  - type: js
    url: /customcards/custom_ui/monster-card.js
  - type: module
    url: /customcards/custom_ui/mini-media-player-bundle.js?v=1.1.2
  - type: js
    url: /customcards/custom_ui/popup-card.js
  - type: js
    url: /customcards/custom_ui/slider-entity-row.js
  - type: js
    url: /customcards/custom_ui/tiles-card.js?v=0.1
  - type: js
    url: /customcards/custom_ui/time-input-row.js
  - url: /customcards/github/custom-cards/tracker-card.js?track=true
    type: module
  - type: js
    url: /customcards/custom_ui/vertical-stack-in-card.js

However the mini-graph-card and mini-media-player bundles are not showing up (tiles-card has not been updated in ages and is probably unsupported):

These are both bundles rather than js types. I’ve seen them in other peoples tracker-card so am wondering what I am doing wrong?

I have not added any options to the default configuration of the tracker-card or custom-updater.

Also, do I need to schedule an automation to run the custom_updater.check_all service or does it happen automatically/regularly?

I moved mine around but if you use customcards folder instead of local, get rid of the version.

resources:
  - url: /customcards/github/thomasloven/card-tools.js?track=true
    type: js
  - url: /customcards/github/custom-cards/tracker-card.js?track=true
    type: module
  - url: /customcards/custom-lovelace/upcoming-media-card/upcoming-media-card.js
    type: js
  - url: /customcards/custom_ui/dark-sky-weather-card.js
    type: module
  - url: /customcards/github/kalkih/mini-media-player-bundle.js
    type: module
  - url: /customcards/github/kalkih/mini-graph-card-bundle.js
    type: module
  - url: /customcards/github/maykar/compact-custom-header.js?track=true
    type: module
  - url: /customcards/github/thomasloven/fold-entity-row.js?track=true
    type: js
  - url: /customcards/github/custom-cards/button-card.js?track=true
    type: module
  - url: /customcards/github/thomasloven/auto-entities.js?track=true
    type: module
  - url: /customcards/github/custom-cards/config-template-card.js?track=true
    type: module
  - url: /customcards/github/custom-cards/podcast-card.js?track=true
    type: module
  - url: /customcards/github/custom-cards/bar-card.js?track=true
    type: js
  - url: /customcards/github/custom-cards/text-divider-row.js?track=true
    type: js
  - url: /customcards/github/maykar/lovelace-swipe-navigation.js?track=true
    type: js
  - url: /customcards/github/thomasloven/card-modder.js?track=true
    type: js

It pops up with changes automatically for me… but if I know an update it out I force the update by clicking on check.

1 Like

Hmm. I removed the version info, saved, called the custom_updater.check_all service, tried the check and update buttons and CTRL+F5 but the bundles are still not showing up.

note they are modules, not js

Also try the F12, right click refresh and hard reload, clear cache

Sorry, yes modules.

Still not showing up after a browser cache clear and HA restart.

OK so last thing… there were some ‘quiet’ changes to the custom_updater… have you checked the repo for that lately? I had to manually update a few components last week but some of them had added files. Perhaps also check the repos for the cards as @iantrich changed a couple of his but the version didn’t change and I had to update those as well…

oh… also make sure you have this in config yaml…

# Custom Component Updater
custom_updater:
  hide_sensor: false
  track:
    - components
    - cards
    - python_scripts
  component_urls:
    - https://raw.githubusercontent.com/pnbruckner/homeassistant-config/master/custom_components.json
  card_urls:
    - https://raw.githubusercontent.com/kalkih/mini-media-player/master/tracker.json
    - https://raw.githubusercontent.com/kalkih/mini-graph-card/master/tracker.json
    - https://raw.githubusercontent.com/iammexx/home-assistant-config/master/ui/darksky/version.json
1 Like

That was what I was missing. All good now. Thank you.

1 Like

Well not that good. My log is now filling up with:

2019-05-14 17:03:38 ERROR (MainThread) [frontend.js.latest.201904270] https://10.1.1.100:8123/customcards/custom_ui/mini-graph-card-bundle.js:1:38246 TypeError: a is undefined
2019-05-14 17:03:38 ERROR (MainThread) [frontend.js.latest.201904270] https://10.1.1.100:8123/customcards/custom_ui/mini-graph-card-bundle.js:1:38246 TypeError: a is undefined
2019-05-14 17:03:38 ERROR (MainThread) [frontend.js.latest.201904270] https://10.1.1.100:8123/customcards/custom_ui/mini-graph-card-bundle.js:1:38246 TypeError: a is undefined
2019-05-14 17:03:38 ERROR (MainThread) [frontend.js.latest.201904270] https://10.1.1.100:8123/customcards/custom_ui/mini-graph-card-bundle.js:1:38246 TypeError: a is undefined
2019-05-14 17:03:49 ERROR (MainThread) [frontend.js.latest.201904270] https://10.1.1.100:8123/customcards/custom_ui/mini-graph-card-bundle.js:1:38246 TypeError: undefined has no properties
2019-05-14 17:03:49 ERROR (MainThread) [frontend.js.latest.201904270] https://10.1.1.100:8123/customcards/custom_ui/mini-graph-card-bundle.js:1:38246 TypeError: undefined has no properties
2019-05-14 17:03:49 ERROR (MainThread) [frontend.js.latest.201904270] https://10.1.1.100:8123/customcards/custom_ui/mini-graph-card-bundle.js:1:38246 TypeError: undefined has no properties
2019-05-14 17:03:49 ERROR (MainThread) [frontend.js.latest.201904270] https://10.1.1.100:8123/customcards/custom_ui/mini-graph-card-bundle.js:1:38246 TypeError: undefined has no properties

What version of HA? Did you try empty cache and hard reload?

v0.92.2

I did a cache empty not long ago. I’ll try again.

The errors aren’t caused by the tracker-card. I also horizontal stacked some mini-graph cards today to make room on my system page. Putting them back to the original config has stopped these errors. Now to work out why…