Xplanet

From Torben's Wiki

Links

Examples

c:
cd c:\Program Files\Xplanet\

set configspace=-config e:/OneDrive/Files/Hacken/Xplanet/config-space.ini
set configmarker=-config e:/OneDrive/Files/Hacken/Xplanet/config-earth-markers.ini
set outdir=d:/Wallpaper/Xplanet

set common=-num_times 1 -label 
set screen=-geometry 1920x1080 
rem -center +1920+512 
set stars=-starmap BSC -marker_file brightStars 
rem -arc_file constellations

REM Earth and Moon
REM set body=-body moon -latitude 0 -longitude 0 -radius 10
set body=-target earth -separation moon:-30 -radius 30
xplanet ^
 %body% -output %outdir%/EarthMoon.png ^
 %screen% %common% %configspace% %stars%

REM Europe
set body=-target earth -latitude 30 -longitude 40 -radius 45
xplanet.exe ^
 %body% -output %outdir%/Europe.png ^
 %screen% %common% %configmarker% 

REM Europa-close
set body=-target earth -latitude 50 -longitude 10 -radius 105
xplanet.exe ^
 %body% -output %outdir%/Europe-close.png ^
 %screen% %common% %configmarker% 

REM Americas
set body=-target earth -latitude 0 -longitude 280 -radius 45
xplanet.exe ^
 %body% -output %outdir%/Americas.png ^
 %screen% %common% %configmarker% 

REM Asia
set body=-target earth -latitude 0 -longitude 100 -radius 45
xplanet.exe ^
 %body% -output %outdir%/Asia.png ^
 %screen% %common% %configmarker%  

REM Hemispheres
set body=-target earth -latitude 0 -longitude 40 -projection hemisphere
xplanet.exe ^
 %body% -output %outdir%/Hemispheres.png ^
 %screen% %common% %config% %stars% 

REM -date 20031202.000000 ^

Linux

Install

sudo apt-get install xplanet xplanet-images

create config ~/.xplanet

[earth]
cloud_map=/home/torben/wallpapers/clouds_2048.jpg
image=/usr/share/xplanet/images/earth.jpg
night_map=/usr/share/xplanet/images/night.jpg

cron job script or endless loop in script

wget -q -O /home/torben/wallpapers/clouds_2048.jpg http://xplanet.sourceforge.net/clouds/clouds_2048.jpg
xplanet -config .xplanet -output ~/wallpapers/xplanet/earth.jpg -geometry 1920x1200 -projection mercator
xplanet -config .xplanet -output ~/wallpapers/xplanet/earth1.jpg -geometry 1920x1200 -projection mercator # for KDE hack

Gnome does recognise changes to the background image file, KDE4 does not. So we have to hack it... Select background image to a slideshow of the folder

/home/torben/wallpapers/xplanet/

[1] -> Comments [2]


My script

#!/bin/bash
cd /home/torben
while :
do
  i=1
  wget -q -O /home/torben/wallpapers/clouds_2048.jpg http://xplanet.sourceforge.net/clouds/clouds_2048.jpg
  while [ $i -le 4 ]
  do
    (( i++ ))
    xplanet -config .xplanet -output ~/wallpapers/xplanet/earth.jpg -geometry 1920x1200 -num_times 1 -projection mercator
    xplanet -config .xplanet -output ~/wallpapers/xplanet/earth1.jpg -geometry 1920x1200 -num_times 1 -projection mercator # for KDE hack
   sleep 30m
  done
done