Skip to content

Commit

Permalink
I Forgor What Did i Change
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherzhafif committed Oct 4, 2022
1 parent f005f6a commit 05ea10d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 26 deletions.
20 changes: 20 additions & 0 deletions App.config
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,26 @@
<add key="Tualan Hulu" value="https://www.windy.com/-1.867/112.774/meteogram?gfs,-1.969,112.774,11,m:dB2aji6"/>
<add key="Kuala Pembuang" value="https://www.windy.com/-3.387/112.543/meteogram?gfs,-4.207,112.544,8,m:dzwajiJ"/>
<add key="Seruyan Hilir" value="https://www.windy.com/-3.254/112.434/meteogram?gfs,-3.459,112.434,10,m:dzJajiy"/>

<add key="0" value="Baamang"/>
<add key="1" value="Antang Kalang"/>
<add key="2" value="Bukit Sentuai"/>
<add key="3" value="Cempaga"/>
<add key="4" value="Cempaga Hulu"/>
<add key="5" value="Kota Besi"/>
<add key="6" value="Mentawa Baru Ketapang"/>
<add key="7" value="Mentaya Hilir Selatan"/>
<add key="8" value="Mentaya Hilir Utara"/>
<add key="9" value="Mentaya Hulu"/>
<add key="10" value="Parenggean"/>
<add key="11" value="Pulau Hanaut"/>
<add key="12" value="Seranau"/>
<add key="13" value="Telaga Antang"/>
<add key="14" value="Telawang"/>
<add key="15" value="Teluk Sampit"/>
<add key="16" value="Tualan Hulu"/>
<add key="17" value="Kuala Pembuang"/>
<add key="18" value="Seruyan Hilir"/>


<add key="Save Location" value="Saved\\"/>
Expand Down
29 changes: 3 additions & 26 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,29 +168,6 @@ private static void CaptureWebPage()
GetSetting("Kuala Pembuang"),
GetSetting("Seruyan Hilir")
};

string[] Names = new string[]
{
"Baamang",
"Antang Kalang",
"Bukit Sentuai",
"Cempaga",
"Cempaga Hulu",
"Kota Besi",
"Mentawa Baru Ketapang",
"Mentaya Hilir Selatan",
"Mentaya Hilir Utara",
"Mentaya Hulu",
"Parenggean",
"Pulau Hanaut",
"Seranau",
"Telaga Antang",
"Telawang",
"Teluk Sampit",
"Tualan Hulu",
"Kuala Pembuang",
"Seruyan Hilir"
};

Console.WriteLine("");
Console.WriteLine("Sedang Menghidupkan Bot Aplikasinya ...", Console.ForegroundColor = ConsoleColor.Yellow);
Expand All @@ -202,7 +179,7 @@ private static void CaptureWebPage()
for (int i = 0; i < Links.Count(); i++)
{
Console.WriteLine("");
Console.WriteLine("Sedang Memproses Tampilan Cuaca " + Names[i], Console.ForegroundColor = ConsoleColor.White);
Console.WriteLine("Sedang Memproses Tampilan Cuaca " + GetSetting(i.ToString()), Console.ForegroundColor = ConsoleColor.White);


driver.Navigate().GoToUrl(Links[i]);
Expand All @@ -212,9 +189,9 @@ private static void CaptureWebPage()
wait.Until(ExpectedConditions.ElementIsVisible(By.TagName("img")));
Thread.Sleep(10000);
Screenshot screenshot = screenshotDriver.GetScreenshot();
screenshot.SaveAsFile(GetSetting(dir) + dir + "\\" + Names[i] + ".png");
screenshot.SaveAsFile(GetSetting(dir) + dir + "\\" + GetSetting(i.ToString()) + ".png");

Console.WriteLine(Names[i] + " Telah Berhasil di Save");
Console.WriteLine(GetSetting(i.ToString()) + " Telah Berhasil di Save");
Console.WriteLine("");
}

Expand Down
Binary file modified WAS Installer.msi
Binary file not shown.

0 comments on commit 05ea10d

Please sign in to comment.