From fea51a1a75542c28f9e9630f7e23ef143cd28187 Mon Sep 17 00:00:00 2001
From: Alicia Sykes <gh@d0h.co>
Date: Sat, 28 May 2022 14:43:44 +0100
Subject: [PATCH] :memo: Adds docs for domain name monitor widget

---
 docs/privacy.md |  2 ++
 docs/widgets.md | 44 +++++++++++++++++++++++++++++++++++++++-----
 2 files changed, 41 insertions(+), 5 deletions(-)

diff --git a/docs/privacy.md b/docs/privacy.md
index 22909bf1..5b56d935 100644
--- a/docs/privacy.md
+++ b/docs/privacy.md
@@ -111,6 +111,8 @@ Dashy supports [Widgets](/docs/widgets.md) for displaying dynamic content. Below
     - [IP-API Privacy Policy](https://ip-api.com/docs/legal)
 - **[IP Blacklist](/docs/widgets.md#ip-blacklist)**: `https://api.blacklistchecker.com`
     - [Blacklist Checker Privacy Policy](https://blacklistchecker.com/privacy)
+- **[Domain Monitor](/docs/widgets.md#domain-monitor)**: `http://api.whoapi.com`
+    - [WhoAPI Privacy Policy](https://whoapi.com/privacy-policy/)
 - **[Crypto Watch List](/docs/widgets.md#crypto-watch-list)** and **[Token Price History](/docs/widgets.md#crypto-token-price-history)**: `https://api.coingecko.com`
     - [CoinGecko Privacy Policy](https://www.coingecko.com/en/privacy)
 - **[Wallet Balance](/docs/widgets.md#wallet-balance)**: `https://api.blockcypher.com/`
diff --git a/docs/widgets.md b/docs/widgets.md
index 1f8e1fd2..c79894ca 100644
--- a/docs/widgets.md
+++ b/docs/widgets.md
@@ -2,10 +2,6 @@
 
 Dashy has support for displaying dynamic content in the form of widgets. There are several built-in widgets available out-of-the-box as well as support for custom widgets to display stats from almost any service with an API.
 
-> â„šī¸ **Note**: Widgets are still in the Alpha-phase of development.
-> If you find a bug, please raise it.<br>
-> Adding / editing widgets through the UI isn't yet supported, you will need to do this in the YAML config file.
-
 ##### Contents
 - **[General Widgets](#general-widgets)**
   - [Clock](#clock)
@@ -15,6 +11,7 @@ Dashy has support for displaying dynamic content in the form of widgets. There a
   - [Image](#image)
   - [Public IP Address](#public-ip)
   - [IP Blacklist Checker](#ip-blacklist)
+  - [Domain Monitor](#domain-monitor)
   - [Crypto Watch List](#crypto-watch-list)
   - [Crypto Price History](#crypto-token-price-history)
   - [Crypto Wallet Balance](#wallet-balance)
@@ -320,6 +317,43 @@ Notice certain web pages aren't loading? This widget quickly shows which blackli
 
 ---
 
+### Domain Monitor
+
+Keep an eye on the expiry dates of your domain names, using public whois records fetched from [whoapi.com](https://whoapi.com/). Click the domain name to view additional info, like registrar, name servers and date last updated.
+
+<p align="center"><img width="600" src="https://i.ibb.co/7XjByG9/domain-monitor.png" /></p>
+
+##### Options
+
+**Field** | **Type** | **Required** | **Description**
+--- | --- | --- | ---
+**`domain`** | `string` |  Required | The domain to check
+**`apiKey`** | `string` |  Required | You can get your free API key from [my.whoapi.com](https://my.whoapi.com/user/signup)
+**`showFullInfo`** | `boolean` |  _Optional_ | If set to true, the toggle-full-info panel will be open by default
+
+##### Example 
+
+```yaml
+  - type: domain-monitor
+    options:
+      domain: example.com
+      apiKey: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+
+  - type: domain-monitor
+    options:
+      domain: example2.com
+      apiKey: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+```
+
+##### Info
+- **CORS**: đŸŸĸ Enabled
+- **Auth**: 🔴 Required
+- **Price**: 🟠 Free Plan (10,000 requests)
+- **Host**: Managed Instance Only
+- **Privacy**: _See [WhoAPI Privacy Policy](https://whoapi.com/privacy-policy/)_
+
+---
+
 ### Crypto Watch List
 
 Keep track of price changes of your favorite crypto assets. Data is fetched from [CoinGecko](https://www.coingecko.com/). All fields are optional.
@@ -1334,7 +1368,7 @@ Displays the current and recent uptime of your running services, via a self-host
 
 Displays the current downloads/torrents tasks of your Synology NAS
 
-<p align="center"><img width="300" src="https://i.ibb.co/N2kKWTN/image.png" /></p>
+<p align="center"><img width="500" src="https://i.ibb.co/N2kKWTN/image.png" /></p>
 
 ##### Options