<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~files/feed.xsl"?>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:feedpress="https://feed.press/xmlns" version="2.0">
  <channel>
    <feedpress:locale>en</feedpress:locale>
    <atom:link rel="via" href="http://feeds.macosxtips.co.uk/geeklets"/>
    <atom:link rel="hub" href="http://feedpress.superfeedr.com/"/>
    <title>Geeklets</title>
    <link>http://www.macosxtips.co.uk/geeklets</link>
    <description>The best place to get GeekTool scripts</description>
    <pubDate>Tue, 30 Jan 2018 16:22:06 PST</pubDate>
    <language>en</language>
    <item>
      <title><![CDATA[Momentum Inspired Desktop II]]></title>
      <link>http://www.macosxtips.co.uk/geeklets/collections/momentum-inspired-desktop-ii/</link>
      <source url="http%3A%2F%2F"><![CDATA[Momentum Inspired Desktop II]]></source>
      <description><![CDATA[<p>The <a href="http://lifehacker.com/the-momentum-inspired-desktop-1784139077">Original</a> Momentum Inspired Desktop was featured by Lifehacker in July 2016. That version is <a href="http://www.macosxtips.co.uk/geeklets/collections/the-original-momentum-inspired-desktop-with-updates/">posted here</a>.</p>

<p>This is the new improved version with Reminders integration and accompanying geeklets!</p>

<ul>
<li>Wallpaper is A Desert Storm from <a href="https://interfacelift.com/wallpaper/details/4089/desert_storm.html">Interfacelift</a></li>
<li>LEFT: Reminders will only work for items with a reminder date and time set! They are in two parts each for Today and Tomorrow: 

<ul>
<li>Label "Today" (Shell Geeklet with: echo "Today:")</li>
<li>Output from Apple Script: RemindersToday.scpt</li>
<li>Label "Tomorrow" (Shell Geeklet with: echo: "Tomorrow:")</li>
<li>Output from Apple Script: RemindersTomorrow.scpt</li>
</ul></li>
</ul>

<blockquote>
  <p>Download each script and put in your Geeklets directory. Then create a Shell Geeklet with this:
  osascript pathto/your/geeklets/RemindersToday.scpt</p>
  
  <p>Create a second Shell Geeklet:
  osascript pathto/your/geeklets/RemindersTomorrow.scpt</p>
  
  <p><strong>Note:</strong> These scripts relatively intensive because they are sorting through ALL your Reminder lists , and then sorting anything “due” today by time and anything “due” tomorrow by time. </p>
  
  <p>You will <strong>NEED</strong> to set the timeout to 30s for each script; additionally, I would recommend limiting your refresh values to 150s or longer for the first (two and a half minutes) and 300s or longer for the second (five minutes).</p>
  
  <p>Please do NOT ask me for help with debugging or modifying further; these are pretty specific to my use case so use as-is.</p>
</blockquote>

<ul>
<li>LEFT: <a href="https://mmth.us/simplify/">Simplify</a>, using the Essence 1.2 jacket.</li>
<li>CENTER: Time (Shell Geeklet with a simple Date command: date +”%l:%M”)</li>
<li>CENTER: Greeting using a <a href="http://stackoverflow.com/questions/14346342/greet-a-user-differently-on-the-time-of-day-bash-script">simple shell script</a> 
found via Google </li>
<li>CENTER: Date (Shell Geeklet with a simple Date command: date “+%A, %B %e”)</li>
<li>CENTER: Today's Quote from <a href="https://www.brainyquote.com/quote_of_the_day">BrainyQuote</a>, 
use the <a href="https://www.brainyquote.com/feeds/todays_quote">javascript version</a> in an HTML Geeklet 

<ul>
<li>RIGHT: Weather is done with an HTML geeklet and darksky.net <a href="http://blog.darksky.net/forecast-embeds/">embed code</a>. </li>
<li>You will need to <strong>follow the directions</strong> to use your location coordinates (longitude and latitude); you can further customize the output by adding the following to change the font:</li>
</ul></li>
</ul>

<blockquote>
  <p>&amp;color=white&amp;font=Helvetica Neue </p>
</blockquote>

<p>for example: </p>

<blockquote>
  <p>id="forecast_embed" frameborder="0" height="245" width="100%" src="http://forecast.io/embed/#lat=45.5198&amp;lon=-123.1106&amp;name=Forest Grove&amp;color=white&amp;font=Helvetica Neue&amp;units=us"</p>
</blockquote>

<p>This code is pretty slick because it's responsive; you can resize it so that it just shows the 
current conditions and not the forecast if you like.</p>
 ]]></description>
      <pubDate>Tue, 30 Jan 2018 17:22:06 PST</pubDate>
      <author>darcilicious</author>
      <category>Collections</category>
      <votes>9</votes>
      <guid>http://www.macosxtips.co.uk/geeklets/collections/momentum-inspired-desktop-ii/</guid>
    </item>
    <item>
      <title><![CDATA[2018 - Weather, forecast in your language, units and location]]></title>
      <link>http://www.macosxtips.co.uk/geeklets/weather/2018-weather-forecast-in-your-language-units-and-location-1/</link>
      <source url="http%3A%2F%2F"><![CDATA[2018 - Weather, forecast in your language, units and location]]></source>
      <description><![CDATA[<h2>Options</h2>

<blockquote>
  <p>Can choose language, units and location at your own without configure anything else than a URL query string</p>
</blockquote>
 ]]></description>
      <pubDate>Thu, 21 Dec 2017 10:34:30 PST</pubDate>
      <author>hXm</author>
      <category>Weather</category>
      <votes>8</votes>
      <guid>http://www.macosxtips.co.uk/geeklets/weather/2018-weather-forecast-in-your-language-units-and-location-1/</guid>
    </item>
    <item>
      <title><![CDATA[2018 - Weather, forecast in your language, units and location]]></title>
      <link>http://www.macosxtips.co.uk/geeklets/weather/2018-weather-forecast-in-your-language-units-and-location-1/</link>
      <source url="http%3A%2F%2F"><![CDATA[2018 - Weather, forecast in your language, units and location]]></source>
      <description><![CDATA[<h2>Installation</h2>

<blockquote>
  <p>No installation required.</p>
</blockquote>

<p>Create your own web glet, put it in your favorite place on desktop and then add this:</p>

<p>https://loom.ovh/apps/geektool/glet/forecast/info.php?units=[metrics]&amp;city=&lt;city,country>&amp;lang=&lt;lang>&amp;color=&lt;text-color></p>

<p>Change the options:</p>

<ul>
<li>[metrics] - optional, you can use c or f (default: c)</li>
<li>&lt;city,country> - use it in this format: cityname,country (example: london,uk)</li>
<li>&lt;lang> - your language code, example for english: en</li>
<li>&lt;color> - you can define your text color according your wallpaper, use any color name (black, red, white, etc...)</li>
</ul>
 ]]></description>
      <pubDate>Sun, 17 Dec 2017 07:45:03 PST</pubDate>
      <author>hXm</author>
      <category>Weather</category>
      <votes>6</votes>
      <guid>http://www.macosxtips.co.uk/geeklets/weather/2018-weather-forecast-in-your-language-units-and-location-1/</guid>
    </item>
    <item>
      <title><![CDATA[Daily News]]></title>
      <link>http://www.macosxtips.co.uk/geeklets/collections/daily-news-1/</link>
      <source url="http%3A%2F%2F"><![CDATA[Daily News]]></source>
      <description><![CDATA[<p>This is my current desktop using geektool.  If you are interested in any of the scripts, just post a note here and I will upload them.</p>

<p>The weather is captured using PHP with open weather API, so you would need your own API key from them, which is free.</p>

<p>The clock is just simple clock, which is also free, yes it works.</p>

<p>Also, if anyone can figure out how to get Gcal to work with geektool I would greatly appreciate it</p>

<p>I added the weather information picture, just incase someone wants a good weather geeklet or two (of course they can be changed to english with a flip of the wrist)</p>
 ]]></description>
      <pubDate>Tue, 12 Dec 2017 11:54:15 PST</pubDate>
      <author>BigBadBobD</author>
      <category>Collections</category>
      <votes>9</votes>
      <guid>http://www.macosxtips.co.uk/geeklets/collections/daily-news-1/</guid>
    </item>
    <item>
      <title><![CDATA[inspired by "momentum inspired desktop"]]></title>
      <link>http://www.macosxtips.co.uk/geeklets/collections/inspired-by-momentum-inspired-desktop/</link>
      <source url="http%3A%2F%2F"><![CDATA[inspired by "momentum inspired desktop"]]></source>
      <description><![CDATA[<p>i basically made all the geeklets a bit more user friendly 
 the Ram, HDD and Battery all run .sh files 
the weather is from darksky
the wallpaper and lower part of the wallpaper are included in the zip file 
also included a .SH (batch script) that should edit the variables asking for location details and changing the path of the files to 'userid by using whoami command' and replacing in all affected files
! NOTE: files must be extracted do folder "Documents" 
After extraction open the Terminal and navigate to '/Users/$User/Documents' and run './RUNMEFIRST.sh' </p>

<p><a href="https://drive.google.com/open?id=1T-ftH3AKRUcslR7aWWi8aCry3gW1pqrq">Download Here</a></p>
 ]]></description>
      <pubDate>Mon, 13 Nov 2017 15:19:32 PST</pubDate>
      <author>bylly122001</author>
      <category>Collections</category>
      <votes>8</votes>
      <guid>http://www.macosxtips.co.uk/geeklets/collections/inspired-by-momentum-inspired-desktop/</guid>
    </item>
    <item>
      <title><![CDATA[Ansiweather Weather Geeklet + Current Location Update]]></title>
      <link>http://www.macosxtips.co.uk/geeklets/weather/ansiweather-weather-geeklet-current-location-update/</link>
      <source url="http%3A%2F%2F"><![CDATA[Ansiweather Weather Geeklet + Current Location Update]]></source>
      <description><![CDATA[<h3>Weather</h3>

<p>Ansiweather is a small terminal program, that lets you check weather data via commands in the Terminal.</p>

<p>Open Terminal and run the command:</p>

<pre><code>sudo apt-get install ansiweather 
</code></pre>

<p>Enter your password and hit <em>enter</em>.
to install it.</p>

<hr />

<p><strong>Edit:</strong> If you get the error message <em>sudo: apt-get: command not found</em>, you might not have Xcode installed. But you can also install Ansiweather via the brew command.</p>

<p>If you don't already have brew installed, get it with:</p>

<pre><code>ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
</code></pre>

<p>After installing it, use the following command to install Ansiweather:</p>

<pre><code>brew install ansiweather
</code></pre>

<hr />

<p>Once you installed it you can run it in Terminal with the command:</p>

<pre><code>ansiweather
</code></pre>

<p>To change the config file in Terminal run:</p>

<pre><code>nano ~/.ansiweatherrc
</code></pre>

<p>There you can change the color of the output, location, greetings text etc.
See <a href="https://github.com/fcambus/ansiweather">https://github.com/fcambus/ansiweather</a> for more details.</p>

<p>For example:</p>

<pre><code>background:\33[0m
text:\33[0m
data:\33[32m
delimiter:\33[0m
dashes:\33[0m

location:London,GB

fetch_cmd:curl -s
units:metric
symbols:true
show_daylight:true
timeformat:%b %d %R
forecast:0
greeting_text:Weather in
wind_text:\nWind speed
humidity_text:\nHumidity
pressure_text:\nAir pressure
sunrise_text:\nSunrise
sunset_text:\nSunset

# Icons
sun:\xE2\x98\x80
moon:\xF0\x9F\x8C\x99
clouds:\xE2\x98\x81
rain:\xE2\x98\x94
fog:\xE2\x96\x92
mist:\xE2\x96\x91
haze:\xE2\x96\x91
snow:\xE2\x9D\x84
thunderstorm:\xE2\x9A\xA1
</code></pre>

<p>To change the colour of your output edit the <em>32</em> in <code>data:\33[32m</code> to a number of the ANSI colour code (FG Code).
See <a href="https://en.wikipedia.org/wiki/ANSI_escape_code#Colors">https://en.wikipedia.org/wiki/ANSI_escape_code#Colors</a> for help. This however will only affect the data output. All other text colour can be edited in Geektool itself.</p>

<p>(You can also directly edit the icons with the help of the emoji &amp; symbols keyboard <em>ctrl+cmd+spacebar</em>, e.g. <code>sun:☀️</code> )</p>

<p><em>crtl+X</em> to exit, <em>Y+enter</em> to accept changes. </p>

<p>Ansiweather cannot be run through the GeekTool Shell commands itself, therefore you have to work around a little bit.
You can set up a Cronjob to create a .txt file of the Ansiweather output, which again can be displayed in Geektool.
For that you have to edit the systemwide Crontab:</p>

<pre><code>sudo nano /etc/crontab
</code></pre>

<p>Enter your password and hit <em>enter</em>.
Insert following text:</p>

<pre><code>SHELL=/bin/sh

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:

* * * * *       root ansiweather &gt; /"Path where the Textfile should be saved".txt/
</code></pre>

<p>Change the asterisks to set up the refresh rate.</p>

<p><code>*\5 * * * *</code> -> refreshing every 5 minutes.</p>

<p><code>30 * * * *</code> -> resfreshing every half hour.</p>

<p>See <a href="https://crontab.guru/">https://crontab.guru/</a> for more options.</p>

<p><em>crtl+X</em> to exit, <em>Y+enter</em> to accept changes. </p>

<p>Once you are happy with all your settings, create a new Shell window in Geektool and insert the command:</p>

<pre><code>cat /"Path where the Textfile has been saved".txt/
</code></pre>

<p>As a font I used <em>Helvetica Neue Thin</em>.</p>

<h3>Location Update</h3>

<p>If you want to tell Ansiweather your current location you can write a small Shell-Script that will update the Ansiweather config file. Open Terminal and type:</p>

<pre><code>nano /"Path where you want to save your shell-scrip".sh
</code></pre>

<p>And insert following text:</p>

<pre><code>#!bash
curl "http://api.ipinfodb.com/v3/ip-city/?key=77aefa17ff64cff681bc8f6dd12f513b77356c469edbf1c345583451d45b07b2&amp;format=raw" &gt; /"Path of your location textfile".txt

city="$(cat /"Path of your location textfile".txt | cut -d ";" -f7)"

country="$(cat /"Path of your location textfile".txt | cut -d ";" -f4)"

perl -i -pe 's/.*/location:'${city}','${country}'/ if $.==7' ~/.ansiweatherrc
</code></pre>

<p><em>crtl+X</em> to exit, <em>Y+enter</em> to accept changes. </p>

<p>This will get your location via the ipinfo.io-API, save the output as a textfile and copy the name of your city and country code into the Ansiweather config file. <strong>Be sure that</strong> <code>location=Your City,XY</code> <strong>is in the 7th row in your ~/.ansiweatherrc config file.</strong>, otherwise edit <code>$.==7</code> to the correct number of rows.</p>

<p>To set the refresh rate of the location-script you have to set up another Cronjob. This time it does not have to be systemwide. Use following command in Terminal:</p>

<pre><code>export VISUAL=nano; crontab -e
</code></pre>

<p>and insert the text:</p>

<pre><code>* * * * *    sh /"Path of your shell script".sh
</code></pre>

<p>Change the asterisks to set up the refresh rate.</p>

<p><code>*\5 * * * *</code> -> refreshing every 5 minutes.</p>

<p><code>30 * * * *</code> -> resfreshing every half hour.</p>

<p>See <a href="https://crontab.guru/">https://crontab.guru/</a> for more options.</p>

<p><em>crtl+X</em> to exit, <em>Y+enter</em> to accept changes. </p>

<h4>Please set up the refresh rate to more than 5 minutes, because it uses my personal API key, which only allows 60 queries per minute. Or create your own key for free at <a href="https://ipinfodb.com/register.php">https://ipinfodb.com/register.php</a>.</h4>
 ]]></description>
      <pubDate>Wed, 18 Oct 2017 17:45:10 PDT</pubDate>
      <author>Geeklet</author>
      <category>Weather</category>
      <votes>14</votes>
      <guid>http://www.macosxtips.co.uk/geeklets/weather/ansiweather-weather-geeklet-current-location-update/</guid>
    </item>
    <item>
      <title><![CDATA[Time On Earth Ticker]]></title>
      <link>http://www.macosxtips.co.uk/geeklets/productivity/time-on-earth-ticker/</link>
      <source url="http%3A%2F%2F"><![CDATA[Time On Earth Ticker]]></source>
      <description><![CDATA[<p>Just a simple geeklet that shows how long you've been alive...</p>

<p>Go here: https://www.timeanddate.com/date/durationresult.html</p>

<p>Then set your birthdate (don't forget to add the time fields as well).</p>

<p>Then just copy and replace this link with that new URL:</p>

<p>"https://www.timeanddate.com/date/durationresult.html?m1=5&amp;d1=10&amp;y1=1983&amp;m2=&amp;d2=&amp;y2=&amp;h1=16&amp;i1=31&amp;s1=0&amp;h2=&amp;i2=&amp;s2="</p>

<p>Enjoy!</p>
 ]]></description>
      <pubDate>Fri, 13 Oct 2017 11:38:54 PDT</pubDate>
      <author>jrodl3r</author>
      <category>Productivity</category>
      <votes>5</votes>
      <guid>http://www.macosxtips.co.uk/geeklets/productivity/time-on-earth-ticker/</guid>
    </item>
    <item>
      <title><![CDATA[geektoolio]]></title>
      <link>http://www.macosxtips.co.uk/geeklets/productivity/geektoolio/</link>
      <source url="http%3A%2F%2F"><![CDATA[geektoolio]]></source>
      <description><![CDATA[<p><img src="https://i.imgur.com/XROoRU4.png" alt="Screen" /></p>

<h3>This is not exactly a geeklet</h3>

<p>it's an app using geektool infrastructure to give you power to display whatever you like on the desktop.
you can use your html and css knowledge to create your own look &amp; feel
Or your javascript skill to implement new information sources</p>

<p>Currently implementing</p>

<ul>
<li>CPU usage</li>
<li>Memory usage</li>
<li>Bandwidth usage &amp; graph</li>
<li>Top processes</li>
<li>Cryptocurrency ticker</li>
<li>Now playing (itunes and spotify)</li>
</ul>

<p><a href="https://github.com/0i0/geektoolio">github</a></p>
 ]]></description>
      <pubDate>Sun, 08 Oct 2017 08:05:52 PDT</pubDate>
      <author>liorhakim</author>
      <category>Productivity</category>
      <votes>6</votes>
      <guid>http://www.macosxtips.co.uk/geeklets/productivity/geektoolio/</guid>
    </item>
    <item>
      <title><![CDATA[Miminal]]></title>
      <link>http://www.macosxtips.co.uk/geeklets/collections/miminal/</link>
      <source url="http%3A%2F%2F"><![CDATA[Miminal]]></source>
      <description><![CDATA[<p>My first attempt at a collection.  Used geeklets from here.</p>
 ]]></description>
      <pubDate>Tue, 18 Jul 2017 14:59:36 PDT</pubDate>
      <author>CharlieO</author>
      <category>Collections</category>
      <votes>14</votes>
      <guid>http://www.macosxtips.co.uk/geeklets/collections/miminal/</guid>
    </item>
    <item>
      <title><![CDATA[Simple Public / Internet IP Display]]></title>
      <link>http://www.macosxtips.co.uk/geeklets/internet/simple-public-internet-ip-display/</link>
      <source url="http%3A%2F%2F"><![CDATA[Simple Public / Internet IP Display]]></source>
      <description><![CDATA[<h3>Requirement</h3>

<p>You need to install brew and cURL first, open terminal, paste this and press enter :
<code>ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" &lt; /dev/null 2&gt; /dev/null</code></p>

<p>Then once brew is installed, write :
<code>brew install curl</code></p>

<h3>Edit the script as you wish</h3>

<p>Replace <code>internet ip</code> with whatever text you want, if one day, it's not working anymore, change <code>ifconfig.me</code> with one of the following :</p>

<p><em>ident.me</em><br />
<em>tnx.nl/ip</em><br />
<em>icanhazip.com</em><br />
<em>ipecho.net/plain</em><br />
<em>ip.appspot.com</em><br />
<em>whatsmyip.akamai.com</em>    </p>

<p>HF :)</p>
 ]]></description>
      <pubDate>Mon, 10 Jul 2017 06:27:03 PDT</pubDate>
      <author>Fatalicious</author>
      <category>Internet</category>
      <votes>11</votes>
      <guid>http://www.macosxtips.co.uk/geeklets/internet/simple-public-internet-ip-display/</guid>
    </item>
    <item>
      <title><![CDATA[Web Server with different Port - Status]]></title>
      <link>http://www.macosxtips.co.uk/geeklets/system/web-server-with-different-port-status/</link>
      <source url="http%3A%2F%2F"><![CDATA[Web Server with different Port - Status]]></source>
      <description><![CDATA[<p>This script can take multiple servers at once but in order to see the status images I made each entry a new geeklet.</p>

<p>I was determined to have this on my desktop so I did it.  The script does tend to time out so play with the TCP_TIMEOUT and see what works best for you.</p>

<p>Sorry that it's not the best.  If you would like to make it better I'd love to have you share it with everyone here so we can all learn and move forward.</p>

<p>Thanks and I hope you all have a great day.</p>

<p><code>echo “www.somewebsite.com 8080” | (
  TCP_TIMEOUT=3
  while read host port; do
    r=$(bash -c 'exec 3&lt;&gt; /dev/tcp/'$host'/'$port';echo $?' 2&gt;/dev/null)
if [ "$r" = "0" ]; then
     echo "$host:$port is live"
     exit 0
else
     echo "$host:$port is closed"
     exit 1 # To force fail result in ShellScript
fi
  done
  ) 2&gt;/dev/null # avoid bash message "Terminated ..."</code></p>
 ]]></description>
      <pubDate>Tue, 04 Apr 2017 07:23:04 PDT</pubDate>
      <author>thumper808</author>
      <category>System</category>
      <votes>11</votes>
      <guid>http://www.macosxtips.co.uk/geeklets/system/web-server-with-different-port-status/</guid>
    </item>
    <item>
      <title><![CDATA[My Highlight Calendar]]></title>
      <link>http://www.macosxtips.co.uk/geeklets/productivity/my-highlight-calendar/</link>
      <source url="http%3A%2F%2F"><![CDATA[My Highlight Calendar]]></source>
      <description><![CDATA[<p>Calendar is useful to highlight current day and a periodic event (such as a payday).</p>

<p>Flexible configurations are easily implemented with this python script. Must use a monotype font for days and dates to align properly. </p>

<p>To use, simply paste the text file contents into the geeklet command/script window.</p>

<p>Features:
1. Current day is set to be red. Highlight switches to red background when today intersects with highlight interval.</p>

<ol>
<li><p>Periodic interval can easily be set by changing the interval days and the first date occurrance. Default highlight color is green.</p></li>
<li><p>Any number of months can be used.</p></li>
<li><p>Space between months is always the same (accounts for more and fewer weeks between months)</p></li>
</ol>
 ]]></description>
      <pubDate>Fri, 31 Mar 2017 18:13:28 PDT</pubDate>
      <author>ninjahippo</author>
      <category>Productivity</category>
      <votes>10</votes>
      <guid>http://www.macosxtips.co.uk/geeklets/productivity/my-highlight-calendar/</guid>
    </item>
    <item>
      <title><![CDATA[My productivity setup]]></title>
      <link>http://www.macosxtips.co.uk/geeklets/productivity/my-productivity-setup/</link>
      <source url="http%3A%2F%2F"><![CDATA[My productivity setup]]></source>
      <description><![CDATA[<p>A slightly cramped but functional setup that helps me get through the day.</p>
 ]]></description>
      <pubDate>Wed, 01 Mar 2017 09:05:26 PST</pubDate>
      <author>netraven</author>
      <category>Productivity</category>
      <votes>12</votes>
      <guid>http://www.macosxtips.co.uk/geeklets/productivity/my-productivity-setup/</guid>
    </item>
    <item>
      <title><![CDATA[Smart Weather]]></title>
      <link>http://www.macosxtips.co.uk/geeklets/weather/smart-weather/</link>
      <source url="http%3A%2F%2F"><![CDATA[Smart Weather]]></source>
      <description><![CDATA[<h4>Note</h4>

<p>Somebody stole the API key to build their own app so now my API key has been blocked due to overuse. Going forward, you must register your own FREE account at openweathermap.org, and get your API key there. Then, simply go into the code and replace the key with your own. Each free API key is limited to 60 queries per minute.</p>

<h4>Description</h4>

<p>No need to enter your location or edit the code; it will use your public IP address to determine your approximate location and pull weather data (in celsius) from openweathermap.org. This dynamic location capability is extremely useful if you travel a lot.</p>

<p>I've separated the code into 4 different geeklets so you can format the 4 elements independently:</p>

<ol>
<li>Current temperature and weather condition</li>
<li>Daily low and high temperature</li>
<li>Sunrise and sunset times</li>
<li>Current city and country</li>
</ol>

<h4>Examples</h4>

<pre><code>23°C, scattered clouds
-1°C, clear skies
</code></pre>

<h4>Displaying and Editing Location</h4>

<p>You can check the city and country that is being used (based on your public IP) by running the "citycountry.glet" geeklet. If the city/country displayed is not accurate, go into the code for any of the weather geeklets attached and look for the following two lines:</p>

<pre><code>lon=${coords#*,}
lat=${coords%,*}
</code></pre>

<p>and manually replace them with numbers pertaining to your longitude and latitude. For example:</p>

<pre><code>lon=-80.5454
lat=43.4715
</code></pre>
 ]]></description>
      <pubDate>Sun, 26 Feb 2017 04:46:12 PST</pubDate>
      <author>enochou</author>
      <category>Weather</category>
      <votes>23</votes>
      <guid>http://www.macosxtips.co.uk/geeklets/weather/smart-weather/</guid>
    </item>
    <item>
      <title><![CDATA[Captain America Theme]]></title>
      <link>http://www.macosxtips.co.uk/geeklets/images/captain-america-theme/</link>
      <source url="http%3A%2F%2F"><![CDATA[Captain America Theme]]></source>
      <description><![CDATA[<p>This is my first go at this. Let me know if you would like to see a list of all I used. Thanks!</p>
 ]]></description>
      <pubDate>Thu, 12 Jan 2017 06:45:20 PST</pubDate>
      <author>zacherono</author>
      <category>Images</category>
      <votes>1</votes>
      <guid>http://www.macosxtips.co.uk/geeklets/images/captain-america-theme/</guid>
    </item>
    <item>
      <title><![CDATA[Battery info]]></title>
      <link>http://www.macosxtips.co.uk/geeklets/system/battery-info/</link>
      <source url="http%3A%2F%2F"><![CDATA[Battery info]]></source>
      <description><![CDATA[<p>Battery and system info
Further information on tuttologico.altervista.org/batterytime-ripristino-del-tempo-di-utilizzo-residuo-della-batteria-su-osx/</p>
 ]]></description>
      <pubDate>Thu, 29 Dec 2016 14:46:41 PST</pubDate>
      <author>andreaponza</author>
      <category>System</category>
      <votes>7</votes>
      <guid>http://www.macosxtips.co.uk/geeklets/system/battery-info/</guid>
    </item>
    <item>
      <title><![CDATA[Jarvis Inspired]]></title>
      <link>http://www.macosxtips.co.uk/geeklets/system/tron-inspired-2/</link>
      <source url="http%3A%2F%2F"><![CDATA[Jarvis Inspired]]></source>
      <description><![CDATA[<p>Jarvis Inspired Geeklet.  Found a lot of the scripts from this site!</p>
 ]]></description>
      <pubDate>Sun, 30 Oct 2016 22:45:55 PDT</pubDate>
      <author>DrunkenNinja</author>
      <category>System</category>
      <votes>1</votes>
      <guid>http://www.macosxtips.co.uk/geeklets/system/tron-inspired-2/</guid>
    </item>
    <item>
      <title><![CDATA[ActiveNetwork Interface]]></title>
      <link>http://www.macosxtips.co.uk/geeklets/system/activenetwork-interface/</link>
      <source url="http%3A%2F%2F"><![CDATA[ActiveNetwork Interface]]></source>
      <description><![CDATA[<p>Modified from a geeklet that I found a few years ago, source unknown, but updated to work in MacOS Sierra.</p>

<p>This script detects active network interfaces, identifies their human-friendly name in the system, and reports the name and IP dynamically. This addresses two issues that are often not accounted for in geeklets:</p>

<p>1) When moving the geeklet between desktop and portable Macs, the en0 -1 assignments vary depending on the machine configuration. On laptops, en0 is now Wi-Fi.  </p>

<p>2) Additionally, when using thunderbolt to ethernet adapters, each adapter registers a different en#, as do various docking stations. </p>

<p>In my case, this meant that my current network interface could be any of two thunderbolt-ethernet adapters, a thunderbolt docking station, and/or Wi-Fi, or a USB or Bluetooth Connection to my mobile phone.  </p>

<p>This script uses system information to detect, identify and label them. </p>
 ]]></description>
      <pubDate>Thu, 06 Oct 2016 18:25:04 PDT</pubDate>
      <author>lsmft23</author>
      <category>System</category>
      <votes>5</votes>
      <guid>http://www.macosxtips.co.uk/geeklets/system/activenetwork-interface/</guid>
    </item>
    <item>
      <title><![CDATA[Minimalistic Desktop]]></title>
      <link>http://www.macosxtips.co.uk/geeklets/productivity/minimalistic-desktop-1/</link>
      <source url="http%3A%2F%2F"><![CDATA[Minimalistic Desktop]]></source>
      <description><![CDATA[<p>A simple desktop that lets you monitor your basic system and Spotify.</p>

<p>What I used:</p>

<p>System Information - http://www.macosxtips.co.uk/geeklets/system/system-information/</p>

<p>Spotify - http://www.macosxtips.co.uk/geeklets/music/spotify-now-playing/</p>
 ]]></description>
      <pubDate>Wed, 05 Oct 2016 17:49:26 PDT</pubDate>
      <author>KatKits</author>
      <category>Productivity</category>
      <votes>1</votes>
      <guid>http://www.macosxtips.co.uk/geeklets/productivity/minimalistic-desktop-1/</guid>
    </item>
    <item>
      <title><![CDATA[Display number and amount of files in All Trashes]]></title>
      <link>http://www.macosxtips.co.uk/geeklets/system/display-number-and-amount-of-files-in-all-trashes/</link>
      <source url="http%3A%2F%2F"><![CDATA[Display number and amount of files in All Trashes]]></source>
      <description><![CDATA[<p>Just change/add/remote the <strong>pathOfTrash</strong> variables. Then call the script from your Geeklet.</p>

<pre><code>#!/bin/sh
#
pathOfTrash[0]="/Users/myusername/.Trash"
pathOfTrash[1]="/.Trashes"
pathOfTrash[2]="/Volumes/Drobo TimeCapsule/.Trashes"
pathOfTrash[3]="/Volumes/RAID Storage/.Trashes"

diskUsageCommnd=$(du -sckh /Volumes/*/.Trashes ~/.Trash/)
trashSize=$(echo $diskUsageCommnd | egrep -o '([0-9\.GMBK]+)\stotal' | head -n1 | egrep -o '([0-9\.GMBK]+)')
totalFiles=0
for i in "${pathOfTrash[@]}"
do
    :
    filesInFolder=$(find "$i" -type f | wc -l)
    folderName="${i/.Trashes/}"
    folderName="${folderName/.Trash/}"
    if [ $filesInFolder -gt 0 ]
    then
    if [ $filesInFolder -gt 1 ]
    then
        echo $filesInFolder "files in" $folderName
    else
        echo $filesInFolder "file in" $folderName
    fi
else
    #echo "No files in" $i
    zippo=0
fi
totalFiles=$(($filesInFolder+$totalFiles))
done

if [ $totalFiles -gt 0 ]
then
if [ $totalFiles -gt 1 ]
then
    itemName="Items"
    totalName="that are"
else
    itemName="Item"
    totalName="that is"
fi
echo "A total of" $totalFiles $itemName $totalName $trashSize
else
echo "Trash is empty!"
fi
</code></pre>

<p>`</p>
 ]]></description>
      <pubDate>Tue, 04 Oct 2016 10:26:10 PDT</pubDate>
      <author>macsupport</author>
      <category>System</category>
      <votes>2</votes>
      <guid>http://www.macosxtips.co.uk/geeklets/system/display-number-and-amount-of-files-in-all-trashes/</guid>
    </item>
    <atom:link href="http://feeds.macosxtips.co.uk/geeklets" rel="self" type="application/rss+xml"/>
  </channel>
</rss>
