Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Small tweaks, including fix ErrorScreen #142

Merged
merged 2 commits into from
Jul 23, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Revert data sources changes
  • Loading branch information
amaury1093 committed Jul 22, 2019
commit 7fa99bac22e054a295735c535102d0ede06dd638
2 changes: 1 addition & 1 deletion App/stores/fetchApi/dataSources/aqicn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import { pm25ToCigarettes } from './pm25ToCigarettes';
*/
export async function aqicn ({ latitude, longitude }: LatLng) {
const { data: response } = await axios.get(
`http:https://api.waqi.info/feed2/geo:${latitude};${longitude}/?token=${
`http:https://api.waqi.info/feed/geo:${latitude};${longitude}/?token=${
Constants.manifest.extra.waqiToken
}`,
{ timeout: 6000 }
Expand Down
2 changes: 1 addition & 1 deletion App/stores/fetchApi/dataSources/windWaqi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { pm25ToCigarettes } from './pm25ToCigarettes';
*/
export async function windWaqi ({ latitude, longitude }: LatLng) {
const { data: response } = await axios.get(
`https://wind.waqi.info/ma2pq/nearest?geo=1/${latitude}/${longitude}`,
`https://wind.waqi.info/mapq/nearest?geo=1/${latitude}/${longitude}`,
{ timeout: 6000 }
);

Expand Down