Shop Forum 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:
 
:icondrgabi18:
Drgabi18 Featured By Owner Sep 7, 2018  Hobbyist Digital Artist
; 'f' for English, 'm' for Metric
Reply
:icontantrys:
Tantrys Featured By Owner Aug 24, 2018  New Deviant
Hi, it's been almost 3 hours... I'm stuck with the loading error even if I follow berryaku's instructions. The problem is that I'm french so I need to use accents like "ô", "é", "è" during the translation. But accents don't appear and when I save with encoding with UTF-16 LE (in Sublime Text), there is a bug. Everything is the .lua disappear and one line with asian characters appears...

Then, the loading error, even if I copy/paste the .lua backup.

Someone ?
Reply
:iconfitchie46:
Fitchie46 Featured By Owner Jul 31, 2018
i think mines broken. it only ever says you need a coat its rather mild outside when ints 21c outside. the jacket temp= 15c and the coat temp= 5c. do you know how i can fix this? becuase i really dont need a coat
Reply
:icongranendos:
GranenDos Featured By Owner Jul 29, 2018  New Deviant
Can i get help because when i checked dinaj2 it was stuck on loading... ive tried reloading and all of that good stuff Ive checked online for a fix to this problem and i found something from 2 years ago that was the exact samething so it was something about yahoo weather updating but the fix doesnt work for the new yahoo update. If anybody can help me figure out waht to do or if anybody can give me a new code for dinaj2 it would really appreshiate it <3
Reply
:iconvyrical:
Vyrical Featured By Owner Jul 27, 2018  New Deviant
How does one change it off of Chicago, I've seen the things saying "change the weather.com url code to your location" however I can't find any weather.com link in the LUA, am I looking in the wrong spot or am I missing something?
Reply
:icontadaaki:
Tadaaki Featured By Owner May 19, 2018
hello I have a qustion can you (be you i mean me) change what it said's"you need a jacket" too something like "you need a top hat" or "you need a ice cream cone" in coding , is there a way how?

Reply
:iconmoldis:
Moldis Featured By Owner Jun 9, 2018
Just edit dinaj.lua lines:
local negation = (temp > Settings.Jacket_Limit) and " don't" or ""
local outerwear = (temp < Settings.Coat_Limit) and "coat" or "jacket"
return string.format("You%s need a %s", negation, outerwear)
Reply
:iconlkaboooml:
lkaboooml Featured By Owner May 19, 2018
when i change to metric system, it always shows you need a coat no matter what i put on thresholds
Reply
:iconmoldis:
Moldis Featured By Owner Edited Jun 9, 2018
Something is wrong with taking values of jacket and coat threshold. I changed dinaj.lua lines:

Settings.Jacket_Limit = SELF:GetNumberOption(props.JacketThreshold, 60)
Settings.Coat_Limit = SELF:GetNumberOption(props.CoatThreshold, 35)

With:
Settings.Jacket_Limit = tonumber(props.JacketThreshold)
Settings.Coat_Limit = tonumber(props.CoatThreshold)

And now it's working properly.
Reply
:iconlkaboooml:
lkaboooml Featured By Owner Jun 24, 2018
thank you, it worked
Reply
:iconthelittleivory:
thelittleivory Featured By Owner Jun 16, 2018
Where do I go to edit the lua file?
Reply
:iconlkaboooml:
lkaboooml Featured By Owner Jun 24, 2018
lua file is in the same folder with ini file. Just go to the folder where you installed rainmeter and find the folder for this skin
Reply
:iconalexandersct:
AlexanderSct Featured By Owner Mar 6, 2018  Hobbyist General Artist
I found a way to get the location code automatically, ask me if you want to know
Reply
:iconsquidyscribble:
SquidyScribble Featured By Owner Apr 30, 2018  Hobbyist Digital Artist
How?
Reply
:iconalexandersct:
AlexanderSct Featured By Owner May 1, 2018  Hobbyist General Artist
a measure like this would work. just copy and paste.

it needs a finishaction so it changes the code and updates the skin afterwards, but you should be able to add that yourself.


[wxdataWeatherCode]
Measure=WebParser
URL=www.iplocationtools.com/
RegExp=(?siU)Station.*\((.*)\)
StringIndex=1
DynamicVariables=1
Reply
:iconmissplatinumgamer:
missplatinumgamer Featured By Owner Feb 22, 2018  Hobbyist Digital Artist
i checked the clickthrough option so i dont accidently scroll and adjust its size,  but then i cant hover over it and see the temperature. anything i can do to keep it unchecked but not accidently scroll on it>?

