Get-BirdWeatherGraphQLDailyDetectionCounts

SYNOPSIS

Get the daily detection counts

SYNTAX

__AllParameterSets

Get-BirdWeatherGraphQLDailyDetectionCounts [[-PeriodCount] <int>] [[-PeriodUnit] <string>]
 [[-PeriodFrom] <datetime>] [[-PeriodTo] <datetime>] [[-PeriodTimezone] <string>]
 [[-SpeciesIds] <string[]>] [[-StationIds] <string[]>] [[-StationTypes] <string[]>]
 [[-Property] <string[]>] [-Raw]

ALIASES

This cmdlet has the following aliases,

  • Get-BWGDailyDetectionCounts

DESCRIPTION

The Get-BirdWeatherGraphQLDailyDetectionCounts cmdlet invokes the dailyDetectionCounts query of the BirdWeather GraphQL API

By default the following properties are returned, use the Property parameter to select other properties: counts.count, counts.species.id, counts.species.commonName, counts.species.scientificName, counts.speciesId, date, dayOfYear, total

EXAMPLES

EXAMPLE 1

Get-BirdWeatherGraphQLDailyDetectionCounts

Returns the result of the dailyDetectionCounts query of the BirdWeather GraphQL API

EXAMPLE 2

Get-BirdWeatherGraphQLDailyDetectionCounts -PeriodCount 7 -PeriodUnit 'day'

Returns the result for the last 7 days

EXAMPLE 3

Get-BirdWeatherGraphQLDailyDetectionCounts -Property 'counts.count', 'counts.species.id'

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: 0
  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: 2
  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: 4
  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: 3
  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: 1
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Property

The properties (GraphQL fields) of the BinnedSpeciesSummaryCount to return Nested properties are defined with a dot, such as species.commonName Default values: counts.count, counts.species.id, counts.species.commonName, counts.species.scientificName, counts.speciesId, date, dayOfYear, total

Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 8
  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: ''

-SpeciesIds

Array of species IDs to filter on (optional)

Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 5
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-StationIds

Array of station IDs to filter on (optional)

Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 6
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-StationTypes

Array of station types to filter on (optional). One or more of: puc, puc:standard, puc:bat, birdnetpi, stream_youtube, stream_audio, app. puc:standard and puc:bat partition puc and never overlap; a PUC with no recorded edition counts as standard.

Type: System.String[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 7
  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

GraphQL : Query.dailyDetectionCounts Returns : BinnedSpeciesSummaryCount