Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIQ Fix 18th Aug #128

Closed
wants to merge 8 commits into from
Closed

MIQ Fix 18th Aug #128

wants to merge 8 commits into from

Conversation

monagjr
Copy link
Contributor

@monagjr monagjr commented Aug 17, 2021

No description provided.

@darianbird
Copy link

Thanks for putting this together. It worked for me last night (Europe time) and stopped on the same slots as the twitter bots. It didn't select the dates or beep (I tried deleting date.elem.click(); to test beep() but no luck there) though - does it do that for you? It also seemed to ignore my dates and stopped on anything available. It's possible I messed something up copying the code over.

@monagjr
Copy link
Contributor Author

monagjr commented Aug 18, 2021

Thanks @bennyggg for test and reporting.
I've added one more update to the code to match the new MIQ update, and this will make it works as expected (i.e clicking the date, beep, match target dates only)

@ricoboirn
Copy link

Hi @monagjr trying your new code with testDates. I couldn't get it to work. I have no idea to coding, but kindly guide me if I'm doing something wrong. Thanks.

// Set to true to turn on test mode
let testDates = true;

if (await findAvailability(page)) {
const status = "AVAILABLE! Found at: " + new Date().toLocaleString();
console.log(status)
updateElectronStatus('status-count', status);
testDates = ['2021-09-26'];

@monagjr
Copy link
Contributor Author

monagjr commented Aug 18, 2021

Thanks @ricoboirn for testing and reporting.
I've updated the code part related to "test mode", it now works as expected.

@darianbird
Copy link

Thanks @bennyggg for test and reporting.
I've added one more update to the code to match the new MIQ update, and this will make it works as expected (i.e clicking the date, beep, match target dates only)

Thanks. I've updated to your newest version and it works with testDates

@ricoboirn
Copy link

@monagjr Awesome, working as intended now. I'm on my 4th week now trying my luck securing for a friend. Thanks.

@monagjr
Copy link
Contributor Author

monagjr commented Aug 18, 2021

Thanks @ricoboirn @bennyggg for confirmation
I hope this will help more to secure their needed spots

@monagjr
Copy link
Contributor Author

monagjr commented Aug 18, 2021

@jvolker @alexDrinkwater @stilljake can you merge this with base code and create new release binaries?

@Jefsmango
Copy link

Hi guys, sorry to butt in, thanks much for doing this, this is a lot of help for non-programmers such as myself. If I may ask a favor? would you be so kind to update the MIQ-Booking-Assistance v0.10.3 exe file so that we can redownload and use it as well? Really need to book a slot for my daughter. Thanks a lot

@rufdev
Copy link

rufdev commented Aug 19, 2021

no beep again.. sad..

@stilljake
Copy link
Contributor

@jvolker @alexDrinkwater @stilljake can you merge this with base code and create new release binaries?

Sorry, I don't have write access!

@monagjr
Copy link
Contributor Author

monagjr commented Aug 19, 2021

@Jefsmango and anyone else who needs ready-made pre-built version of the APP latest version (v0.10.4):

https://github.com/monagjr/miq-nz-booking-tools/releases/latest


https://www.buymeacoffee.com/mojr


const availableDateElements = [...document.querySelectorAll('[class$="_item"] :not(.no)')].filter(d => d.ariaLabel);

const prefix = document.querySelector('.mo-6 > div').getAttribute('class')
Copy link

@sebjamesdev sebjamesdev Aug 19, 2021

Choose a reason for hiding this comment

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

I don't think it's guaranteed that the class will be mo-6 I've seen other values here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sebjamesdev are you sure there are other values for the class than mo-6 ? what other values have you found?
this is by the way a class for the calendar container.

Choose a reason for hiding this comment

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

Sorry, my bad that was the logged out portal calendar.

@Jefsmango
Copy link

Jefsmango commented Aug 19, 2021

Very much appreciated @monagjr , they must have found a way to mess with the script output, it works ok but after a few tries, it stops on the date but not selecting it and no more beeping. and even when you click on the date you cant fill up the recaptcha because it doesnt stop refreshing...

@monagjr
Copy link
Contributor Author

monagjr commented Aug 19, 2021

@Jefsmango thanks for reporting this, I'll check it if something from code, or temp issue on your end.

Can you please open a discussion topic under "bugs / issues" category here?

https://github.com/monagjr/miq-nz-booking-tools/discussions/new

@jvolker
Copy link
Owner

jvolker commented Aug 22, 2021

Thanks, @monagjr. I've tried your changes and was able to get an alert. I've just merged this. New releases will follow in a few minutes.

@jvolker jvolker closed this Aug 22, 2021
@monagjr
Copy link
Contributor Author

monagjr commented Aug 22, 2021

Welcome back @jvolker :)

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.

8 participants