vartan / ca-dmv-poller Goto Github PK
View Code? Open in Web Editor NEWPolls DMV offices of your choice for the earliest appointment time
Polls DMV offices of your choice for the earliest appointment time
Neither the original code or pull request code works. Mark this project as abandoned.
TypeError: gm.geocode is not a function
at /Users/xx/ca-dmv-poller/poll.js:153:8
at Promise.apply (/Users/xx/ca-dmv-poller/node_modules/q/q.js:1185:26)
at Promise.promise.promiseDispatch (/Users/xx/ca-dmv-poller/node_modules/q/q.js:808:41)
at /Users/xx/ca-dmv-poller/node_modules/q/q.js:1411:14
at runSingle (/Users/xx/ca-dmv-poller/node_modules/q/q.js:137:13)
at flush (/Users/xx/ca-dmv-poller/node_modules/q/q.js:125:13)
at process._tickCallback (internal/process/next_tick.js:61:11)
at Function.Module.runMain (internal/modules/cjs/loader.js:746:11)
at startup (internal/bootstrap/node.js:240:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:564:3)
Using either the default config.json or my own results in "Match failed - check your config.json. Possible reasons:" with nothing else following.
Hey man, great idea for a module!
Unfortunately, it's a little brittle in that $("#ApptForm").parent().parent().parent().find("tr:nth-child(3) .alert").text().replace(" at "," "); fails as there is no 'ApptForm' on the Santa Clara website, so the resulting dates are invalid and it eventually fails.
I'll try and do a PR up for this this evening, but in the meantime just letting you know :)
I gave my zip code as 95054 throwing an error Could not find your home location.
Getting this error:
โ node poll.js
Checking every 3 minutes, at DMV offices 25 miles from 90021
Will text [redacted] when a match is found.
/Users/kyle/ca-dmv-poller/poll.js:218
var elements = window.document.forms[0].elements;
^
TypeError: Cannot read property 'elements' of undefined
at Object.done (/Users/kyle/ca-dmv-poller/poll.js:218:50)
at process.nextTick (/Users/kyle/node_modules/jsdom/lib/jsdom.js:271:18)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
Here's my config:
{
"behindTheWheelTest": false,
"maxDistanceMiles": 25,
"checkEveryMinutes": 3,
"secondsBetweenRequests": 1,
"findAppointmentWithinDays": 7,
"home": "90021",
"textOnFind": true,
"textNumber": "xxxxxxxxxx",
"appointmentInfo": {
"firstName": "Kyle",
"lastName": "Shockey",
"telArea": "xxx",
"telPrefix": "xxx",
"telSuffix": "xxxx",
"_comment":
"ONLY HAVE TO FILL BELOW FOR BEHIND THE WHEEL TEST, two digit day/month",
"dlNumber": "",
"birthMonth": "",
"birthDay": "",
"birthYear": ""
},
"dayOfWeeks": [
{
"name": "Sunday",
"allowed": true,
"startHour": 9,
"endHour": 17
},
{
"name": "Monday",
"allowed": true,
"startHour": 9,
"endHour": 17
},
{
"name": "Tuesday",
"allowed": true,
"startHour": 9,
"endHour": 17
},
{
"name": "Wednesday",
"allowed": true,
"startHour": 9,
"endHour": 17
},
{
"name": "Thursday",
"allowed": true,
"startHour": 9,
"endHour": 17
},
{
"name": "Friday",
"allowed": true,
"startHour": 9,
"endHour": 17
},
{
"name": "Saturday",
"allowed": true,
"startHour": 9,
"endHour": 17
}
]
}
Unable to pull matches from DMV appointments after setting up config.json
with valid inputs for both standard office visits and behind-the-wheel tests.
It seems that CA DMV might have added new options to their scheduling site:
https://www.dmv.ca.gov/wasapp/foa/clear.do?goTo=officeVisit&localeName=en
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.