<div dir="ltr">Hi Lou,<div><br></div><div>Very cool.</div><div><br></div><div>Just for fun, you can get user lat and long from the resulting dictionary by using the following:</div><div><br></div><div> (WebClient httpGet: '<a href="http://freegeoip.net/json/">http://freegeoip.net/json/</a>', (WebClient httpGet: '<a href="https://api.ipify.org">https://api.ipify.org</a>') content) content<br></div><div><br></div><div>:)</div><div><br></div><div>All the best,</div><div><br></div><div>Ron</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 30, 2018 at 2:40 PM, Louis LaBrunda <span dir="ltr"><<a href="mailto:Lou@keystone-software.com" target="_blank">Lou@keystone-software.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have created and uploaded my ClockAndCalendarMorphs project on SqueakSource.  It depends upon<br>
another of my projects, KscAstroDataApp.  KscAstroDataApp is used to calculate sunrise and<br>
sunset times displayed on the clock and calendar.  Latitude and longitude are required for the<br>
sunrise and sunset calculations.  If you don't supply them, no attempt will be made to do the<br>
calculations.  In that case the KscAstroDataApp package should not be needed.  Anyway it is<br>
probably best to download it too.<br>
<br>
I'm new to SqueakSource and I'm not sure I defined the dependency correctly.  If not, I will<br>
fix it.  Please let me know if you have any problems.  The code below will get you started<br>
testing/playing with the clock morph.  The latitude & longitude are for my location.<br>
<br>
The #initialize method of ClockImageMorph has a lot of comments about the options of the clock.<br>
<br>
Have fun.<br>
<br>
Lou<br>
<br>
        | c |<br>
"       c := ClockImageMorph clockFace: 'path2picture.jpg'."<br>
        c := ClockImageMorph new.<br>
"       c setTestMode."<br>
        c desiredExtent: 1200@800.<br>
        c setIncludeCalendar.<br>
        c latitude: 40.66296 longitude: -74.535398.<br>
"       c beTwentyFourHourClock."<br>
        c setUseArabicNumerals.<br>
"       c setUseRomanNumerals."<br>
        c setAddCirclesAndTicks.<br>
"       c setUseFancyHourHand.<br>
        c setUseFancyMinuteHand.<br>
        c setUseFancySecondHand."<br>
"       c beFullScreen."<br>
        c setShowDateTimeInfo.<br>
        c numberColor: Color blue; circleColor: Color blue; tickColor: Color blue.<br>
        c hourHandColor: Color blue; minuteHandColor: Color blue; secondHandColor: Color blue.<br>
        c calendarTextColor: Color blue.<br>
        c open.<br>
<span class="HOEnZb"><font color="#888888">--<br>
Louis LaBrunda<br>
Keystone Software Corp.<br>
SkypeMe callto://PhotonDemon<br>
<br>
<br>
</font></span></blockquote></div><br></div></div>