<?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>DEV Community: DP PHONG</title>
    <description>The latest articles on DEV Community by DP PHONG (@dp_phong_edb7dfb4e72a9ed4).</description>
    <link>https://dev.to/dp_phong_edb7dfb4e72a9ed4</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4199734%2F650ef718-9261-4c3c-a9b2-6f4072013866.png</url>
      <title>DEV Community: DP PHONG</title>
      <link>https://dev.to/dp_phong_edb7dfb4e72a9ed4</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dp_phong_edb7dfb4e72a9ed4"/>
    <language>en</language>
    <item>
      <title>How I Engineered a Hyper-Local Water Hardness &amp; Appliance Calibration Tool for 9,000+ UK Postcodes</title>
      <dc:creator>DP PHONG</dc:creator>
      <pubDate>Thu, 22 Oct 2026 06:24:45 +0000</pubDate>
      <link>https://dev.to/dp_phong_edb7dfb4e72a9ed4/how-i-engineered-a-hyper-local-water-hardness-appliance-calibration-tool-for-9000-uk-postcodes-2obb</link>
      <guid>https://dev.to/dp_phong_edb7dfb4e72a9ed4/how-i-engineered-a-hyper-local-water-hardness-appliance-calibration-tool-for-9000-uk-postcodes-2obb</guid>
      <description>&lt;p&gt;Over 60% of homes in the UK suffer from hard or aggressively hard tap water. If you live in London, East Anglia, or the South East, dissolved calcium carbonate ($CaCO_3$) wrecks kettle elements, scales combi boiler heat exchangers, and clouds glassware.&lt;/p&gt;

&lt;p&gt;Most homeowners only find out their water hardness when a new appliance (like a Bosch or Miele dishwasher) asks for manual hardness calibration (H:00 to H:07) or salt dosage settings.&lt;/p&gt;

&lt;p&gt;To solve this, I built &lt;strong&gt;&lt;a href="https://waterhardness.uk" rel="noopener noreferrer"&gt;WaterHardness.uk&lt;/a&gt;&lt;/strong&gt; — an independent data platform and utility engine mapping water hardness metrics across 9,000+ UK postcode sectors.&lt;/p&gt;

&lt;p&gt;Here is a breakdown of the technical challenges, data normalization, and appliance calibration logic behind the project.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. The Core Architecture &amp;amp; Data Challenge
&lt;/h2&gt;

&lt;p&gt;The hardest part of building hyper-local utilities in the UK isn't the UI — it's &lt;strong&gt;geographical and data reconciliation&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Non-Standard Catchments:&lt;/strong&gt; UK water suppliers (Thames Water, Severn Trent, Anglian Water, Scottish Water) do not supply water strictly by municipal boundaries; their water supply zones (WSZs) overlap across arbitrary boundaries.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Unit Standardization:&lt;/strong&gt; Different water companies and appliance manuals report hardness using different scales: PPM ($mg/L\ CaCO_3$), English Clark degrees (°e), German degrees (°dH), or French degrees (°f).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data Sources:&lt;/strong&gt; We aggregated public disclosures from the Drinking Water Inspectorate (DWI) and major regional utilities, cross-referencing outcode and sector coordinates to normalize hardness values into a unified relational schema.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  2. Solving Appliance Calibration: The Dishwasher Salt Logic
&lt;/h2&gt;

&lt;p&gt;One feature users requested most was automated salt setting lookups. Most modern dishwashers rely on an internal ion-exchange resin tank that must be regenerated using coarse granular salt.&lt;/p&gt;

&lt;p&gt;Instead of flipping through paper manuals, we built dedicated logic matching regional PPM to manufacturer steps. For example:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bosch / Siemens / Neff:&lt;/strong&gt; Hardness calibrated from &lt;code&gt;H:00&lt;/code&gt; (&amp;lt;50 PPM) to `H:07` (&amp;gt;380 PPM).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Beko:&lt;/strong&gt; Calibrated from &lt;code&gt;r1&lt;/code&gt; to &lt;code&gt;r5&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Consumption Modeling:&lt;/strong&gt; Factoring average wash frequency to estimate monthly salt consumption in kilograms.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can test the implementation on our &lt;strong&gt;&lt;a href="https://waterhardness.uk/guides" rel="noopener noreferrer"&gt;UK Dishwasher Salt Setting Calculator&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Tech Stack &amp;amp; Performance Tuning
&lt;/h2&gt;

&lt;p&gt;For this project, the priority was sub-second page loads and near-instant local lookups:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; Modern statically-optimized architecture with localized outcode routing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DNS &amp;amp; Edge:&lt;/strong&gt; Proxied through Cloudflare edge caching for low-latency delivery across the UK.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Schema Markup:&lt;/strong&gt; Implemented rich JSON-LD structured data (&lt;code&gt;Dataset&lt;/code&gt;, &lt;code&gt;TechArticle&lt;/code&gt;, &lt;code&gt;LocalBusiness/Service&lt;/code&gt;) to make geographical datasets machine-readable for modern AI and search crawlers.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  What's Next?
&lt;/h2&gt;

&lt;p&gt;We are currently expanding the calculation engine to include:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Coffee machine descaling interval estimators (DeLonghi, Sage/Breville).&lt;/li&gt;
&lt;li&gt;Whole-house water softener capacity calculators based on household size and cubic meter water usage.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I would love to hear feedback from fellow engineers on data structuring, edge performance, or additional utility calculations that would be useful!&lt;/p&gt;

&lt;p&gt;👉 Live project: &lt;strong&gt;&lt;a href="https://waterhardness.uk" rel="noopener noreferrer"&gt;WaterHardness.uk&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>datascience</category>
    </item>
  </channel>
</rss>
