<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Ujjwal Gupta</title>
    <description>The latest articles on Forem by Ujjwal Gupta (@slapbot).</description>
    <link>https://forem.com/slapbot</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F408475%2Fbac50c12-deb8-4a56-a01a-8ccf61d35328.jpeg</url>
      <title>Forem: Ujjwal Gupta</title>
      <link>https://forem.com/slapbot</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/slapbot"/>
    <language>en</language>
    <item>
      <title>How to monitor &amp; analyze your windows based system's battery?</title>
      <dc:creator>Ujjwal Gupta</dc:creator>
      <pubDate>Sun, 14 Jun 2020 07:14:19 +0000</pubDate>
      <link>https://forem.com/slapbot/how-to-monitor-analyze-your-windows-based-system-s-battery-1bj6</link>
      <guid>https://forem.com/slapbot/how-to-monitor-analyze-your-windows-based-system-s-battery-1bj6</guid>
      <description>&lt;p&gt;Have you ever wondered about your system's capabilities especially battery capacity, estimated life, recent usages, overall state, etc?&lt;/p&gt;

&lt;p&gt;I did and so I started looking for solutions online and after being completely exhausted by no good product in the market to fulfill my needs. I decided to build a tool called, Powir.&lt;/p&gt;

&lt;p&gt;So, &lt;a href="https://powir.slapbot.me/"&gt;Powir&lt;/a&gt; is a Windows 10 based tool to monitor and analyze your system's power and battery usage.&lt;/p&gt;

&lt;p&gt;It provides you with various information and statistics about the current and overall history of the power and battery usage of your system.&lt;/p&gt;

&lt;p&gt;Powir is &lt;a href="https://github.com/SlapBot/powir/"&gt;100% free and completely open-source&lt;/a&gt; for anyone to download/build and use. :)&lt;/p&gt;

&lt;p&gt;Installation is as simple as running:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -L https://github.com/SlapBot/powir/releases/download/v1.0.2/powir.1.0.2.exe --output powir.exe
./powir
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--BLu68zBZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://github.com/SlapBot/powir/raw/master/demos/gifs/powir-main.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--BLu68zBZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://github.com/SlapBot/powir/raw/master/demos/gifs/powir-main.gif" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There were various reasons behind building this tool such as:&lt;/p&gt;

&lt;p&gt;🔍 Complete lack of any such power/battery monitoring analyzing tool available in the market.&lt;br&gt;
❌ Obscure documentation over how to find battery statuses on the Internet.&lt;br&gt;
😖 Native solution requires running commands from terminal which outputs unclear and not satisfactory reports of the system.&lt;/p&gt;

&lt;p&gt;Hence, I decided to work on this mini-project to help the needs of everyone whether developer or not to get a clear picture of their system's capabilities.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--h_ap2XA---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://github.com/SlapBot/powir/raw/master/demos/processed-screenshots/system-information.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--h_ap2XA---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://github.com/SlapBot/powir/raw/master/demos/processed-screenshots/system-information.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🏃‍♀️ 100% portable app with no installations required: download and run!&lt;br&gt;
🧹 Provides you with a simple and clean UI to list your battery and system information.&lt;br&gt;
🔋 Shows you the trend in battery capacity as well estimate life since the OS was installed.&lt;br&gt;
🧾 Ability to export all the data via various formats: PDF (app), JSON (processed), HTML (original report)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Py2Zh2Id--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://powir.slapbot.me/assets/demos/processed-screenshots/actions.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Py2Zh2Id--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://powir.slapbot.me/assets/demos/processed-screenshots/actions.png" alt=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Installation &amp;amp; Demo: &lt;a href="https://www.youtube.com/watch?v=0nEu4neYHRM"&gt;https://www.youtube.com/watch?v=0nEu4neYHRM&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;If you're looking to build it from the source, inspect the app, or add new features - its extremely simple and you only have to follow few instructions as listed below:&lt;/p&gt;

&lt;h3&gt;
  
  
  Prerequisites
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Git&lt;/li&gt;
&lt;li&gt;Node&lt;/li&gt;
&lt;li&gt;NPM&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Setup
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Clone the repository: &lt;code&gt;git clone https://github.com/SlapBot/powir.git&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Cd into the directory: &lt;code&gt;cd powir&lt;/code&gt; and run: &lt;code&gt;npm install&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Build
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Run &lt;code&gt;npm run build&lt;/code&gt; which will package the app at &lt;code&gt;dist/&lt;/code&gt; folder.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Usage
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Electron App
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Run these two commands in two separate sessions when you are developing in order to use HMR (hot module reloading):

&lt;ul&gt;
&lt;li&gt;Run react server: &lt;code&gt;npm run react-start&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Run electron app: &lt;code&gt;npm run electron-start&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;All of the server code is located at: &lt;code&gt;public/server&lt;/code&gt; directory.&lt;/li&gt;
&lt;li&gt;Entrypoint of the electron app is at&lt;code&gt;public/electron.js&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Everything related to rendering is done at: &lt;code&gt;src&lt;/code&gt; directory.&lt;/li&gt;
&lt;li&gt;Any of the changes you make at src directory will reflect instantly in the app.&lt;/li&gt;
&lt;li&gt;Any of the changes made for server requires the app to be restarted using: &lt;code&gt;npm run electron-start&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  Browser Window App
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Run &lt;code&gt;npm run lite-mode&lt;/code&gt; which opens up a tab in your default browser again with HMR enabled.&lt;/li&gt;
&lt;li&gt;Entrypoint of the browser window app is at&lt;code&gt;public/browser.js&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Everything related to rendering is done at: &lt;code&gt;src&lt;/code&gt; directory.&lt;/li&gt;
&lt;li&gt;Any of the changes you make at src directory will reflect instantly in the app.&lt;/li&gt;
&lt;li&gt;Any of the changes made for server requires the app to be restarted using: &lt;code&gt;npm run lite-mode&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;💖 App is completely open source with all of the documentation available on Github at: &lt;a href="https://github.com/SlapBot/powir/"&gt;https://github.com/SlapBot/powir/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🐤 Follow me on Twitter for more updates or any query: &lt;a href="https://twitter.com/ugupta41"&gt;https://twitter.com/ugupta41&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🚀 Relevant Product Hunt Launch: &lt;a href="https://www.producthunt.com/posts/powir/"&gt;https://www.producthunt.com/posts/powir/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;🥂 Hackernews Discussion: &lt;a href="https://news.ycombinator.com/item?id=23515694"&gt;https://news.ycombinator.com/item?id=23515694&lt;/a&gt;&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>showdev</category>
      <category>javascript</category>
      <category>news</category>
    </item>
  </channel>
</rss>
