Shop Mobile More Submit  Join Login
Do I Need a Jacket? 2.0 (beta 2016-04-10) by FlyingHyrax Do I Need a Jacket? 2.0 (beta 2016-04-10) by FlyingHyrax

"Do I Need a Jacket?"

Because there aren't enough Rainmeter weather skins

Update in progress of the old "Do I Need a Jacket?" skin.
(Last updated 10 April 2016)

Improvements thus far:
:bulletblue: Uses Lua instead of trying to cram logic into the skin file
:bulletblue: Many more adverbs (though it's probably less witty overall)
:bulletblue: Instead of trying to incorporate wind speed into the jacket equation, just checks the Wind Chill temperature value
:bulletblue: Simplified settings: location, English/Metric, jacket temperature threshold, coat temperature threshold
:bulletblue: Can change the size by scrolling the mouse over the skin
:bulletblue: Text alignment (left, right, centered) selectable from the skin context menu




The latest version uses Weather.com's wxdata feed - you will need a Weather.com location code.
The code can be found in the URL on the forecast page for your location on Weather.com, using jsmorley 's WXDataWeather skin, or via http://wxdata.weather.com/wxdata/search/search?where=YOUR_LOCATION.

A fix for the old version, which used a Yahoo! weather feed, can be found here: forum.rainmeter.net/viewtopic.…
Add a Comment:
 
:iconodoug5:
Odoug5 Featured By Owner 4 days ago
Mine always says 'You Need A Coat It's Frosty Outside' and i'm not an expert but I think tend not to wear coats if it's 30 degrease C.
Reply
:iconmikkel989:
mikkel989 Featured By Owner Mar 15, 2017
Mine is stuck on "Loading"
When I mouse over the icon it just shows: ","
I've tried many of the suggestions here, but it doesn't work? :3
Reply
:iconpopnomatron1:
Popnomatron1 Featured By Owner Feb 25, 2017
It always says I need a coat even when it's warm out, how do I fix this?
Reply
:iconkronotic:
Kronotic Featured By Owner Mar 9, 2017
I found a fix, apparently it has something to do with not recognizing temperature in the metric system. 
Open dinaj.lua with your favorite text editor and change the lines 70, 71. 

The values "15" and "10" at the end will be the default values for you in the imperial system.
Change them to the metric system's values and all should be fine, I personally set them to 15 and 10. 


-----
Settings.Jacket_Limit = SELF:GetNumberOption(props.JacketThreshold, 15)
Settings.Coat_Limit = SELF:GetNumberOption(props.CoatThreshold, 10)
-----

Hope this works helps.
Reply
:iconpopnomatron1:
Popnomatron1 Featured By Owner 5 days ago
Hey, sorry for the late reply I just noticed this problem again after forgetting about it shortly after asking and came back to check if there was a solution. Sure enough, there was your fix and it worked flawlessly. Thank you!
Reply
:iconkronotic:
Kronotic Featured By Owner 4 days ago
You're welcome. Glad I could help :) 
Reply
:iconeasysid:
easysid Featured By Owner Jan 13, 2017
conky port of this skin

easysid.deviantart.com/art/Do-…
Reply
:icondamb-lole:
damb-lole Featured By Owner Jan 5, 2017  New Deviant
I'm having the same problem as Takoyaki147 
Reply
:icontakoyaki147:
Takoyaki147 Featured By Owner Jan 5, 2017  New Deviant
Even after fixing the URL for weather.com, DINAJ2 still says Loading.... I've restarted my computer, etc.
Reply
:iconklossel:
Klossel Featured By Owner Feb 16, 2017  New Deviant
Same problem with me
Reply
:iconparadoxcode:
ParadoxCode Featured By Owner Jan 6, 2017  New Deviant
I tried berryaaku's answer:

   Editing 
[mTemperature] and [mFeelsLike] RegExp values respectively to 

   
RegExp=<tmp>(-?\d+)</tmp>
   RegExp=<flik>(-?\d+)</flik>


This seemed to fix the loading issues for me.
Reply
:icondamb-lole:
damb-lole Featured By Owner Jan 7, 2017  New Deviant
Thanks, this fixed it for me, too!
Reply
:iconsealthrux:
SealthruX Featured By Owner Edited Dec 28, 2016
Hey, any way of it saying jacket instead of coat ? as in like always, cuz I'll never use coats
Reply
:iconparadoxcode:
ParadoxCode Featured By Owner Edited Jan 6, 2017  New Deviant
IIRC it uses "coat" instead of "jacket" because it's extra cold out. Lower temps will show "coat", while milder temps will show "jacket".

EDIT: You can change this to just show "jacket" by going into the .ini file and changing the value: 

coat_temp=40

to 

coat_temp=-40

This way, it will only use "coat" when it's -40 out. (Depending on where you live, you may need it lower. I doubt it though.)
Reply
:icongsyrba:
gsyrba Featured By Owner Dec 3, 2016
I've edited the colors and font sizes to match other skins I have on my desktop.  One thing I could not figure out... how do you change the fonts to upper case?
Reply
:iconheythoro:
heythoro Featured By Owner Nov 17, 2016
mine doesn´t stop loading, and i´ve already changed the .lua file
Reply
:iconitsopaz:
ItsOpaz Featured By Owner Nov 7, 2016
I have problem with temperature display when hovering over the text. It's shows like this : Light Snow, C (Feels like -16 C). So the real temperature is missing. Can someone please help?
Reply
:iconsaiiqb:
saiiqb Featured By Owner Edited Oct 16, 2016
Its just stuck on "loading..." for me, any help?
Reply
:iconberryaaku:
berryaaku Featured By Owner Edited Nov 11, 2016
I just had the same issue, for me, it was because the [mTemperature] and [mFeelsLike] in the .ini file needed its last line changed to (respectively):
   RegExp=<tmp>(-?\d+)</tmp>

   RegExp=<flik>(-?\d+)</flik>

S0hva posted the change for that below for mFeelsLike but seems like mTemperature had the same issue :P. The change is to allow the value to be a negative number (for me it was feels like -3C and so it was being all screwy).


I also went ahead and changed the Lua file's min to -40F since it can get to be that cold here:
   RANGE_MIN = -40,
   RANGE_MAX = 120,

Though from browsing other comments, if it goes over the range max/min it appears to just default to the lowest/highest phrase. Didn't wanna risk it though! Hopefully changing the mTemp and mFeelsLike helps!
Reply
:iconwhenueatpie:
whenueatpie Featured By Owner Oct 11, 2016
My location is USDE0025, and its getting it correct but its getting the temperature wrong. Does anyone know how to fix this?
Reply
:iconnovadestin:
Novadestin Featured By Owner Oct 13, 2016
Weather.com and Rainmeter have not been communicating all that well lately: www.reddit.com/r/Rainmeter/com…
Reply
:icondarkboxer:
DarkBoxeR Featured By Owner Oct 4, 2016  Hobbyist Interface Designer
we can edit it to say what ever we want??
Reply
:iconnovadestin:
Novadestin Featured By Owner Oct 13, 2016
You can, I suppose, if you're comfortable messing with .lua files.
Reply
:iconcraze4ble:
craze4ble Featured By Owner Sep 13, 2016  Hobbyist Photographer
The metric switch is messed up! I suppose you used codes from the previous version, because half the scripts expect me to use 'm' for metric, half the scripts expect me to use 'c'.
Reply
:iconcraze4ble:
craze4ble Featured By Owner Sep 13, 2016  Hobbyist Photographer
I fixed most of it (looked through the .lua and changed the references), but the mouseover still doesn't work (displays it in Fahrenheit).
Reply
:iconvash9846:
Vash9846 Featured By Owner Sep 13, 2016
strangely, for me, it is getting my location right but the temperature is off by 10 degrees F. 
Reply
:iconnovadestin:
Novadestin Featured By Owner Oct 13, 2016
Weather.com and Rainmeter have not been communicating all that well lately: www.reddit.com/r/Rainmeter/com…
Reply
:iconzachraios:
Zachraios Featured By Owner Aug 10, 2016
Hey there, I translated the skin to German, at least what I was able to do by changing Text and a little piece of code in the .lua file, but I am curious if one would be able to translate the mCondition string as well. At the Moment my skin says "Cloudy, 13° C (fühlt sich an wie 13° C)". Would it be possible to pull the info from the wxdata.weather.com site and the translating it in a "if mCondition=cloudy set mCondition=bewölkt; if mCondition=Showers in the Vicinity set mCondition=In der Nähe Schauer..." way?
Awesome Skin BTW
Reply
:icontruehd24:
truehd24 Featured By Owner Aug 14, 2016
I've translated it into Spanish and the way I did it is kinda messy but under [mCondition] add a line that says Substitute="Cloudy":"fühlt sich an wie", "other thing":"german thing" and repeat for each condition. The process is outlined here docs.rainmeter.net/manual/meas…
Reply
:iconwydooriginal:
wydoOriginal Featured By Owner Aug 10, 2016
I see that Wind information seems to be being added to a variable, how would one go about getting a Wind comment to show on the Second line after the Temp comment?

BTW, love this skin...
Reply
:iconbewewe:
bewewe Featured By Owner Aug 9, 2016
i love the skin. but why on second line its always stuck on its kinda hot outside when you need a jacket?
Reply
:iconmrjeff420:
MrJeff420 Featured By Owner Aug 3, 2016
Works perfectly after modifing lua with WindFreaker's helpful answer. Cheers :)
Reply
:icondoctorface:
DoctorFace Featured By Owner Jul 26, 2016
Works perfectly, even for celsius. "You don't need a jacket. It's your hair is on FIRE outside" made me laugh. Awesome work bud.
Reply
:iconberenique:
berenique Featured By Owner Aug 8, 2016
I just updated from DNIJ.1, and it doesn't work for me with Celsius. No matter to what I set the jacket/coat_temp it always says "You need a coat" ( but then "It's pretty nice outside"), how did you adjust the thresholds for Celsius?
Reply
:iconzachraios:
Zachraios Featured By Owner Aug 10, 2016
local Settings = {}
Settings.init = function(props)
   Settings.Jacket_Limit = SELF:GetNumberOption(props.JacketThreshold, 60)
   Settings.Coat_Limit = SELF:GetNumberOption(props.CoatThreshold, 30)

   local metric = { m = true, c = true }
   local unit = string.lower(string.sub(props.Unit, 1, 1))
   Settings.Unit =  metric[unit] and 'c' or 'f'
end

Change this block of code in the .lua file to:

local Settings = {}
Settings.init = function(props)
   Settings.Jacket_Limit = props.JacketThreshold
   Settings.Coat_Limit = props.CoatThreshold

   local metric = { m = true, c = true }
   local unit = string.lower(string.sub(props.Unit, 1, 1))
   Settings.Unit =  metric[unit] and 'c' or 'f'
end
Reply
:iconxpreaper:
xPReaper Featured By Owner Dec 6, 2016  Student Digital Artist
Thanks dude! 
Reply
:iconha5rika:
ha5rika Featured By Owner Feb 11, 2017
It's okay, I figured it out for myself. Thanks.
Reply
:iconha5rika:
ha5rika Featured By Owner Feb 11, 2017
I have the same problem. Could you tell me how to access and edit the .lua file?
Reply
:iconberenique:
berenique Featured By Owner Aug 10, 2016
Dude thanks!
Reply
:iconflod1998:
flod1998 Featured By Owner Jun 23, 2016
What I have to do to change a color of only one line?
Reply
:iconimagecreativecreator:
ImageCreativeCreator Featured By Owner Jun 4, 2016  Student Digital Artist
I can't get it to work, even with the forum's fix. nothing happens i really could use some help please. i love this skin
Reply
:iconmcmanybucks:
mcmanybucks Featured By Owner May 17, 2016
How do i set it to Celsius?
Reply
:iconsporqist:
sporqist Featured By Owner Edited Jun 6, 2016
set unit on line 32 to "m" instead of "f" ;)

