This is another example of how you might use Mattking's fabulous new Lua Measure=Script feature of the latest Rainmeter 1.4 beta.
This will obtain the current wind direction in compass degrees from Yahoo Weather, and turn it into some useful information.
First get the latest beta (at least r676) from http://Rainmeter.net.
Then install this skin:
It is currently September 1st, 2024, 1:07 am
LuaWind
-
- Developer
- Posts: 22710
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
LuaWind
You do not have the required permissions to view the files attached to this post.
Re: LuaWind
Tried to install.
Rainmeter Crashed with the following information:
I can pull down information from the mention files if necessary
Restart of Rainmeter; the skin works like a champ.
Too bad we are unable to get the image to rotate to reflect the wind direction![Wink ;)](./images/smilies/innuendo.gif)
Rainmeter Crashed with the following information:
Restart of Rainmeter; the skin works like a champ.
Too bad we are unable to get the image to rotate to reflect the wind direction
![Wink ;)](./images/smilies/innuendo.gif)
-
- Developer
- Posts: 22710
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: LuaWind
Actually, that would be really simple. Just use your image, set dynamicvariables=1 and set ImageRotate=[WindDirection] Just so happens that degrees of a compass and of the full rotation of an image are 0 to 360, so no clever calculating needs to be done.sgtevmckay wrote:Tried to install.
Rainmeter Crashed with the following information:I can pull down information from the mention files if necessary
Restart of Rainmeter; the skin works like a champ.
Too bad we are unable to get the image to rotate to reflect the wind direction
Re: LuaWind
Just need to separate the Center sun Icon from the Compass ringjsmorley wrote:Actually, that would be really simple. Just use your image, set dynamicvariables=1 and set ImageRotate=[WindDirection] Just so happens that degrees of a compass and of the full rotation of an image are 0 to 360, so no clever calculating needs to be done.
I am going to work on that.
Great Graphics find
![Great :great:](./images/smilies/dn.gif)
-
- Developer
- Posts: 22710
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: LuaWind
Yeah, and have one of the "beams" highlighted so it becomes a "pointer" and start it pointing north. Then just set ImageRotate and you have it.sgtevmckay wrote: Just need to separate the Center sun Icon from the Compass ring
I am going to work on that.
Great Graphics find
-
- Developer
- Posts: 22710
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
-
- Developer
- Posts: 22710
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: LuaWind
Fixed a small typo in the .lua file. New version in the first post.
-
- Posts: 87
- Joined: June 4th, 2009, 10:41 pm
Re: LuaWind
I don't understand how you managed to get that Northwest text in your skin, i checked the code but there wasn't any measurements for that? Or did i missed something?
-
- Developer
- Posts: 22710
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: LuaWind
Most of that work is done in the .lua file, not the skin .ini.TheAslan wrote:I don't understand how you managed to get that Northwest text in your skin, i checked the code but there wasn't any measurements for that? Or did i missed something?
It's a simple two dimensional lookup table that uses the wind direction in degrees returned by the skin to look up the appropriate full direction text and abbreviation (North by Northwest / NbNW). The Lua script then simply sets the values of the meters displaying this information.
-
- Posts: 87
- Joined: June 4th, 2009, 10:41 pm
Re: LuaWind
So what i have to write in .ini file to get it show?