<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/19719" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2014-06-17T03:35:49-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/19719</id>

		<entry>
		<author><name><![CDATA[the_Wizard]]></name></author>
		<updated>2014-06-17T03:35:49-04:00</updated>

		<published>2014-06-17T03:35:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102908#p102908</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102908#p102908"/>
		<title type="html"><![CDATA[Alchemical clock script (psuedo-code inside)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102908#p102908"><![CDATA[
Hey there!<br><br>The following is an explanation of a piece of code that i would like to see made by anyone who is willing to give it a try.<br><br><strong class="text-strong">Description</strong><br><br>According to the ancient philosophy of Alchemy, days, and hours of the day and night are ruled by planets. This works by dividing the time between sunrise and sundown by twelve, each section is an 'alchemical hour of the day', and the same applies to the time between sundown and sunrise. Those are the 'alchemical hours of the night'. The time can then be matched up with this table to see what is the actual alchemical hour:<br><br>Data table 1<br><img src="http://www.examiner.com/images/blog/EXID31038/images/Planetary_Hours_--_Sunrise_Table_590px.jpg" class="postimage" alt="Image"><br><br>Data table 2<br><img src="http://3.bp.blogspot.com/_ar1JFTgDky4/THolo4rn3TI/AAAAAAAAAbQ/e97sTYQI2ms/s1600/weekdays111.png" class="postimage" alt="Image"><br><br><strong class="text-strong">Psuedocode</strong><br><br>- msg !alchtime &lt;location&gt;<br>- for &lt;location&gt; find day of the week, current time, timezone, sunrise moment, sunset moment (using third party site)<br>- calculate time periods for the alchemical hours of the day, same for the nightly hours, store them temporarily.<br>- Match up current time to the 'data table 1' to detemine what is the current alchemical hour.<br>- Translate day of the week to the alchemical planet using 'data table 2'.<br>- Return the results.<br><br><strong class="text-strong">Example input/output</strong><br><br><em class="text-italics">Command:</em> msg !alchtime Haarlem, the Netherlands<br><em class="text-italics">Return:</em> Username: For you it iscurrently the hour of Venus, on the day of Mars.<br><br>Thanks in advance for your consideration.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12405">the_Wizard</a> — Tue Jun 17, 2014 3:35 am</p><hr />
]]></content>
	</entry>
	</feed>
