web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / wunderground Custom co...
Power Apps
Unanswered

wunderground Custom connector to Powerapps

(0) ShareShare
ReportReport
Posted on by 248

Hi there,

 

I have a custom connector from wunderground API working fine but I don't know how I can read the values into powerapps.

 

This is the swanger code:

 

 

swagger: '2.0'
info:
 title: CurrentWeather
 description: ''
 version: '1.0'
host: api.weather.com
basePath: /v2
schemes:
 - https
consumes: []
produces: []
paths:
 /pws/observations/current:
 get:
 responses:
 default:
 description: default
 schema: {}
 summary: Run
 description: Run
 operationId: Run
 parameters:
 - name: stationId
 in: query
 required: false
 type: string
 - name: format
 in: query
 required: false
 type: string
 - name: units
 in: query
 required: false
 type: string
 - name: apiKey
 in: query
 required: false
 type: string
definitions: {}
parameters: {}
responses: {}
securityDefinitions:
 Clave de API:
 type: apiKey
 in: query
 name: apiKey
security:
 - Clave de API: []
tags: []

 

 

This is an example of the body outputs:

 

 

{
 "observations": [
 {
 "stationID": "XXXX",
 "obsTimeUtc": "2023-03-15T19:19:37Z",
 "obsTimeLocal": "2023-03-15 20:19:37",
 "neighborhood": "XXXXX",
 "softwareType": "EasyWeatherV1.6.5",
 "country": "ES",
 "solarRadiation": 0,
 "lon": -5.5,
 "realtimeFrequency": null,
 "epoch": 1678907977,
 "lat": 39.0,
 "uv": 0,
 "winddir": 74,
 "humidity": 47,
 "qcStatus": -1,
 "metric": {
 "temp": 19,
 "heatIndex": 19,
 "dewpt": 7,
 "windChill": 19,
 "windSpeed": 2,
 "windGust": 2,
 "pressure": 1012.73,
 "precipRate": 0,
 "precipTotal": 2.79,
 "elev": 79
 }
 }
 ]
}

 

 

 

The question is that I don't how to use in powerapps this is the basic call:

 

 

CurrentWeather.Run(
 {stationId:PWSStation;
 format:"json";
 units:"m";
 apiKey:PWSKey}
)

 

 

but I tried others, for example:

 

CurrentWeather.Run(
 {stationId:PWSStation;
 format:"json";
 units:"m";
 apiKey:PWSKey}
).observations.metric.temp

 

 

Where is my error?

 

Thank you.

 

 

Categories:
I have the same question (0)
  • Verified answer
    Manarjomar Profile Picture
    248 on at

    I solved it!!

     

    Only I need a gallery with this code:

     

    Table(
    CurrentWeather.Run(
     {stationId:PWSStation;
     format:"json";
     units:"m";
     apiKey:PWSKey}
    ).observations)

     

    And the items inside need to have the same schema like the body ouputs. example:

     

    ThisItem.Value.stationID
    ThisItem.Value.metric.temp
    ....

     

    I hope help.

     

    Regards.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard