Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
Not open for further replies.
Have you ever tried setting up a geeklet to display Little Snitch's output?

This user asked about it a few years ago and I searched the thread and never found anything else on the subject.

It would be cool if geektool could display the data just like Little Snitch does.

Screen%20Shot%202012-03-29%20at%2011.49.34%20PM.png

Don't think it's possible unless Little Snitchs' Network Monitor throws the program list into a file somewhere that can be read. Is there an Applescript interface to the program? If so, what options does it support?
 
Ultimate Weather Script Status

I have been mentioning for a while that I'm working on this Ultimate Weather script. I've had some time to actually write code this past week, so I figured I'd throw out some status for anyone who's interested in hearing what this thing will be able to do when complete.

This is turning out to be a very complex script, the list of command line arguments quadruples my other scripts and that list isn't complete.

Here is the list of list of features the script will support, what is highlighted in green is stuff that is currently working, yellow is in process, and red is not implemented. I'll update this post when features are complete.

Updates:
- Started adding in support for BBC Weather, automatic location grabbing will not work for this service, you will have to feed in the url, sorry.
- Accuweather support is 85% complete, don't have support for automatic image downloading
- Beta 03 has been out for quite some time, according to my google code site, there have been 582 downloads!
- Beta 02 has been sent out to the initial 4 Beta testers
- Don't seem to care about the Yahoo thing. Ultimately, I'm using Yahoo Query Language to pull the data from Yahoo and the other weather sites, so I don't think it is much of an issue. (I've even found Yahoo Developer forum posts pulling data from the 5 day site (crzn22 reminded me of this)
- Haven't started looking into Weatherbug yet, and Weather Channel seems to be a pain, but using the stuff I learned from US National Weather Service might help parse those pages.
- Weather Underground is fully supported!
- US National Weather Service is fully supported!
- Yahoo! Weather is fully supported!
- Moved script to a modular approach over multiple files to ease maintenance
- Started adding in support for AccuWeather

Sneak Peak
Script Code - Hard Coding location to San Diego California and having it grab the current weather from Weather Underground
Code:
python ultimate_weather_parserv1.py -L ipinfodb -q full -T wunderground -g current -B -C "san diego" -S california -Z 92108 -O "united states"
Output
Code:
Condition:   Mostly Cloudy
Temperature: 65.1°F
Feels Like:  65.1°F
Dew Point:    28°F
Humidity:     25%
Pressure:    29.92in
Wind: Calm
Gust: 0.0mph
Visibility:  10.0miles
---------------
Sunrise:     6:34 AM
Sunset:      7:09 PM
wunderground.com

Adding screenshot showing Weather Underground forecast set for 3 days, with the images displayed in separate geeklets. This is with automatic location grabbing for where I'm currently sitting (at home).

General Script Features
  • Automatic Location Grabbing via http://ipinfodb.com/my_ip_location.php
  • Automatic WOEID and LocationID (Weather.com) grabbing based upon Location
  • Specifying your location via the command line (if auto-detection is incorrect) (need to specify city, state/province, country, and postal code otherwise it will not work)
Yahoo! Weather Support
  • Yahoo! Weather: Current Conditions based upon WOEID (Automatic Location) (forecastrss based)
  • Yahoo! Weather: Current Conditions based upon WOEID (Provided URL) (forecastrss based)
  • Display Yahoo! Weather Current Conditions
  • Yahoo! Weather: 2 Day Forecast based upon WOEID (Automatic Location) (forecastrss based)
  • Yahoo! Weather: 2 Day Forecast based upon WOEID (Provided URL) (forecastrss based)
  • Display Yahoo! Weather 2 Day Forecast
  • Yahoo! Weather Condition Image download to /tmp for Current and 2 Day Forecast
  • Yahoo! Weather 5 Day Simple Forecast (Automatic Location)
  • Yahoo! Weather 5 Day Simple Forecast (Provided URL)
  • Display Yahoo! 5 Day Simple Forecast
  • Yahoo! Weather 5 Day Detailed Forecast (Automatic Location)
  • Yahoo! Weather 5 Day Detailed Forecast (Provided URL)
  • Display Yahoo! 5 Day Detailed Forecast
  • Yahoo! Weather Condition Image download to /tmp for 5 Day Forecasts - Not going to happen
Weather.com (Weather Channel) Support
  • Weather.com Current Conditions (Automatic Location)
  • Weather.com Current Conditions (Provided URL)
  • Display Weather.com Current Conditions
  • Weather.com 5 Day Forecast (Automatic Location)
  • Weather.com 5 Day Forecast (Provided URL)
  • Display Weather.com 5 Day Forecast
  • Weather.com 10 Day Forecast (Automatic Location)
  • Weather.com 10 Day Forecast (Provided URL)
  • Display Weather.com 10 Day Forecast
