I really like the MagicMirror2 clock and have been working on creating a dashboard for Home Assistant similar to my MagicMirror, so I made an attempt to port over the clock from the MagicMirror project into a Lovelace Card. I wanted to share in case anyone is interested:
I am very much interested.would you mind sharing your config? I am looking for a background picture which rotates/changes and a very transparent theme.
Atm it looks like this which is far from how it should look.
I found the source of the clock module. I am more interested into your config for home assistant. Especially in the Lovelace part. I went through your github 77 (impressive ,-) repos with no luck finding the config.
Sorry, my config isnât in a public repo at the moment. Itâs a combo pulled from a lot of the things posted in the community. If I get time Iâll post some screenshots and code snippets.
For themes though, I use the Google Light, Google Dark, and AMOLED themes available in HACS.
Iâve gotten the faces to work (sort of), but they were flashing. Havenât had time to really debug it yet because I only use the simple circle - maybe someone on here can help.
The files arenât blank, theyâre just white faces on a transparent background, since the MM2 default background is black.
Right now itâs hard-coded to look for them in config/www/faces/ because I havenât quite figured out how to correctly get the cardâs source folder at run time.
You can add it to HACS as a custom repo and install it that way. I havenât added it to the default repo yetâwanted to do some more testing and clean up first.
Thereâs no direct layout for the digital clock right now within the card. Youâll have to use some Lovelace layout tools or custom resources like layout-card to fine tune the placement.
Hi, I cant get this to work, HA117, I have copied the files to the WWW directory, set lovelace resources to /local/mm2-clock-card.js, restarted HA then in lovelace i get the following error trying to set up a manual card :
Custom element doesnât exist: mm2-clock-card.
type: âcustom:mm2-clock-cardâ,
any ideas what could be the problem, Tks
Iâve been collecting up various approaches for cards with the intent of figuring out which I like best⌠some donât display exactly right (I welcome improvements), but hereâs some starting points:
Hi, you have to point the URL towards the location of your mm2-clock-card.js in your home assistant directory minus the /config/www/ the âlocalâ encompasses that.