Skip to content

Refactor session handling and update changelog for v1.7.0, bunch of fixes and edits#13

Merged
stevejcl merged 65 commits into
stevejcl:evolutionfrom
styelz:main
Aug 28, 2025
Merged

Refactor session handling and update changelog for v1.7.0, bunch of fixes and edits#13
stevejcl merged 65 commits into
stevejcl:evolutionfrom
styelz:main

Conversation

@styelz
Copy link
Copy Markdown

@styelz styelz commented Aug 26, 2025

The pull request titled "Refactor session handling and update changelog for v1.7.0, bunch of fixes and edits" introduces the following changes:

Key Updates:

  1. Session Handling Refactor:

    • Removed unnecessary decrement of dwarf_id.
    • Improved session processing logic.
    • Updated configuration imports for better maintainability.
  2. Bug Fixes:

    • Resolved an issue where the video stream was being called repeatedly, causing slowness.
  3. Changelog Update:

    • Added details for version 1.7.0, including new features, fixes, and improvements.
  4. File Changes:

    • Multiple session JSON files were updated to adjust configurations such as uuid, max_retries, and message fields.
    • Configuration files (config.ini, config.py) were updated to include new fields like device_type and camera_type.
    • Code refactoring in Python scripts (astro_dwarf_scheduler.py, astro_dwarf_session_UI.py, etc.) to improve functionality and readability.
  5. UI Enhancements:

    • Merged Start/Stop Scheduler buttons into a single toggle button.
    • Added video preview functionality in the main tab.
    • Improved form layouts and button functionalities.
    • Introduced session management and color changes for better user experience.
  6. New Features:

    • Ability to import Telescopius Lists.
    • Added support for editing session files directly from the UI.
    • Created MAC and Linux build release files
    • Github runner builds Windows installer using Inno Setup

This PR focuses on improving the overall functionality, performance, and user experience of the application while addressing existing issues.

@styelz styelz changed the title Refactor session handling and update changelog for v1.7 Refactor session handling and update changelog for v1.7, bunch of fixes and edits Aug 26, 2025
Copy link
Copy Markdown
Author

@styelz styelz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, would it be possible to add this function to the dwarf_python_api.dwarf_utiils ? Or do you know another way to power down ?

def perform_powerdown():

    # Power Down
    module_id = 5   # MODULE_SYSTEM
    type_id = 0;    # REQUEST

    # Not sure what to use here but this works
    ReqPowerDown_message = system.ReqDisableDeviceActivate()

    command = 13502; # CMD_RGB_POWER_POWER_DOWN
    response = connect_socket(ReqPowerDown_message, command, type_id, module_id)

    if response is not False: 

      if response == 0:
          log.success("Shutdown command success")
          return True
      else:
          log.error(f"Error code: {response}")
    else:
        log.error("Dwarf API: Dwarf Device not connected")

styelz

This comment was marked as duplicate.

Copy link
Copy Markdown
Author

@styelz styelz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested windows installer created from github actions release.

Copy link
Copy Markdown
Author

@styelz styelz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

build.yaml creates MAC, Linux and Windows versions. Windows and Linux tested and working. Mac untested.

@stevejcl
Copy link
Copy Markdown
Owner

Hi, would it be possible to add this function to the dwarf_python_api.dwarf_utiils ? Or do you know another way to power down ?

def perform_powerdown():

    # Power Down
    module_id = 5   # MODULE_SYSTEM
    type_id = 0;    # REQUEST

    # Not sure what to use here but this works
    ReqPowerDown_message = system.ReqDisableDeviceActivate()

    command = 13502; # CMD_RGB_POWER_POWER_DOWN
    response = connect_socket(ReqPowerDown_message, command, type_id, module_id)

    if response is not False: 

      if response == 0:
          log.success("Shutdown command success")
          return True
      else:
          log.error(f"Error code: {response}")
    else:
        log.error("Dwarf API: Dwarf Device not connected")

Yes , no problem I have added the Reboot and Power Off functions : def perform_reboot() and def perform_powerdown() in 1.4.6

@stevejcl stevejcl merged commit 43ab151 into stevejcl:evolution Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants