@jakuk Start at this post. The CSS will change the style of each module (size, font, etc) but to have them appear in the appropriate regions, it’s best to use your module configurations in config.js
.
Read the statement by Michael Teeuw here.
Best posts made by ninjabreadman
-
RE: Positions of modules
-
RE: Quick Question regarding Magic Mirror cache
@chef The
POST
request isn’t sending it an image, it’s sending the URL to the image (e.g.http://192.168.2.18:9920/security/values/2
). The problem is, it already has a cached copy of that image. I suggest you append a timestamp to trickelectron
into re-fetching the same image/resource.You want to pass it a URL-encoded value, so use
%3F
as?
and just append your timestamp, like so:http://192.168.2.48:8080/api/v1/modules/alert/show_ALERT?timer=10500&imageUrl=http://192.168.2.18:9920/security/values/2%3F {INSERT TIMESTAMP HERE}&imageHeight=220px
-
RE: Hey Guys, I need help
@Shisim It is telling you what line it’s on (e.g.
56
) and also why there’s a problem (e.g.Expected ']' to match '[' from line 28 and instead saw ':'
). There were a handful of missing brackets and braces.I’ve fixed your errors and placed the file here. I’ll leave the link live for a week or so. I’ve also left comments where you were missing brackets or braces. You will need to learn what they do and how to balance them.
-
RE: Messed up CSS between Portrait and Landscape monitors
@Damian Use the built-in DOM inspector to see what styles are currently applied. Right-click on the compliments module and select “Inspect”.
Worst case, using
!important
should work:.module.compliments { font-size: 73% !important; }
-
RE: GIF update from URL with MMM-EyeCandy
@Mykle1 Yep, just needs to be a
?
before the first parameter. Anything after gets appended with an&
, e.g.https://icons.wxug.com/data/weather-maps/radar/united-states/united-states-current-radar-animation.gif?seed=1521767776&otherseed=4846528&page=2
.Making your code the following:
... // img creation, etc var getTimeStamp = new Date().getTime(); img.src = "https://icons.wxug.com/data/weather-maps/radar/united-states/united-states-current-radar-animation.gif?seed=" + getTimeStamp; pic.appendChild(img); wrapper.appendChild(pic);
-
RE: Magic mirror serving multiple clients
@zack949 Not of which I’m aware. Most dev effort is spent on the display/features end. It would also have to track the config options for dozens of regularly changing modules, which presents its own challenges.
I recommend using a syntax-highlighting code editor, like (the free) Atom. It will help with closing brackets/braces, and using the proper quotes. You can also run “Atom Beautify” in “Packages” regularly to keep formatting for legibility.
-
RE: Module Developer Challenge - I surrender!
@Mykle1 It doesn’t seem that pc-stats has all the info you require. You might consider switching to the systeminformation package.
You can then use
si.cpu()
for your CPU stats andsi.cpuTemperature()
to retrieve an object that (if I read the docs right) looks like{ main: 0, max: 0, cores: [0, 0] }
with your core temps. You can then combine the two responses (or you may be able to have it return all within one request) and return those in a singlesendNotification()
call. -
RE: MMM-ImagesPhotos - Show images from a directory
@twosquirrels So, I suspect (but cannot be certain) that this is your problem. I’ve not found great browser support for EXIF image rotation. There are a variety of command line approaches available, and even some GUI apps.
-
RE: MMM-CalendarExt
@abetterway I think you mean switch the origin branch of the MMM-CalendarExt repository to
forRPI1
.In this case, use
git checkout forRPI1
within the~/MagicMirror/modules/MMM-CalendarExt
directory. -
RE: Really confused
@Duke86 Hi Duke, start with
cd MagicMirror/
… you’re probably trying to start MM out of the wrong folder.