<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How can elements in the default weather module be moved]]></title><description><![CDATA[<p dir="auto">I am trying t get things lined up but I don’t know enough to get this looking good and would really appreciate some help.  In the default Weather module I have made some changes to hide the wind info and move the Feels Like temp into the same area as the icon and temperature.  I changed the icons to a set of svg images in a custom css.  In the custom css I added the following to change the size of the weather icon size:</p>
<pre><code>.weather .weathericon { 
	width: 2.75em !important;
	height: 2.75em !important;}
</code></pre>
<p dir="auto">Currently I have:<br />
<img src="/assets/uploads/files/1728165728969-weather-malaligned.png" alt="Weather malaligned.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">And would like to get to:<br />
<img src="/assets/uploads/files/1728165845758-current-weather.jpg" alt="Current weather.jpg" class=" img-fluid img-markdown" /></p>
<p dir="auto">Following is my current.njk</p>
<pre><code>{% macro humidity() %}
    {% if current.humidity %}
        &lt;span class="humidity"&gt;&lt;span&gt;{{ current.humidity | decimalSymbol }}&lt;/span&gt;&lt;sup&gt;&amp;nbsp;&lt;i class="wi wi-humidity humidity-icon"&gt;&lt;/i&gt;&lt;/sup&gt;&lt;/span&gt;
    {% endif %}
{% endmacro %}
{% if current %}
    {% if not config.onlyTemp %}
        &lt;div class="normal medium"&gt;
		
            {# Start of config setting I added #}
			{% if config.showWindInfo %}           
                &lt;span class="wi wi-strong-wind dimmed"&gt;&lt;/span&gt;
                &lt;span&gt;
                    {{ current.windSpeed | unit("wind") | round }}
                    {% if config.showWindDirection %}
                        &lt;sup&gt;
                            {% if config.showWindDirectionAsArrow %}
                                &lt;i class="fas fa-long-arrow-alt-down" style="transform:rotate({{ current.windFromDirection }}deg)"&gt;&lt;/i&gt;
                            {% else %}
                                {{ current.cardinalWindDirection() | translate }}
                            {% endif %}
                            &amp;nbsp;
                        &lt;/sup&gt;
                    {% endif %}
                &lt;/span&gt;
            {% endif %} 
			{# End of config setting I added #}
            
            {% if config.showHumidity === "wind" %}
                {{ humidity() }}
            {% endif %}
            {% if config.showSun %}
                &lt;span class="wi dimmed wi-{{ current.nextSunAction() }}"&gt;&lt;/span&gt;
                &lt;span&gt;
                    {% if current.nextSunAction() === "sunset" %}
                        {{ current.sunset | formatTime }}
                    {% else %}
                        {{ current.sunrise | formatTime }}
                    {% endif %}
                &lt;/span&gt;
            {% endif %}
            {% if config.showUVIndex %}
                &lt;td class="align-right bright uv-index"&gt;
                    &lt;div class="wi dimmed wi-hot"&gt;&lt;/div&gt;
                    {{ current.uv_index }}
                &lt;/td&gt;
            {% endif %}
        &lt;/div&gt;
    {% endif %}
    &lt;div class="large"&gt;
        {% if config.showIndoorTemperature and indoor.temperature or config.showIndoorHumidity and indoor.humidity %}
            &lt;span class="medium fas fa-home"&gt;&lt;/span&gt;
            &lt;span style="display: inline-block"&gt;
                    {% if config.showIndoorTemperature and indoor.temperature %}
                            &lt;sup class="small" style="position: relative; display: block; text-align: left;"&gt;
                                    &lt;span&gt;
                                        {{ indoor.temperature | roundValue | unit("temperature") | decimalSymbol }}
                                    &lt;/span&gt;
                            &lt;/sup&gt;
                    {% endif %}
                    {% if config.showIndoorHumidity and indoor.humidity %}
                            &lt;sub class="small" style="position: relative; display: block; text-align: left;"&gt;
                                    &lt;span&gt;
                                            {{ indoor.humidity | roundValue | unit("humidity") | decimalSymbol }}
                                    &lt;/span&gt;
                            &lt;/sub&gt;
                    {% endif %}
            &lt;/span&gt;
        {% endif %}
        &lt;span class="light wi weathericon wi-{{ current.weatherType }}"&gt;&lt;/span&gt;
        &lt;span class="light bright"&gt;{{ current.temperature | roundValue | unit("temperature") | decimalSymbol }}&lt;/span&gt;
		{# Start of changes I made #}
		{% if (config.showFeelsLike) and not config.onlyTemp %}
			&lt;span class="normal medium feelslike"&gt;
				&lt;span class="dimmed"&gt;
					{{ "FEELS" | translate({DEGREE: current.feelsLike() | roundValue | unit("temperature") | decimalSymbol }) }}
				&lt;/span&gt;	
			&lt;/span&gt;
		{% endif %}
		{# End of changes I made #}		
		{% if config.showHumidity === "temp" %}
            &lt;span class="medium bright"&gt;{{ humidity() }}&lt;/span&gt;
        {% endif %}
    &lt;/div&gt;
	{# {% if (config.showFeelsLike or config.showPrecipitationAmount or config.showPrecipitationProbability) and not config.onlyTemp %} #}
    {% if (config.showPrecipitationAmount or config.showPrecipitationProbability) and not config.onlyTemp %}
        &lt;div class="normal medium feelslike"&gt;
            {% if config.showFeelsLike %}
                &lt;span class="dimmed"&gt;
                    {% if config.showHumidity === "feelslike" %}
                        {{ humidity() }}
                    {% endif %}
					{#{{ "FEELS" | translate({DEGREE: current.feelsLike() | roundValue | unit("temperature") | decimalSymbol }) }}#}
                &lt;/span&gt;
                &lt;br /&gt;
            {% endif %}
            {% if config.showPrecipitationAmount and current.precipitationAmount %}
                &lt;span class="dimmed"&gt;
                    &lt;span class="precipitationLeadText"&gt;{{ "PRECIP_AMOUNT" | translate }}&lt;/span&gt; {{ current.precipitationAmount | unit("precip", current.precipitationUnits) }}
                &lt;/span&gt;
                &lt;br /&gt;
            {% endif %}
            {% if config.showPrecipitationProbability and current.precipitationProbability %}
                &lt;span class="dimmed"&gt;
                    &lt;span class="precipitationLeadText"&gt;{{ "PRECIP_POP" | translate }}&lt;/span&gt; {{ current.precipitationProbability }}%
                &lt;/span&gt;
            {% endif %}
        &lt;/div&gt;
    {% endif %}
    {% if config.showHumidity === "below" %}
        &lt;span class="medium dimmed"&gt;{{ humidity() }}&lt;/span&gt;
    {% endif %}
{% else %}
    &lt;div class="dimmed light small"&gt;{{ "LOADING" | translate }}&lt;/div&gt;
{% endif %}
&lt;!-- Uncomment the line below to see the contents of the `current` object. --&gt;
&lt;!-- &lt;div style="word-wrap:break-word" class="xsmall dimmed"&gt;{{current | dump}}&lt;/div&gt; --&gt;

</code></pre>
<p dir="auto">Thank you for taking a look at this.</p>
]]></description><link>https://forum.magicmirror.builders/topic/19036/how-can-elements-in-the-default-weather-module-be-moved</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 23:13:34 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/19036.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 05 Oct 2024 22:13:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How can elements in the default weather module be moved on Tue, 08 Oct 2024 22:02:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dde12" aria-label="Profile: DDE12">@<bdi>DDE12</bdi></a> make the icon 1.5em<br />
then you need to size the div the spans are in</p>
]]></description><link>https://forum.magicmirror.builders/post/120491</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120491</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 08 Oct 2024 22:02:22 GMT</pubDate></item><item><title><![CDATA[Reply to How can elements in the default weather module be moved on Tue, 08 Oct 2024 20:49:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
I have made some progress.  I commented out everything in vendor\node_modules\weathericons\css\weather-icons.css. and changed .weather . larger to flex and have more control of the icon.</p>
<pre><code>.weather .large {
    line-height: 1;
    display: flex;
}

.weather .weathericon {
	font-size: unset !important;
        line-height: unset !important;
	transform: unset !important;
	outline: 1px solid blue;
	width: 2em !important;
	height: 2em !important;
	position:relative;
	top: -18px;
	left: -15px;
}

.weather .light.bright {
	outline: 1px solid green;
	position:absolute;
	top: 2px;
	left: 147px;
}

.weather .normal.medium.feelslike {
	outline: 1px solid purple;
	position:absolute;
	top: 3px;
	left: 242px;
}
</code></pre>
<p dir="auto"><img src="/assets/uploads/files/1728420408134-current-cond.jpg" alt="Current cond.JPG" class=" img-fluid img-markdown" /></p>
<p dir="auto">The icons in this set have a lot of background “dead space” so it is skewed up and left to get it to the corner.  The height of the module space is being controlled by the height of the icon.  How can I decrease the height of the module space  by the amount I moved the icon up plus a little extra for the dead space?</p>
]]></description><link>https://forum.magicmirror.builders/post/120489</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120489</guid><dc:creator><![CDATA[DDE12]]></dc:creator><pubDate>Tue, 08 Oct 2024 20:49:47 GMT</pubDate></item><item><title><![CDATA[Reply to How can elements in the default weather module be moved on Tue, 08 Oct 2024 00:56:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dde12" aria-label="Profile: DDE12">@<bdi>DDE12</bdi></a> I do not know. this ::before is likely the problem.</p>
]]></description><link>https://forum.magicmirror.builders/post/120451</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120451</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Tue, 08 Oct 2024 00:56:27 GMT</pubDate></item><item><title><![CDATA[Reply to How can elements in the default weather module be moved on Tue, 08 Oct 2024 00:53:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
I’ve made some headway with the temperatures but the icon is not behaving.  I think part of the problem is that it is being treated as a font or the original icon that is a font is hanging around causing a problem.  It there a way with the CSS to clear all the settings and remove the font setting for the icon container?</p>
]]></description><link>https://forum.magicmirror.builders/post/120450</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120450</guid><dc:creator><![CDATA[DDE12]]></dc:creator><pubDate>Tue, 08 Oct 2024 00:53:53 GMT</pubDate></item><item><title><![CDATA[Reply to How can elements in the default weather module be moved on Mon, 07 Oct 2024 00:29:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dde12" aria-label="Profile: DDE12">@<bdi>DDE12</bdi></a> you can try</p>
<p dir="auto">position:relative;<br />
top:0;<br />
left:0;</p>
<p dir="auto">that will put the selected thing top left of its parent</p>
<p dir="auto">you may have to play w the selector</p>
]]></description><link>https://forum.magicmirror.builders/post/120417</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120417</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 07 Oct 2024 00:29:30 GMT</pubDate></item><item><title><![CDATA[Reply to How can elements in the default weather module be moved on Mon, 07 Oct 2024 00:26:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
In tinkering around, I am able to move it in custom.css with the following and possibly avoid addressing every individual icon.</p>
<pre><code>.weather .weathericon {
	display: inline-block;
	transform: translate(-31px, -32px) !important;
	outline: 1px solid blue;
}
</code></pre>
<p dir="auto">The  problem with what I have above is that it will only make it look okay on one screen resolution.  How do I move it to the top left of the module space so that it is relative (stays in the top left regardless of screen resolution).</p>
]]></description><link>https://forum.magicmirror.builders/post/120415</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120415</guid><dc:creator><![CDATA[DDE12]]></dc:creator><pubDate>Mon, 07 Oct 2024 00:26:04 GMT</pubDate></item><item><title><![CDATA[Reply to How can elements in the default weather module be moved on Sun, 06 Oct 2024 17:42:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dde12" aria-label="Profile: DDE12">@<bdi>DDE12</bdi></a> and if you need to style the icon more, then settings inside the {}</p>
]]></description><link>https://forum.magicmirror.builders/post/120405</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120405</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 06 Oct 2024 17:42:48 GMT</pubDate></item><item><title><![CDATA[Reply to How can elements in the default weather module be moved on Sun, 06 Oct 2024 17:27:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dde12" aria-label="Profile: DDE12">@<bdi>DDE12</bdi></a></p>
<p dir="auto">i ‘think’</p>
<p dir="auto">span.light.wi.weathericon.wi-day-sunny {}<br />
note no spaces</p>
<p dir="auto">because css doesn’t support widcard(*)</p>
<p dir="auto">you will have to make separate lines for each possible weather icon</p>
<p dir="auto">then on the others, you will have to  make the styles produce the same results</p>
]]></description><link>https://forum.magicmirror.builders/post/120404</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120404</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 06 Oct 2024 17:27:56 GMT</pubDate></item><item><title><![CDATA[Reply to How can elements in the default weather module be moved on Sun, 06 Oct 2024 16:56:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dde12" aria-label="Profile: DDE12">@<bdi>DDE12</bdi></a> that ::before is what makes the first elevated</p>
<p dir="auto">Then you have<br />
the temp 81<br />
And feels like in different spans w different styles</p>
<p dir="auto">I dont know how to override the before (yet)</p>
]]></description><link>https://forum.magicmirror.builders/post/120403</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120403</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 06 Oct 2024 16:56:31 GMT</pubDate></item><item><title><![CDATA[Reply to How can elements in the default weather module be moved on Sun, 06 Oct 2024 16:45:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a><br />
Thank you for helping me.</p>
<pre><code>&lt;div id="module_3_weather" class="module weather" style="transition: opacity 1.5s ease 0s; position: static; opacity: 1;"&gt;
  &lt;header class="module-header" style="display: none;"&gt;&lt;/header&gt;
    &lt;div class="module-content"&gt;
      &lt;div&gt;        
        &lt;div class="normal medium"&gt; &lt;/div&gt;
        &lt;div class="large"&gt;
          &lt;span class="light wi weathericon wi-day-sunny"&gt;
	    ::before
	  &lt;/span&gt;
          &lt;span class="light bright"&gt;81°&lt;/span&gt;
	  &lt;span class="normal medium feelslike"&gt;
	    &lt;span class="dimmed"&gt; Feels like 81° &lt;/span&gt;	
	  &lt;/span&gt;			
	 &lt;/div&gt;
