Get-BirdWeatherGraphQLStationCounts
SYNOPSIS
Get the counts of a station
SYNTAX
__AllParameterSets
Get-BirdWeatherGraphQLStationCounts [-StationId] <string> [-PeriodCount <int>]
[-PeriodUnit <string>] [-PeriodFrom <datetime>] [-PeriodTo <datetime>] [-PeriodTimezone <string>]
[-Property <string[]>] [-Raw]
ALIASES
This cmdlet has the following aliases,
- Get-BWGStationCounts
DESCRIPTION
The Get-BirdWeatherGraphQLStationCounts cmdlet invokes the station.counts query of the BirdWeather GraphQL API
By default the following properties are returned, use the Property parameter to select other properties: detections, species
EXAMPLES
EXAMPLE 1
Get-BirdWeatherGraphQLStationCounts -StationId '21934'
Returns the result of the station.counts query of the BirdWeather GraphQL API
EXAMPLE 2
Get-BirdWeatherGraphQLStationCounts -StationId '21934' -PeriodCount 7 -PeriodUnit 'day'
Returns the result for the last 7 days
EXAMPLE 3
Get-BirdWeatherGraphQLStationCounts -StationId '21934' -Property 'detections', 'species'
Only returns the defined properties
PARAMETERS
-PeriodCount
Time period for query (defaults to last 24 hours) - Number of units of time
Type: System.Int32
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-PeriodFrom
Time period for query (defaults to last 24 hours) - From date, or an exact ISO 8601 date-time
Type: System.DateTime
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-PeriodTimezone
Time period for query (defaults to last 24 hours) - Timezone for from/to dates (and date-times without an offset)
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-PeriodTo
Time period for query (defaults to last 24 hours) - To date, or an exact ISO 8601 date-time
Type: System.DateTime
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-PeriodUnit
Time period for query (defaults to last 24 hours) - Unit of time (minute/hour/day/week/month/year)
Allowed values: ‘minute’, ‘hour’, ‘day’, ‘week’, ‘month’, ‘year’
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Property
The properties (GraphQL fields) of the StationCounts to return Nested properties are defined with a dot, such as species.commonName Default values: detections, species
Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Raw
Returns the full API response (data & errors) instead of only the requested data
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: ''
-StationId
Station ID
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases:
- Id
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: true
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
System.String
OUTPUTS
NOTES
GraphQL : Query.station.counts Returns : StationCounts