It is currently March 23rd, 2019, 1:26 am

Weatherbox 1.1

Post your work-in-progress and completed skins to share and discuss.
wucaomu
Posts: 2
Joined: December 19th, 2018, 12:46 am

Re: Weatherbox 1.1

wucaomu » December 19th, 2018, 1:00 am

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

Re: Weatherbox 1.1

derari » December 20th, 2018, 9:38 pm

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: 7901
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Weatherbox 1.1

balala » December 21st, 2018, 1:12 pm

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

jpmd69 » February 17th, 2019, 6:48 pm

Great skin. thanks for the automatic location. really wonderful!!!
Can you add weather icons to the forecast in the next release?
best,