# Run these commands and open http:https://localhost:3000/accumark
rm db-development-weather-checker.sqlite && make migrate && make seed && make
# Just linting
make test
git push umaar master
make install
make migrate
make seed
pm2 show weather-checker
curl -X GET "https://dataservice.accuweather.com/locations/v1/cities/geoposition/search?apikey=<API_KEY_HERE>&q=<LAT_HERE>%2C<LON_HERE>&details=true"
See location-based-on-lat-lon.json
response.Details.Key
which gives a more granular key, which can then be used in further API requests.
response.ParentCity.Key gives back a key which is needed for the next API request:
curl -X GET "https://dataservice.accuweather.com/currentconditions/v1/<LOCATION_KEY_HERE>?apikey=<API_KEY_HERE>&details=true"
curl -X GET "https://dataservice.accuweather.com/forecasts/v1/daily/1day/<LOCATION_KEY_HERE>?apikey=<API_KEY_HERE>&details=true&metric=true"
curl -X GET "https://dataservice.accuweather.com/forecasts/v1/hourly/1hour/<LOCATION_KEY_HERE>?apikey=<API_KEY_HERE>&details=true&metric=true"
curl -X GET "https://dataservice.accuweather.com/forecasts/v1/hourly/12hour/<LOCATION_KEY_HERE>?apikey=<API_KEY_HERE>&details=true&metric=true"
curl -X GET "http:https://dataservice.accuweather.com/locations/v1/cities/autocomplete?apikey=<API_KEY_HERE>&q=brigh"
24 hours or more are not permitted by the API.