Coder Social home page Coder Social logo

ingress-screenshot's Introduction

ingress-screenshot

Takes ingress screenshots with a headless firefox and make a video of those screenshots afterward

Project Website: https://www.hackerspace-bamberg.de/Ingress_Timelapse

Firefox Setup

Create Profile

First you have to set up a new profile for Firefox. You can easily do this by just typing

firefox -P

into a terminal window while no other firefox window is opened. Firefox will now prompt you to create a new profile.

  • Click the '''Create Profile'''-button
  • Press '''Next''' to proceed on the Create Profile Wizard
  • Enter your profile name - preferrably without spaces. e.g. use "ingress_cityname"
  • Finish.

Firefox has now created a new user directory inside your home.

~/.mozilla/firefox/$randomnum.ingress_yourcity

'''Remember:''' If you want to take screenshots on a virtual machine/root-server you have to copy this profile to the machine using e.g. '''scp'''. Also copy and edit the profiles.ini file from ~/.mozilla/firefox/ to your remote machine.

Start firefox with your profile by clicking on "Start Firefox" or run it from console with:

firefox -P ingress_cityname

Log in to Google Account

To watch the intel map you need to log in to your Google account.

Choose your Viewport

On the Ingress intel map, just zoom in to the location you want to capture, and copy the link by using the "link" symbol in the upper right-hand corner. This link contains lat/lon coordinates and the zoom level of your current view.

Taking Screenshots

Dependencies

First you need to have these tools installed:

  • firefox
  • Xvfb
  • avconv

You can install these scripts with the package manager of the linux distribution of your choice.

Start Script

Just create a clone of the ingress-screenshot repository somewhere:

git clone https://github.com/schinken/ingress-screenshot

and configure the run.sh-script with your favorite text editor (vim, emacs, etc..). The parameter names should be self-explanatory.

Simply run the bash script with:

./run.sh

After a couple of minutes/seconds your first screenshot should appear in your current directory. It is possible to place a timestamp on every picture. To do this use the option -t

./run.sh -t  

Creating a Video

To create a video there is also a simple bash script in the git repository. Just run

 ./make_video.sh 

This will do the dirty work for you.

FAQ

Needed

sudo apt-get install libavcodec-extra-53 imagemagick xvfb 

Xlib: extension "RANDR" missing on display ":23".

This is mostly just a warning, and everything will work fine

run.sh: import: Command not found

Make sure you have imagemagick installed. Install it on Ubuntu with this command:

sudo apt-get install imagemagick

ingress-screenshot's People

Contributors

dananick avatar jo0st avatar murzz avatar pad92 avatar seasox avatar seriousmanual avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

redleader36

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.