Skip to content

Commit 5311ac9

Browse files
committed
1.0: Move to dark sky forecast api via custom server
Also uses google to get coordinates if none are provided via the new param `-l LAT:LON`. The new API knows less specific weather states, the gen-categories remained the same. Also contains fixes for random mode and flickr, and removes a lot of unneeded code.
1 parent a3a01d2 commit 5311ac9

File tree

9 files changed

+235
-371
lines changed

9 files changed

+235
-371
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
description-pak
22
backup-*-pre-izulu.tgz
33
doc-pak/
4+
server/keys.ini

README.md

+25-6
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@ Use pacman and the provided PKGBUILD to install:
2828
makepkg
2929
sudo pacman -U izulu-git-*.pkg.tar.xz
3030

31+
### Gentoo/Funtoo
32+
33+
Use the [overlay](https://github.com/onli/overlay ) with layman
34+
35+
layman -o https://raw.github.com/onli/overlay/master/repositories.xml -f -a onli
36+
37+
and install with emerge
38+
39+
emerge izulu
40+
41+
3142
### Manual
3243

3344
Download this repository and install with:
@@ -37,7 +48,7 @@ Download this repository and install with:
3748

3849
Install the dependencies (on Ubuntu):
3950

40-
sudo apt-get install imagemagick xmlstarlet xml-twig-tools
51+
sudo apt-get install imagemagick xmlstarlet jq bc
4152

4253
On older Ubuntu systems, install also `notify-send`. It is not strictly necessary, only if `--osd` is specified to show notifications on weather change.
4354

@@ -46,14 +57,22 @@ On older Ubuntu systems, install also `notify-send`. It is not strictly necessar
4657
To use all common features, start izulu like this:
4758

4859
izulu --daemon --night --preview --temperature --osd &
60+
61+
Optionally, use `-c city` or `-l LAT:LON` to set your current location manually.
4962

5063
## Configuration
5164

52-
izulu can configured partly in **~/.izulu/config**, especially the `CITY` and `WOEID` parameter are important if the automatic location detection fails.
53-
First, try to set `CITY` to the current location. If that fails, get the `WOEID` from http://woeid.rosselliot.co.nz/ and set it in the config.
54-
5565
For a list of all parameters see the manpage.
5666

57-
To overwrite images locally, check their name in **/usr/share/izulu** and add a image with the same name to **~/.izulu/**. It is also possible to further distinct between weather states
58-
(like rain/light_rain) instead of using the general category image by placing the more specific image into **~/.izulu/** as well. It should be best to directly look into the script (in `chooseWallpaper()`) to see the available categories.
67+
### Location
68+
69+
izulu can configured partly in **~/.izulu/config**, especially the `CITY` or `LATITUDE` and `LONGITUDE` parameter are important if the automatic location detection fails.
70+
First, try to set `CITY` to the current location. If that fails, set `LATITUDE` and `LONGITUDE`.
71+
72+
### Custom images
73+
74+
To set custom images, check their name in **/usr/share/izulu** and add a image with the same name to **~/.izulu/**. The categories are *sun*, *cloud*, *rain*, *snow* , *wind* and *misc* (=fog), and there is a *thunder* category (according to its documentation not yet supported by the weather api, but planned). The image files are called *gen_CATEGORY*, for example *gen_sun*. Substates are *partly_cloudy* and *cloudy* for *gen_cloud*, *rain* and *hail* for *gen_rain*, *sleet* and *snow* for *gen_snow*. The category *gen_wind* also knows the substates *windy* and *tornado*, I hope you never see the latter. You can set custom images for the substates by saving an image with its name in **~/.izulu/**.
75+
76+
### Random images
5977

78+
With `-r|--random` izulu picks a random image from the corresponding directory set in **~/.izulu/config**. If no directory is set, izulu will try to get a random image from a fitting flickr group. This is currently a bit flaky, but izulu tries to fall back to its provided images if the flickr way fails.

debian/changelog

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
izulu (0.6.4) trusty; urgency=low
1+
izulu (1.0) trusty; urgency=low
22

33
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
44

debian/control

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ Homepage: https://github.com/onli/izulu
1010

1111
Package: izulu
1212
Architecture: any
13-
Depends: ${shlibs:Depends}, ${misc:Depends}, imagemagick, xmlstarlet, xml-twig-tools
13+
Depends: ${shlibs:Depends}, ${misc:Depends}, imagemagick, xml-twig-tools, jq, bc
1414
Description: weather desktop script
1515
<insert long description, indented with spaces>

gfx/forecast_fog

395 Bytes
Binary file not shown.

gfx/forecast_wind

875 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)