Get-BirdWeatherGraphQLStationLocationHistory

SYNOPSIS

Location sensor data reading history

SYNTAX

__AllParameterSets

Get-BirdWeatherGraphQLStationLocationHistory [-StationId] <string> [-After <string>]
 [-Before <string>] [-First <int>] [-Last <int>] [-PeriodCount <int>] [-PeriodUnit <string>]
 [-PeriodFrom <datetime>] [-PeriodTo <datetime>] [-PeriodTimezone <string>] [-Property <string[]>]
 [-AllResults] [-MaxResults <int>] [-Raw]

ALIASES

This cmdlet has the following aliases,

  • Get-BWGStationLocationHistory

DESCRIPTION

The Get-BirdWeatherGraphQLStationLocationHistory cmdlet invokes the station.sensors.locationHistory query of the BirdWeather GraphQL API

Location sensor data reading history

By default the following properties are returned, use the Property parameter to select other properties: altitude, lat, lon, satellites, timestamp

EXAMPLES

EXAMPLE 1

Get-BirdWeatherGraphQLStationLocationHistory -StationId '21934'

Returns the result of the station.sensors.locationHistory query of the BirdWeather GraphQL API

EXAMPLE 2

Get-BirdWeatherGraphQLStationLocationHistory -StationId '21934' -PeriodCount 7 -PeriodUnit 'day'

Returns the result for the last 7 days

EXAMPLE 3

Get-BirdWeatherGraphQLStationLocationHistory -StationId '21934' -Property 'altitude', 'lat'

Only returns the defined properties

EXAMPLE 4

Get-BirdWeatherGraphQLStationLocationHistory -StationId '21934' -AllResults -MaxResults 100

Returns up to 100 nodes by following the pagination cursor

PARAMETERS

-After

Returns the elements in the list that come after the specified cursor.

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

-AllResults

Returns all nodes by following the pagination cursor When using this parameter there is no need to use the After parameter, the page size is set with the First parameter (default 100)

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: ''

-Before

Returns the elements in the list that come before the specified cursor.

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

-First

Returns the first n elements from the list.

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: ''

-Last

Returns the last n elements from the list.

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: ''

-MaxResults

The maximum number of nodes that are returned when using AllResults By default all nodes are returned

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: ''

-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 LocationReading to return Nested properties are defined with a dot, such as species.commonName Default values: altitude, lat, lon, satellites, timestamp

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 including the pageInfo & totalCount

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.sensors.locationHistory Returns : The nodes of the LocationReadingConnection connection