Questions tagged [darksky]

For questions about the DarkSky API for common weather history and forecasting.

DarkSky API for common weather history and forecasting.

https://api.darksky.net/forecast/<key>/Latitude, Longitude[, dateTime]

Eg. https://api.darksky.net/forecast/[key]/42.3601,-71.0589

30 questions
13
votes
3 answers

SyntaxError: 'await' outside function

Hello I am new to python and am trying to work with a Dark Sky python API made by Detrous. When I run the demo code I am presented with an error: forecast = await darksky.get_forecast( ^ SyntaxError: 'await' outside function this…
NameIsMarcus
  • 143
  • 1
  • 1
  • 6
5
votes
2 answers

Dark Sky API Replacement Recommendation?

Since Apple bought Dark Sky, What are some replacement option API serves that I/Others can use to develop with. Would need History, Daily, Now, and Forecast... If this belongs on StackExchange, let me know and I will remove it and post it there.…
tpage
  • 123
  • 2
  • 8
3
votes
1 answer

How to parse data from JSON data?

I have a large set of data received from DarkSky (the weather API), and I'd like to get the value of "summary". It is meant to be in JSON format, that I have then translated into a dictionary. However, python is recognising the "data" as a list,…
carbaretta
  • 303
  • 1
  • 6
2
votes
0 answers

How to adjust Dark Sky API response data for daylight savings (GMT/BST)

I'm very new to python and having trouble adjusting the results of an api request to handle UK daylight savings (Greenwich Mean Time / British Summer Time). When reading the Dark Sky documents they state : The timezone is only used for determining…
CatParky
  • 189
  • 1
  • 5
  • 19
2
votes
1 answer

Retrofit onResponse and onFailure methods not getting called

When I make a call to the DarkSky API, for certain locations, my onResponse and onFailure methods are not triggered. I've tested tons of locations in the US, and everything is fine. I tested London, and that was fine, but when I test Chennai,…
Cameron
  • 1,281
  • 1
  • 19
  • 40
2
votes
1 answer

Should DarkSky time machine (historical) data show PrecipAccumulation when precipType is "rain"

At least for Daily? https://api.darksky.net/forecast/[key]/42.3601,-71.0589,1554264000?exclude=minutely (Date is 2019-04-03T04:00:00Z and location is New York New York. Daily shows: "daily": { "data": [ { …
HankCa
  • 9,129
  • 8
  • 62
  • 83
1
vote
0 answers

Not sure why Open Weather API C# Call is not working

I am having difficulty replacing the Dark Sky API with Open weather. GPS Location works and is received through another azure function.The Dark Sky Api call still works too. It might be something little but I'm not sure what's wrong. The only…
Brsn
  • 11
  • 1
1
vote
0 answers

SSL Certificate Error when using an API - troubleshooting methods

I cannot access the Darksky API (weather forecast API) from a python script on my home internet while it runs fine on the office internet. Also, when I paste the Darksky url on a web browser it works fine, too. I read somewhere that both office…
bchoi
  • 41
  • 5
1
vote
1 answer

Darksky Loop through one year of daily data - Datetime Error

I attempt to loop through daily weather data in 2019 using forecastiopy but the error keeps showing. Not sure what the problem is. import pandas as pd import requests import json from forecastiopy import * from datetime import date, timedelta,…
LLL
  • 419
  • 2
  • 6
  • 17
1
vote
0 answers

How to return historical data from Dark Sky API Time Machine

I'm trying to build a web application that can compare current weather conditions with those of a previous date using the Dark Sky API. My end goal would be to be able to select a date, click the "Get Data" button, and view the following results:…
Mike Jandreau
  • 392
  • 3
  • 16
1
vote
1 answer

How can we extract London weather in 2000 via Darksky API?

#install.packages("darksky") library(darksky) library(tidyverse) # current verison packageVersion("darksky") Sys.setenv("DARKSKY_API_KEY" = # Secret API Key ) Sys.getenv("DARKSKY_API_KEY") #This coordinates works now <-…
Abhishek
  • 407
  • 3
  • 18
1
vote
4 answers

Get Value From JSON in Android Studio

I know there are a ton of JSON parsing questions out there. I apologize for asking another one, but I can not get this to work. I am getting a JSON response from DarkSky. That response is fine and I am putting that data into a TextView called…
Matthew
  • 139
  • 1
  • 10
1
vote
1 answer

Darksky Icons wont show up using Loop

I created i HTML canvas tag via loop, and I'm trying to set that tags icon from DarkskyAPI via loop also, but it wont show up. var skycons = new Skycons({"color": "white"}); skycons.set("icon0", Skycons = x.currently.icon); //the icon0 is…
DOODpls
  • 41
  • 1
  • 1
  • 10
1
vote
1 answer

Darksky api not displaying correct time

I used the Dark Sky API variable 'time' to retrieve the unix timestamp, then converted it to hour with the following code: if(navigator.geolocation){ navigator.geolocation.getCurrentPosition(position => { long =…
Zaedian
  • 251
  • 5
  • 24
0
votes
0 answers

NodeJS: Why do I keep getting Cannot GET/

I am currently trying to make a webapp that uses the darksky api to pull weather data. I have the basic functionality done, but when I try to run it on port 3000, I get "Cannot GET/". I am quite new to using node and backend servers as a whole so I…
noble334
  • 1
  • 1
1
2