EN/Ingress Timelapse: Unterschied zwischen den Versionen

Zeile 21: Zeile 21:
 
=== create profile ===
 
=== create profile ===
  
First you have to set up a new profile for Firefox. You can easily do this by just typing
+
First you have to set up a new profile for firefox. You can easily do this by just typing
  
 
     firefox -P
 
     firefox -P
Zeile 38: Zeile 38:
 
'''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'''
 
'''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'''
  
Start Firefox with your profile by clicking on "Start Firefox" or run it from console with:
+
Start firefox with your profile by clicking on "Start Firefox" or run it from console with:
  
 
  firefox -P ingress_cityname
 
  firefox -P ingress_cityname
Zeile 44: Zeile 44:
 
=== log in to Google account ===
 
=== log in to Google account ===
  
To watch the intel map you need to log in to your Google account.
+
To watch the intel map you need to log in to your google account.
  
 
* Navigate to http://ingress.com/intel
 
* Navigate to http://ingress.com/intel
* Log in to your Google account
+
* Log in to your google account
* Allow Ingress to access your Google account
+
* Allow Ingress to access your google account
  
 
=== choose your viewport ===
 
=== choose your viewport ===
  
On the Ingress intel map, just zoom in to the location you want to screenshot, and copy the link by using the "link" symbol on the upper right corner. This link contains lat/lon coordinates and the zoom level of your current view.
+
On the ingress intel map, just zoom in to the location you want to screenshot, and copy the link by using the "link" symbol on the upper right corner. This link contains lat/lon coordinates and the zoom level of your current view.
  
 
== taking screenshots ==
 
== taking screenshots ==

Version vom 14. Mai 2013, 21:48 Uhr

Crystal Clear action run.png
Ingress TimeLapse

Status: stable

Cat ingress.png
Beschreibung screenshots over time
Autor: schinken
PayPal Spenden für EN/Ingress Timelapse

Description

To see the progress of ingress in Bamberg we wanted to create a timelapse over a big period of time. To do so, we're using a headless firefox which takes screenshots running an "virtual" x server.

Here are two examples:

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. 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

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 screenshot, and copy the link by using the "link" symbol on the upper right 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 your 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

creating a video

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

./make_video.sh 

this will do the dirty job for you