u should adjust line 35 and 36 too.
Reply
:iconanimayz:
Animayz Featured By Owner Edited Apr 27, 2016  Hobbyist General Artist
getting the loading error. worked the other day but when I booted up today, it was broke.

When I hover over the 3 dots, it correctly shows the temperature and the "feels like" temperature; hovering over "loading..." displays the correct location, but it does not show the correct time - I believe it is stuck at the time I booted up. Refreshing the skin and restarting rainmeter does not update the time. However, when I change the weather code to anything else, it shows appropriate messages ("You need a jacket. It's frosty outside"). Time displayed on hover remains unchanged.
Reply
:icons0hva:
S0hva Featured By Owner Apr 26, 2016
[mFeelsLike] measure regex should be changed to this
RegExp=<flik>(-?\d+)</flik> 
so it gets negative numbers too
Reply
:iconflyinghyrax:
FlyingHyrax Featured By Owner Jul 8, 2016
Nice catch, thanks!
Reply
:iconjohnsonmmi:
JohnsonMMI Featured By Owner Apr 24, 2016
Thanks for this skin, I love it!
Reply
:iconmelcor83:
Melcor83 Featured By Owner Apr 22, 2016
Hello,

My current settings are:

; Weather.com location code
; Go to weather.com and search for your location.
; The location code is in the URL on the page for your location.
; e.g. for Chicago:
; weather.com/weather/today/l/US…
;                                     ^^^^^^^^
location=PLXX0028:1:PL

