HOME | DD

FlyingHyrax — Do I Need a Jacket? 2.0 (beta 2016-04-10) by-nc-sa

#jacket #rainmeter #simple #skin #text #weather #widget #dinaj #temperature
Published: 2014-11-16 00:04:42 +0000 UTC; Views: 396858; Favourites: 534; Downloads: 115337
Redirect to original
Description "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:
Uses Lua instead of trying to cram logic into the skin file
Many more adverbs (though it's probably less witty overall)
Instead of trying to incorporate wind speed into the jacket equation, just checks the Wind Chill temperature value
Simplified settings: location, English/Metric, jacket temperature threshold, coat temperature threshold
Can change the size by scrolling the mouse over the skin
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.…
Related content
Comments: 236

malim20 In reply to ??? [2015-12-20 12:12:12 +0000 UTC]

The 'You need a coat' doesn't change, though the bottom changes. Currently it reads:
"You need a coat
It's kinda hot outside"

At 32°C...

👍: 0 ⏩: 1

Benjii00 In reply to malim20 [2016-03-26 11:46:15 +0000 UTC]

you have to change the variables in the document to:
jacket_temp=20
coat_temp=15

👍: 0 ⏩: 0

spidermanfan69 In reply to ??? [2015-11-28 22:20:44 +0000 UTC]

Hey, I really enjoy this skin but when I entered my are it just said "loading..." and it hasn't gotten out of it yet. what do I do?

👍: 0 ⏩: 0

AnMcCal In reply to ??? [2015-11-28 09:48:07 +0000 UTC]

Awesome skin.
I have been going through the code to try edit it, it looks really professionally done. (not that I know much about programming)
Good job and  thanks

👍: 0 ⏩: 0

djlatino In reply to ??? [2015-11-24 13:29:19 +0000 UTC]

Been using this for the past 3 years, just noticing I never commented nor fav'd this.

FlyingHyrax, you sir, are the fuckin' man.

👍: 0 ⏩: 0

GiacomoLaw In reply to ??? [2015-10-09 06:29:14 +0000 UTC]

How can I set it to be in my area? So that the temperatures are correct.

👍: 0 ⏩: 1

MrGoldenPotato In reply to GiacomoLaw [2015-10-14 14:27:31 +0000 UTC]

Kind of late answer but Right click and choose Edit Skin. In the notepad window it will say:
; Yahoo WOEID; lookup at woeid.rosselliot.co.nz/lookup/
location=YOURCODEHERE!

Use the link to find the code for your area and paste the area code in!

Then you can go to rainmeter and click update skins.

👍: 0 ⏩: 1

GiacomoLaw In reply to MrGoldenPotato [2015-10-15 06:14:43 +0000 UTC]

Thanks!

👍: 0 ⏩: 0

ooleshh [2015-08-26 04:05:09 +0000 UTC]

Hey! Absolutely love the skin, and I appreciate even more all the time and effort you're putting into answering questions here. Real quick, I was wondering if you could tell me, or point me in the direction of a comment already answering this question, how to change the font in this skin? Thanks!

👍: 0 ⏩: 1

FlyingHyrax In reply to ooleshh [2015-09-01 00:40:43 +0000 UTC]

Hiya ooleshh ,
There should be a "font=" setting in the "[Variables]" section of the skin file, which you can access by right-clicking on the skins and selecting "Edit skin" in the context menu.  Change the font name, save the file, and refresh the skin to see the change.  If the font name you try doesn't work at first check out the Rainmeter Fonts Guide and jsmorley 's RainFont Utility to help find the correct font name (it might not be exactly what you expect).

👍: 0 ⏩: 0

ms310 In reply to ??? [2015-08-19 02:33:28 +0000 UTC]

Hi - there - I have finally decoded your LUA, and I have so say - well done! Once I decoded your logic, I realized it is a very cool way of doing things.

The hardest part for me - LUA syntax. There are some tricky constructs in LUA but once I duplicated your maths in Excel and played with the numbers it all made sense.

I have now added Wind Words and plan on incorporating humidity as well. Thank you SO VERY MUCH for sharing your work - I now understand how to incorporate LUA scripting with my skins, and understand how LUA is more flexible for tables, maths and comparisons. THANK YOU!

👍: 0 ⏩: 1

FlyingHyrax In reply to ms310 [2015-08-20 22:49:55 +0000 UTC]

Hi ms310 , thank you very much!  My code tends to be more complex than it ought to be, so kudos to you for working through it.   Lua is a bit different, but it's really a nice language once you get used to it.  I don't really have time to work on Rainmeter skins anymore, so I'm really glad that my code helped you learn and that you have been able to expand it!

👍: 0 ⏩: 0

ms310 In reply to ??? [2015-08-14 06:02:18 +0000 UTC]

Love it. Would you consider creating one for humidity as well? 

👍: 0 ⏩: 0

stefderuiter In reply to ??? [2015-06-01 18:04:22 +0000 UTC]

Loving this man, great job. Works fine for me here over seas after tweaking it a bit. Thx from the Netherlands!

👍: 0 ⏩: 0

alystair In reply to ??? [2015-05-25 18:49:05 +0000 UTC]

Your meter is the only one I used... but I needed a decent world clock... so I made a matching one: github.com/alystair/rainmeterW…

👍: 0 ⏩: 0

noskills117 In reply to ??? [2015-04-20 23:59:59 +0000 UTC]

I've edited to include rain and snow, but it doesn't always seem to update by itself...

👍: 0 ⏩: 1

noskills117 In reply to noskills117 [2015-04-21 06:08:06 +0000 UTC]

or maybe it does, its hard to tell...

👍: 0 ⏩: 0

Ed-Talan In reply to ??? [2015-03-23 19:57:22 +0000 UTC]

I was looking to add a couple of different 'jacket'-variables, such as if it's about 85, "You need a bathing suit!",  I was looking through the code and got very confused as to how to do this.  Would this be easily possible with the current set up?  If so, I'd use more than 3 variables, such as "You need to stay inside."(Cold Var), "You need a big coat.", "You need a coat.", "You need a jacket.", "You need a windbreaker.", "You need a flannel.", "You need nothing but your shirt (pants optional).", "You need a bathing suit!", and then "You need to stay inside."(Hot var)

Thank you!

👍: 0 ⏩: 1

FlyingHyrax In reply to Ed-Talan [2015-03-25 23:19:11 +0000 UTC]

Have you worked with Lua before? The way the skin is currently written, you'll need to edit the dinaj.lua script a fair bit.

Currently the script gets the jacket/coat temp values from variables in the skin, but in your case it would probably be much easier to just hard-code all the "jacket"-variables and strings in the script file.

Here's some example code I wrote that you could merge with the current script file: gist.github.com/mr-seiler/ecc1… ; (I did not test it...)

Basically, it shows a table of temperatures and strings, and how you could rewrite the function in the script that selects the main "You need a jacket" string to use the table instead of just the three possible outputs it handles now.  There are more straightforward ways to do the same thing; for instance, you could just have a lot of if-elseif blocks inside the function to figure out which string to return.  But that way is much more code and it is harder to edit if you want to change the temperatures or strings.

👍: 0 ⏩: 0

StArL0rd84 In reply to ??? [2015-03-17 00:47:02 +0000 UTC]

Mine contradicts itself: You need a coat - It's kinda hot outside

👍: 0 ⏩: 1

FlyingHyrax In reply to StArL0rd84 [2015-03-21 15:18:43 +0000 UTC]

The "You need a coat" depends on your settings for what temperature to use for coat/jacket.  The "it's kinda hot outside" doesn't - it just looks at the current temp and the units you have set and picks a phrase from a range.   It sounds like maybe you changed the units to Celsius without updating the "jacket_temp" and "coat_temp" variables?

👍: 0 ⏩: 1

StArL0rd84 In reply to FlyingHyrax [2015-03-21 22:25:57 +0000 UTC]

Hmm yeah now it makes sense. Thank you

👍: 0 ⏩: 0

lolrektm8 In reply to ??? [2015-03-15 08:39:20 +0000 UTC]

I added my WOEID code and changed the weather settings but nothing is happening. It has said "loading" for about 5 minutes with no changes. Help...

👍: 0 ⏩: 1

FlyingHyrax In reply to lolrektm8 [2015-03-16 00:41:09 +0000 UTC]

Replied to your note.  Without knowing what settings you're using, I can't try to figure out what's going on.

👍: 0 ⏩: 0

Adeii In reply to ??? [2015-03-03 09:05:54 +0000 UTC]

FlyingHyrax  
Sorry, but I had to customize your skin to my taste, for everyday use. It looks like this (jacket for  5'C< temp <18'C; coat for t<5; t-shirt for t>18) and it's translated to Serbian and using Yahoo Weather API.

fc09.deviantart.net/fs71/f/201…

👍: 0 ⏩: 1

FlyingHyrax In reply to Adeii [2015-03-06 15:19:00 +0000 UTC]

No worries my friend, I'm glad you customized it!  I like idea of adding icons.  I'll have to download your version sometime soon and check it out in more detail.

👍: 0 ⏩: 1

Adeii In reply to FlyingHyrax [2015-03-07 22:10:40 +0000 UTC]

Thanks again, I'm glad you like it!
p.s. Code is so messy after all changes

👍: 0 ⏩: 0

LawsonST In reply to ??? [2015-02-09 21:24:08 +0000 UTC]

I love this skin. I'm using it with the newest version of the NXT OS setup and it looks great.

Did have a question though. I noticed in the .lua file the line (line 12) that says:
local TEMP_MIN, TEMP_MAX = -10, 120
What happens if the temperature is outside of that range? Like, if it's below -10, does it just stick with the bottom end of the descriptors ("damn cold")?
Just curious. We haven't gotten below -10 where I live since I installed it a few days ago, but last winter it was a regular occurrence, so I'd be interested to know if it handles that well.

Thanks for the awesome skin.

👍: 0 ⏩: 1

FlyingHyrax In reply to LawsonST [2015-02-21 15:20:17 +0000 UTC]

That's correct - it should just use the lowest one.  (Though I should probably test it again since the code has changed a bit since I first tested that...)

If you're curious: the skin basically takes the current temperature, converts it into a percent of a range, then uses the percent to map to one of the descriptors in the list.  If the temperature is outside the bounds of the range it will "clamp" to the highest or lowest value. (It's a little convoluted, but it's less tedious than giving every descriptor a specific range and having to adjust and tweak them all.) So those two variables control how the descriptors "spread out" to cover a range of temperatures.  You can experiment with changing the values and seeing which descriptors are used for a given temperature. But those two variables are an "implementation detail", you shouldn't have to edit them for it to work.

👍: 0 ⏩: 0

Grim2173 In reply to ??? [2015-01-26 10:55:03 +0000 UTC]

Awesome skin, is it possible to add the need for a Raincoat..? not sure how, but it would be great.

👍: 0 ⏩: 1

FlyingHyrax In reply to Grim2173 [2015-02-21 15:21:39 +0000 UTC]

It would be great, but unfortunately I too am not sure how to implement it.  If nothing else, it seems pretty difficult to find a source for "chance of precipitation" that works worldwide.

👍: 0 ⏩: 0

TragicallyWired In reply to ??? [2015-01-25 20:43:30 +0000 UTC]

How the hell do you setup your weather location? The instructions are not very clear.

👍: 0 ⏩: 1

FlyingHyrax In reply to TragicallyWired [2015-01-31 23:16:46 +0000 UTC]

Welcome to the "beta" version tag - where nobody spends any time on end user documentation, because the settings and interface might change and force a complete doc rewrite. 

That said, you need to look up the Yahoo WOEID code for your location.  You can use this website for that:
Yahoo WOEID Lookup | Find Yahoo WOEID Identifiers

Next, you have to edit the skin file (if the skin is open you can just right click and select "Edit skin").
In the "[Variables]" section (third section from the top) there is a line "location=..." with some numbers,
replace those numbers after the '=' sign with your WOEID.

Save file, refresh skin, and you should be good to go. 

👍: 0 ⏩: 0

ConsoleViking In reply to ??? [2015-01-22 22:39:40 +0000 UTC]

How do I download this? I'm new to it and I'm not sure how to put it on my desktop from their website.

👍: 0 ⏩: 1

FlyingHyrax In reply to ConsoleViking [2015-01-23 15:07:07 +0000 UTC]

Make sure you have Rainmeter installed first: rainmeter.net/
That just uses a normal install wizard, so download the installer and run it.

Then when you download the file from this page, you should have the option to open the file with the "Rainmeter Skin Installer".  That will show you a dialog with the skin info and some options; just hit the "Install" button and the skin is extracted to Rainmeter's skins directory.

To open the skin, make sure Rainmeter is running and look for its icon in the Windows system tray (bottom right in the taskbar).  Clicking the icon will open the "Manage Rainmeter" window.  It should show a list of all your installed skins in a tree on the left side.  Double-click on DINAJ2 in this list, then on the "dinaj.ini" file.  On the right side of the window it will show the skin information, and there should be a "Load" button near the top right.

There's also an "Edit" button up there - if you click that it will open the skin file in a text editor.  You'll need to do this to edit the settings (like weather location and units and temperature thresholds etc.); you can just change the values, save the file, then back in the manage dialog hit "Refresh" to apply your changes.

(You can also find much of this information in the manual: docs.rainmeter.net/manual/gett… )

I hope this is helpful, if you have other questions don't hesitate to ask, but I don't check DevArt too often so you might have better luck on the forums: rainmeter.net/forum/

👍: 0 ⏩: 0

ValidParadox In reply to ??? [2015-01-19 00:13:02 +0000 UTC]

I love it. I use it often now, despite my constantly changing setup. 
imgur.com/gallery/LOoDg/
I used it in the first image there. I'm butchering the skin with a few new fonts, but I'm still experimenting. I changed some of the values too, it's been lots of fun. This is probably my favorite skin yet because it's so simple, and I can use it on so many of my setups.

👍: 0 ⏩: 1

FlyingHyrax In reply to ValidParadox [2015-02-21 15:22:50 +0000 UTC]

Glad you like it!  I have been trying to make it as flexible as possible, so it's good you are finding it easy to hack. 

👍: 0 ⏩: 0

00leel00 [2014-12-31 11:29:25 +0000 UTC]

Nice skin..impressed.  A suggestion - maybe add something so that as well as displaying whether or not you need a coat, it also displays (maybe separately and optionally) what the weather is, rather than having to hover over?

👍: 0 ⏩: 1

FlyingHyrax In reply to 00leel00 [2015-01-05 16:40:18 +0000 UTC]

Good idea; I can see a variant that replaces the second line of text with the weather conditions, perhaps?

👍: 0 ⏩: 0

00leel00 In reply to ??? [2014-12-31 11:15:22 +0000 UTC]

Hi,
Where can I find the wallpaper you are using?

👍: 0 ⏩: 1

FlyingHyrax In reply to 00leel00 [2015-01-05 16:46:05 +0000 UTC]

www.deviantart.com/art/CUBIC-3…

👍: 0 ⏩: 0

thatsned [2014-12-30 14:42:46 +0000 UTC]

What I wouldn't give to be able to have this as a widget on my iOS device!! Is that possible in any way???

👍: 0 ⏩: 2

FlyingHyrax In reply to thatsned [2015-01-05 16:41:18 +0000 UTC]

Unfortunately it isn't really possible. 

It's not as minimalist, but you might like this app: swackett.com/v2/

👍: 0 ⏩: 0

GalaxianPirate In reply to thatsned [2015-01-02 15:21:45 +0000 UTC]

If you had said Android, I would have suggested UCCW.

But you have the horrible piece of junk that is an iOS device, so I don't know what to tell you...

👍: 0 ⏩: 0

jennawheels In reply to ??? [2014-12-27 05:36:52 +0000 UTC]

How do you change the color? I need to change it to black because of my background! How would I do that?

👍: 0 ⏩: 1

FlyingHyrax In reply to jennawheels [2015-01-05 16:44:55 +0000 UTC]

Right click on the skin, and select "Edit skin" in the context menu, which should open the skin file in an editor.  Find the line "text_color=255,255,255,200" inside the "[Variables]" section.  Then you just need to change the part after the = sign to a whatever color code you'd like.  You can use RGBA or Hex codes: docs.rainmeter.net/manual/skin… Then just save and refresh the skin.

👍: 0 ⏩: 0

MajorAddiction In reply to ??? [2014-12-11 19:40:03 +0000 UTC]

Great work. Just a note, one of the descriptors is "quite temperature." I'm not sure if that's a typo, but it's a weird phrase to use in English.

👍: 0 ⏩: 1

FlyingHyrax In reply to MajorAddiction [2014-12-12 15:30:19 +0000 UTC]

Whoops!  Yeah, that's a typo... I think it's supposed to be "quite temperate."  Which is still kind of a weird phrase, but I really ought to go back over the descriptors...

👍: 0 ⏩: 0

Capple2 [2014-12-03 03:07:42 +0000 UTC]

hey my weather woeid is 91981852 and i want to change to celsius, can you give me a step by step? I'm a noob at this. Thanks!

👍: 0 ⏩: 1

FlyingHyrax In reply to Capple2 [2014-12-06 23:05:25 +0000 UTC]

Right click on the skin and select "Edit Skin" in the menu.  This should open the skin file in your default plaintext editor, probably Notepad if you haven't set up something else.

In the file, look for the "[Variables]" section (third section down).  There are a couple of different settings in this section, listed as "name=value" pairs.  You'll need to change the "location", "unit", "jacket_temp", and "coat_temp" values (the parts after the '='). Use your WOEID for the location setting, and 'c' for the unit setting.  The jacket and coat temp settings are unit-agnostic (they are just numbers), but you'll want to change those values to ones that make sense for the Celsius temperature scale, since the defaults are for Fahrenheit.

When you're done editing, make sure you save the file, then right click the skin again and select "Refresh skin" in the menu to reload it, and it should use your new settings.  You can check the location and unit in the tool-tips when you mouse-over the skin.

Hope that helps, let me know if you need more clarification.


👍: 0 ⏩: 1


<= Prev | | Next =>