Search notes:

Stellarium script: venus-transit

// vim: ft=javascript
//
// License: Public Domain
// Author: Ian Musgrave
// http://astroblogger.blogspot.ch/2012/06/2012-transit-of-venus-in-stellarium.html

core.wait(1);
core.clear("natural");

// Turn off constellation lines and labels if on, flag planets.
ConstellationMgr.setFlagLines(false);
ConstellationMgr.setFlagLabels(false);
SolarSystem.setFlagPlanets(true);
core.wait(1);

// OK, move to the proper location and date for the Transit, time is UT
// you can change this to your location in decimal Long lat
// note stellarium does Long Lat not lat long like everyone else
// Select the Sun and track it
core.setDate("2012:06:05T22:09:29");
core.setObserverLocation(138.59863, -34.92866, 10, 0, "Adelaide, Australia");
core.selectObjectByName("Sun", false);
StelMovementMgr.setFlagTracking(true);
core.wait(2);

// Zoom in on the Sun
StelMovementMgr.zoomTo(0.6, 2);
core.wait(2);

// Speed up the action
core.setTimeRate(250);

// When Transit over set to normal speed and zoom out

core.waitFor("2012:06:06T06:59:28");
core.setTimeRate(1);
StelMovementMgr.zoomTo(60, 2);
Github repository about-Stellarium, path: /Scripts/venus-transit.ssc

See also

Stellarium Scripts

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Wissensc...', 1759400346, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Wissenschaft/Astronomie/tools/Stellarium/script/Scripts/venus-transit(74): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78