&lt;!-- Uncomment the line below to see the contents of the `current` object. --&gt;
&lt;!-- &lt;div style="word-wrap:break-word" class="xsmall dimmed"&gt;{&amp;quot;date&amp;quot;:&amp;quot;2024-10-06T16:11:01.142Z&amp;quot;,&amp;quot;windSpeed&amp;quot;:5.81,&amp;quot;windFromDirection&amp;quot;:237,&amp;quot;sunrise&amp;quot;:&amp;quot;2024-10-06T11:39:13.000Z&amp;quot;,&amp;quot;sunset&amp;quot;:&amp;quot;2024-10-06T23:11:13.000Z&amp;quot;,&amp;quot;temperature&amp;quot;:26.76,&amp;quot;minTemperature&amp;quot;:null,&amp;quot;maxTemperature&amp;quot;:null,&amp;quot;weatherType&amp;quot;:&amp;quot;day-sunny&amp;quot;,&amp;quot;humidity&amp;quot;:0.45,&amp;quot;precipitationAmount&amp;quot;:null,&amp;quot;precipitationUnits&amp;quot;:null,&amp;quot;precipitationProbability&amp;quot;:null,&amp;quot;feelsLikeTemp&amp;quot;:null}&lt;/div&gt; --&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/120402</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120402</guid><dc:creator><![CDATA[DDE12]]></dc:creator><pubDate>Sun, 06 Oct 2024 16:45:31 GMT</pubDate></item><item><title><![CDATA[Reply to How can elements in the default weather module be moved on Sun, 06 Oct 2024 02:37:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/dde12" aria-label="Profile: DDE12">@<bdi>DDE12</bdi></a> can you use the developer window to get the generated html? With the class assignments</p>
<p dir="auto">See the second link in my signature below</p>
]]></description><link>https://forum.magicmirror.builders/post/120382</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/120382</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 06 Oct 2024 02:37:14 GMT</pubDate></item></channel></rss>