Git Product home page Git Product logo

ingress-intel-timelapse's Introduction

Ingress Intel Timelapse

This is a PhantomJS script to render screenshots of borderless Ingress Intel Maps. It can be used in conjunction with task schedulers to periodically take screenshots to create GIF timelapse for operations.

GIF timelapse of Enlightened operation

How to setup

  1. Install PhantomJS from a repo or download from site

    # apt-get install phantomjs

  2. Save and configure screenshot.js

  3. Create script for scheduling

    Shell script

    #!/bin/bash
    for ((i = 0; i < 96; i += 0)) do
    	phantomjs "screenshot.js" &
    	sleep 15m
    done

    Batch script

    for /L %%i IN (1,0,96) do (
    	start phantomjs.exe "screenshot.js"
    	timeout /t 900 /nobreak
    )
  4. Execute script

    Linux

    $ ./scheduler.sh

    Windows

    scheduler.bat

Creating GIF

  1. Install ImageMagick from a repo or download from site

    # apt-get install imagemagick

  2. Create GIF

    $ convert -delay 20 -loop 0 *.png timelapse.gif

Tips

  • The 'SACSID' (session ID) and 'csrftoken' (cross-site request forgery token) cookies can be found by using your browser's developer console.
  • The URL for the map can be located by clicking 'Link' in the top right corner.

Disclaimer

By using this script, you accept that I (Leo Xiong) will not be held responsible for any violations of the Ingress Terms of Service which may result in the suspension or ban of your Ingress account.

Please be considerate of the Ingress servers and set a reasonably long interval in between screenshots.

ingress-intel-timelapse's People

Contributors

leoxiong avatar neon-ninja avatar

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.