Weather Underground Support (lots of good stuff on this site)
  • Weather Underground Current Conditions (Automatic Location)
  • Weather Underground Current Conditions (Provided URL)
  • Weather Underground Condition Image download to /tmp for Current Forecast
  • Display Weather Underground Current Conditions
  • Weather Underground Multi-Day (1 to 10 Days) Forecast (Automatic Location)
  • Weather Underground Multi-Day Forecast (Provided URL)
  • Weather Underground Condition Image download to /tmp for Multi-Day Forecast
  • Display Weather Underground Multi-Day Forecast
  • Weather Underground Display Multi-Day Forecast Orientation: Horizontal/Vertical
  • Weather Underground Display Current Forecast Options: Simple/Verbose
WeatherBug Support
  • Capabilities not yet defined
US National Weather Service Support
  • Current Conditions (Automatic Location)
  • Current Conditions (Provided URL) - will work, but you have to copy exactly what the browser has for the url otherwise it won't work
  • Display Current Conditions
  • Display Current Forecast Options: Simple/Verbose
  • Forecast at a Glance (Automatic Location)
  • Forecast at a Glance (Provided URL)
  • Display Forecast at a Glance
  • Display Forecast at a Glance Orientation: Horizontal/Vertical
  • Forecast Condition Image download to /tmp for Forecast at a Glance
  • 7 Day Detailed Forecast (Automatic Location)
  • 7 Day Detailed Forecast (Provided URL)
  • Display 7 Day Detailed Forecast
AccuWeather Support
  • AccuWeather Current Conditions (Automatic Location)
  • AccuWeather Current Conditions (Provided URL)
  • AccuWeather Condition Image download to /tmp for Current Forecast
  • Display AccuWeather Current Conditions
  • AccuWeather Multi-Day Forecast (Automatic Location)
  • AccuWeather Multi-Day Forecast (Provided URL)
  • AccuWeather Condition Image download to /tmp for Multi-Day Forecast
  • Display AccuWeather Multi-Day Forecast
  • AccuWeather Display Multi-Day Forecast Orientation: Horizontal/Vertical
  • AccuWeather Display Current Forecast Options: Simple/Verbose
BBC Weather Support
  • BBC Weather Current Conditions (Automatic Location)
  • BBC Weather Current Conditions (Provided URL)
  • BBC Weather Condition Image download to /tmp for Current Forecast
  • Display BBC Weather Current Conditions
  • BBC Weather Multi-Day Forecast (Automatic Location)
  • BBC Weather Multi-Day Forecast (Provided URL)
  • BBC Weather Condition Image download to /tmp for Multi-Day Forecast
  • Display BBC Weather Multi-Day Forecast
  • BBC Weather Display Multi-Day Forecast Orientation: Horizontal/Vertical
  • BBC Weather Display Current Forecast Options: Simple/Verbose
 

Attachments

  • Screen shot 2012-04-04 at 19.01.41 .png
    Screen shot 2012-04-04 at 19.01.41 .png
    726.8 KB · Views: 3,289
Last edited:
^^^^

Sounds friggin' incredible. Let us know when it is ready.

By the way, playing around with WEATHERICON from the
above post, #3680

Some slight instructions were left out of the included text file on how to edit the Forecast script, but I figured out how to rename the folder path by inserting my own name into it. Playing around with it now and it seems to work well.
 
Don't think it's possible unless Little Snitchs' Network Monitor throws the program list into a file somewhere that can be read. Is there an Applescript interface to the program? If so, what options does it support?

Yeah, I have no idea if it does that or not. I kind of doubt it, but I'll try looking into it and report back if I find anything.

I have been mentioning for a while that I'm working on this Ultimate Weather script. I've had some time to actually write code this past week, so I figured I'd throw out some status for anyone who's interested in hearing what this thing will be able to do when complete.

This is turning out to be a very complex script, the list of command line arguments quadruples my other scripts and that list isn't complete.

Here is the list of list of features the script will support, what is highlighted in green is stuff that is currently working. I'll update this post when features are complete.

I will most likely be Private Messaging a few people, that are active in this thread, to beta test the script for me.

Whoa, that looks like an awful lot of work, but I bet it will be great when finished.
 
^^^^

Sounds friggin' incredible. Let us know when it is ready.

By the way, playing around with WEATHERICON from the
above post, #3680

Some slight instructions were left out of the included text file on how to edit the Forecast script, but I figured out how to rename the folder path by inserting my own name into it. Playing around with it now and it seems to work well.

Tell me what you think was missing and I will correct it.
 
In the WeatherIconForecast.scpt

This path name needs to be changed...

set pathName to "/Users/ibmgers/GeekTool/WeatherIcon"

That instruction, I believe was omitted from the original text file instructions. I figured it out when I tried to run the script and it kept coming back with an error.
 
In the WeatherIconForecast.scpt

This path name needs to be changed...

set pathName to "/Users/ibmgers/GeekTool/WeatherIcon"

That instruction, I believe was omitted from the original text file instructions. I figured it out when I tried to run the script and it kept coming back with an error.

I'll add to this and say you need to put your username in that path instead of NJRonbos. :)
 
Problem:

I started setting up a Facebook feed and put in " open ~ " and then I stopped because I had to get the file path. Now when I open geektool to put the rest of the path in, it opens a folder and I cant figure how to stop it to let me put the path in. help?


