WUN Weather (en)

From Conky PitStop

(Difference between revisions)
Jump to: navigation, search
(WUN Weather)
Line 66: Line 66:
     $ </nowiki>
     $ </nowiki>
-
Links from the first post by mrpeachy:
+
'''Links from the [http://crunchbang.org/forums/viewtopic.php?id=31306 Wun Weather Script for Conky (Lua) first post] by mrpeachy:'''
-
[http://crunchbang.org/forums/viewtopic.php?pid=354938#p354938 WUN HOW TO:  How to use the out() function]
+
*Post #2 - [http://crunchbang.org/forums/viewtopic.php?pid=354937#p354937 WUN TESTING POST]
-
[http://crunchbang.org/forums/viewtopic.php?pid=177785%23p177785#p177785 How to use the image() fuction]
+
*Post #3 - [http://crunchbang.org/forums/viewtopic.php?pid=354938#p354938 WUN HOW TO:  How to use the out() function]
-
[http://crunchbang.org/forums/viewtopic.php?pid=354939#p354939 How to use the repeats feature]
+
*Post #4 - [http://crunchbang.org/forums/viewtopic.php?pid=354939#p354939 How to use the repeats feature]
-
http://crunchbang.org/forums/viewtopic.php?pid=358223#p358223 A couple of tricks for formatting] - also here at CPS: [[WUN Formatting Tricks (en)|WUN Formatting Tricks]]
+
*Post #5 - [http://crunchbang.org/forums/viewtopic.php?pid=354940#p354940 History of wun]
-
[http://crunchbang.org/forums/viewtopic.php?pid=360593#p360593 How to use your own icons]
+
*Post #6 - [http://crunchbang.org/forums/viewtopic.php?pid=354941#p354941 Additional_functions.lua] - a very cool add-on
-
[http://crunchbang.org/forums/viewtopic.php?id=18419 Interactive templates] aka: Interactive Conkys
+
**;FUNCTIONS
-
[http://crunchbang.org/forums/viewtopic.php?pid=354941#p354941 additional_functions.lua] - a very cool add-on
+
**:thermometer()
-
[http://crunchbang.org/forums/viewtopic.php?pid=354940#p354940 History of wun]
+
**:weathermap_sat() and weathermap_radar()
 +
**:tweathergraph()
 +
*Post #7  - still a place holder
 +
*Post #428 - [http://crunchbang.org/forums/viewtopic.php?pid=358223#p358223 A couple of tricks for formatting] - also here at CPS: [[WUN Formatting Tricks (en)|WUN Formatting Tricks]]
 +
*Post #640 - [http://crunchbang.org/forums/viewtopic.php?pid=360593#p360593 How to use your own icons]
 +
Other related threads by mrpeachy:
 +
*[http://crunchbang.org/forums/viewtopic.php?id=18419 Interactive templates] aka: interactive conky thread
 +
 +
From the original [http://crunchbang.org/forums/viewtopic.php?id=16100 v9000] thread
 +
*[http://crunchbang.org/forums/viewtopic.php?pid=177785%23p177785#p177785 How to use the image() function] - Post #194
 +
*;Use is unchanged from v9000 (only data option names have changed)
 +
*:'''Note''' - v9000 is not 100% comparable with WUN - these links provided by mrpeachy - therefore compatible for the aspect given
'''CREDITS:'''
'''CREDITS:'''
{|
{|

Revision as of 18:16, 22 February 2014

WUN Weather

 Language   English   Français   


WUN a LUA weather script for conky using wunderground written maintained and supported by mrpeachy over at the Crunchbang Wun Weather Script for Conky (Lua) thread. The most current archive will always be found there, in the first post and linked to here, below (same links). You need to sign up to post at Crunchbang, but not to read the thread

Feb 08, 2014: CURRENT COMPLETE ARCHIVE

Feb 03, 2014: WUN.LUA SCRIPT ARCHIVE

WUN HISTORY check it out.

NOTE wun.lua is the main script that gathers and formats the data. It contains all the functions that are used in the templates As such, most changes/updates/bug fixes will occur in this file. New wun.lua scripts can then be extracted and the old script overwritten. The wun.lua script will always work with the latest complete archive, if it's date is the same or newer. Only download it to get newer functions or fixes

Interactive template:
iweather_falldown.lua
Static template:
astroweather.lua

OOTB, these are the two templates used (and seen on the right):

With an interactive conky template you will need to install xdotool to get the interactive action working in conky.

The script is best extracted to /home/username/wun directory, but with a bit of tweaking it can go anywhere.

The files and directory structure are:

  1. /home/<username>/wun/ - three files
    • read_me - please read it
    • wun.lua - minor configuring required
      see lines 4 to 14
    • wun_config.lua - configuring required
      see lines 4 to 74 to start with
  2. /home/<username>/wun/additional_files - 5 sub-directories and 3 images
  3. /home/<username>/wun/backup_data - 20 data backup files that the script uses IF: no net connection or one of the sites the script uses it down.
  4. /home/<username>/wun/conky_configs - two conky files:
    1. wunrc - runs the 'static' templates, it is configured to start: astroweather.lua
    2. wunrci - runs the interactive templates, it is configured to start: iweather_falldown.lua
  5. /home/<username>/wun/development docs - 18 files - have a look at them
  6. /home/<username>/wun/templates - here's the meat of what you see on your desktop depending on what you choose.to use:
    • Static templates, used by wunrc:
    1. astroweather.lua shown above
    2. classic10day.lua
    3. s11template.lua
    4. wun_glassy_side_bar.lua
    5. wun_template.lua
    • Interactive templates:
    1. iweather_falldown.lua shown above
    2. iweather.lua
    3. iweather_joe.lua

RECAP: For the interactive templates, you need:

   * Lua

  Lua bindings:
   * Cairo
   * Imlib2
 
 26 Jan 14 | 15:07:26 ~
    $ 

Links from the Wun Weather Script for Conky (Lua) first post by mrpeachy:

Other related threads by mrpeachy:

From the original v9000 thread

CREDITS:

linked to wunderground
wunderground.com is the source of the API weather data used by this script.

You need to sign up for an api key, it's free but make sure you get the Cumulus Plan

Go To:

Personal tools
Namespaces
Variants
Actions
Navigation
English
Français
Toolbox