Wait-UnifiStock is the simple command that helps to get notified when the stock is in. When you run that command, it doe the followings:
- Wait for the given product to appear in store or use the given interval (default every 60 seconds)
- When the product shows up as available, it will:
- Use speech synthesis to say: βHey, there is stock available for XXX.β
- Open a website in your default browser directly on the product you want to buy and bring it to the front.
It's pretty simple in what it does, but it's what I needed.
Wait-UnifiStock -ProductName 'Access Point AC Lite' -Seconds 60
Wait-UnifiStock -ProductName 'UniFi6 Mesh', 'G4 Doorbell Pro', 'Camera G4 Pro', 'Test' -Seconds 60
Wait-UnifiStock -ProductSKU 'UDR-EU' -ProductName 'Switch Flex XG' -Seconds 60
The above example shows that you can use ProductName or ProductSKU (or both) to wait for the product you need. You can also query multiple products at once, and the ones that do not exist (typos) will be ignored. You can also control refresh time by using the Seconds parameter. If you skip it, the default value will be every 60 seconds which is good enough to find what you need. Remember that using anything below 60 seconds may be tempting, but it may get you blocked. This is because you're querying API every 60 seconds. If you change it to 5, antispam filters may kick in and deny further requests to API and the whole website. Please be responsible!
UnifiStockTracker supports Ubiquiti shops in 9 different countries: Brazil and China, Europe, India, Japan, Mexico, Singapore, Taiwan, and the USA. When you choose the Store parameter, you will get autocomplete for that. Like Collection, you will get autocomplete in one of the available options: NetworkOS, NetworkSmartPower, NetworkWifi, ProtectAccessories, NetworkRoutingOffload, NetworkSwitching, Protect, or ProtectNVR.