jvolker / miq-nz-booking-tools

Tools to help booking a spot in New Zealand Managed Isolation and Quarantine. Automatically refreshes, checks and fills forms in the website to find and book the rare spots.
MIT License
83 stars 35 forks source link

Android build possible? #45

Open lostminty opened 3 years ago

lostminty commented 3 years ago

Is this something that could happen? I'm not at my PC enough to take advantage of an available booking when I get a notification of one being found.

alexDrinkwater commented 3 years ago

I don't think its possible with the current contributors however it could be possible to send a notification to your phone via pushsafer.

cummins070 commented 3 years ago

Was also wondering this, will check out pushsafer, thanks for the recommendation.

lostminty commented 3 years ago

I don't think its possible with the current contributors however it could be possible to send a notification to your phone via pushsafer.

I could attempt it if someone could give me some hints about which dependencies would be suitable

I found espresso for the android WebView library that seems to be for automation.

jvolker commented 3 years ago

I don't know of any tools that act similar to Puppeteer (semi-automating user input in a browser) that would run on Android. But I never did any research into it.

Technically it would be possible to have a server component checking MIQ and pushing messages on the availability to the (Android) clients. Maybe it's even possible to subscribe to the Twitter bot?

Though, I'm not sure how MIQ would think about running and providing infrastructure for that purpose and potentially violating their terms of service. I could imagine they might see that different to every user running the entire code on their own separate PC with distributed responsibility. So there might be a higher risk of them shutting it down. That's just a thought, though. It might not be a problem at all.

jrkd commented 3 years ago

In combo with #109 , the chrome extension could be ported to Firefox, which allows it's extensions ('add-ons') to be run on it's Android version.

cummins070 commented 3 years ago

I've got a python script connected to twolio to send me a message in WhatsApp, but that's pretty involved in terms of signing up with twolio etc