Snilles Magic Mirror Project



  • Hi Snille,

    i am currently trying to copy you setup but at the moment i am stuck.

    somehow i cant get the .png’s to show up.

    0_1508097547089_2d7e0fc9-1471-462e-ba31-8b4fa49071f5-image.png

    i have created a folder within the file structure of magicmirror called backgrounds . Here i save all images needed , placed my own icons and adressed correctly, i think.

    are your png’s stored localy on the pi or remotly on a server?
    0_1508097830039_5c76b406-72a4-4bf5-825e-c34605dd03ca-image.png

    is my way of adressing correct?
    0_1508097982586_041c12e4-65ec-464c-b002-3c5ec3254c68-image.png

    kind regards,

    Jay


  • Module Developer

    Hi @korevaartje, If I remember correctly you need to use a URL to the picture. You cant use a “local” path. I’m currently loading all the pictures from an “internal” web server (that I use for lot’s of other stuff as well). And that made it easy to switch the pictures without having to change anything on the actual MM.

    I hope that clarify’s it. 🙂



  • @korevaartje ,
    Personally I put my pictures on the css directory, and here is how I load them:

    				"Cedric": {
    					img: "/css/cedric.jpg",
    					width: 60,
    					height: 60
    				},
    

    And every day I do a rsync save of the css directory, and the conf directory as well to my NAS server.