Coder Social home page Coder Social logo

burgeramt's Introduction

Bürgeramt

a script to check the Bürgeramt for available appt times, and send an sms when there is an opening

Configure to run on Linux server

  • install git, node, npm, java8

    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    sudo apt-get install git nodejs npm oracle-java8-installer
    sudo ln -s `which nodejs` /usr/bin/node
    
  • git clone this repo

  • download selenium

    wget --max-redirect 5 -O selenium-server-standalone-2.48.2.jar http://goo.gl/PJUZfa

  • npm install

  • map phantom

    (check with phantomjs -v) might need to install git-lfs-linux-amd64-1.0.2

    sudo ln libs/phantomjs /usr/local/bin/phantomjs
    sudo ln libs/phantomjs /usr/local/share/phantomjs
    sudo ln libs/phantomjs /usr/bin/phantomjs
    
  • create an auth.json file

  • create /var/log/selenium.log & /var/log/testing.log files

  • start selenium on startup (in /etc/rc.local)

    java -jar /PATH_TO/selenium/selenium-server-standalone-2.48.2.jar >> /var/log/selenium.log 2>&1

  • cron to run every 5 minutes between 7am & 10am

    */5 07,08,09 * * * /usr/bin/node /PATH_TO/burgeramt/check.js >> /var/log/testing.log 2>&1

burgeramt's People

Contributors

grandvizier avatar

Watchers

 avatar  avatar  avatar

burgeramt's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.