Get-BirdWeatherGraphQLStationSensors
SYNOPSIS
Get the sensors of a station
SYNTAX
__AllParameterSets
Get-BirdWeatherGraphQLStationSensors [-StationId] <string> [-SensorType <string>]
[-FieldName <string>] [-Property <string[]>] [-Raw]
ALIASES
This cmdlet has the following aliases,
- Get-BWGStationSensors
DESCRIPTION
The Get-BirdWeatherGraphQLStationSensors cmdlet invokes the station.sensors query of the BirdWeather GraphQL API
By default the following properties are returned, use the Property parameter to select other properties: accel.timestamp, accel.x, accel.y, accel.z, environment.aqi, environment.barometricPressure, environment.eco2, environment.humidity, environment.soundPressureLevel, environment.temperature, environment.timestamp, environment.voc, light.clear, light.f1, light.f2, light.f3, light.f4, light.f5, light.f6, light.f7, light.f8, light.nir, light.timestamp, location.altitude, location.lat, location.lon, location.satellites, location.timestamp, mag.timestamp, mag.x, mag.y, mag.z, system.batteryVoltage, system.firmware, system.powerSource, system.sdAvailable, system.sdCapacity, system.timestamp, system.uploadingCompleted, system.uploadingTotal, system.usbVoltage, system.wifiRssi
EXAMPLES
EXAMPLE 1
Get-BirdWeatherGraphQLStationSensors -StationId '21934'
Returns the result of the station.sensors query of the BirdWeather GraphQL API
EXAMPLE 2
Get-BirdWeatherGraphQLStationSensors -StationId '21934' -Property 'accel.timestamp', 'accel.x'
Only returns the defined properties
PARAMETERS
-FieldName
The FieldName value of the station.sensors query
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 Sensors to return Nested properties are defined with a dot, such as species.commonName Default values: accel.timestamp, accel.x, accel.y, accel.z, environment.aqi, environment.barometricPressure, environment.eco2, environment.humidity, environment.soundPressureLevel, environment.temperature, environment.timestamp, environment.voc, light.clear, light.f1, light.f2, light.f3, light.f4, light.f5, light.f6, light.f7, light.f8, light.nir, light.timestamp, location.altitude, location.lat, location.lon, location.satellites, location.timestamp, mag.timestamp, mag.x, mag.y, mag.z, system.batteryVoltage, system.firmware, system.powerSource, system.sdAvailable, system.sdCapacity, system.timestamp, system.uploadingCompleted, system.uploadingTotal, system.usbVoltage, system.wifiRssi
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: ''
-SensorType
The SensorType value of the station.sensors query
Type: System.String
DefaultValue: ''
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 Returns : Sensors