AllYarnsAreBeautiful / ayab-desktop

The AYAB Software
http://ayab-knitting.com
GNU General Public License v3.0
60 stars 31 forks source link

Connection to DesignaKnit #294

Open Ilushock opened 5 years ago

Ilushock commented 5 years ago

Ladies and gentlemen! I figured out how to connect our machines to DesignaKnit. We need to insert the mouse click event into the program at the time of the carriage turn. Exanple of code:

def click(x,y): win32api.SetCursorPos((x,y)) time.sleep(.1) win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,x,y,0,0) time.sleep(.1) win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,x,y,0,0)

Or using pyautogui.click()

Upload a drawing to AYAB & click 'Configure', than 'Knit', upload the same drawing to DK. Select the type of machine, start knitting and place the mouse cursor over the icon for switching to the next row in DK. When the carriage direction changes, the DK will give knitting tips. The calling to the "Click" method should occur at the current coordinates of the mouse. It remains to find out where to insert this calling in AYAB code. Please help, as I have never code in Python

dl1com commented 4 years ago

@t0mpr1c3 Does this make sense to you? Shouldn't be too hard to add this as an optional feature (to be enabled in the preferences dialogue) (e.g. "Autoclick on each row")

t0mpr1c3 commented 4 years ago

@chris007de @Ilushock I'd like to help. Unfortunately I don't have access to DAK so there is no way I could test the code.

Adding a new checkbox feature to the preference dialog should be very easy now -- just add a new boolean to the dict Preferences.variables.

dl1com commented 4 years ago

@chris007de @Ilushock I'd like to help. Unfortunately I don't have access to DAK so there is no way I could test the code.

Just putting the mouse cursor over a funny button like https://scorecounter.com/click-counter/ should be sufficient for testing. :grin:

t0mpr1c3 commented 4 years ago

OK. I am sure it is pretty straightforward to make the mouse clicks in Qt. I'll put it on the list for 1.0.0.

MattBragg4680 commented 3 years ago

Or if AYAB could be persuaded to write to a data file to indicate when a row has been knitted, DesignaKnit could refer to that file to see when it needs to update the screen. Or AYAB could post a Windows message to DesignaKnit. Let me know - I'm the main DesignaKnit developer. Email me at mb@softbyte.co.uk

t0mpr1c3 commented 3 years ago

Thanks for getting in touch, Matt!

t0mpr1c3 commented 3 years ago

The first change that needs to be made is an extra preference option to be checked when using DAK.

t0mpr1c3 commented 1 year ago

Thanks to Matt, I do have access to DAK9 now and at the very least should self-assign this issue.

I have also figured out most of the details of loading and saving to .stp files which could help make AYAB more interoperable with DAK.

MattBragg4680 commented 1 year ago

Hi Tom,

Do let me know if anything needs tweaking in the communication between DK9 & AYAB.

When a piece is knitted in multiple sections, for example a sweater front with two shoulders, is AYAB able to work through all sections without problem?

