buffbears / Weatherscan

Weatherscan Simulator orginally made by /u/AnonChickenWalker. Maintained by Goldblazez (BuffBears).
https://weatherscan.me
129 stars 32 forks source link

No Report/Temporarily Unavailable messages #39

Closed philliml74 closed 1 year ago

philliml74 commented 2 years ago

I absolutely apologize for being a n00b here. I am using Debian 11.5 with node 18.12.0 (which is supposed to be the current LTS)

The issue is that every time I attempt to get thing running, I continue to get a 'no report' or 'temporarily unavailable' message. image

I have of course ensured that I have my weather.com and mapbox.com api key added to the config.js. I have verified that the API key is working:

curl 'https://api.weather.com/v3/location/search?query=49504&language=en-US&format=json&apiKey=xxx'
{"location":{"address":["Grand Rapids, Michigan 49504, United States","49504, Lotte, North Rhine-Westphalia, Germany","49504, Saha-gu, Busan, South Korea","49504, Kükita, Jõgeva, Estonia"],"adminDistrict":["Michigan","North Rhine-Westphalia","Busan","Jõgeva"],"adminDistrictCode":["MI",null,null,null],"city":["Grand Rapids","Lotte","Saha-gu","Kükita"],"country":["United States","Germany","South Korea","Estonia"],"countryCode":["US","DE","KR","EE"],"displayName":["Grand Rapids","Lotte","Saha-gu","Kükita"],"ianaTimeZone":["America/Detroit","Europe/Berlin","Asia/Seoul","Europe/Tallinn"],"latitude":[42.977,52.275,35.051,58.81],"locale":[{"locale1":"Kent County","locale2":"Grand Rapids","locale3":null,"locale4":null},{"locale1":null,"locale2":"Lotte","locale3":null,"locale4":null},{"locale1":null,"locale2":"Saha-gu","locale3":null,"locale4":null},{"locale1":null,"locale2":"Kükita","locale3":null,"locale4":null}],"longitude":[-85.694,7.916,128.964,26.94],"neighborhood":[null,null,null,null],"placeId":["221a3c01e60ecdf5110779de5a0bcf59abf9bd5b4f9cd094a62cbe30d0eeae53","7b28ef5ac3f9b90b40bbd0a59302cb08c7c5185f2252f9b643a622a7cb3a0036","0d3cc00ab386e62e60e159e7cccef749bec12dacc21b644daa54d3df26075d9e","2935286a04a0f04a807a9586bcf84d2f2656fd20ec5c9e8f8d59d15e134d5379"],"postalCode":["49504","49504","49504","49504"],"postalKey":["49504:US","49504:DE","49504:KR","49504:EE"],"disputedArea":[false,false,false,false],"disputedCountries":[null,null,null,null],"disputedCountryCodes":[null,null,null,null],"disputedCustomers":[null,null,null,null],"disputedShowCountry":[[false],[false],[false],[false]],"iataCode":["GRR","FMO","PUS","TAY"],"icaoCode":["KGRR","EDDG","RKPK","EETU"],"locId":["USMI0344:1:US","DENW4285:1:DE","KRXX0479:1:KR","EEXX1440:1:EE"],"locationCategory":[null,null,null,null],"pwsId":["KMIGRAND590","ILOTTE8","ISAHAG4","IMAETS^C],"type":["postal","postal","postal","postal"]}}
 curl 'https://api.weather.com/v3/location/point?geocode=42.997,-85.702&language=en-US&format=json&apiKey=xxx'
{"location":{"latitude":42.977,"longitude":-85.694,"city":"Walker","locale":{"locale1":"Kent County","locale2":"Walker","locale3":null,"locale4":null},"neighborhood":null,"adminDistrict":"Michigan","adminDistrictCode":"MI","postalCode":"49504","postalKey":"49504:US","country":"United States","countryCode":"US","ianaTimeZone":"America/Detroit","displayName":"Walker","dstEnd":"2022-11-06T01:00:00-0500","dstStart":"2022-03-13T03:00:00-0400","dmaCd":"563","placeId":"ec9e0dfa7c389cd8dfcd0f054fdb74a18c569b817c474358b045075d6aa28e47","disputedArea":false,"disputedCountries":null,"disputedCountryCodes":null,"disputedCustomers":null,"disputedShowCountry":[false],"canonicalCityId":"4ae407ee1fd6fc2da14b1db23551dbfc725de102d758c0e22a6fe25d69942ec5","countyId":"MIC081","locId":"USMI0344:1:US","locationCategory":null,"pollenId":"CAD","pwsId":"KMIGRAND590","regionalSatellite":"ne","tideId":null,"type":"postal","zoneId":"MIZ057"}}

I can see that the failure counts for my API usage on wunderground is also increasing: image

I have also noticed a few 404s being presented while running and browsing to the application:

netadm@plutus:/opt/weatherscan/webroot/js$ npm start

> start
> npm-run-all --parallel cors dev-server

> cors
> node ./webroot/js/cors.js

> dev-server
> live-server ./webroot

Running CORS Anywhere on 0.0.0.0:8081
Serving "./webroot" at http://127.0.0.1:8080
Ready for changes
GET /js/secrets.js 404 6.342 ms - 152
GET /images/icons/24.png 404 0.836 ms - 158
GET /images/icons/28.png 404 0.495 ms - 158
GET /images/icons/30.png 404 0.425 ms - 158
GET /fonts/newfonts/Frutiger.woff 404 0.652 ms - 167
GET /js/secrets.js 404 0.543 ms - 152
GET /images/icons/24.png 404 1.221 ms - 158
GET /images/icons/30.png 404 1.110 ms - 158
GET /images/icons/28.png 404 1.387 ms - 158
GET /fonts/newfonts/Frutiger_Bold.woff 404 2.170 ms - 172

Can anyone tell me what it is that I am doing wrong?

MapGuy11 commented 1 year ago

The icons are supposed to be 404 and secrets I would do a hard refresh: ctrl shift r