Reply
:iconsynfloodinc:
SynFloodINC Featured By Owner Apr 12, 2018  Hobbyist Interface Designer
I found a way to diable the scrolling while still being able to hover over. All you need to do is open the dinaj.ini file and search for "scrolling" without the " and delete the bottom 2 lines that show up which describe the scroll function.
Reply
:iconmissplatinumgamer:
missplatinumgamer Featured By Owner Apr 13, 2018  Hobbyist Digital Artist
ty so much
Reply
:icondpower20:
Dpower20 Featured By Owner Edited Jan 29, 2018
Hi there. I am having an issue with your widget: when I switch it to Celsius, the display gets stuck at 'loading.' I am using a Canadian location.

UPDATE: Fixed, refer to 'berryaaku' solution below.
Reply
:iconheartkinz17:
heartkinz17 Featured By Owner Jan 26, 2018  Hobbyist General Artist
Im sorry if you don't take request but can you make a moon phases skin? thx
Reply
:iconstealthscar:
stealthscar Featured By Owner Dec 22, 2017
thank you very much.

@KwaQ-GFX yes it does work for people in the UK.
Reply
:iconkwaq-gfx:
KwaQ-GFX Featured By Owner Dec 20, 2017
It doesn't work for people in England
Reply
:iconrain-petals:
rain-petals Featured By Owner Dec 3, 2017  Hobbyist Digital Artist
Hi,

I recently downloaded your skin and must say it is amazing.
However, I have set my location code to Fremont, OH and it is still saying Chicago, IL.

This is my code:
; 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=USOH0329

Any help would be appreciated. Thanks!
Reply
:icontinkermonkey:
TinkerMonkey Featured By Owner Jan 17, 2018  Hobbyist General Artist
Did you refresh the skin?
Reply
:iconrain-petals:
rain-petals Featured By Owner Jan 19, 2018  Hobbyist Digital Artist
Ah, sorry. I must not have edited it. It has been working fine, but thank you for your concern!
Reply
:iconemanzzkie:
EmanzzKie Featured By Owner Oct 12, 2017
what to adjust if temperature is in metric system? 
Reply
:icond0persie:
d0persie Featured By Owner Oct 7, 2017  Student Artist
i made the Indonesian Language version of this skin :D
Reply
:iconkaizzuu:
kaizzuu Featured By Owner Sep 16, 2017
Can it be set to show you're needing a jacket when it's raining or unstable weather?
Reply
:iconstarwolf160:
Starwolf160 Featured By Owner Sep 5, 2017  Hobbyist Writer
Does anyone know how to switch the top and bottom texts?
Reply
:icongemjonno:
GemJonno Featured By Owner Jun 24, 2017
Hey.. It seems DINAJ is stuck on loading for me. I've tried refreshing and re-loading.. Any help? 
Reply
:icondrb0201:
DRB0201 Featured By Owner Jun 18, 2017
Someone knows a good temperature for Celsius?
And does it selects Celsius automatically if you enter a country that uses Celsius?
Reply
:iconjuicethehedgehog:
juicethehedgehog Featured By Owner Jun 7, 2017  Professional General Artist
YAAS!
Reply
:iconpixelloyd:
PixeLloyd Featured By Owner May 29, 2017  Hobbyist Digital Artist
Is there any way to change the font? Because the default font is too thin, Please Respond
Reply
:iconaihehe:
aihehe Featured By Owner Edited Apr 20, 2017  Hobbyist Interface Designer
update : fixed. 

Keep up the great work.
Reply
:iconkanashimi-tenshi:
Kanashimi-Tenshi Featured By Owner Apr 18, 2017
I really love this skin. I live in the desert, so I do wish there was some more variations for when it was hot (such as a 100 F for example). I'd love to be edit or change more of the terms or sayings as well. Otherwise, super solid and thanks a ton!
Reply
:iconodoug5:
Odoug5 Featured By Owner Mar 24, 2017
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
:icondiedoktor:
dieDoktor Featured By Owner Apr 12, 2017
You can edit the trigger point in the ".ini". Go to wherever you have your rainmeter installation (if default then it will be "C:\Users\"Your User Name"\Documents\Rainmeter]Skins\DINAJ2" Open the settings file "dinaj.ini" and scroll down the the [Variable] block, here you can find the lines "jacket_temp=65" and "coat_temp=40".

Edit the numeric values for the value that you want, save, and refresh the skin.
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 Mar 23, 2017
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 Mar 24, 2017
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
I'm having the same problem as Takoyaki147 
Reply
:icontakoyaki147:
Takoyaki147 Featured By Owner Jan 5, 2017
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
Same problem with me
Reply
:iconparadoxcode:
ParadoxCode Featured By Owner Jan 6, 2017
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
Thanks, this fixed it for me, too!
Reply
Add a Comment:
 
×





Details

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

Stats

Views
203,818 (107 today)
Favourites
322 (who?)
Comments
196
Downloads
83,827 (31 today)

License

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