Sunday, April 28, 2024
HomePowershellMonitor Ubiquiti Unifi Inventory, and get notified of adjustments

Monitor Ubiquiti Unifi Inventory, and get notified of adjustments


Wait-UnifiStock is the straightforward command that helps to get notified when the inventory is in. If you run that command, it doe the followings:

  • Anticipate the given product to look in retailer or use the given interval (default each 60 seconds)
  • When the product reveals up as obtainable, it’s going to:
    • Use speech synthesis to say: “Hey, there may be inventory obtainable for XXX.”
    • Open a web site in your default browser immediately on the product you wish to purchase and produce it to the entrance.

It is fairly easy in what it does, however it’s what I wanted.

Wait-UnifiStock -ProductName 'Entry Level AC Lite' -Seconds 60
Wait-UnifiStock -ProductName 'UniFi6 Mesh', 'G4 Doorbell Professional', 'Digital camera G4 Professional', 'Take a look at' -Seconds 60
Wait-UnifiStock -ProductSKU 'UDR-EU' -ProductName 'Change Flex XG' -Seconds 60

The above instance reveals that you need to use ProductName or ProductSKU (or each) to attend for the product you want. You can too question a number of merchandise without delay, and those that don’t exist (typos) will likely be ignored. You can too management refresh time by utilizing the Seconds parameter. If you happen to skip it, the default worth will likely be each 60 seconds which is sweet sufficient to search out what you want. Do not forget that utilizing something beneath 60 seconds could also be tempting, however it might get you blocked. It is because you are querying API each 60 seconds. If you happen to change it to five, antispam filters could kick in and deny additional requests to API and the entire web site. Please be accountable!

UnifiStockTracker helps Ubiquiti retailers in 9 totally different nations: Brazil and China, Europe, India, Japan, Mexico, Singapore, Taiwan, and the USA. If you select the Retailer parameter, you’ll get autocomplete for that. Like Assortment, you’ll get autocomplete in one of many obtainable choices: NetworkOS, NetworkSmartPower, NetworkWifi, ProtectAccessories, NetworkRoutingOffload, NetworkSwitching, Shield, or ProtectNVR.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments