Get-BirdWeatherRESTStationStats
SYNOPSIS
Fetch Stats
SYNTAX
__AllParameterSets
Get-BirdWeatherRESTStationStats [[-Token] <string>] [[-Classification] <string[]>]
[[-Mode] <string>] [[-Period] <string>] [[-Since] <datetime>] [-Raw]
ALIASES
This cmdlet has the following aliases,
- Get-BWRStationStats
DESCRIPTION
The Get-BirdWeatherRESTStationStats cmdlet invokes the GET method of the /stations/{token}/stats endpoint (Fetch Stats)
EXAMPLES
EXAMPLE 1
Get-BirdWeatherRESTStationStats
Returns the result of the /stations/{token}/stats endpoint
EXAMPLE 2
Get-BirdWeatherRESTStationStats -Token 21934
Uses the defined station token (or station ID) instead of the station token that was stored with Add-BirdWeatherAPIKey
PARAMETERS
-Classification
Limit results to species with the given classification, or a comma-separated list of classifications (e.g. bat,mammal) [avian / amphibian / reptile / mammal / bat / insect].
Allowed values: ‘avian’, ‘amphibian’, ‘reptile’, ‘mammal’, ‘bat’, ‘insect’
Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Mode
Limit results to detections with the given soundscape mode [live / recorded / birdnetpi].
Allowed values: ‘live’, ‘recorded’, ‘birdnetpi’
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 2
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Period
The time period to filter detections [day / week / month / all] (default: day). Default value when not set: day
Allowed values: ‘day’, ‘week’, ‘month’, ‘all’
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 3
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Raw
Returns the full API response (including the success flag) instead of only the results
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Since
Timestamp to filter detections from, in ISO8601 format. Overrides period if passed. Accepts a date, it is sent to the API in UTC (ISO 8601)
Type: System.DateTime
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 4
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Token
Defines the station token, or the numeric station ID (such as 21934) of a public station or when an administrator API token is used
The PUC-21934 style name of a station is not accepted by the API
By default the station token defined by Add-BirdWeatherAPIKey is used
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- StationToken
- StationId
ParameterSets:
- Name: (All)
Position: 0
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
NOTES
Endpoint : GET /stations/{token}/stats