<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Abdul Ghani]]></title><description><![CDATA[A Passionate Software Engineer, Tech geek and a Blogger. I love building software that solves real-world problems and adds value to society through technology ⚡]]></description><link>https://blog.abdulghani.tech</link><generator>RSS for Node</generator><lastBuildDate>Tue, 17 Nov 2026 07:22:02 GMT</lastBuildDate><atom:link href="https://blog.abdulghani.tech/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Building a Mac menu bar app for my Panasonic AC: MQTT, a Wi-Fi mystery and shipping outside the App Store]]></title><description><![CDATA[How I built a Mac menu bar app for Panasonic MirAIe ACs: MQTT, the AC Wi-Fi drop-outs it diagnosed, and shipping outside the App Store.]]></description><link>https://blog.abdulghani.tech/building-hawadaar-mac-menu-bar-app-panasonic-miraie-ac</link><guid isPermaLink="true">https://blog.abdulghani.tech/building-hawadaar-mac-menu-bar-app-panasonic-miraie-ac</guid><category><![CDATA[Swift]]></category><category><![CDATA[SwiftUI]]></category><category><![CDATA[macOS]]></category><category><![CDATA[mqtt]]></category><category><![CDATA[iot]]></category><category><![CDATA[Open Source]]></category><dc:creator><![CDATA[Abdul Ghani]]></dc:creator><pubDate>Wed, 14 Oct 2026 11:17:52 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/5f8914abd7dc0b17a97a18ea/086c3067-7ac1-452c-8634-867aa598bb87.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>I have Panasonic air conditioners at home that can only be controlled two ways: a remote that is never where I left it, or the MirAIe app on my phone. I spend most of my day on a Mac, so I wanted the AC one click away in the menu bar.</p>
<p>That turned into <a href="https://abdulghani.tech/hawadaar">Hawadaar</a>, a free, open-source macOS menu bar app for Panasonic MirAIe ACs. <em>Hawadaar</em> (ہوادار) is Urdu for "airy, well-ventilated". This post covers how it works, the Wi-Fi problem it helped me diagnose, and the parts of shipping a Mac app outside the App Store that took longer than the app itself.</p>
<p><img src="https://abdulghani.tech/hawadaar/hero.png" alt="Hawadaar's panel open below its menu bar icon" /></p>
<h2>How a MirAIe AC is actually controlled</h2>
<p>My first assumption was that the AC exposes something on the local network that I could talk to directly. It doesn't. A MirAIe AC's Wi-Fi module keeps an outbound connection to Panasonic's cloud, and everything, including the phone app, goes through that cloud.</p>
<p>The community had already worked out the protocol (credit to <a href="https://github.com/rkzofficial/miraie-ac">rkzofficial/miraie-ac</a> and <a href="https://github.com/selvakk2k/miraie-ac-in">selvakk2k/miraie-ac-in</a>). It has two parts:</p>
<ol>
<li><strong>REST for setup.</strong> Sign in at <code>auth.miraie.in</code> with your MirAIe mobile number (or email) and password to get an access token, then fetch your homes and devices. Each device comes with an MQTT topic prefix.</li>
<li><strong>MQTT for everything live.</strong> Connect to <code>mqtt.miraie.in:8883</code> over TLS, with the home ID as the username and the access token as the password. Then:<ul>
<li>subscribe to <code>{topic}/status</code> for state changes</li>
<li>subscribe to <code>{topic}/connectionStatus</code> for online/offline events</li>
<li>publish commands to <code>{topic}/control</code></li>
</ul>
</li>
</ol>
<p>Commands are tiny JSON documents. Every command carries the same three protocol fields plus whatever you want to change:</p>
<pre><code class="language-json">{ "ki": 1, "cnt": "an", "sid": "1", "acvs": 3 }
</code></pre>
<p>That one points the vertical louver to position 3. <code>ps</code> is power, <code>actmp</code> the setpoint (as a string), <code>acmd</code> the mode, <code>acfs</code> the fan speed, and so on. The status messages use the same keys, so the app keeps one dictionary per AC and merges every status message into it.</p>
<p>There was one trap in the status data. On firmware 3.02 and later, room temperature (<code>rmtmp</code>) is packed as <code>"&lt;fraction × 256&gt;.&lt;whole degrees&gt;"</code>. A value of <code>"43.28"</code> means 28 + 43/256 ≈ 28.2 °C, not 43.28 °C. My Hall AC showed 43 °C until I noticed.</p>
<h2>A dependency-free MQTT client</h2>
<p>I wanted the app small and auditable, so instead of pulling in an MQTT library I wrote the subset I needed: CONNECT, SUBSCRIBE, PUBLISH at QoS 0, PINGREQ and DISCONNECT, on top of Apple's Network framework, which handles TLS.</p>
<p>The encoding side is short. The only fiddly part of MQTT framing is the "remaining length", a variable-length integer:</p>
<pre><code class="language-swift">static func packet(_ header: UInt8, _ body: Data) -&gt; Data {
    var data = Data([header])
    var length = body.count
    repeat {
        var byte = UInt8(length % 128)
        length /= 128
        if length &gt; 0 { byte |= 0x80 }
        data.append(byte)
    } while length &gt; 0
    return data + body
}
</code></pre>
<p>The decoding side matters more, because TCP gives you a byte stream, not messages. A single read can contain half a packet, or three packets and a bit. The decoder keeps a buffer and only emits a packet once the whole frame has arrived. The unit test I trust most feeds the decoder one byte at a time:</p>
<pre><code class="language-swift">var packets: [MQTTPacket.Incoming] = []
for byte in stream { packets += decoder.append(Data([byte])) }
#expect(packets == [.connAck(returnCode: 0), .publish(topic: "x", payload: Data("hi".utf8)), .pingResponse])
</code></pre>
<p>Two real-world details came out of testing on laptops:</p>
<ul>
<li><strong>Sleep kills connections silently.</strong> After a MacBook wakes, the TCP connection can look alive while nothing comes through, so the app showed "Live" while commands went nowhere. The client now tracks when it last heard from the broker, and if a keep-alive period passes with no ping response, it drops the connection and reconnects. The app also signs in again and reloads every AC's status on wake.</li>
<li><strong>Tokens expire.</strong> When the broker refuses the connection (CONNACK codes 4 or 5), the app signs in again before reconnecting.</li>
</ul>
<p>The result is under 1 MB with no third-party code, and the protocol layer (<code>HawadaarCore</code>) has its own unit tests, run on every push with GitHub Actions.</p>
<h2>The Wi-Fi mystery</h2>
<p>Part of the motivation for all this was that one AC, the one in my bedroom, kept going "offline" in the MirAIe app. The Wi-Fi light on the indoor unit would switch off, and it would come back on its own a few minutes later.</p>
<p>I have a fairly standard home setup: a router plus three wired mesh access points, one per floor. I'd already tried what you'd expect. I pinned the AC to the access point in my room, forced it onto 2.4 GHz, tried the guest network and turned off mesh roaming for it. The access point's app rated the AC's signal "Strong" and the interference scan said "Perfect". The drops continued.</p>
<h3>Measuring instead of guessing</h3>
<p>So I left a small monitor running overnight that pinged, every two seconds:</p>
<ul>
<li>the AC</li>
<li>the router</li>
<li>a public DNS server, to stand in for the internet</li>
<li>Panasonic's MQTT broker</li>
</ul>
<p>It logged only state changes. The overnight log said:</p>
<pre><code class="language-text">01:16:00 ac DOWN (3 missed pings)
01:16:17 ac UP again (was down 17s)
01:17:07 ac DOWN (3 missed pings)
...
01:20:09 ac UP again (was down 2s)
</code></pre>
<p>That was five short drops in four minutes, then calm. The router, the internet and Panasonic's broker never dropped. That ruled out the ISP and the cloud: the problem was the wireless link between that one AC and the access point a foot away from it.</p>
<h3>The number that explained it</h3>
<p>Then the MQTT status messages gave me something I hadn't asked for: each AC reports its own Wi-Fi signal strength, <code>rssi</code>.</p>
<table>
<thead>
<tr>
<th>AC</th>
<th>Signal it reports</th>
</tr>
</thead>
<tbody><tr>
<td>Office</td>
<td>−41 dBm</td>
</tr>
<tr>
<td>Hall</td>
<td>−42 dBm</td>
</tr>
<tr>
<td><strong>Bedroom</strong></td>
<td><strong>−83 to −88 dBm</strong></td>
</tr>
</tbody></table>
<p>At about −85 dBm, a Wi-Fi link is at the edge of usable, and that AC sits about a foot from its access point. A healthy radio at that distance should be in the −30s.</p>
<p>It also explained the contradiction with the access point's "Strong" rating. The access point measures how well <strong>it</strong> hears the AC, and its antennas are good. The RSSI the AC reports is how well <strong>the AC</strong> hears the access point. A transmitter that works and a receiver that barely does points to the AC's Wi-Fi module itself, a weak radio or a loose antenna connection, not to the network I'd spent evenings tuning. None of my router changes could have fixed it.</p>
<p>Hawadaar now shows that number in the panel footer, turns it orange below −75 dBm, and logs every online/offline event from the cloud to <code>~/Library/Logs/Hawadaar.log</code>. It's the evidence I'd want in hand before booking a service visit.</p>
<h2>Shipping a Mac app outside the App Store</h2>
<p>Writing the app took less time than making it behave on other people's Macs. None of these problems show up while you're developing on your own machine.</p>
<h3>Gatekeeper and the first launch</h3>
<p>Without a paid Apple Developer ID, an app downloaded in a browser is quarantined. On macOS 15 the old right-click → Open trick is gone: users see "Apple could not verify Hawadaar" with only <em>Done</em> or <em>Move to Bin</em>, and have to go to <strong>System Settings → Privacy &amp; Security → Open Anyway</strong>. I can't fix that without notarization, so the README and the release notes walk through it step by step for each macOS version.</p>
<h3>"I opened it and nothing happened"</h3>
<p>A menu bar app has no window and no Dock icon. On a MacBook with a notch and a full menu bar, macOS silently hides extra icons behind the notch. My first tester, me on my other MacBook, saw nothing at all after launching it.</p>
<p>The fix had two parts:</p>
<ul>
<li><strong>A first-launch window</strong> that says where the app lives. It checks whether the status item is actually on screen, and if it isn't, explains the notch.</li>
<li><strong>A fallback for reopening:</strong> opening the app again while it's running shows the full controls in a normal window whenever the icon is hidden.</li>
</ul>
<h3><code>MenuBarExtra</code> looks different on newer macOS</h3>
<p>I started with SwiftUI's <code>MenuBarExtra</code>, which is the obvious choice. On a newer macOS release it gained a translucent glass frame above my content, an empty strip I couldn't remove from SwiftUI, because it wasn't part of my view. I replaced it with an AppKit <code>NSStatusItem</code> and a borderless <code>NSPanel</code> that I position, size and dismiss myself. That's more code, but every macOS version now draws exactly the same pixels.</p>
<h3>Keychain prompts after every update</h3>
<p>I sign builds with a self-signed certificate, hoping the Keychain would treat each new build as the same app. It doesn't: without a Developer ID, the Keychain ties access to the exact build, so after an update users approve one password prompt. It's a small cost, but worth knowing before you promise "seamless updates".</p>
<h3>One-click updates that don't trip Gatekeeper</h3>
<p>I wanted updates to be one click: no re-downloading, unzipping and dragging, and especially no second trip through Privacy &amp; Security. The updater:</p>
<ol>
<li><strong>Downloads</strong> the release zip from GitHub inside the app.</li>
<li><strong>Checks the SHA-256</strong> against the digest GitHub publishes for that release asset.</li>
<li><strong>Unpacks it</strong> and checks that it's a newer Hawadaar with the same bundle ID, <strong>signed with the same certificate</strong> as the running copy.</li>
<li><strong>Replaces the app in place</strong> and relaunches.</li>
</ol>
<p>Because the app downloads the file itself rather than a browser, the new copy isn't quarantined, so Gatekeeper doesn't step in.</p>
<p>Testing it the realistic way, on a copy I'd marked as browser-downloaded, exposed one more macOS behaviour: <strong>App Translocation</strong>. macOS runs freshly downloaded apps from a random read-only copy, so <code>Bundle.main.bundleURL</code> points to somewhere like <code>/private/var/folders/.../AppTranslocation/...</code>, not <code>/Applications</code>. Replacing <em>that</em> does nothing useful. The fix, the same one Sparkle uses, is to ask Security.framework for the original location:</p>
<pre><code class="language-swift">guard running.path.contains("/AppTranslocation/"),
      let security = dlopen("/System/Library/Frameworks/Security.framework/Security", RTLD_NOW),
      let symbol = dlsym(security, "SecTranslocateCreateOriginalPathForURL") else { return running }
