Subj : Re: WxCenter - Weather reader for Synchronet To : DaveW From : Codefenix Date : Tue Sep 05 2023 08:31:18 Re: Re: WxCenter - Weather reader for Synchronet By: DaveW to Codefenix on Tue Sep 05 2023 01:05 am Da> I actually figured out the issue. OpenWeatherMap didnt seem to like my BBS Da> location. The BBS is located in Port Charlotte, Fl and it would give me Da> that error. I went into my BBS config and changed the location of my BBS Da> to very local towns next to mine. I chose Murdock, FL and now when i use Da> the program, OpenWeatherMaps gives me Port Charlotte, Fl now that i use Da> Murdock, FL in my BBS config. very weird but it seems to be an issue with Da> OpenWeatherMaps and not the JS code. :) Hey DaveW! Thanks for the feedback. I'm glad you're enjoying WxCenter. So there are two issues going on here: First, when wxcenter.js validates the location through the geocode.maps.co API, it filters out results with a type not matching administrative, city, town, or village. Looks like Port Charlotte, FL has type values not matching any of these, so that's why it's not finding it (https://geocode.maps.co/search?q=Port%20Charlotte,+Fl). I went ahead and added the type "census", so now it validates that location OK. Second, looks like the showForecast function crashes the script when no results are returned. This is a legitimate bug I need to fix, so thanks for bringing it to my attention. For now, go ahead and try the latest wxcenter.js from GitHub again for Port Charlotte, FL and let me know how it goes for you. |01<|09co|03d|11e|15Ÿ|11e|03n|09ix|01>|07 ....Double your pleasure, Double your fun. Xerox your pay-cheques. --- SBBSecho 3.20-Win32 * Origin: -=[conchaos.synchro.net | ConstructiveChaos BBS]=- (1337:3/150) .