nvm, I was able to click fast enough to erase the error.

on a side note, really enjoying the ideas you ALL have come up with, now just to gather up enough skill to pull some of it off
 
Last edited:
In the WeatherIconForecast.scpt

This path name needs to be changed...

set pathName to "/Users/ibmgers/GeekTool/WeatherIcon"

That instruction, I believe was omitted from the original text file instructions. I figured it out when I tried to run the script and it kept coming back with an error.

Hmmm ...

In the README.txt ...

2. Edit the PATH variable (pathName) in WeatherIcon.scpt to match the path of the WeatherIcon folder,
eg **/Users/YOURUSERNAME/Documents/WeatherIcon/**


In the Apple Script file ...

set pathName to "/Users/ibmgers/GeekTool/WeatherIcon"
 
Listen, if I missed a step and have accused anyone of omitting instructions, I do apologize.

I now have to figure out why the icon in tomorrow's 5-day forecast suddenly went from a SUN to a MOON when it is the middle of the day.
 
Listen, if I missed a step and have accused anyone of omitting instructions, I do apologize.

I now have to figure out why the icon in tomorrow's 5-day forecast suddenly went from a SUN to a MOON when it is the middle of the day.

The icons that are displayed are directly connected to the icon numbers that yahoo associates with that particular day's weather.

The script writes a "txt" file in the directory where the script file is kept. Look at that file and you will see lines like this ...

<yweather:forecast day="Tue" date="3 Apr 2012" low="40" high="59" text="Sunny" code="32" />

So, if you were to look in the /png directory and look at 32.png, that should be the forecast icon that is displayed.

Also, the "Today" forecast does switch to a "nighttime" forecast at some point during the latter part of the day, so if it was "Today" that changed to a moon icon, that would not be out of place.
 
crzn22,

Very much appreciate all the effort you put into providing us with this script and assistance to go with it.

Thank you so much.
 
Does anyone know a way of displaying a graph made from the SNMP server running on my router in geektool?
 
Does anyone know a way of displaying a graph made from the SNMP server running on my router in geektool?

If the graph is available from the web interface of your router, you should be able to grab the url and obtain it with the curl command. Once the image is downloaded, just throw the location of the image into geektool.
 
Has anyone been able to get geektool working with Enqueue? It's a music player.

I know nothing about the program. Does it have an Applescript interface that allows for pulling information from the program? If it does not, then I don't think it will be possible to get data for a Geeklet.
 
Where would I find the Applescript?

You didn't understand what I was saying. The program has to support Applescript and I have no idea if it does since I don't have Enqueue. One way you can check is to open up the AppleScript Editor and under the "File" menu, select "Open Dictionary..."

Search through this list and see if Enqueue is in there. After this, I have no idea where the dictionary is stored. I've just tried searching a couple of my apps (that I know have Applescript support) and I couldn't find their dictionaries in the app folders.
 
Looking for info

hello
geektool is an amazing app but i don't know how to use it very well. I meen a can put the date and calender on, but i don't know how to meke it look good..
And when i look on google there is pretty amazing things.. So I would like to know if there is like a code already done the I could use.
Thanks everyone! kiss B.
 
Updates:
Slight snag while browsing through the Yahoo! Weather (non-RSS) page source. Found this nice notice:
Code:
    ************************** NOTICE *******************************
    The data (conditions, forecasts, news, images, logos) contained in
    this page are copyrighted by Yahoo! Inc. and the Weather Channel
    Enterprises, Inc. You are prohibited from using or repurposing this
    data in any way without express written consent from Yahoo! Inc. and
    the Weather Channel Enterprises, Inc.
    If you are looking for a source of weather data, please see the
    National Weather Service Website at http://www.nws.noaa.gov/. Their
    data is public information, to be used with appropriate
    byline/photo/image credits.
    ************************** NOTICE *******************************
Essentially what this is saying is that I am unable to use this page type to scrape data. How I didn't see this before is beyond me since I have a script that grabs this information. I'm trying to figure out how any weather widgets that use Yahoo! weather get the 5 day without violating this notice (maybe they have a Yahoo! Developer key).

Check this page out ...

http://developer.yahoo.com/weather/

This is what I used to get my 5 day forecast feed.
 
Is there any way to get iTunes Album covers to show even though I have now artwork actually saved on the laptop? I use my MB Air with iTunes Match to listen to my library when away from home. Since it streams the library from the cloud and no music or artwork is saved on the computer, is it still possible to have a geeklet that shows artwork as its played?
 
If the graph is available from the web interface of your router, you should be able to grab the url and obtain it with the curl command. Once the image is downloaded, just throw the location of the image into geektool.

This would have worked perfectly, but then the router died.

I now have no SNMP to do it with :(
 
Date to display image

Hey, so I am trying to do something similar to the weather geeklet, however instead of the weather, I am trying to display a .png based on the day of the week.

any pointers or tips to do so?
 
Anyone else's Yahoo weather script stop working? Mine downloads the weather.html file but then doesn't extract the current weather JPG anymore.

Anyone else got this?
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.