Mokometeo

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(Sources: How can I commit my changes ?)
(Sources)
Line 75: Line 75:
 
* handle backup data for each city in the config file
 
* handle backup data for each city in the config file
  
== Sources ==
+
== Sources and contribution ==
 
You can access the sources and participate by commiting patches via the google code mercurial :
 
You can access the sources and participate by commiting patches via the google code mercurial :
 
http://code.google.com/p/mokometeo/source/checkout
 
http://code.google.com/p/mokometeo/source/checkout

Revision as of 16:41, 1 July 2009

Contents

Mokometeo 0.1 / 0.2 and German 0.3

Capture-MokoMeteo.png ____________ Wetter.png

Presentation

Mokometeo is a small python/GTK application fetching the weather forecast from Yahoo weather pages

Installation

Dependencies

You need python-pygtk and glade to make it work.

OM and SHR

So to install it, you can do :

opkg install python-pygtk python-netclient python-html http://www.opkg.org/packages/0_mokometeo_0.2_arm.ipk

German Version using wetter.com is at http://openmoko.huber-computer.de/mokometeowettercom_0.3_all.ipk Install it using:

 opkg install http://openmoko.huber-computer.de/mokometeowettercom_0.3_all.ipk

Also need dependancies (on SHR testing) :

opkg install python-netclient

Using Mokometeo

  • In the 0.2 version, there is a bug. To be able to use Mokometeo, please type theses commands before launching it:
mkdir /home/root/.mokometeo
mkdir /home/root/.mokometeo/img
cp /usr/share/mokometeo/question.png /home/root/.mokometeo/img/
  • for the german 0.3, you don't need this
  • Just click on the desktop icon Mokometeo.png called "Mokometeo" to load the software.
  • You will see a window appearing, with a 4 days forecast : Today, tomorrow (J+1), the day after (J+2) , etc.
  • You can use the Next and Previous buttons to change the displayed city.
  • If you have no internet connection, you will have to wait a little bit, and then the window will show "question marks" and "-" as min and max temperatures
  • Next time you starup Mokometeo, the last fetched data will be displayed.

Enjoy !

Configuring Mokometeo

  • By default, 2 cities are configured. You can change the cities and add more in the file
~/.mokometeo/mokometeo.conf

This file must contains at minimum 2 lines. The first line is

city,url

The second and next lines is the name of the city, and the url (tested with french yahoo weather urls), for example:

Paris,http://fr.weather.yahoo.com/FRXX/FRXX0076/index_c.html

German Version:

city,url
Augsburg,http://www.wetter.com/deutschland/augsburg/DE0000434.html

Changelog

2009-03-13 - v0.2

  • added some "print" in the code
  • debug the .mokometeo folder ; put the config folder in /home/root/.mokometeo/ instead of /.mokometeo/
  • test if the connection to internet is ok. If not, display question marks
  • backup the data each time data is downloaded and displayed. This data is used on the next Mokometeo startup
  • added the date and time when the data has been downloaded

2009-03-12 - v0.1

initial version


Future improvements / To do list

  • debug the initial copy of /usr/share/mokometeo/question.png into /home/root/.mokometeo/img/
  • improve the way the connection to Yahoo is handled
  • test with different languages / locations
  • handle backup data for each city in the config file

Sources and contribution

You can access the sources and participate by commiting patches via the google code mercurial : http://code.google.com/p/mokometeo/source/checkout To be able to commit:

  • you need a gmail email adress
  • I must add you as a user, so please contact me (or edit the discussion tab of this page)
  • You can use this password hN8CP6BV5mT7
Personal tools

Mokometeo 0.1 / 0.2 and German 0.3

Capture-MokoMeteo.png ____________ Wetter.png

Presentation

Mokometeo is a small python/GTK application fetching the weather forecast from Yahoo weather pages

Installation

Dependencies

You need python-pygtk and glade to make it work.

OM and SHR

So to install it, you can do :

opkg install python-pygtk python-netclient python-html http://www.opkg.org/packages/0_mokometeo_0.2_arm.ipk

German Version using wetter.com is at http://openmoko.huber-computer.de/mokometeowettercom_0.3_all.ipk Install it using:

 opkg install http://openmoko.huber-computer.de/mokometeowettercom_0.3_all.ipk

Also need dependancies (on SHR testing) :

opkg install python-netclient

Using Mokometeo

  • In the 0.2 version, there is a bug. To be able to use Mokometeo, please type theses commands before launching it:
mkdir /home/root/.mokometeo
mkdir /home/root/.mokometeo/img
cp /usr/share/mokometeo/question.png /home/root/.mokometeo/img/
  • for the german 0.3, you don't need this
  • Just click on the desktop icon Mokometeo.png called "Mokometeo" to load the software.
  • You will see a window appearing, with a 4 days forecast : Today, tomorrow (J+1), the day after (J+2) , etc.
  • You can use the Next and Previous buttons to change the displayed city.
  • If you have no internet connection, you will have to wait a little bit, and then the window will show "question marks" and "-" as min and max temperatures
  • Next time you starup Mokometeo, the last fetched data will be displayed.

Enjoy !

Configuring Mokometeo

  • By default, 2 cities are configured. You can change the cities and add more in the file
~/.mokometeo/mokometeo.conf

This file must contains at minimum 2 lines. The first line is

city,url

The second and next lines is the name of the city, and the url (tested with french yahoo weather urls), for example:

Paris,http://fr.weather.yahoo.com/FRXX/FRXX0076/index_c.html

German Version:

city,url
Augsburg,http://www.wetter.com/deutschland/augsburg/DE0000434.html

Changelog

2009-03-13 - v0.2

  • added some "print" in the code
  • debug the .mokometeo folder ; put the config folder in /home/root/.mokometeo/ instead of /.mokometeo/
  • test if the connection to internet is ok. If not, display question marks
  • backup the data each time data is downloaded and displayed. This data is used on the next Mokometeo startup
  • added the date and time when the data has been downloaded

2009-03-12 - v0.1

initial version


Future improvements / To do list

  • debug the initial copy of /usr/share/mokometeo/question.png into /home/root/.mokometeo/img/
  • improve the way the connection to Yahoo is handled
  • test with different languages / locations
  • handle backup data for each city in the config file

Sources

You can access the sources and participate by commiting patches via the google code mercurial : http://code.google.com/p/mokometeo/source/checkout To be able to commit:

  • you need a gmail email adress
  • I must add you as a user, so please contact me (or edit the discussion tab of this page)
  • You can use this password hN8CP6BV5mT7