; 'f' for English, 'm' for Metric
unit=m

; temperature thresholds; if you are using Celsius make sure you adjust these
jacket_temp=18
coat_temp=5

It is 12C outside and it says I need a coat... 2016-04-10 version. Help would be appreciated :)
Reply
:iconmelcor83:
Melcor83 Featured By Owner Apr 23, 2016
So what I was able to find out so far is that the script is loading default values in this section regardless of what is in the ini file:

-- script measure settings
local Settings = {}
Settings.init = function(props)
   Settings.Jacket_Limit = SELF:GetNumberOption(props.JacketThreshold, 60)
   Settings.Coat_Limit = SELF:GetNumberOption(props.CoatThreshold, 35)

   local metric = { m = true, c = true }
   local unit = string.lower(string.sub(props.Unit, 1, 1))
   Settings.Unit =  metric[unit] and 'c' or 'f'
end

So you get 60 for jacket limit and 35 for coat limit no matter what is in the ini file. As by this moment I was not able to find out why... 
Any ideas?
Reply
:iconwindfreaker:
WindFreaker Featured By Owner Edited Apr 23, 2016
Fixed it. I don't know what I did (never coded in lua before) but it works.
Probably broke some other functions of it in the process, so tell me if you have any issues with this modification.

Firstly, search for the "-- script measure settings"
Notice this block of code.

