gcobb321 / icloud3

iCloud3 v3 - iCloud3 is an advanced iDevice tracker that uses Apple iCloud account and HA Companion App data for presence detection and location based automations.
MIT License
546 stars 54 forks source link

Event Log resource not found #269

Closed andyblac closed 1 year ago

andyblac commented 1 year ago

As the title, the resource is not found, any ideas whats wrong the JS file is /config/www/custom_cards/icloud3-event-log-card.js

Screenshot 2023-06-06 at 11 03 07
gcobb321 commented 1 year ago

The Dashboard Resources needs to be setup first:

On the Lovelace card, go to edit and raw yaml mode, use the code below: type: custom:icloud3-event-log-card

andyblac commented 1 year ago

an entry is already there.

Screenshot 2023-06-06 at 15 48 36
gcobb321 commented 1 year ago

Maybe so but it needs the /local/custom_component/ so it looks like the previous statement

andyblac commented 1 year ago

removed old one and recreated, still not found

Screenshot 2023-06-06 at 16 01 23
gcobb321 commented 1 year ago

Create a lovelace card with just the following:

type: grid
cards:
  - type: custom:icloud3-event-log-card
square: false
columns: 1

Also, make sure icloud-event-log-card.js is in the www/custom_components directory

andyblac commented 1 year ago
Screenshot 2023-06-06 at 16 10 16 Screenshot 2023-06-06 at 16 11 18
//  When iCloud3 starts, the version of this file, 'icloud3-event-log-card.js',
//  in the 'custom_components\icloud3' directory  (or the current directory of
//  the icloud3 platform being run) is compared with the one in 'www/custom_cards'.
//  If they do not match, the one in the 'custom_components\icloud3' is copied
//  to the 'www\custom_cards' directory.
andyblac commented 1 year ago

ok restarted, now sees it, thanks

gcobb321 commented 1 year ago

Resources should have custom_cards directory not custom_components.

/local/custom_cards/icloud3-event-log-card.js

I've changed it in v3 and forgot what the directory was in v2