It is currently October 26th, 2021, 7:04 pm

Covid-19 Remake

RSS, ATOM and other feeds, GMail, Stocks, any information retrieved from the internet
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: Covid-19 Remake

Post by mak_kawa »

United States is definitely suported by the worldometers.
So, you have to modify Country=netherlands in the [Variables] section of CoronaCounter-Remake.ini to Country=us, and refresh the skin.
User avatar
JonPeyton
Posts: 8
Joined: November 3rd, 2015, 1:39 am
Location: Tennessee

Re: Covid-19 Remake

Post by JonPeyton »

Thank you much
Great skin BTW :D
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: Covid-19 Remake

Post by mak_kawa »

I didn't know it... sorry JonPeyton, for my wrong guess.
iQeem
Posts: 1
Joined: May 2nd, 2020, 1:41 pm

Re: Covid-19 Remake

Post by iQeem »

hye..how do i change the measureupdate time? its different from my time zone
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: Covid-19 Remake

Post by mak_kawa »

Hi iQeem

I suppose that you want to display Update time as your local time? If so...

The update time of the virusncov.com seems to be shown in the time zone of +7 (of SE Asia?). To convert it to your local time, your time zone value is needed.
Sample code for Netherland is as follows. You can integrate this code to your skin, but take care of the consistency especially in measure name.

Code: Select all

[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=192,192,192,192

[Variables]
Country=netherlands
tZone=0
LocalTimeName=CEST

[MeasureOverall]
Measure=WebParser
URL=https://virusncov.com/covid-statistics/#Country#/
RegExp=(?siU)<i class="recordLed live">.*<small>(.*)</small>.*Total Cases: <strong>(.*)</strong>.*<strong class="red-text">(.*)</strong>.*<strong class="red-text">(.*)</strong>.*Deaths/ Total Cases: (.*)</small>.*<strong class="green-text">(.*)</strong>.*Recovered/ Total Cases: (.*)</small>

[MeasureUpdated]
Measure=WebParser
URL=[MeasureOverall]
StringIndex=1
Substitute="":"Updating...","Last updated:":""," UTC+7":""

[UpdateTime]
Measure=Time
TimeStamp=[MeasureUpdated]
TimeStampFormat=%Y-%m-%d %H:%M:%S
DynamicVariables=1

[UpdateWindowsTime]
Measure=Calc
Formula=([UpdateTime:Timestamp]+((#tZone#-7)*60*60))
DynamicVariables=1

[ConvertUpdateTime]
Measure=Time
TimeStamp=[UpdateWindowsTime]
Format=%Y-%m-%d %H:%M:%S #LocalTimeName#
DynamicVariables=1

[MeterUpdated]
Meter=String
MeasureName=MeasureUpdated
MeasureName2=ConvertUpdateTime
Text=%1#CRLF#%2