Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evotecit/unifistocktracker
UnifiStockTracker is a PowerShell module to get current stock on Europe, Brazil or USA Ubiquiti stores. Since I was constantly checking stock on Ubiquiti store waiting for specific products I decided to automate it.
https://github.com/evotecit/unifistocktracker
powershell ubiquiti unifi
Last synced: 4 days ago
JSON representation
UnifiStockTracker is a PowerShell module to get current stock on Europe, Brazil or USA Ubiquiti stores. Since I was constantly checking stock on Ubiquiti store waiting for specific products I decided to automate it.
- Host: GitHub
- URL: https://github.com/evotecit/unifistocktracker
- Owner: EvotecIT
- License: mit
- Created: 2022-09-20T21:38:14.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-11T14:49:32.000Z (3 months ago)
- Last Synced: 2024-10-29T21:06:12.880Z (14 days ago)
- Topics: powershell, ubiquiti, unifi
- Language: PowerShell
- Homepage:
- Size: 118 KB
- Stars: 15
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- Changelog: CHANGELOG.MD
- Funding: .github/FUNDING.yml
- License: License
Awesome Lists containing this project
README
# UnifiStockTracker - PowerShell Module
`UnifiStockTracker` is a PowerShell module to get current stock on Europe, Brazil or USA Ubiquiti stores.
Since I was constantly checking stock on Ubiquiti store waiting for specific products I decided to automate it.
I know there are places doing the same thing such as:- [x] [Ubiquiti in-stock Spam Alerts](https://www.reddit.com/r/UbiquitiInStock/)
But there is one problem - they monitor for every single product so you get a lot of spam. I wanted to monitor only for specific products, in my own time. So I created this module.
You can find more about this module on my blog (this blog is outdated due to redesign of Ubiquiti store for US/EU, but still valid for all other shops), but provides some background information:
- [Track Ubiquiti Unifi Stock, and get notified of changes](https://evotec.xyz/simplify-notifications-about-ubiquiti-unifi-stock/)## Installation
This module is available to install from PowerShellGallery which is enabled by default on Windows.
```powershell
Install-Module -Name UnifiStockTracker -Scope CurrentUser -Verbose
```## Usage
Due to Unifi store changes this module now contains 4 commands:
- `Get-UnifiStock` - supporting only US/EU/UK stores
- `Get-UnifiStockLegacy` - supporting all other stores
- `Wait-UnifiStock` - supporting only US/EU/UK stores
- `Wait-UnifiStockLegacy` - supporting all other storesOnce redesign for all stores will be done I'll try to fix other stores and remove compatibility with old ones.
### Getting a list of products (non-EU, non-USA) stores
Get all products from 3 categories in Brazil store, sort them by name and display
```powershell
Get-UnifiStockLegacy -Store Brazil -Collection Protect, ProtectAccessories, ProtectNVR | Sort-Object -Property Name | Format-Table
```Get all products from 2 categories in Brazil store, sort them by name and display
```powershell
Get-UnifiStockLegacy -Store Brazil -Collection Protect, NetworkWifi | Sort-Object -Property Name | Format-Table
```Get all products from India store, sort them by name and display
```powershell
Get-UnifiStockLegacy -Store India | Sort-Object -Property Name | Format-Table
```### Waiting for specific products (non-EU, non-USA, non-UK)
Wait for 4 products of which one will be ignored because it doesn't exists and recheck store every 60 seconds (Europe store is default)
```powershell
Wait-UnifiStockLegacy -ProductName 'UniFi6 Mesh', 'G4 Doorbell Pro', 'Camera G4 Pro', 'Test' -Seconds 60
```Wait for 1 product via specific SKU and recheck store every 60 seconds (Europe store is default)
```powershell
Wait-UnifiStockLegacy -ProductSKU 'UDR-EU' -ProductName 'Switch Flex XG' -Seconds 60
```### Getting a list of products (EU, USA, UK) stores
```powershell
Get-UnifiStock -Store Europe | Sort-Object -Property Name | Format-Table
Get-UnifiStock -Store USA -Verbose | Sort-Object -Property Name | Format-TableGet-UnifiStock -Store USA -Collection AccessoriesCabling, CableBox | Sort-Object -Property Name | Format-Table
Get-UnifiStock -Store Europe -Collection CameraSecurityDome360, CameraSecurityCompactPoEWired | Sort-Object -Property Name | Format-Table
Get-UnifiStock -Store USA -Collection HostingAndGatewaysCloud,DreamMachine, DreamRouter | Sort-Object -Property Name | Format-Table
```### Waiting for specific products (EU, USA, UK)
```powershell
Wait-UnifiStock -ProductName 'UniFi6 Mesh', 'G4 Doorbell Pro', 'Camera G4 Pro', 'Test' -Seconds 60 -Store USA
Wait-UnifiStock -ProductSKU 'UDR-EU' -ProductName 'Switch Flex XG' -Seconds 60 -Store Europe
Wait-UnifiStock -ProductName 'Access Point AC Lite' -Seconds 60 -Store Europe
```