It is currently March 28th, 2024, 10:12 am

Weather for Date.ini in Basier not working

Get help with creating, editing & fixing problems with skins
Post Reply
Flyingsky99
Posts: 3
Joined: November 14th, 2021, 4:00 pm

Weather for Date.ini in Basier not working

Post by Flyingsky99 »

Hello
i installed a skin for weather and date 'Basier'
i downloaded from this link : https://www.deviantart.com/apexxx-sensei/art/Basier-772341414
but the weather somehow doesn't work ; i wanted to temperature to celsius so i did some editing but now nothing shows in weather except the weather symbol
here is the script

Code: Select all

[Rainmeter]
Update=1000
Author=Flyingsky
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1
MouseScrollUpAction=[!SetVariable Scale "(#Scale#+#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#+#ScrollMouseIncrement#)"][!Refresh] 
MouseScrollDownAction=[!SetVariable Scale "(#Scale#-#ScrollMouseIncrement# < 0.2 ? 0.2 : #Scale#-#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#-#ScrollMouseIncrement# < 0.2 ? 0.2 : #Scale#-#ScrollMouseIncrement#)"][!Refresh]


[Variables]
@include=#@#Variables.inc
@include2=#@#Language\#Language#.inc
Scale=0.55


;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureCurrent]
Measure=Plugin
Plugin=WebParser
UpdateRate=900
Url=https://www.yahoo.com/news/weather/india/kolshet-industry-area/kolshet-industry-area-90889203
RegExp=(?siU)<h1 class="city.*data-reactid="7">(.*)</h1>.*<div class="My\(2px\).*60x60\/(.*)@2x.png.*data-reactid="26">(.*)<.*<span class="Va\(t\)" data-reactid="37">(.*)</span>

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureTempUnit]
Measure=Plugin
Plugin=WebParser
Url=[MeasureCurrent]
StringIndex=1

[MeasureWeatherTemp]
Measure=Plugin
Plugin=WebParser
Url=[MeasureCurrent]
StringIndex=3

[MeasureWeatherCond]
Measure=Plugin
Plugin=WebParser
Url=[MeasureCurrent]
StringIndex=4
Substitute=#Conditions#



;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterBackg]
Meter=Shape
X=0
Y=0
Shape=Rectangle 1,1,(220*#Scale#),(386*#Scale#) | Fill Color #FontColor2# | Stroke Color #FontColor2#,0
UpdateDivider=-1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureTime]
Measure=Time
Format="%#Format#:%M"

[MeasureAMPM]
Measure=Time
Format="%p"

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureDay]
Measure=Time
Format=%A
Substitute=#Date#

[MeasureDate]
Measure=Time
Format=%d