local Settings = {}
Settings.init = function(props)
   Settings.Jacket_Limit = SELF:GetNumberOption(props.JacketThreshold, 60)
   Settings.Coat_Limit = SELF:GetNumberOption(props.CoatThreshold, 30)

   local metric = { m = true, c = true }
   local unit = string.lower(string.sub(props.Unit, 1, 1))
   Settings.Unit =  metric[unit] and 'c' or 'f'
end

Change this block of code to my modified version.

local Settings = {}
Settings.init = function(props)
   Settings.Jacket_Limit = props.JacketThreshold
   Settings.Coat_Limit = props.CoatThreshold

   local metric = { m = true, c = true }
   local unit = string.lower(string.sub(props.Unit, 1, 1))
   Settings.Unit =  metric[unit] and 'c' or 'f'
end

All i did was change two lines of FlyingHyrax's original code (couldn't figure out what the hell it did, my fault for not knowing lua) and added my own code.
With this change the config should work as intended.
Again, tell me if anything else is not working with this fix, as my lack of programming knowledge may have done some horrible things.
Reply
Add a Comment:
 
×





Details

Submitted on
November 15, 2014
File Size
4.4 KB
Link
Thumb
Embed

Stats

Views
118,168 (27 today)
Favourites
207 (who?)
Comments
158
Downloads
51,064 (9 today)

License

Creative Commons License
Some rights reserved. This work is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.
×