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

Help: Limitations of the "pre-built" (exe) version and can you save the Dates? #133

Open
jksmurf opened this issue Aug 23, 2021 · 1 comment

Comments

@jksmurf
Copy link

jksmurf commented Aug 23, 2021

I have read the readme and https://github.com/jvolker/miq-nz-booking-tools/blob/master/MIQ-Booking-Assistance/README.md have searched for other similar questions but have not found a clear solution that fits my case.

Apologies for repeating here but I asked this in a thread which was closed overnight (without addressing this specifically), hope it is Ok to ask again.

Could I ask what the limitations of the "pre-built" (exe) version are please?

I ask as from here #108, TigaNZ said:

snip...

Also editing the MIQ-assistance.js to include your login details helps cut downtime.
Find it using windows search, look for the path which is similar to c:\users\appdata\local\miq_nz_booking_tools\app-0-10.3\resources\app
You can edit this in notepad, but notepad++ is free and very good for scripting.
snip...

I'm struggling a wee bit implementing the above suggestion. I installed 10.4 (exe version), navigated to the MIQ-assistance.js file in the c:\users\appdata\local\miq_nz_booking_tools\app-0-10.4\resources\app directory, edited it by adding the required dates, set the dates option true to false to make it select the specific dates and edited my login/password but when I run it, none of the changes seems to stick.

When I go back in to the path again, and check the MIQ-assistance.js file it seems to be overidden each time, by the default script. Is there something fundamental I am missing here please?

I also tried a 10.3-based version compiled by mark-bloom that I downloaded a few days ago and oddly this version does seems to be able to be run and keep the edits.

Does the "pre-built" (exe) version assume you can add Dates/logins from the little popup window only i.e. is this one of the limitations? If so can the dates you add using the console there be saved somehow? Alternatively, Is there something I need to do to be able take advantage of editing the MIQ-assistance.js manually in the pre-built version?

I also tried (with some trepidation and following directions in other threads) the commandline version (npm start), having installed Node.js, which does recognise modifications to MIQ-assistance.js. This seems to run from the Directory you extract the downloaded .zip file to, like a 'Portable' version.

I assume this is correct as there is no c:\users\appdata\local\miq_nz_booking_tools\app-0-10.4\resources\app directory when you run the commandline version.

thank you for any help, it's been a pretty steep learning curve.

k.

My system
Operating System: Windows 10
Version: MIQ-Booking-Assistance 0.10.4

@actualharry
Copy link

Same thing for me - the .exe does not read the dates out of the MIQ-assistance.js file, nor myrefresh time. It does remember and enter my username and password, though. These settings do not get overwritten for me.

`// MIQ BOOKING ASSISTANCE

// CHANGE DATES TO WHAT YOU ARE LOOKING FOR
let myDates = ['2021-11', '2021-12'];

// DON'T CARE ABOUT A SPECIFIC DATE? SET THIS TO TRUE
let findAnyDate = false;

let accessibilityRequirement = false; // change to "true" if you have accessibility requirement
let roomType = 'double'; // double or twin

// --------------
// OPTIONAL: PREFILL LOGIN

// You will have to login to your MIQ account in the browser window. You probably best login manually at the start.
// But if you like you can prefill credentials instead. To do this you have to change the option to "login", run the script and login. Afterwards you need to switch back to "login-done" and restart the script.
const step = "login"; // options: "login", "login-done"

// edit the variables below to suit your requirements
const email = 'xxxx@gmail.com';
const password = 'xxxxxxxx';

// --------------
// OPTIONAL: How many seconds to refresh the page.
// Don't decrease this further to prevent 403 errors: #8
let secondsTillRefresh = 7;
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants