It is currently April 19th, 2024, 6:50 am

Weatherbox 1.1

Weather skins
wucaomu
Posts: 2
Joined: December 19th, 2018, 12:46 am

Re: Weatherbox 1.1

Post by wucaomu »

thanks
derari
Posts: 17
Joined: February 24th, 2011, 5:39 pm

Re: Weatherbox 1.1

Post by derari »

There is a bug that will cause this skin to break during 11 PM and 12 AM

In the substituion rule of CurrentLocationTime, the substitions for these two hours will never apply because 1 PM and 2 AM are applied first (eg, 11 PM will be changed to 113)

Code: Select all

Substitute="1 AM":"1","2 AM":"2","3 AM":"3","4 AM":"4","5 AM":"5","6 AM":"6","7 AM":"7","8 AM":"8","9 AM":"9","10 AM":"10","11 AM":"11","12 PM":"12","1 PM":"13","2 PM":"14","3 PM":"15","4 PM":"16","5 PM":"17","6 PM":"18","7 PM":"19","8 PM":"20","9 PM":"21","10 PM":"22","11 PM":"23","12 AM":"24"
One way to fix this is to change the order of the rules

Code: Select all

Substitute="11 PM":"23","11 AM":"11","12 AM":"24","1 AM":"1","2 AM":"2","3 AM":"3","4 AM":"4","5 AM":"5","6 AM":"6","7 AM":"7","8 AM":"8","9 AM":"9","10 AM":"10","12 PM":"12","1 PM":"13","2 PM":"14","3 PM":"15","4 PM":"16","5 PM":"17","6 PM":"18","7 PM":"19","8 PM":"20","9 PM":"21","10 PM":"22"
Otherwise, beautiful skin. Many thanks!

Edit:

Also, in [PaletteAction] for some of the SetVariable commands, the alpha channel is missing in the value, which causes respective errors
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Weatherbox 1.1

Post by balala »

derari wrote: December 20th, 2018, 9:38 pm One way to fix this is to change the order of the rules

Code: Select all

Substitute="11 PM":"23","11 AM":"11","12 AM":"24","1 AM":"1","2 AM":"2","3 AM":"3","4 AM":"4","5 AM":"5","6 AM":"6","7 AM":"7","8 AM":"8","9 AM":"9","10 AM":"10","12 PM":"12","1 PM":"13","2 PM":"14","3 PM":"15","4 PM":"16","5 PM":"17","6 PM":"18","7 PM":"19","8 PM":"20","9 PM":"21","10 PM":"22"
A much better solution would be to use regular expression substitution. For this you have to replace the original substitute option with the following two:

Code: Select all

RegExpSubstitute=1
Substitute="^1 AM$":"1","^2 AM$":"2","^3 AM$":"3","^4 AM$":"4","^5 AM$":"5","^6 AM$":"6","^7 AM$":"7","^8 AM$":"8","^9 AM$":"9","^10 AM$":"10","^11 AM$":"11","^12 PM$":"12","^1 PM$":"13","^2 PM$":"14","^3 PM$":"15","^4 PM$":"16","^5 PM$":"17","^6 PM$":"18","^7 PM$":"19","^8 PM$":"20","^9 PM$":"21","^10 PM$":"22","^11 PM$":"23","^12 AM$":"24"
jpmd69
Posts: 4
Joined: May 27th, 2012, 10:08 am

Re: Weatherbox 1.1

Post by jpmd69 »

Great skin. thanks for the automatic location. really wonderful!!!
Can you add weather icons to the forecast in the next release?
best,
Sasha2k1
Posts: 1
Joined: March 23rd, 2019, 7:38 pm

Re: Weatherbox 1.1

Post by Sasha2k1 »

I was wondering if anyone has encountered this bug. The background is completely blank, it doesn't apply any color to the skin nor is it showing a picture on it. It makes the skin really hard to read and is really straining on the eyes. Anyone got a fix? I'm really clueless as to how to fix it myself. Thanks
ms310
Posts: 225
Joined: April 1st, 2015, 7:16 am

Re: Weatherbox 1.1

Post by ms310 »

balala wrote: December 21st, 2018, 1:12 pm A much better solution would be to use regular expression substitution. For this you have to replace the original substitute option with the following two:

Code: Select all

RegExpSubstitute=1
Substitute="^1 AM$":"1","^2 AM$":"2","^3 AM$":"3","^4 AM$":"4","^5 AM$":"5","^6 AM$":"6","^7 AM$":"7","^8 AM$":"8","^9 AM$":"9","^10 AM$":"10","^11 AM$":"11","^12 PM$":"12","^1 PM$":"13","^2 PM$":"14","^3 PM$":"15","^4 PM$":"16","^5 PM$":"17","^6 PM$":"18","^7 PM$":"19","^8 PM$":"20","^9 PM$":"21","^10 PM$":"22","^11 PM$":"23","^12 AM$":"24"
Hi - I have made this change but everything is not quite working for me. The time at 12:26 returns "13" which is an hour off. Not a huge deal. I am also not getting the color to change no matter how I tweak the numbers.

Does anyone else have this issue? This is a very nice skin I would really like the color to change.

I see the color changing - the 2 colors of blue were too close for me to see. I am still getting "13" for anytime "12:00-12:59".
ms310
Posts: 225
Joined: April 1st, 2015, 7:16 am

Re: Weatherbox 1.1

Post by ms310 »

ms310 wrote: March 28th, 2019, 3:27 am Hi - I have made this change but everything is not quite working for me. The time at 12:26 returns "13" which is an hour off. Not a huge deal. I am also not getting the color to change no matter how I tweak the numbers.

Does anyone else have this issue? This is a very nice skin I would really like the color to change.

I see the color changing - the 2 colors of blue were too close for me to see. I am still getting "13" for anytime "12:00-12:59".
I have found a formula I would like to try, but I am unsure on how to proceed. The formula is this:

Could this be in a Calc Measure that is updated when the time changes - it would return an RGB string variable to be used by the color changing measure. Basically break out the calculation part to be reused by the coloring part:
Nevermind - I went the simple route - I just figured out 6 colors I wanted and added the colors manually to the IfCondition measures.
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Weatherbox 1.1

Post by balala »

After posting replies, then striking them out partially, now I'm not sure if you got it working as intended. Did you?
ms310
Posts: 225
Joined: April 1st, 2015, 7:16 am

Re: Weatherbox 1.1

Post by ms310 »

balala wrote: March 28th, 2019, 5:05 pm After posting replies, then striking them out partially, now I'm not sure if you got it working as intended. Did you?
Sorry - yes, I simply added more IfCondition= and IfTrueAction= sections with specific RGB values for simplicity. I took a look at a formula I found on the web and after some investigation, I didn't like the colors it produced.

I am still getting the time returned as <current time>+1 hour though. So even though it is 8 am and I am getting the number 9 returned with your regex substitution.
User avatar
balala
Rainmeter Sage
Posts: 16144
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Weatherbox 1.1

Post by balala »

ms310 wrote: March 28th, 2019, 11:55 pm Sorry - yes, I simply added more IfCondition= and IfTrueAction= sections with specific RGB values for simplicity. I took a look at a formula I found on the web and after some investigation, I didn't like the colors it produced.
Probably the colors can be easily changed. If you'll post the code (as I ask below) there could be some other solutions too.
ms310 wrote: March 28th, 2019, 11:55 pm I am still getting the time returned as <current time>+1 hour though. So even though it is 8 am and I am getting the number 9 returned with your regex substitution.
Ok, please post the whole code you have, to can check.