ftavares / gatsby-source-openweathermap Goto Github PK
View Code? Open in Web Editor NEWA Gatsby source plugin to load resources from the OpenWeatherMap API
License: MIT License
A Gatsby source plugin to load resources from the OpenWeatherMap API
License: MIT License
I have static GraphQL query running fine in local development and GraphQL explorer that looks like this
{
openWeather {
list {
main {
temp
}
weather {
icon
description
}
}
}
}
but when I try to make the build on netlify the error appears.
I recently upgraded to latest versions of Gatsby
I don't know what is wrong, I'm also using preact
SORY THAT WAS A TYPO
The instructions from the Readme.md for this plug-in have you trying to install a non-existent plug-in
Both the yarn command and the plug-in module command reference the mis-named:
gatsby-source-openweatherapi
If instead you use as the plug-in name the name of this repository:
gatsby-source-openweathermap
Everything seems to work (after getting a key) and working out a GraphQL query to include like:
{
openWeather {
cod
cnt
city {
id
population
}
list {
dt
dt_txt
weather {
id
main
}
main {
temp
temp_min
temp_max
pressure
sea_level
grnd_level
humidity
temp_kf
}
rain {
_3h
}
}
}
}
Haven't submitted an issue before, so I hope this will be useful.
Based on https://openweathermap.org/guide#api
We should use appid
instead of apiKey
in the query string parameter.
I have a working update in my fork https://github.com/yorchv/gatsby-source-openweathermap/blob/master/src/gatsby-node.js
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.