Get-BirdWeatherGraphQLEbirdSightings
SYNOPSIS
Get the ebird sightings
SYNTAX
__AllParameterSets
Get-BirdWeatherGraphQLEbirdSightings [[-PeriodCount] <int>] [[-PeriodUnit] <string>]
[[-PeriodFrom] <datetime>] [[-PeriodTo] <datetime>] [[-PeriodTimezone] <string>]
[-SpeciesId] <string> [-CenterLat] <double> [-CenterLon] <double> [[-Property] <string[]>] [-Raw]
ALIASES
This cmdlet has the following aliases,
- Get-BWGEbirdSightings
DESCRIPTION
The Get-BirdWeatherGraphQLEbirdSightings cmdlet invokes the ebirdSightings query of the BirdWeather GraphQL API
By default the following properties are returned, use the Property parameter to select other properties: coords.lat, coords.lon, species.id, species.commonName, species.scientificName, speciesId, timestamp
EXAMPLES
EXAMPLE 1
Get-BirdWeatherGraphQLEbirdSightings -SpeciesId '123' -CenterLat 44.15 -CenterLon -103.34
Returns the result of the ebirdSightings query of the BirdWeather GraphQL API
EXAMPLE 2
Get-BirdWeatherGraphQLEbirdSightings -SpeciesId '123' -CenterLat 44.15 -CenterLon -103.34 -PeriodCount 7 -PeriodUnit 'day'
Returns the result for the last 7 days
EXAMPLE 3
Get-BirdWeatherGraphQLEbirdSightings -SpeciesId '123' -CenterLat 44.15 -CenterLon -103.34 -Property 'coords.lat', 'coords.lon'
Only returns the defined properties
PARAMETERS
-CenterLat
Center coordinates for search - Latitude
Type: System.Double
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 6
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-CenterLon
Center coordinates for search - Longitude
Type: System.Double
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 7
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-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 Sighting to return Nested properties are defined with a dot, such as species.commonName Default values: coords.lat, coords.lon, species.id, species.commonName, species.scientificName, speciesId, timestamp
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: ''
-SpeciesId
Species ID (required)
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 5
IsRequired: true
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.ebirdSightings Returns : Sighting