It is currently June 24th, 2024, 1:14 am

Elementary 1.3 - with weather!

A package of skins with a "theme" or by a single author
TbRiu
Posts: 1
Joined: August 1st, 2012, 11:01 am

Re: Elementary 1.3 - with weather!

Post by TbRiu »

Hello , I am having problems understanding the weather function ... Please explain if I live in Pitesti , Romania ( http://www.wunderground.com/cgi-bin/findweather/getForecast?query=zmw:00000.1.15373 ) what is should I put in the location caption ?
alecsimbo
Posts: 1
Joined: July 9th, 2014, 3:17 pm
Location: United Kingdom

Re: Elementary 1.3 - with weather!

Post by alecsimbo »

I have typed in the code for london on the location setting like so 'location=UKXX0085' now everytime I save the settings and refresh the settings, it doesnt change and the weather has nothing there. Now I'm not entirely sure if i'm supposed to put " at the start and end like so "UKXX0085" or not, but whatever i've tried doesnt want to work, i've also tried restarting my computer but that doesnt work either and i've done gone run out of ideas! Please help! :confused:
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5438
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Elementary 1.3 - with weather!

Post by eclectic-tech »

alecsimbo wrote:I have typed in the code for london on the location setting like so 'location=UKXX0085' now everytime I save the settings and refresh the settings, it doesnt change and the weather has nothing there. Now I'm not entirely sure if i'm supposed to put " at the start and end like so "UKXX0085" or not, but whatever i've tried doesnt want to work, i've also tried restarting my computer but that doesnt work either and i've done gone run out of ideas! Please help! :confused:
The skin uses http://www.wunderground.com which means you should be able to use: location=London%2C%20United Kingdom
Or use the airport code: location=EGLL

I do not use this skin, but this should work based on the previous comments...
Inquisitorr
Posts: 2
Joined: September 15th, 2023, 6:20 am

Re: Elementary 1.3 - with weather!

Post by Inquisitorr »

Hello!
I can't get access to Weather.com.
How can I configure the weather skin to anothrer resource?
User avatar
SilverAzide
Rainmeter Sage
Posts: 2663
Joined: March 23rd, 2015, 5:26 pm

Re: Elementary 1.3 - with weather!

Post by SilverAzide »

Inquisitorr wrote: September 15th, 2023, 7:43 am Hello!
I can't get access to Weather.com.
How can I configure the weather skin to anothrer resource?
There are a million posts asking this same question.
You will need this Weather.com - Parsing the V3 JSON and maybe this Step-by-Step Basic Weather Skin Tutorial.
Gadgets Wiki GitHub More Gadgets...
Inquisitorr
Posts: 2
Joined: September 15th, 2023, 6:20 am

Re: Elementary 1.3 - with weather!

Post by Inquisitorr »

SilverAzide wrote: September 15th, 2023, 12:12 pm There are a million posts asking this same question.
You will need this Weather.com - Parsing the V3 JSON and maybe this Step-by-Step Basic Weather Skin Tutorial.
It doesn't work.
Снимок экрана 2023-09-15 221243.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
xenium
Posts: 872
Joined: January 4th, 2018, 9:52 pm

Re: Elementary 1.3 - with weather!

Post by xenium »

Inquisitorr wrote: September 15th, 2023, 7:16 pm It doesn't work.
Снимок экрана 2023-09-15 221243.jpg
Maybe this is the reason:
https://forum.rainmeter.net/viewtopic.php?t=35770&start=510&hilit=quote+enclose+option#p217386
User avatar
Yincognito
Rainmeter Sage
Posts: 7492
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Elementary 1.3 - with weather!

Post by Yincognito »

Inquisitorr wrote: September 15th, 2023, 7:16 pm It doesn't work.
Снимок экрана 2023-09-15 221243.jpg
If Xenium is right, you can try other sources for weather data, like Yahoo or Foreca. Eclectic-tech made a skin very similar in structure with the one that's getting the weather from Weather.com, but that gets it from Yahoo instead:
https://forum.rainmeter.net/viewtopic.php?t=36479

Since the structure is so similar, the tutorial made by the same author for Weather.com (mentioned by SilverAzide above) can be followed (with some logical differences) to adapt other skins (like yours) to use the above skin's .inc files and get the weather from Yahoo.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
zswobbie1
Posts: 2
Joined: September 18th, 2023, 8:32 am

Re: Elementary 1.3 - with weather!

Post by zswobbie1 »

Hi all,
I'm struggling a bit to add more drives.
It picks up my C: drive & I would like to add my D: as well.
Any help will really be appreciated.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5438
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Elementary 1.3 - with weather!

Post by eclectic-tech »

zswobbie1 wrote: September 18th, 2023, 8:37 am Hi all,
I'm struggling a bit to add more drives.
It picks up my C: drive & I would like to add my D: as well.
Any help will really be appreciated.
The original only shows 1 drive (the drive where Rainmeter is installed).
To add another drive requires editing the 'system-h.ini' and 'system-v.ini' variants AND the common 'shared.inc' files.

Basically, in 'shared.inc' file, duplicate all the variables related to drives and change the keyword of each by adding a '2' to it; Drive=#ProgramDrive# becomes Drive2=D: .

Add these lines to [Variables] section

Code: Select all

...

; Set your hard drive letter here, e.g. "drive=C:", "drive="F:", etc.
; (#PROGRAMDRIVE# is the drive where Rainmeter is installed)
drive2=D:

; Set to '1' to show free RAM, or '0' to show used RAM
showFreeMem2=1

; Set to '1' to show used disk space, or '0' to show free disk space
showUsedDisk2=0

...
Then duplicate any measures related to drive stats and edit all names and references by adding '2' to them.

Add these sections to the 'shared.inc' file

Code: Select all

...

[msrDiskContextString2]
Measure=Calc
Formula=#showUsedDisk2#
Substitute="0":"Switch to used disk","1":"Switch to free disk"

...

[msrDrive2]
Measure=FreeDiskSpace
Drive=#drive2#
InvertMeasure=#showUsedDisk2#
UpdateDivider=10

...
Save the 'shared.inc' file.

In 'system-h.ini' file, duplicate the drive meter and change the meter name to [mtrDrive2]. Change all names of the referenced measures by adding '2' to the names (the same names you added in the 'shared.inc' file for the second drive).

Add this meter right after the original [mtrDrive] section

Code: Select all

[mtrDrive2]
Meter=STRING
MeasureName=msrDrive2
MeterStyle=allString | subString
X=150r
Y=0
Percentual=1
Text="#drive2#\ %1%"


Save the file and refresh the skin.
You should see a new drive letter appear after the original. Do similar edits to 'system-v.ini' to use the new drive variables and measures.

To have the new drive change from used to free space requires editing 'shared.inc' and duplicating the !WriteKeyValue in the ContextAction2 and having it write the variables you added.
ContextAction2=[!WriteKeyValue Variables showUsedDisk (abs(#showUsedDisk#-1)) "#CURRENTPATH#shared.inc"][!WriteKeyValue Variables showUsedDisk2 (abs(#showUsedDisk2#-1)) "#CURRENTPATH#shared.inc"][!Refresh #CURRENTCONFIG#]