[MeasureMonth]
Measure=Time
Format=%B
Substitute=#Date#

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterDate]
Meter=String
MeasureName=MeasureDate
StringAlign=Center
StringCase=Upper
FontColor=#FontColor3#
FontFace=Ailerons
FontSize=(120*#Scale#)
X=(110*#Scale#)
Y=(90*#Scale#)
Text="%1"
AntiAlias=1

[MeterMonth]
Meter=String
MeasureName=MeasureMonth
StringAlign=Center
StringCase=Upper
FontColor=#FontColor3#
FontFace=Aquatico
FontSize=(20*#Scale#)
X=(110*#Scale#)
Y=(300*#Scale#)
Text="%1"
AntiAlias=1


;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterCurrentCond]
Meter=String
MeasureName=MeasureWeatherCond
MeasureName2=MeasureWeatherTemp
MeasureName3=MeasureTempUnit
StringAlign=Left
FontColor=#FontColor#
FontFace=Aquatico
FontSize=(23*#Scale#)
X=(250*#Scale#)
Y=(35*#Scale#)
Text="%1° %2 #CRLF#%3"
AntiAlias=1
Last edited by eclectic-tech on November 14th, 2021, 4:44 pm, edited 2 times in total.
Reason: Please use the code tag </> when posting long codes.
User avatar
CyberTheWorm
Posts: 860
Joined: August 22nd, 2016, 11:32 pm
Location: Surrey, B.C., Canada

Re: Weather for Date.ini in Basier not working

Post by CyberTheWorm »

I think you are going to have to get the Author to fix it. The weather skin is using the old format for weather data. See this post https://forum.rainmeter.net/viewtopic.php?t=35770
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5380
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA
Contact:

Re: Weather for Date.ini in Basier not working

Post by eclectic-tech »

ApexXx-SenSei no longer supports these packages. :x

You can get it working by copying the WeatherComJSON files to the 'Skins\Basier\@Resources' folder.

Replace 'Skins\Basier\Info\Info.ini' with this code.

Code: Select all

[Rainmeter]
Update=1000
Author=Connect-R
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1
MouseScrollUpAction=[!SetVariable Scale "(#Scale#+#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#+#ScrollMouseIncrement#)"][!Refresh]
MouseScrollDownAction=[!SetVariable Scale "(#Scale#-#ScrollMouseIncrement# < 0.2 ? 0.2 : #Scale#-#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#-#ScrollMouseIncrement# < 0.2 ? 0.2 : #Scale#-#ScrollMouseIncrement#)"][!Refresh]

[Variables]
@include=#@#Variables.inc
@include2=#@#Language\#Language#.inc
@include3=#@#WeatherComJSONVariables.inc
@include4=#@#WeatherComJSONMeasures3Day.inc

Scale=0.3

;-------------------------------------------------------------
;-------------------------------------------------------------

; [Measure2Days]
; Measure=Plugin
; Plugin=WebParser
; UpdateRate=900
; URL=https://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#&dayf=2
; RegExp=(?siU).*<day d="1" t="(.*)".*<hi>(.*)</hi>.*<low>(.*)</low>.*<icon>(.*)</icon>.*<t>(.*)</t>.*


;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureDay1Hi]
Measure=String
String=[@ForecastDay2HighTemperature]
DynamicVariables=1

[MeasureDay1Low]
Measure=String
String=[@ForecastDay2LowTemperature]
DynamicVariables=1

[MeasureDay1Icon]
Measure=String
String=[@ForecastDay2DayIcon]
DynamicVariables=1

[MeasureDay1Desc]
Measure=String
String=[@ForecastDay2DayConditionsShort]
DynamicVariables=1
Substitute=#Conditions#

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasurePlayer]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=TITLE

[MeasureArtist]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=ARTIST
Substitute="":"n/a"

[MeasureTitle]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=TITLE
Substitute="":"n/a"

[MeasureAlbum]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=ALBUM
Substitute="":"n/a"

[MeasureDuration]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=DURATION

[MeasurePosition]
Measure=Plugin
Plugin=NowPlaying.dll
PlayerName=#Player#
PlayerType=POSITION

[MeasureMinutesRemaining]
Measure=Calc
Formula=Trunc((MeasureDuration - MeasurePosition)/60)
RegExpSubstitute=1
Substitute="^(.)$":"0\1"

[MeasureSecondsRemaining]
Measure=Calc
Formula=((MeasureDuration - MeasurePosition) % 60)
RegExpSubstitute=1
Substitute="^(.)$":"0\1"

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureTimeOfDay]
Measure=Time
Format="%H"
Substitute=#TimeOfDay#

[MeasureReminder]
Measure=Time
Format="%H"
Substitute=#WishReminder#

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureHours]
Measure=Time
Format=%H

[MeasureMinutes]
Measure=Time
Format=%M

[MeasureSeconds]
Measure=Time
Format=%S

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureTotalSeconds]
Measure=Calc
Formula=(MeasureHours*3600)+(MeasureMinutes*60)+(MeasureSeconds)

[MeasureInPercent]
Measure=Calc
Formula=(MeasureTotalSeconds/86400)

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterLine]
Meter=Shape
X=(0*#Scale#)
Y=(250*#Scale#)
Shape=Rectangle 0,0,(1000*#Scale#),(2*#Scale#) | StrokeColor #FontColor2#,0 | Fill Color #FontColor2#
UpdateDivider=-1

[MeterLine2]
Meter=Shape
X=(0*#Scale#)
Y=(650*#Scale#)
Shape=Rectangle 0,0,(1000*#Scale#),(2*#Scale#) | StrokeColor #FontColor2#,0 | Fill Color #FontColor2#
UpdateDivider=-1

[MeterLine3]
Meter=Shape
X=(0*#Scale#)
Y=(1050*#Scale#)
Shape=Rectangle 0,0,(1000*#Scale#),(2*#Scale#) | StrokeColor #FontColor2#,0 | Fill Color #FontColor2#
UpdateDivider=-1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterMessage]
Meter=String
MeasureName=MeasureTimeOfDay
MeasureName2=MeasureReminder
MeasureName3=MeasureInPercent
StringAlign=Center
FontColor=#FontColor2#
FontFace=Roboto
FontSize=(35*#Scale#)
X=(480*#Scale#)
Y=(0*#Scale#)
W=(1000*#Scale#)
H=(300*#Scale#)
Text="%1, #UserName#.#CRLF#%2#CRLF#%3 % #of the day has passed#"
InlinePattern="[MeasureTimeOfDay]"
InlineSetting=Color | #FontColor2#,160
AntiAlias=1
NumOfDecimals=2
Percentual=1
ClipString=1
DynamicVariables=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterDay1DIcon]
Meter=Image
MeasureName=MeasureDay1Icon
ImagePath=#@#weatherIcons
X=(370*#Scale#)
Y=(280*#Scale#)
W=(200*#Scale#)
AntiAlias=1
ImageTint=#FontColor2#,160

[MeterTomorrowText]
Meter=String
StringAlign=Center
FontColor=#FontColor2#
FontFace=Roboto
FontSize=(30*#Scale#)
X=(480*#Scale#)
Y=(430*#Scale#)
Text="#Tomorrow#"
AntiAlias=1
UpdateDivider=-1

[MeterDay1LowHigh]
Meter=String
MeasureName=MeasureDay1Low
MeasureName2=MeasureDay1Hi
StringAlign=Center
FontColor=#FontColor2#
FontFace=Roboto
FontSize=(30*#Scale#)
X=(480*#Scale#)
Y=(50*#Scale#)r
Text="%1° ~ %2°"
AntiAlias=1

[MeterDay1Description]
Meter=String
MeasureName=MeasureDay1Desc
StringAlign=Center
FontColor=#FontColor2#
FontFace=Roboto
FontSize=(30*#Scale#)
X=(480*#Scale#)
Y=(50*#Scale#)r
W=(1000*#Scale#)
H=(300*#Scale#)
Text="%1"
AntiAlias=1
ClipString=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterArtist]
Meter=String
MeasureName=MeasureArtist
MeasureName2=MeasureTitle
MeasureName3=MeasureAlbum
MeasureName4=MeasureDuration
MeasureName5=MeasureMinutesRemaining
MeasureName6=MeasureSecondsRemaining
StringAlign=Center
FontColor=#FontColor2#
FontFace=Roboto
FontSize=(35*#Scale#)
X=(480*#Scale#)
Y=(740*#Scale#)
W=(1000*#Scale#)
Text="%1#CRLF#%2#CRLF#%3#CRLF#%4 - %5:%6"
InlinePattern="[MeasureArtist]"
InlineSetting=Color | #FontColor2#,160
AntiAlias=1
ClipString=1
DynamicVariables=1
'
Refresh All
' in Rainmeter dialog or restart.

Load the 'Basier\Info\Info.ini' skin and it will work.
basierInfo.png
Date.ini Fix
Copy the WeatherComJSON files to 'Skins\Basier\@Resources' folder (if you haven't already done that).
Edit 'Skins\Basier\Date\Date.ini' skin.
Replace just the [Variables] section and Webparser measures with this section of code

Code: Select all

[Variables]
@include=#@#Variables.inc
@include2=#@#Language\#Language#.inc
@include3=#@#WeatherComJSONVariables.inc
@include4=#@#WeatherComJSONMeasures3Day.inc
Scale=0.5


;-------------------------------------------------------------
;-------------------------------------------------------------

; [MeasureCurrent]
; Measure=Plugin
; Plugin=WebParser.dll
; UpdateRate=900
; Url=http://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#
; RegExp="(?siU)<head>.*<ut>(.*)</ut>.*<dnam>(.*),.*</dnam>.*<tmp>(.*)</tmp>.*<t>(.*)</t>"

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureTempUnit]
Measure=String
String=[@UnitsTemperature]
DynamicVariables=1

[MeasureWeatherTemp]
Measure=String
String=[@CurrentTemperature]
DynamicVariables=1

[MeasureWeatherCond]
Measure=String
String=[@CurrentConditions]
DynamicVariables=1
Substitute=#Conditions#

Then save the file and refresh.
basierDate.png
NOTE: Follow the instructions in @Resources\WeatherComJSONVariables.inc file to set your Latitude and Longitude values to see weather for your location.
Flyingsky99
Posts: 3
Joined: November 14th, 2021, 4:00 pm

Re: Weather for Date.ini in Basier not working

Post by Flyingsky99 »

Imagei did all all you said but now it just shows this
now what do i do ?
it basically only shows C and F
instead of weather
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5380
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA
Contact:

Re: Weather for Date.ini in Basier not working

Post by eclectic-tech »

Flyingsky99 wrote: November 15th, 2021, 1:31 pm Imagei did all all you said but now it just shows this
now what do i do ?
it basically only shows C and F
instead of weather
Hmm... then you did something different. If you copied all the 'WeatherComJSON...' files to 'Basier\@Resources', made the suggested changes, saved the file, and refresh Rainmeter, it should work.

Post the code you now have for the 'Basier\Date\Date.ini' file here and we can check the changes you made.
User avatar
CodeCode
Posts: 1363
Joined: September 7th, 2020, 2:24 pm
Location: QLD, Australia

Re: Weather for Date.ini in Basier not working

Post by CodeCode »

Flyingsky99 wrote: November 15th, 2021, 1:31 pm Imagei did all all you said but now it just shows this
now what do i do ?
it basically only shows C and F
instead of weather
You have to attach the image with the attachments tab below the post edit window.
Click add, navigate to you picture, the place inline according to where your cursor last was in the edit window.
Flyingsky99
Posts: 3
Joined: November 14th, 2021, 4:00 pm

Re: Weather for Date.ini in Basier not working

Post by Flyingsky99 »

ohh really sorry i think it was my mistake
when i tried to set latitude and longitudes , i just put them in[MeasureTempUnit][MeasureWeatherTemp][MeasureWeatherCond]

(i didnt get where to set location ) i read the weatherjsonvariables but didnt get where to put these
and i still dont get it

Code: Select all

[Variables]
@include=#@#Variables.inc
@include2=#@#Language\#Language#.inc
@include3=#@#WeatherComJSONVariables.inc
@include4=#@#WeatherComJSONMeasures3Day.inc
Scale=0.5


;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureCurrent]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=900
Url=http://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#
RegExp="(?siU)<head>.*<ut>(.*)</ut>.*<dnam>(.*),.*</dnam>.*<tmp>(.*)</tmp>.*<t>(.*)</t>"

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureTempUnit]
Measure=String
String=[@UnitsTemperature]
DynamicVariables=1
Latitude=19.2385
Longitude=72.9926

[MeasureWeatherTemp]
Measure=String
String=[@CurrentTemperature]
DynamicVariables=1
Latitude=19.2385
Longitude=72.9926

[MeasureWeatherCond]
Measure=String
String=[@CurrentConditions]
DynamicVariables=1
Substitute=#Conditions#
Latitude=19.2385
Longitude=72.9926

User avatar
eclectic-tech
Rainmeter Sage
Posts: 5380
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA
Contact:

Re: Weather for Date.ini in Basier not working

Post by eclectic-tech »

The Latitude and Longitude values are in 'Skins\Basier\@Resources\WeathrComVariables.inc' file.
Open that file in an editor and change them to your values. Save that file refresh the Basier file.

That file is included as '@include3=' in the modified code I posted.

In the code you posted, besides adding those variables lines in sections where they will not work, you also removed the semicolons from the obsolete Webparser measure. Semicolons told Rainmeter not to act on those lines.

Here is the entire working 'Basier\Date\Date.ini' code:

Code: Select all

[Rainmeter]
Update=1000
Author=Connect-R
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
AccurateText=1
MouseScrollUpAction=[!SetVariable Scale "(#Scale#+#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#+#ScrollMouseIncrement#)"][!Refresh] 
MouseScrollDownAction=[!SetVariable Scale "(#Scale#-#ScrollMouseIncrement# < 0.2 ? 0.2 : #Scale#-#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#-#ScrollMouseIncrement# < 0.2 ? 0.2 : #Scale#-#ScrollMouseIncrement#)"][!Refresh]


[Variables]
@include=#@#Variables.inc
@include2=#@#Language\#Language#.inc
@include3=#@#WeatherComJSONVariables.inc
@include4=#@#WeatherComJSONMeasures3Day.inc
Scale=0.5


;-------------------------------------------------------------
;-------------------------------------------------------------


[MeasureTempUnit]
Measure=String
String=[@UnitsTemperature]
DynamicVariables=1

[MeasureWeatherTemp]
Measure=String
String=[@CurrentTemperature]
DynamicVariables=1

[MeasureWeatherCond]
Measure=String
String=[@CurrentConditions]
DynamicVariables=1
Substitute=#Conditions#

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterBackg]
Meter=Shape
X=0
Y=0
Shape=Rectangle 1,1,(220*#Scale#),(350*#Scale#) | Fill Color #FontColor2# | Stroke Color #FontColor2#,0
UpdateDivider=-1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureTime]
Measure=Time
Format="%#Format#:%M"

[MeasureAMPM]
Measure=Time
Format="%p"

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureDay]
Measure=Time
Format=%A
Substitute=#Date#

[MeasureDate]
Measure=Time
Format=%d

[MeasureMonth]
Measure=Time
Format=%B
Substitute=#Date#

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterDate]
Meter=String
MeasureName=MeasureDate
StringAlign=Center
StringCase=Upper
FontColor=#FontColor3#
FontFace=Roboto Light
FontSize=(80*#Scale#)
X=(110*#Scale#)
Y=(150*#Scale#)
Text="%1"
AntiAlias=1

[MeterMonth]
Meter=String
MeasureName=MeasureMonth
StringAlign=Center
StringCase=Upper
FontColor=#FontColor3#
FontFace=Roboto Light
FontSize=(18*#Scale#)
X=(110*#Scale#)
Y=(280*#Scale#)
Text="%1"
AntiAlias=1

[MeterDay]
Meter=String
MeasureName=MeasureDay
StringAlign=Left
FontColor=#FontColor#
FontFace=Roboto Light
FontSize=(20*#Scale#)
X=(250*#Scale#)
Y=(250*#Scale#)
Text="%1"
AntiAlias=1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterCurrentCond]
Meter=String
MeasureName=MeasureWeatherCond
MeasureName2=MeasureWeatherTemp
MeasureName3=MeasureTempUnit
StringAlign=Left
FontColor=#FontColor#
FontFace=Roboto Light
FontSize=(20*#Scale#)
X=(250*#Scale#)
Y=(280*#Scale#)
Text="%1 %2 °%3"
AntiAlias=1
Post Reply