Cheers Matthew @. From: Tom Price @.> Sent: Saturday, March 4, 2023 11:21 PM To: AllYarnsAreBeautiful/ayab-desktop @.> Cc: MattBragg4680 @.>; Comment @.***> Subject: Re: [AllYarnsAreBeautiful/ayab-desktop] Connection to DesignaKnit (#294)

Thanks to Matt, I do have access to DAK9 now and at the very least should self-assign this issue.

I have also figured out most of the details of loading and saving to .stp files which could help make AYAB more interoperable with DAK.

— Reply to this email directly, view it on GitHubhttps://github.com/AllYarnsAreBeautiful/ayab-desktop/issues/294#issuecomment-1454919536, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHRHXPO4MP3FIYIGR6N4PQDW2PE7BANCNFSM4JCS7EBA. You are receiving this because you commented.Message ID: @.**@.>>

t0mpr1c3 commented 1 year ago

Hi Matthew. Thanks for your support. I'm afraid we're working on much more basic issues at the moment, but I will circle back around to this.

MattBragg4680 commented 6 months ago

Hi Tom,

Did you ever get round to further integrating AYAB and DesignaKnit? I just had an enquiry about whether DesignaKnit can program the KH900’s 200 needles independently and I’ve told them about AYAB, but I don’t know to what extent you are planning for the two systems to operate together.

Best, Matthew Bragg @. From: Tom Price @.> Sent: Monday, March 6, 2023 5:47 PM To: AllYarnsAreBeautiful/ayab-desktop @.> Cc: MattBragg4680 @.>; Comment @.***> Subject: Re: [AllYarnsAreBeautiful/ayab-desktop] Connection to DesignaKnit (#294)

Hi Matthew. Thanks for your support. I'm afraid we're working on much more basic issues at the moment, but I will circle back around to this.

— Reply to this email directly, view it on GitHubhttps://github.com/AllYarnsAreBeautiful/ayab-desktop/issues/294#issuecomment-1456627058, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHRHXPODJXWWQG4GRE2YVWDW2YPIPANCNFSM4JCS7EBA. You are receiving this because you commented.Message ID: @.**@.>>

t0mpr1c3 commented 6 months ago

Not yet, but it remains on the radar. There is a lot in the pipeline for AYAB including a big version release and new hardware later this year -- all very positive developments for the project, but it does mean that everything else is on the back burner.

The chances are good that I will get around to it in the next 12 months because I am just about to start working with Jim McCann at CMU on a year long research project looking at open source knitting technology for legacy domestic knitting machines, and will actually be getting paid to do this stuff :)

Very best wishes, Tom

On Tue, Apr 16, 2024 at 5:39 AM MattBragg4680 @.***> wrote:

Hi Tom,

Did you ever get round to further integrating AYAB and DesignaKnit? I just had an enquiry about whether DesignaKnit can program the KH900’s 200 needles independently and I’ve told them about AYAB, but I don’t know to what extent you are planning for the two systems to operate together.

Best, Matthew Bragg @. From: Tom Price @.> Sent: Monday, March 6, 2023 5:47 PM To: AllYarnsAreBeautiful/ayab-desktop @.> Cc: MattBragg4680 @.>; Comment @.***> Subject: Re: [AllYarnsAreBeautiful/ayab-desktop] Connection to DesignaKnit (#294)

Hi Matthew. Thanks for your support. I'm afraid we're working on much more basic issues at the moment, but I will circle back around to this.

— Reply to this email directly, view it on GitHub< https://github.com/AllYarnsAreBeautiful/ayab-desktop/issues/294#issuecomment-1456627058>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AHRHXPODJXWWQG4GRE2YVWDW2YPIPANCNFSM4JCS7EBA>.

You are receiving this because you commented.Message ID: @.**@.>>

— Reply to this email directly, view it on GitHub https://github.com/AllYarnsAreBeautiful/ayab-desktop/issues/294#issuecomment-2058668544, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAM63QUYIRWTTRS55ZNJPUDY5TWTXAVCNFSM4JCS7EBKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBVHA3DMOBVGQ2A . You are receiving this because you were assigned.Message ID: @.***>

MattBragg4680 commented 1 month ago

Hello Tom,

I’ve recently been emailing with eKnitter about the possibility of their system interfacing with DesignaKnit.

In Sept 2021 I made a change to DesignaKnit’s interactive knitting process that allows an external Windows program to track the movement of the knitting carriage, and I emailed you the details of how it works. I’m planning to use that same process with eKnitter and I just wanted to be sure you didn’t regard that as being exclusively for AYAB. EKnitter are keen not to step on anyone’s toes and I’d like to receive your confirmation that there isn’t any assumed NDA or exclusivity about that mechanism. Is that OK?

Cheers Matthew

From: Tom Price @.> Sent: 17 April 2024 05:21 To: AllYarnsAreBeautiful/ayab-desktop @.> Cc: MattBragg4680 @.>; Comment @.> Subject: Re: [AllYarnsAreBeautiful/ayab-desktop] Connection to DesignaKnit (#294)

Not yet, but it remains on the radar. There is a lot in the pipeline for AYAB including a big version release and new hardware later this year -- all very positive developments for the project, but it does mean that everything else is on the back burner.

The chances are good that I will get around to it in the next 12 months because I am just about to start working with Jim McCann at CMU on a year long research project looking at open source knitting technology for legacy domestic knitting machines, and will actually be getting paid to do this stuff :)

Very best wishes, Tom

On Tue, Apr 16, 2024 at 5:39 AM MattBragg4680 @.<mailto:@.>> wrote:

Hi Tom,

Did you ever get round to further integrating AYAB and DesignaKnit? I just had an enquiry about whether DesignaKnit can program the KH900’s 200 needles independently and I’ve told them about AYAB, but I don’t know to what extent you are planning for the two systems to operate together.

Best, Matthew Bragg @.<mailto:@.> From: Tom Price @.<mailto:@.>> Sent: Monday, March 6, 2023 5:47 PM To: AllYarnsAreBeautiful/ayab-desktop @.<mailto:@.>> Cc: MattBragg4680 @.<mailto:@.>>; Comment @.<mailto:@.>> Subject: Re: [AllYarnsAreBeautiful/ayab-desktop] Connection to DesignaKnit (#294)

Hi Matthew. Thanks for your support. I'm afraid we're working on much more basic issues at the moment, but I will circle back around to this.

— Reply to this email directly, view it on GitHub< https://github.com/AllYarnsAreBeautiful/ayab-desktop/issues/294#issuecomment-1456627058>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AHRHXPODJXWWQG4GRE2YVWDW2YPIPANCNFSM4JCS7EBA>.

You are receiving this because you commented.Message ID: @.**@.mailto:***@***.******@***.***>>

— Reply to this email directly, view it on GitHub https://github.com/AllYarnsAreBeautiful/ayab-desktop/issues/294#issuecomment-2058668544, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAM63QUYIRWTTRS55ZNJPUDY5TWTXAVCNFSM4JCS7EBKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBVHA3DMOBVGQ2A . You are receiving this because you were assigned.Message ID: @.<mailto:@.>>

— Reply to this email directly, view it on GitHubhttps://github.com/AllYarnsAreBeautiful/ayab-desktop/issues/294#issuecomment-2060315634, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHRHXPMVLOT7AFBBZ2XRGQLY5X2CNAVCNFSM4JCS7EBKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBWGAZTCNJWGM2A. You are receiving this because you commented.Message ID: @.**@.>>

t0mpr1c3 commented 4 weeks ago

Hi Matthew,

Thanks for doing us the courtesy of contacting us about this. I can confirm that there was no understanding of exclusivity in relation to any discussions we had about planning interoperability between DAK and AYAB.

At the time of our initial correspondence these changes to DAK were still in the pipeline. I would summarize the changes for the benefit of other people reading this, but I don't currently have any record of how the changes worked. I can only assume that you did send this information and I no longer have the email thread.

MattBragg4680 commented 4 weeks ago

Hi Tom,

Thanks for the clarification. If you get to the point of wanting to implement interoperability between DAK and AYAB then do let me know.

Best regards Matthew

From: Tom Price @.> Sent: 10 October 2024 02:19 To: AllYarnsAreBeautiful/ayab-desktop @.> Cc: MattBragg4680 @.>; Comment @.> Subject: Re: [AllYarnsAreBeautiful/ayab-desktop] Connection to DesignaKnit (#294)

Hi Matthew,

Thanks for doing us the courtesy of contacting us about this. I can confirm that there was no understanding of exclusivity in relation to any discussions we had about planning interoperability between DAK and AYAB.

At the time of our initial correspondence these changes to DAK were still in the pipeline. I would summarize the changes for the benefit of other people reading this, but I don't currently have any record of how the changes worked. I can only assume that you did send this information and I no longer have the email thread.

— Reply to this email directly, view it on GitHubhttps://github.com/AllYarnsAreBeautiful/ayab-desktop/issues/294#issuecomment-2403709197, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHRHXPLLPIFXBPEZ3U37VVTZ2XIYXAVCNFSM6AAAAABPR76QG2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBTG4YDSMJZG4. You are receiving this because you commented.Message ID: @.**@.>>