From b6510d453d9358e24374114d5d264bc6be35b963 Mon Sep 17 00:00:00 2001 From: o355 Date: Sun, 3 Dec 2017 14:32:56 -0500 Subject: [PATCH] PyWeather 0.6.3 beta is done! --- CHANGELOG.md | 4 +- README.md | 7 +--- configsetup.py | 18 ++++----- updater/releasenotes.txt | 77 +++++++++++++++++++++++---------------- updater/versioncheck.json | 14 +++---- 5 files changed, 64 insertions(+), 56 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dbeb2cb..50dc97d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ * Adds better exiting at multiple input prompts throughout PyWeather ## version 0.6.3 beta - Released on 12/3/2017: +**NEW FEATURES/REMOVALS:** * Adds a nearby location feature to hurricane data (300km out) * Will push the API key validation code up further thanks to new features. * Adding a much nicer progress indicator. @@ -29,11 +30,10 @@ * Much better error catching for the config file (thanks to @TheLetterAndrew for coding this in!) * Adds the ability to view the chance of precipitation on the forecast page. * Adding the ability to show cache timings. -* Adds a new loader, which makes loading things in PyWeather a lot more nice. * The ability to see pressure and visibility data has been added to historical hourly & yesterday hourly information. * Minor UI changes. -**BUG FIXES** +**BUG FIXES:** * Fixed multiple major bugs regarding invalid historical summary data & historical hourly data * Fixed multiple major bugs regarding invalid yesterday summary data & yesterday hourly data * Fixed a bug where if you didn't have API key validation on, PyWeather validated your API key, and vice versa. diff --git a/README.md b/README.md index 798a53a..fb02230 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,12 @@ [Subscribe to the PyWeather Weekly Update, for all the latest in PyWeather news on a weekly basis!](https://owenthe.ninja/sign-pyweathers-weekly-newsletter/) -## Welcome to PyWeather (0.6.2 beta)! +## Welcome to PyWeather (0.6.3 beta)! Welcome to PyWeather, the fun way to check the weather in a terminal. Thanks for being here! PyWeather is the culmination of thousands of hours of work poured into a silly little project that got more advanced over time. I hope that you can enjoy PyWeather as much as I enjoy making PyWeather, so, let's get started! -## Hey! PyWeather 0.6.3 beta is coming out by 3pm EST on December 3rd! -Writing release notes is a tiring and long process. - ## Requirements To run PyWeather, you'll need: * A computer (Windows, OS X, most Linux distros) @@ -25,7 +22,7 @@ If you'd rather, you can also download PyWeather with Git, using the following c ``` git clone https://github.com/o355/pyweather.git ./pyweather cd pyweather -git checkout 0.6.2-beta +git checkout 0.6.3-beta ``` After that, run `setup.py`, and the setup file will guide you through setting up PyWeather. After that, run `pyweather.py`, and enjoy the magic of PyWeather! It's as easy as that. diff --git a/configsetup.py b/configsetup.py index 0194cdb..c29c50d 100644 --- a/configsetup.py +++ b/configsetup.py @@ -35,16 +35,6 @@ config = configparser.ConfigParser() config.read("storage//config.ini") - -try: - versioninfo = open('updater//versioninfo.txt').close() -except: - open('updater//versioninfo.txt', 'w').close() - with open("updater//versioninfo.txt", 'a') as out: - out.write("0.6.3 beta") - out.close() - input() - sys.exit() # Verbosity and all that fun stuff isn't available here. # If the config isn't set up, and by default, verbosity is off # why should I code it in? @@ -224,6 +214,14 @@ print("Press enter to exit.") input() sys.exit() + try: + open('updater//versioninfo.txt', 'w').close() + with open("updater//versioninfo.txt", 'a') as out: + out.write("0.6.3 beta") + out.close() + except: + print("Couldn't write the versioninfo file. This may cause issues with PyWeather down the road.") + print("All done! Try relaunching the script that asked you to", "provision your config file.", "Press enter to exit.", sep="\n") diff --git a/updater/releasenotes.txt b/updater/releasenotes.txt index 1742039..463558c 100644 --- a/updater/releasenotes.txt +++ b/updater/releasenotes.txt @@ -1,34 +1,47 @@ -**WHEN UPDATING FROM 0.6.1 BETA TO 0.6.2 BETA, YOU WILL NEED TO ENTER "2" IN THE INPUT PROMPT (also when you run configupdate separately)** -**THE GIT UPDATER WILL BREAK AFTER YOUR CONFIG IS UPDATED. ENTER "NO", THEN EXIT OUT OF PYWEATHER.** -**The updater will break on most platforms (Windows however is completely fine!)** +**THE GIT UPDATER IS STILL BROKEN, AND IS REMOVED IN 0.6.3 BETA. A NEW UPDATER WILL BE COMING IN THE NEXT VERSION.** -**NEW FEATURES/REMOVALS** -* Adds the ability to view yesterday's weather. - Thanks to @ModoUnreal for coding this in! -* Adds the ability to view hurricane data in PyWeather. -* Adds the ability to view tide data in PyWeather. -* Adds the manual configuration of 3-day and 10-day hourly cache times. - Thanks to @ModoUnreal for coding this in! -* Fixes a major issue with a geocoder scheme issue. PyWeather can automatically select a geocoder scheme, depending on your OS. -* Adds the ability to input decimal numbers into cache times during setup. -* Adds the ability to manually define a version you're upgrading to in the configupdate script in the event your versioncheck file is gone. -* Removed the configdefault script. The configsetup script has taken it's place now. -* Added up-to-date and no matching version messages in the configupdate script. -* Minor UI updates +**PyWeather 0.6.3 beta requires a new library, halo. The configupdate script should automatically install this, but you +can (or might need to) install it yourself. The configupdate script will still update your config, even if halo can't be installed.** -**BUG FIXES** -* Fixed a critical bug where if geopy wasn't installed before setup, Pyweather Setup would install geocoder INSTEAD of geopy, and throw an error. -* Fixed a bug where I forgot to globalize variables relating to emptying the radar cache. -* Fixed a bug where if your configuration file failed to load, cache times were set insanely high (5 seconds for alert data, etc) -* Fixed a bug where if you entered nothing for the backup key directory, an error would occur. Thanks to @creepersbane for reporting the error! -* Fixed a bug where if your configuration file failed to load, enter to continue prompts were disabled by default. -* Fixed a bug where the last step in the setup process (bypassing radar confirmation) didn't have proper else catching, and if a "yes" or "no" was entered, PyWeather setup would crash. -* Fixed a bug where you weren't able to exit out of the summary screen when viewing historical data. -* Fixed a bug where wind chill data in celsius in historical hourly displayed "kph" instead of a degree C symbol. -* Fixed a bug where the 10 day forecast cache expire time was running off of the hourly cache time. -* Fixed a bug where PyWeather wouldn't properly catch no moonrise data, resulting in a crash. -* Fixed a bug where if alerts data wasn't getting prefetched at boot, when detailed alerts data was called up PyWeather would crash. -* Fixed a bug where if you had 10-day hourly prefetch enabled at boot, when you viewed detailed 10-day hourly information PyWeather would crash. -* Fixed a potential bug where the configupdate script might not at all work when you manually edit the version info file. It now searches the file instead of an exact match. -* Fixed a bug where yesterday precipitation data could say "T" on the summary screen. A data check has been added. -* Fixing a bug where if some almanac data wasn't available, PyWeather would crash - 80% done. Thanks to @ModoUnreal for reporting the error! -* Fixing a "bug" where if you had no connection to the updater at boot with it enabled, PyWeather would exit instead of continue - 0% done. Thanks to @creepersbane for reporting the error! -* Fixed a potential bug where proper code to catch invalid sunrise/sunset data was not implemented. \ No newline at end of file +**NEW FEATURES/REMOVALS:** +* Adds a nearby location feature to hurricane data (300km out) +* Will push the API key validation code up further thanks to new features. +* Adding a much nicer progress indicator. +* Adds the ability to prefetch yesterday's weather at boot, and a caching system. (thanks to @ModoUnreal for partially coding this in!) +* Adds the ability to view your current location through a GeoIP service +* Adds the ability to view data through a PWS at boot. +* Adds the ability to have up to 5 favorite locations. +* Adds the ability to manually define a Google Maps API key +* Much better error catching for the config file (thanks to @TheLetterAndrew for coding this in!) +* Adds the ability to view the chance of precipitation on the forecast page. +* Adding the ability to show cache timings. +* The ability to see pressure and visibility data has been added to historical hourly & yesterday hourly information. +* Minor UI changes. + +**BUG FIXES:** +* Fixed multiple major bugs regarding invalid historical summary data & historical hourly data +* Fixed multiple major bugs regarding invalid yesterday summary data & yesterday hourly data +* Fixed a bug where if you didn't have API key validation on, PyWeather validated your API key, and vice versa. +* Fixed potential bugs where PyWeather wouldn't properly display precip information for forecast data - The algorithm was reworked. +* Fixed a bug where if you manually flagged all data types to refresh, hurricane data wouldn't be refreshed. +* Fixed a minor bug where if the summary section couldn't be added in the setup file, the print statement indicated that the cache section wasn't added. +* Fixed a bug where PyWeather didn't catch bad visibility, UV index, and humidity data for current weather +* Fixed a bug where the visibility in km on the yesterday's summary screen read as "kph". +* Fixed a minor bug where on yesterday's weather hourly data, the degree symbol was placed too far right by 1 character. +* Fixed a potential bug where missing data on yesterday's weather would cause a crash. +* Fixed a potential bug where if almanac data is prefetched, it wouldn't display when viewing it in detail, and PyWeather would crash. +* Fixed a minor bug where on the historical weather summary, total precipitation data in mm had a "mb" label. +* Fixed a minor bug where historical hourly data wouldn't break when the current iterations equaled the total iterations. +* Fixed a minor bug where PyWeather wouldn't catch bad humidity data for current conditions. +* Fixed a bug where configsetup script set the default geocoder scheme to https, which caused issues on platforms that don't support the geocoder running in the HTTPS scheme. + +**OTHER CHANGES:** +* The Git Updater has been completely removed, as it's been unreliable. A universal updater will be introduced later in time. +* The configupdate file will now properly catch a bad section error (not a plain except) + +**KNOWN ISSUES:** +* Tide data may not be fully available for some cities. I'm working on a fix for 0.6.4 beta. +* Attempting to exit out of historical weather is bugged. I'm also working on a fix for 0.6.4 beta. +* Hurricanes in hurricane data will show up twice. I've already contacted Wunderground about the issue, but they haven't responded back. A fix is coming in 0.6.4 beta. +* A custom geocoder key won't work without an https-enabled scheme. There is a temporary fix in 0.6.3 beta, but a more comprehensive fix will be coming in 0.6.4 beta. +* The configsetup script will default to an http scheme regardless of if your OS is https compatible or not. A more comprehensive fix will be coming in 0.6.4 beta. \ No newline at end of file diff --git a/updater/versioncheck.json b/updater/versioncheck.json index fcaf942..d7ee345 100644 --- a/updater/versioncheck.json +++ b/updater/versioncheck.json @@ -1,12 +1,12 @@ { "updater": { "apiversion": "1.4", - "latestbuild": "62", - "latestversion": "0.6.2 beta", - "latestversiontag": "0.6.2-beta", - "latesturl": "https://github.com/o355/pyweather/releases/download/0.6.2-beta/pyweather-0.6.2beta.zip", - "latestfilename": "pyweather-0.6.2beta.zip", - "releasedate": "September 24, 2017", - "nextversionreleasedate": "December 2, 2017" + "latestbuild": "63", + "latestversion": "0.6.3 beta", + "latestversiontag": "0.6.3-beta", + "latesturl": "https://github.com/o355/pyweather/releases/download/0.6.3-beta/pyweather-0.6.3beta.zip", + "latestfilename": "pyweather-0.6.3beta.zip", + "releasedate": "December 3, 2017", + "nextversionreleasedate": "Late February 2018" } }