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
0
votes
1 answer

How to embed weather API into shinydashboards

I am creating shiny dashboard that will have various information. One of the things that I am trying to implement is to have a section in the app for weather. I am learning shiny dashboard on the go. This in fact is my first shiny app. So in order…
Nick
  • 369
  • 1
  • 3
  • 18
0
votes
2 answers

Showing correct sunrise/sunset times using unix timestamp

I'm getting a UNIX timestamp from DarkSkyApi for the sunrise & sunset times for the selected location and i want to convert it to a DateTime format and display it to the user. I want the time values to be local. Example case : The user is in Italy…
Stelios Papamichail
  • 955
  • 2
  • 19
  • 57
0
votes
1 answer

How to create a function to retrieve multiple cities historical weather using R and DARKSKY api?

I'm trying to retrieve historical weather data for 100 cities in R using DARKSKY API. The following code works to get historical data for 1 city, however I'm having issues creating a loop function to go through a list of 100 latitude and longitudes…
JRH06
  • 3
  • 1
0
votes
0 answers

Trying to understand how to call a future forecast with Dark Sky API

Trying to understand how to write this function to get a 6-day forecast for 2 days from now. Right now it returns an 8 day forecast including today. If I give it the atTime it gives me one forecast during that day. I'm using php (laravel) …
vvp24
  • 25
  • 8
0
votes
1 answer

Unexpected time values returned from DarkSky API request

I'm making a Forecast Request using DarkSky weather API and I do not understand the logic of the time values returned. The…
elderlyman
  • 500
  • 8
  • 24
0
votes
1 answer

How to specify a date range in Dark Sky API

I am new to using APIs so I apologize if this is not a helpful question. I cannot find in the documentation of how to specify a range of dates to pull weather data from. Do you know how to do this? request=request.get = ('[darksky api URL/key],…
Wavetree
  • 21
  • 6
0
votes
1 answer

setup problems nginx darksky cors proxy

I am currently trying to implement a own cors proxy based on nginx. For testing I try to request the data from the darksky api. The problem is that I always get the response that I don't have the access-control-allow-origin header set. What do I do…
user1410569
  • 13
  • 1
  • 7
0
votes
1 answer

I am using Dark Sky API for a weather app, and what does this time mean?

A bit of code shows {"time":1578475688. This doesn't match the time that it was at the time. The time was around 5:27 pm at this time, and I am wondering what this means.
jso8910
  • 1
  • 3
0
votes
1 answer

Using darksky r package to scrape daily historical weather data

This is more of a conceptual question, sorry I am not posting a lot of original data. Any tips for using the darksky package to get daily historical weather data for a specific location? The api returns a complicated list, and I would like to store…
Aaron
  • 109
  • 5
0
votes
1 answer

Getting Bad Request error when using darkskylib library in Python

I am getting a HTTPError: Bad response when trying to receive weather data of the Dark Sky API using the darkskylib in Python. Actually it is a 400 bad request code. It seems it only happens when I use a loop through my pandas dataframe instances…
JoeBe
  • 1,224
  • 3
  • 13
  • 28
0
votes
1 answer

How to get specific data from API and use in function?

I'm trying to build a weather app in nodejs with dark-sky API. I got a separate js file and keep my forecast info in a callback function. However, I also want to use Skycons for visualization. this is my forecast.js. in that script I get info like…
ilkin
  • 99
  • 1
  • 2
  • 11
0
votes
0 answers

cant pass data from textbox inside a loop

so im getting my data from Darksky api, i have elements generated with loops, and i update the text content of those via loop of the api data array. whenever i search, everthing else static changes values, not the one inside the loop function…
DOODpls
  • 41
  • 1
  • 1
  • 10
0
votes
1 answer

Successive promise calls overriding return value

I have a React site and I've set up a component to display the current temperature as well as the current temperature 10 and 20 years ago. (I'm using DarkSky.) The component looks like this (simplified): class WeatherPreview extends React.Component…
David Yeiser
  • 1,438
  • 5
  • 22
  • 33
0
votes
0 answers

How to request json from api only once and use it in multiple classes?

I'm new to swift and I'm working on a weather app that requests the data from darksky.net API, I've managed to send the request and receive the json response, however darksky returns all of the weather data (current weather, hourly weather and daily…
-1
votes
1 answer

darksky api: TLS requirements changed, library no longer works

I've been using this C# library wrapper for the darksky API: https://github.com/amweiss/dark-sky-core In my implementation I poll once every 3 minutes to get the forecast, which I use in my home thermostat network: async void GetForecast() …
buzzard51
  • 1,372
  • 2
  • 23
  • 40
1
2