Skip to content

Get Settings and Set Settings variables #3

@mikeyin97

Description

@mikeyin97

Hello! Firstly, thanks for creating this repo, I have been working with the Ivy2 printer and this project has been immensely helpful, as it holds up well even 2 years later.

I just had a question about how to pass the color_id and auto_power_off in SetSettingTask in task.py? I am trying to change the auto power off time programmatically, and was wondering if you had figured out a way to do so.

I have attempted to process the response from GetSettingTask by adding a process_response, but it provides some binary items I am not sure how to interpret.

class GetSettingTask(BaseTask):
    ack = ACK_SETTING_ACCESSORY

    def get_message(self):
        return bytes(get_base_message(COMMAND_SETTING_ACCESSORY))

    def process_response(self, response):
      for i, item in enumerate(response[:2]):  
        print(f"Byte String {i+1}: {item.hex()}")

I would really appreciate if you could share any of your thoughts on this, and thanks again for building this repo!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions