Skip to content

Releases: aschmere/dwd_global_radiation

Release 1.1.0rc6

01 Jun 13:32
Compare
Choose a tag to compare
Release 1.1.0rc6 Pre-release
Pre-release

Enhancements:

  • Improved Forecast Retrieval: Refactored the get_forecast_for_future_hour method in Location to return a dictionary directly instead of a JSON string. This enhancement simplifies the handling of forecast data and reduces potential errors related to JSON string processing.

Details:

  • The get_forecast_for_future_hour method now ensures that forecast data is returned as a dictionary. This change improves the usability of the method and aligns with best practices for data handling in Python.
  • Users of the Python package will now receive forecast data as a structured dictionary, making it easier to work with and integrate into other systems.

Version Update:

  • Bumped the version in setup.py to 1.1.0rc6 to reflect these improvements and changes.

This release focuses on enhancing the internal methods of the package to provide more robust and user-friendly functionality for forecast retrieval.

Release 1.1.0rc5

01 Jun 10:57
Compare
Choose a tag to compare
Release 1.1.0rc5 Pre-release
Pre-release

Features

  • Add function to get forecast for a specific future hour
    • Implemented the get_forecast_for_future_hour method in the Location class to retrieve the forecast for a specific hour in the future.
    • The method takes a datetime_input parameter and a number_of_hours parameter, finds the corresponding forecast entry, and returns it in JSON format. If no forecast is found, an error message is returned.
    • Ensured the datetime_input parameter is timezone-aware and returns the forecast timestamp in UTC format.
    • Rounded the sis value to 0 decimal places.

Improvements

  • Update setup.py
    • Bumped the version to 1.1.0rc5.

This release introduces a new method to retrieve specific hourly forecasts, ensuring accurate and timezone-aware timestamps, along with rounding improvements for the forecast values.

Release Note for 1.0.0rc4

30 May 16:53
Compare
Choose a tag to compare
Pre-release

Version: 1.0.0rc4
Release Date: 30th May 2024

This release updates the package version to 1.0.0rc4. There are no functional changes or new features in this release compared to 1.0.0rc1.

Note: Intermediate versions 1.0.0rc2 and 1.0.0rc3 were used for testing purposes to address specific import issues with Home Assistant when automatically installing the required netCDF package. These versions have now been consolidated, and 1.0.0rc4 reverts to the stable state of 1.0.0rc1.

Release 1.0.0rc8

24 May 18:01
Compare
Choose a tag to compare
Release 1.0.0rc8 Pre-release
Pre-release

Description

This pre-release includes important bug fixes and enhancements to ensure the correct resetting of measurements and forecasts during data fetch operations. Additionally, the version has been updated to 1.0.0rc7a.

Bug Fixes

  • Reset Measurements: Ensured that measurements for every location are reset at the beginning of each fetch_measurements() call. This prevents the accumulation of measurement values across multiple runs.
  • Reset Forecasts: Modified the fetch_forecasts() method to reset the forecasts object for each location, ensuring that outdated forecast data is not retained.

Enhancements

  • Version Bump: Updated the version in setup.py to 1.0.0rc8 to reflect these changes.

v1.0.0rc7: Enhanced JSON Serialization and Version Update

24 May 08:29
Compare
Choose a tag to compare

Description:

This release includes several key updates and improvements:

  • Added to_dict Methods:

    • Implemented to_dict methods across various classes to enable easy JSON serialization. This ensures that our objects can be seamlessly converted to JSON format, which is essential for compatibility with Home Assistant and other systems that utilize JSON data.
  • Version Update:

    • Updated the version to 1.0.0rc7 in setup.py to prepare for the publication of this new release.

Changes:

  • JSON Serialization:

    • Added to_dict methods in the following classes:
      • MeasurementEntry
      • Measurement
      • ForecastEntry
      • Forecast
      • Location
      • GlobalRadiation
    • These methods ensure that all attributes are converted to a format compatible with JSON serialization, handling native and NumPy types appropriately.
  • Version Bump:

    • Updated the project version to 1.0.0rc7 to reflect the new features and improvements.

Release 1.0.0rc6

22 May 14:28
Compare
Choose a tag to compare
Release 1.0.0rc6 Pre-release
Pre-release
  • Add 1.0.0rc6 to setup.py
  • Add "remove_location" method

Release 1.0.0rc5

21 May 10:56
Compare
Choose a tag to compare
Release 1.0.0rc5 Pre-release
Pre-release

Relax numpy requirement from >=1.26.4 to 1.26.0 in release 1.0.0rc5

Release 1.0.0rc4

17 May 11:06
Compare
Choose a tag to compare
Release 1.0.0rc4 Pre-release
Pre-release

What's New

  • Version Update: Bumped the version in setup.py from 1.0.0rc3 to 1.0.0rc4.

Improvements

  • Optimization: Optimized the _get_nearest_grid_point function by leveraging the known grid resolution. This change significantly reduces the number of points checked by calculating only the four nearest grid points based on the given latitude and longitude, improving the efficiency of the function.

Detailed Release Notes

  1. Version Update:

    • Updated the version in setup.py to 1.0.0rc4 to reflect the latest changes and improvements.
  2. Function Optimization:

    • Improved the _get_nearest_grid_point function:
      • Removed the unused coordinates variable.
      • Optimized the function to check only the four nearest grid points, reducing computational overhead and enhancing performance.

1.0.0rc3 - Fix repository link in setup.py

15 May 17:28
Compare
Choose a tag to compare

See Readme.md

Initial public version dwd_global_radiation

15 May 15:10
Compare
Choose a tag to compare

See Readme.md