</code></pre>
<p>With that, the first real update, from 1.0.0 to 1.0.1, installed on my second MacBook with one click and no reinstall.</p>
<h2>Small things that made it feel finished</h2>
<ul>
<li><strong>The airflow animation follows the real louver.</strong> Streams sweep on Swing and change angle for positions L1–L5, driven by the <code>acvs</code> value the AC reports, so it updates when someone uses the remote.</li>
<li><strong>Every AC on the account</strong> sits behind a single switcher, because a house rarely has one AC.</li>
<li><strong>The sign-in screen</strong> tells you that Indian numbers don't need +91, and shows exactly which number or email it will use before you submit, so typos are caught before anything is sent to MirAIe.</li>
</ul>
<h2>Takeaways</h2>
<ul>
<li><strong>Look for the data the device already sends.</strong> The single most useful diagnostic, the AC's own RSSI, was sitting in every status message.</li>
<li><strong>Measure the whole path.</strong> Monitoring the AC, the router, the internet and the cloud broker together turned "my AC keeps disconnecting" into "this one radio link fails while everything else stays up" in one night.</li>
<li><strong>Distribution is an engineering problem.</strong> Gatekeeper, App Translocation, Keychain access control, the notch and OS-specific window chrome shaped the app as much as the features did. Test on a second machine early.</li>
</ul>
<p>Hawadaar is free and MIT-licensed. If you have a Panasonic MirAIe AC and a Mac, try it, and if you find a bug or want a feature (sleep mode and schedules are next), open an issue.</p>
<ul>
<li><strong>Download and details:</strong> <a href="https://abdulghani.tech/hawadaar">abdulghani.tech/hawadaar</a></li>
<li><strong>Source:</strong> <a href="https://github.com/abdulghanitech/hawadaar">github.com/abdulghanitech/hawadaar</a></li>
</ul>
<p><em>Hawadaar is an independent project and isn't affiliated with Panasonic. Panasonic and MirAIe are trademarks of their respective owners.</em></p>
]]></content:encoded></item><item><title><![CDATA[Wedding Invitation Videos Are the Future — And MagicInvite.in Makes It Effortless]]></title><description><![CDATA[Looking for a fast, affordable way to make wedding invitation videos? Try MagicInvite.in – custom video invites for Indian weddings, Nikah, engagements &…]]></description><link>https://blog.abdulghani.tech/wedding-invitation-video-magicinvite</link><guid isPermaLink="true">https://blog.abdulghani.tech/wedding-invitation-video-magicinvite</guid><category><![CDATA[wedding]]></category><category><![CDATA[Digital Invites Weddings]]></category><category><![CDATA[wedding planner]]></category><category><![CDATA[Invitation]]></category><category><![CDATA[video]]></category><category><![CDATA[wedding invitation ]]></category><dc:creator><![CDATA[Abdul Ghani]]></dc:creator><pubDate>Fri, 11 Jul 2025 16:44:32 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1752252046434/30a8bf35-4427-4bd9-a1eb-c451274823eb.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Weddings today aren’t just about rituals and venues — they’re also about storytelling. Couples want to share their journey with friends and family in meaningful ways, and the wedding invitation is often the first chapter.</p>
<p>And while printed wedding cards still have their charm, they’re quickly being replaced by something that’s faster, more engaging, and far easier to share: Wedding invitation videos.</p>
<p>Lately, I came across a tool called <a target="_blank" href="http://MagicInvite.in">MagicInvite.in</a> — and after trying it, I can confidently say it’s one of the easiest and most polished ways to create wedding invite videos without hiring a designer or learning video editing yourself.</p>
<h1 id="heading-why-wedding-invitation-videos-are-taking-over">Why Wedding Invitation Videos Are Taking Over?</h1>
<p>If you’ve ever planned a wedding or helped someone through it, you know how much coordination goes into even the smallest things — especially invitations.</p>
<p>Now add these realities:</p>
<p>Everyone’s on WhatsApp and Instagram.</p>
<p>People expect video, not just static images.</p>
<p>You often need to invite folks last-minute or virtually.</p>
<p>A <a target="_blank" href="https://magicinvite.in/wedding-invitation-video">wedding video invitation</a> checks all the boxes:</p>
<p>💬 Shareable instantly</p>
<p>🎵 Emotionally expressive (music, visuals, motion)</p>
<p>🕒 Fast to create — sometimes within minutes</p>
<p>🌍 Environmentally friendly — no paper waste</p>
<p>💸 Often much cheaper than printed invites or designers</p>
<h1 id="heading-what-is-magicinvite">What Is MagicInvite?</h1>
<p><a target="_blank" href="http://MagicInvite.in">MagicInvite.in</a> is a website that helps you create personalized wedding invitation videos online, using ready-made templates designed for Indian weddings. The process is entirely browser-based, mobile-friendly, and incredibly simple:</p>
<ol>
<li><p>Choose a video template (Hindu wedding, Nikah, South Indian, Rajasthani, engagement, etc.)</p>
</li>
<li><p>Enter your event details (names, venue, time, RSVP, optional photos)</p>
</li>
<li><p>Generate and download the video instantly</p>
</li>
</ol>
<p>That’s it. You get a high-quality video optimized for WhatsApp, Instagram Reels, Stories, and other digital platforms.</p>
<h1 id="heading-what-makes-magicinvite-different">What Makes MagicInvite Different?</h1>
<p>There are other ways to make wedding invitation videos — including Canva, hiring a freelancer, or using generic invitation apps. But MagicInvite focuses on speed, cultural relevance, and simplicity, which sets it apart.</p>
<p>✅ Designed for Indian Celebrations</p>
<p>Many platforms offer Western-style templates, but MagicInvite templates are created specifically for Indian weddings — with culturally appropriate fonts, colors, and background music.</p>
<p>✅ Instant Video Rendering</p>
<p>There’s no drag-and-drop editor. Just fill out your event details, and the system generates the final animated video for you — no design skills required.</p>
<p>✅ Mobile-Friendly</p>
<p>You can complete the entire process from your phone in 5–10 minutes. No apps to install, no complicated steps.</p>
<p>✅ Affordable Pricing</p>
<p>Most templates are priced between ₹299–₹999. Compare that to traditional invites or freelance designers, and it’s a no-brainer.</p>
<h1 id="heading-how-magicinvite-compares">How MagicInvite Compares?</h1>
<p>Here’s a practical breakdown of how MagicInvite stacks up against the usual options people consider:</p>
<h3 id="heading-canva">🟡 Canva</h3>
<p>Canva is a popular design tool, but not really built for animated wedding videos. You’ll still need to:</p>
<ol>
<li><p>Choose and modify a template manually</p>
</li>
<li><p>Adjust timing, transitions, music</p>
</li>
<li><p>Export the final video (which isn’t always optimized for WhatsApp)</p>
</li>
<li><p>Know basic design principles</p>
</li>
</ol>
<p>Also, Canva templates don’t cater specifically to Indian weddings, and their animations tend to feel generic.</p>
<h3 id="heading-hiring-a-designer">🟡 Hiring a Designer</h3>
<ol>
<li><p>This works well if you want something completely custom, but:</p>
</li>
<li><p>Turnaround time is longer (5–7 days or more)</p>
</li>
<li><p>Revisions can add delays</p>
</li>
<li><p>Costs typically start at ₹3000–₹5000 for basic videos</p>
</li>
</ol>
<p>You need to explain your requirements clearly and coordinate back-and-forth</p>
<h3 id="heading-other-generic-platforms">🟡 Other Generic Platforms</h3>
<p>Many online invitation makers exist, but few focus on Indian audiences. Some:</p>
<ol>
<li><p>Turnaround time is longer (2–4 days or more)</p>
</li>
<li><p>Lack regional language or religious customization</p>
</li>
<li><p>Have clunky UI or outdated templates</p>
</li>
<li><p>No Free Preview available.</p>
</li>
<li><p>Upsell heavily for basic features</p>
</li>
</ol>
<h3 id="heading-why-magicinvite-feels-just-right">Why MagicInvite Feels Just Right ✅</h3>
<p>Here’s what stood out to me:</p>
<p><strong>🎥 It works right away</strong> — no design, no guesswork, no back-and-forth.</p>
<p><strong>🕒 It saves time</strong> — I created a wedding invite video in under 10 minutes.</p>
<p><strong>❤️ It’s free</strong> - It offers a free preview video instantly</p>
<p><strong>📱 It’s built for mobile</strong> — you can do everything from your phone.</p>
<p><strong>🎨 It feels personal</strong> — the animations, music, and fonts are culturally on point.</p>
<p>Plus, the fact that you can preview everything before paying makes it feel trustworthy and transparent.</p>
<h1 id="heading-not-just-for-weddings">Not Just for Weddings</h1>
<p>Even though the name is MagicInvite, it’s not limited to weddings. The platform also supports:</p>
<ol>
<li><p>Engagement announcements</p>
</li>
<li><p>Nikah and Aqeeqah ceremonies</p>
</li>
<li><p>Baby showers and naming ceremonies</p>
</li>
<li><p>Save-the-date videos</p>
</li>
<li><p>Reception invites</p>
</li>
<li><p>And many more events and styles</p>
</li>
</ol>
<p>New templates are being added frequently, covering different styles, communities, and languages.</p>
<h1 id="heading-final-thoughts">Final Thoughts</h1>
<p>If you’re looking for a clean, fast, and reliable way to create a wedding invitation video, I genuinely think <a target="_blank" href="http://MagicInvite.in">MagicInvite.in</a> is one of the best options out there right now — especially for Indian weddings.</p>
<p>You don’t need design experience. You don’t need to wait days. And you don’t need to spend thousands.</p>
<p>It’s the kind of tool that just quietly solves a real-world problem — and does it well.</p>
<p>🎥 Try it out here → <a target="_blank" href="https://magicinvite.in/wedding-invitation-video">https://magicinvite.in/wedding-invitation-video</a></p>
]]></content:encoded></item><item><title><![CDATA[How to Upgrade React-Native version from 0.57.0 to 0.62.2 🚀]]></title><description><![CDATA[A guide for upgrading to latest version of React-Native 0.62.2]]></description><link>https://blog.abdulghani.tech/upgrade-react-native-version</link><guid isPermaLink="true">https://blog.abdulghani.tech/upgrade-react-native-version</guid><category><![CDATA[React Native]]></category><dc:creator><![CDATA[Abdul Ghani]]></dc:creator><pubDate>Mon, 15 Jun 2020 07:11:37 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1653030510515/cguv571cm.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>This article will guide you through the process of upgrading your React native version from a lower version possibly less than 0.59 to 0.62</p>
<blockquote>
<p>Tl;dr: it's a cumbersome process if you don't follow it correctly.</p>
</blockquote>
<p>Why upgrade to newer versions of React Native? 🙄</p>
<h3 id="heading-major-reasons-for-upgrading-to-react-native-v0622">Major reasons for upgrading to React Native v0.62.2</h3>
<ul>
<li>Speed boost! ✔</li>
<li>Fast refresh / live-reload ⚡</li>
<li>Hermes support (compiles the js code to binary, which helps in less startup time, faster response, and smaller app size)</li>
<li>First-class support for <a target="_blank" href="https://fbflipper.com/">flipper</a> (an awesome debugging tool for react-native)</li>
<li>Support for React hooks 🙌</li>
<li>Other Bug fixes. 🐞</li>
</ul>
<p>Well, the newer versions of React native ( &gt;0.60) has a <a target="_blank" href="https://github.com/react-native-community/rn-diff-purge/blob/master/README.md">utility tool</a> to upgrade easily. It uses git under the hood to upgrade your React native under the hood. But coming to older versions of react-native (&lt;0.60) this support doesn't work quite well. And in most cases, it requires you to manually upgrade.</p>
<p>So, to upgrade from 0.57.0 to 0.62.2 you need to first upgrade it to 0.58.6 and then 0.59.10 after this you're okay to upgrade to 0.62 or higher. This is my personal experience. Because jumping directly to the latest version had many confusions and thus failures. So, I recommend upgrading it in parts.</p>
<p><strong>Here's the actual upgrade process of React native from 0.57.0 to 0.62.2
</strong></p>
<ol>
<li>Delete your node_modules folder</li>
<li>Go to <a target="_blank" href="https://react-native-community.github.io/upgrade-helper/">this page</a> and select your current version and the target version (increase each version at a time)</li>
<li>Click "Show me how to upgrade" button</li>
<li>Now scroll down and manually check the changes shown in the diff.</li>
<li>Try to replicate the same in your code</li>
<li>Now install all the packages using yarn install or npm i</li>
<li>Clean the project using gradlew clean</li>
<li>Do a build either by yarn android or android studio.</li>
<li>If the build is successful try to run the app in your device else there's a problem with the changed files, check diff again and repeat the steps 1 to 8.</li>
</ol>
<p>That's it. You now have the latest React Native version. You've successfully upgraded from 0.57.0 to 0.62.2 🎉</p>
<p>Let me know if you face any problems or if you have any better ways to do it. 😊</p>
]]></content:encoded></item><item><title><![CDATA[TheCoronaVirus Android App built using React-Native ⚛️ in Just A Day 🤯]]></title><description><![CDATA[A simple and easy-to-use android app to track covid-19 cases.]]></description><link>https://blog.abdulghani.tech/the-coronavirus-app</link><guid isPermaLink="true">https://blog.abdulghani.tech/the-coronavirus-app</guid><category><![CDATA[Android]]></category><category><![CDATA[React Native]]></category><category><![CDATA[covid]]></category><category><![CDATA[Open Source]]></category><dc:creator><![CDATA[Abdul Ghani]]></dc:creator><pubDate>Sun, 10 May 2020 07:01:45 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1653029315477/nhNULn-zs.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>So, I was observing the chaos created by the covid-19 pandemic and thought to do something to help the community. Fortunately, I came across React-Native, an amazing technology to create cross-platform mobile apps. I went through its documentation and being from React.js background I quickly grasped the basic concepts and decided to build an app for covid-19 using React Native</p>
<p>Finally, After going through react native's documentation and navigating through some problems during builds, I was able to build this in a day. Yes, just a day and I launched it. ⚡️</p>
<p>As soon as I launched it, I received immense support from my friends, colleagues, and community. ❤️ They were happy to use this app for tracking covid-19 cases, getting help, accessing resources, etc.</p>
<p>Here's what the app offers.</p>
<h3 id="heading-features">Features:</h3>
<ul>
<li>You can track the statistics in real-time. ⏱</li>
<li>Sort the data by states and dates like today, or yesterday. 📆</li>
<li>Even there’s a self-assessment helper for COVID-19. 🩺</li>
<li>Other important things like which helpline number to call in case of emergency. 🆘</li>
<li>Also, I’ve provided the WhatsApp support number too. 💬</li>
</ul>
<p><a target="_blank" href="https://github.com/abdulghanitech/theCoronaApp/raw/master/outputApk/theCoronaApp.apk"><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1653029048306/GbXWCw2iE.png" alt="Apk-button.png" class="image--center mx-auto" /></a></p>
<p>And!!! The best part is I've made it open source. 🌼</p>
<div class="embed-wrapper"><div class="embed-loading"><div class="loadingRow"></div><div class="loadingRow"></div></div><a class="embed-card" href="https://github.com/abdulghanitech/theCoronaApp">https://github.com/abdulghanitech/theCoronaApp</a></div>
]]></content:encoded></item><item><title><![CDATA[A Real-Time Water Tank Level 💧 System with Push Notifications 🔔]]></title><description><![CDATA[Hacking NodeMCU ESP8266 with ultrasonic sensors to detect water level]]></description><link>https://blog.abdulghani.tech/water-tank-level-system-iot</link><guid isPermaLink="true">https://blog.abdulghani.tech/water-tank-level-system-iot</guid><category><![CDATA[iot]]></category><category><![CDATA[app development]]></category><category><![CDATA[automation]]></category><dc:creator><![CDATA[Abdul Ghani]]></dc:creator><pubDate>Fri, 10 Apr 2020 06:36:36 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/unsplash/zjCc0l9l1cI/upload/v1653028571776/ae7eD2hB7.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>So, I was taking a shower and you know what it stopped 😐 (had to call somebody to turn the motor on). So, I thought to tackle this problem. I brainstormed a bit and then came up with an idea of measuring the tank level. So, that I won’t forget to turn the motor on when it’s necessary.😅</p>
<p>Solution 💡: Built an IoT solution that uses a NodeMcu and an Ultra Sonic sensor which measures the level of water in the tank. It sends data to my hosted server which in turn sends data to a mobile app. Using this app we can see the level of the tank, percentage, liters of water in real-time. We, also get notifications on mobile when the water is low or it’s full.</p>
<div class="embed-wrapper"><div class="embed-loading"><div class="loadingRow"></div><div class="loadingRow"></div></div><a class="embed-card" href="https://youtu.be/ZswAx93W86I">https://youtu.be/ZswAx93W86I</a></div>
<p>It’s a tiny thing, but made an impact on using IoT stuff. Gonna make it more robust now.</p>
]]></content:encoded></item><item><title><![CDATA[How I automated subscribing to 1000+ YouTube channels using JavaScript]]></title><description><![CDATA[Simple ways to utilize your javascript knowledge]]></description><link>https://blog.abdulghani.tech/youtube-auto-subscriber-automation</link><guid isPermaLink="true">https://blog.abdulghani.tech/youtube-auto-subscriber-automation</guid><category><![CDATA[JavaScript]]></category><category><![CDATA[automation]]></category><dc:creator><![CDATA[Abdul Ghani]]></dc:creator><pubDate>Thu, 13 Feb 2020 05:36:36 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/unsplash/uDTzfsGJihw/upload/v1653024527987/GQl1CIY12.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>So, I had a new google account and I wanted all my old channels which I had subscribed to in my old account. The simple way was to just open the account’s channel page and subscribe to all the channels one by one by manually clicking them. 🤷‍♂️</p>
<p>Initially, I started by manually clicking the subscribe button for every channel that was there in my old account. It was time-consuming and a boring task.</p>
<p>And then I got the idea to use my JavaScript skills to automate this task. So, I quickly wrote a small script (it took me less than an hour) to automate this task. 😁</p>
<h3 id="heading-heres-how-it-looks-in-action">Here’s how it looks in action ⚡️</h3>
<p><img src="https://cdn.hashnode.com/res/hashnode/image/upload/v1653024786804/NmrdJA_td.gif" alt="youtube-auto-subscriber.gif" class="image--center mx-auto" /></p>
<h3 id="heading-the-javascript">The JavaScript ✨</h3>
<pre><code>const allChannelsBox <span class="hljs-operator">=</span> document.querySelectorAll(<span class="hljs-string">"#channel"</span>);
let totalUnsubscribedChannels <span class="hljs-operator">=</span> <span class="hljs-number">0</span>;
let count <span class="hljs-operator">=</span> <span class="hljs-number">0</span>;
let sleep <span class="hljs-operator">=</span> <span class="hljs-number">0</span>;
<span class="hljs-comment">//for counting totalUnsubscribedChannels</span>
allChannelsBox.forEach(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">channel, index</span>) </span>{
    <span class="hljs-keyword">if</span> (channel.children[<span class="hljs-number">1</span>].innerText <span class="hljs-operator">=</span><span class="hljs-operator">=</span><span class="hljs-operator">=</span> <span class="hljs-string">"SUBSCRIBE"</span>) {
        totalUnsubscribedChannels<span class="hljs-operator">+</span><span class="hljs-operator">+</span>;
    }
});
<span class="hljs-comment">//for clicking all unsubscribed Channels</span>
allChannelsBox.forEach(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">channel, index</span>) </span>{
    <span class="hljs-keyword">if</span> (channel.children[<span class="hljs-number">1</span>].innerText <span class="hljs-operator">=</span><span class="hljs-operator">=</span><span class="hljs-operator">=</span> <span class="hljs-string">"SUBSCRIBE"</span>) {
        setTimeout(<span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"></span>) </span>{
            count<span class="hljs-operator">+</span><span class="hljs-operator">+</span>;
            console.log(
                <span class="hljs-string">"Current Channel -&gt;"</span> <span class="hljs-operator">+</span>
                    channel.children[<span class="hljs-number">0</span>].children[<span class="hljs-string">"title"</span>].innerText
            );
            channel.children[<span class="hljs-number">1</span>].children[<span class="hljs-number">0</span>].children[<span class="hljs-number">0</span>].click();
            console.log(
                <span class="hljs-string">"Subscribed! 😎"</span> <span class="hljs-operator">+</span>
                    count <span class="hljs-operator">+</span>
                    <span class="hljs-string">"out of"</span> <span class="hljs-operator">+</span>
                    totalUnsubscribedChannels <span class="hljs-operator">+</span>
                    <span class="hljs-string">"channels"</span>
            );
        }, sleep);
        sleep <span class="hljs-operator">+</span><span class="hljs-operator">=</span> <span class="hljs-number">30000</span>;
    }
});
</code></pre><p>That’s it. I know this is a very small thing. But to me applying my knowledge to solve problems is something I really love. I totally enjoyed the coding part.❤️</p>
<p>Here’s the <a target="_blank" href="https://github.com/abdulghanitech/YoutubeChannelSubscriber">GitHub link</a> to it. Please feel free to fork or raise a pull request. Any contribution or suggestions are welcome.😊</p>
<div class="embed-wrapper"><div class="embed-loading"><div class="loadingRow"></div><div class="loadingRow"></div></div><a class="embed-card" href="https://github.com/abdulghanitech/YoutubeChannelSubscriber">https://github.com/abdulghanitech/YoutubeChannelSubscriber</a></div>
]]></content:encoded></item></channel></rss>