It is currently April 27th, 2024, 8:51 pm

Help with WeatherUnderground skin?

Get help with creating, editing & fixing problems with skins
User avatar
haibusa2005
Posts: 52
Joined: June 15th, 2011, 7:23 pm
Location: Bulgaria, Varna

Re: Help with WeatherUnderground skin?

Post by haibusa2005 »

Everything seems ok, but keep in mind that regexp must be strictly chronological - for example, if you have string A and String B you must parse string A first and then string B. It doesn't work in reverse order. Please post your full webpage code so we can build a working expression.
User avatar
haibusa2005
Posts: 52
Joined: June 15th, 2011, 7:23 pm
Location: Bulgaria, Varna

Re: Help with WeatherUnderground skin?

Post by haibusa2005 »

Do you need only the strings that are listed in your first post or you need additional values?
User avatar
Mordasius
Posts: 1173
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: Help with WeatherUnderground skin?

Post by Mordasius »

The only problem was that you had ," instead of ", or just " as the end point of collecting the "icon" information. Using:

Code: Select all

RegExp="(?siU).*"full":"(.*)",.*Last Updated on (.*), (.*) (.*)",.*"weather":"(.*)",.*"temp_f":(.*),.*"relative_humidity":"(.*)",.*"wind_dir":"(.*)",.*"wind_mph":(.*),.*"UV":"(.*)",.*"icon":"(.*)".*"
should give you:

01=> Dunbar, WV
02=> August 13
03=> 2:20
04=> PM EDT
05=> Scattered Clouds
06=> 84
07=> 39%
08=> NW
09=> 0
10=> 9
11=> partlycloudy

Grab a copy of the Rainmeter Regular Expression tester to help you modify the RegExp to get any other information.
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Help with WeatherUnderground skin?

Post by MerlinTheRed »

Just for clarification. What you are doing is creating a skin, or config, not a plugin. A plugin in Rainmeter terminology is a .dll file that implements the Rainmeter API so it is available to be used in a Measure=Plugin measure.

As you have guessed, it might be extremely helpful if you post the code of your skin here. Please make sure to include all relevant files. If it is more than one or two files you might want to pack the whole skin into a zip instead. You can upload it as an attachment here.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!