It is currently November 29th, 2023, 4:35 am
How do I automatically turn a skin on or off based on weather information?
-
- Posts: 42
- Joined: January 3rd, 2022, 2:44 pm
How do I automatically turn a skin on or off based on weather information?
can Rainmeter start or turn off a skin based on local weather forecast information? For example, it starts automatically when it rains and closes automatically when it stops raining.
Last edited by Pyuahowaito on August 7th, 2022, 5:14 pm, edited 1 time in total.
-
- Rainmeter Sage
- Posts: 15813
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: How do I automatically turn a skin on or off based on weather information?
Yep, it definitely can. You have to use either an IfMatch, or an IfCondition option onto the proper measure which returns the current condition or the current weather icon. But how exactly do you do this depends on the skin you're working with. So, first question is what skin do you use? A link would be nice...Pyuahowaito wrote: ↑August 2nd, 2022, 6:29 pm can Rainmeter start or turn off a skin based on local weather forecast information? For example, it starts automatically when it rains and closes automatically when it stops raining.
-
- Posts: 42
- Joined: January 3rd, 2022, 2:44 pm
Re: How do I automatically turn a skin on or off based on weather information?
https://forum.rainmeter.net/viewtopic.php?t=17776It's a great skin, but I think it's still lacking in practicality, and it would be cool if it could respond to realitybalala wrote: ↑August 2nd, 2022, 6:43 pm Yep, it definitely can. You have to use either an IfMatch, or an IfCondition option onto the proper measure which returns the current condition or the current weather icon. But how exactly do you do this depends on the skin you're working with. So, first question is what skin do you use? A link would be nice...
-
- Rainmeter Sage
- Posts: 15813
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: How do I automatically turn a skin on or off based on weather information?
It can't "respond to reality", because it's not a weather skin. I suppose this is the skin which you would like to activate when it's raining, right? If I'm right, you need a real weather skin, which returns the current weather condition. Do you have / use such a skin? If you do, which one? That's the skin which we should work with, to activate / deactivate this one.Pyuahowaito wrote: ↑August 2nd, 2022, 7:19 pm https://forum.rainmeter.net/viewtopic.php?t=17776It's a great skin, but I think it's still lacking in practicality, and it would be cool if it could respond to reality
-
- Posts: 42
- Joined: January 3rd, 2022, 2:44 pm
Re: How do I automatically turn a skin on or off based on weather information?
Sorry balala I've never used a weather skin, but if this skin can't be implemented, is there a random activation and deactivation function to simulate?balala wrote: ↑August 2nd, 2022, 7:39 pm It can't "respond to reality", because it's not a weather skin. I suppose this is the skin which you would like to activate when it's raining, right? If I'm right, you need a real weather skin, which returns the current weather condition. Do you have / use such a skin? If you do, which one? That's the skin which we should work with, to activate / deactivate this one.
-
- Posts: 499
- Joined: May 4th, 2020, 3:01 pm
- Location: Ankara, TURKEY
Re: How do I automatically turn a skin on or off based on weather information?
I adapted the skin made by JSMorley according to your wishes.Pyuahowaito wrote: ↑August 2nd, 2022, 6:29 pm can Rainmeter start or turn off a skin based on local weather forecast information? For example, it starts automatically when it rains and closes automatically when it stops raining.
If the humidity is above 52, it will show you the skin

If you want to change this value;
Replace the IfCondition= CalcRainAlarm > 52 section in the contents of the JS Barometer.ini file.
Code: Select all
[CalcRainAlarm]
Measure=Calc
Formula=@CurrentHumidity
IfCondition= CalcRainAlarm > 52
IfTrueAction=[!ShowMeterGroup Alarm][!Redraw]
IfFalseAction=[!HideMeterGroup Alarm][!Redraw]
If desired, it can be adjusted according to the variables @CurrentConditions/@CurrentConditionsMedium/@CurrentConditionsShort

You do not have the required permissions to view the files attached to this post.
I don't know where i going from here, but i promise it won't be boring... 

-
- Rainmeter Sage
- Posts: 15813
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: How do I automatically turn a skin on or off based on weather information?
As said, the skin you've posted is only a rain simulation. It has nothing to do with the real weather condition. The real condition can be get from a weather skin. You can get one such skin on the Weather section of Share Your Creations. I assume you don't really know how to modify a weather skin to get the "Rain" when it's really raining. So for first please see tass_co's above reply and check the package he's posted (to be honest I didn't check it so far). If you don't find it good enough for your needs, we can alter it to match what you want.Pyuahowaito wrote: ↑August 4th, 2022, 12:26 am Sorry balala I've never used a weather skin, but if this skin can't be implemented, is there a random activation and deactivation function to simulate?
So is his package alright?
-
- Posts: 42
- Joined: January 3rd, 2022, 2:44 pm
Re: How do I automatically turn a skin on or off based on weather information?
Thank you all for your help, I understand a little, I really don't know how to modify the weather skin correctly, this skin is very good I understand the approximate way of working but it is very complicated for me, at the moment I do not know how to correctly make the Rain skin automatically turn on and off according to the humidity provided by the JSBarometer skin
You do not have the required permissions to view the files attached to this post.
-
- Posts: 499
- Joined: May 4th, 2020, 3:01 pm
- Location: Ankara, TURKEY
Re: How do I automatically turn a skin on or off based on weather information?
The skin I shared will appear when the weather is rainy (Humidity > 52).Pyuahowaito wrote: ↑August 4th, 2022, 10:39 pm Thank you all for your help, I understand a little, I really don't know how to modify the weather skin correctly, this skin is very good I understand the approximate way of working but it is very complicated for me, at the moment I do not know how to correctly make the Rain skin automatically turn on and off according to the humidity provided by the JSBarometer skin1.jpg
If you want it to show the skin you want;
Open the JSBarometer.ini file with a text editor and replace the [CalcRainAlarm] line with the following.
Code: Select all
[CalcRainAlarm]
Measure=Calc
Formula=@CurrentHumidity
IfCondition= CalcRainAlarm > 52
IfTrueAction=[!ActivateConfig "Rain" "Rain.ini"]
IfFalseAction=[!DeactivateConfig "Rain"]
Because when there is a skin that can do what you want by itself, it would not be a logical move to trigger it with another skin.
If you share the Rain.ini file I can make it into a single skin for you

I don't know where i going from here, but i promise it won't be boring... 

-
- Posts: 42
- Joined: January 3rd, 2022, 2:44 pm
Re: How do I automatically turn a skin on or off based on weather information?
tass_co wrote: ↑August 4th, 2022, 10:55 pm The skin I shared will appear when the weather is rainy (Humidity > 52).
If you want it to show the skin you want;
Open the JSBarometer.ini file with a text editor and replace the [CalcRainAlarm] line with the following.
I personally do not recommend using this method.Code: Select all
[CalcRainAlarm] Measure=Calc Formula=@CurrentHumidity IfCondition= CalcRainAlarm > 52 IfTrueAction=[!ActivateConfig "Rain" "Rain.ini"] IfFalseAction=[!DeactivateConfig "Rain"]
Because when there is a skin that can do what you want by itself, it would not be a logical move to trigger it with another skin.
If you share the Rain.ini file I can make it into a single skin for you![]()
You do not have the required permissions to view the files attached to this post.