Page 3 of 380 FirstFirst 123451353103 ... LastLast
Results 21 to 30 of 3796

Thread: Conky Weather Forecast Python Script

  1. #21
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Conky Weather Forecast Python Script

    This is for you killerwhale65

    Location: Belgium

    I just struck me that when I saw your screenshot that your conky is in Dutch.

    Maybe you can translate the portions of the script necessary to get Conky weather into Dutch.

    Like:
    Monday Tuesday Wednesday Thursday Friday Saturday Sunday
    Maandag Dinsdag Woensdag Donderdag Vrijdag Zaterdag Zondag
    and what the short form equivalents would be.

    Now I got really curious and wanted to see just how close BabelFish is. If I'm right your going to see some really funny stuff in there:
    Code:
    0	Tornado			Tornado
    1	Tropical Storm		Tropisch Onweer
    2	Hurricane		Orkaan
    3	Severe Thunderstorms	Strenge Onweersbuien
    4	Thunderstorms		Onweersbuien
    5	Mixed Rain and Snow	Gemengde Regen en Sneeuw
    6	Mixed Rain and Sleet	Gemengde Regen en Ijzel
    7	Mixed Precipitation	Gemengde Precipitatie
    8	Freezing Drizzle	Bevriezende Motregen
    9	Drizzle			Motregen
    10	Freezing Rain		Het bevriezen Regen
    11	Showers			Douches
    12	Showers			Douches
    13	Snow Flurries		De Vlagen van de sneeuw
    14	Light Snow Showers	De lichte Douches van de Sneeuw
    15	Blowing Snow		Blazende Sneeuw
    16	Snow			Sneeuw
    17	Hail			Hagel
    18	Sleet			Ijzel
    19	Dust			Stof
    20	Fog			Mist
    21	Haze			Nevel
    22	Smoke			Rook
    23	Blustery		Stormachtig
    24	Windy			Winderig
    25	Cold			Koude
    26	Cloudy			Bewolkt
    27	Mostly Cloudy		Meestal Bewolkt
    28	Mostly Cloudy		Meestal Bewolkt
    29	Partly Cloudy		Gedeeltelijk Bewolkt
    30	Partly Cloudy		Gedeeltelijk Bewolkt
    31	Clear			Ontruim
    32	Clear			Ontruim
    33	Fair			Eerlijk
    34	Fair			Eerlijk
    35	Mixed Rain and Hail	Gemengde Regen en Hagel
    36	Hot			Heet
    37	Isolated Thunderstorms	Geïsoleerdel Onweersbuien
    38	Scattered Thunderstorms	Verspreide Onweersbuien
    39	Scattered Thunderstorms	Verspreide Onweersbuien
    40	Scattered Showers	Verspreide Douches
    41	Heavy Snow		Zware Sneeuw
    42	Scattered Snow Showers	De verspreide Douches van de Sneeuw
    43	Heavy Snow		Zware Sneeuw
    44	Partly Cloudy		Gedeeltelijk Bewolkt
    45	Thunder Showers		De Douches van de donder
    46	Snow Showers		De Douches van de sneeuw
    47	Isolated Thunderstorms	Geïsoleerde Onweersbuien

    or the bearing_text:

    Code:
    N	?
    NNE	??
    NE	
    ENE	
    E	
    ESE	
    SE	
    SSE	
    S	
    SSW	
    SW	
    WSW	
    W	
    WNW	
    NW	
    NNW	
    N/A
    So what do you say? Want to be a translator for a day?

    CHIMO!
    Bruce
    Last edited by Bruce M.; July 28th, 2008 at 08:36 PM.

  2. #22
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Conky Weather Forecast Python Script

    Quote Originally Posted by kaivalagi View Post
    Should have known to go to wikipedia!

    Here goes...

    V = 0.836 x B^(3/2) m/s
    V = 0.836 x B^(3/2) x 3.6 kph
    B = (1.196172249 x (V x 0.278)) ^(2/3)

    That would make 20kph = 3.53 => 4 B ... sounds about right?

    I suppose it needs to be rounded up to the nearest whole number? Worse case on the scale then...

    Edit: In python that would be:
    Code:
    beaufont=str(int(math.ceil(math.pow(float(windspeedkph)*0.332270069, 2.0/3.0))))
    WoW! Your good! But can it be incorporated into the script?

  3. #23
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Weather Forecast Python Script

    Quote Originally Posted by Bruce M. View Post
    WoW! Your good! But can it be incorporated into the script?
    Won't be long

    Edit:

    UPDATE - the script now includes a beaufont scale option for wind speeds and now displays sunrise and sunset times in 24 hour clock format. Let me know if there are any issues, as this change was surprising quick to do, must be the coffee!

    Dev history for this below:

    • 28/07/2008 Added --beaufont option to convert wind speeds to the beaufont scale, works in templates too
    • 28/07/2008 Updated sunrise and sunset times to be output in 24 hour format to save space


    Don't format to add update the registration details for the weather.com xoap service before you use it!

    Cheers
    Last edited by kaivalagi; July 28th, 2008 at 09:48 PM.

  4. #24
    Join Date
    Nov 2006
    Beans
    13

    Re: Conky Weather Forecast Python Script

    I'm going to test this awesome script, but I get this bunch of errors:

    Code:
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 957, in getOutputText
        output = output + self.getSpaces(spaces) + WeatherText.day_of_week[self.day_forecast[day_number].day_of_week]
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 968, in getOutputText
        string = self.day_forecast[day_number].high
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 961, in getOutputText
        string = self.day_forecast[day_number].low
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 980, in getOutputText
        output = output + self.getSpaces(spaces) + WeatherText.conditions_text[self.day_forecast[day_number].condition_code]
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 959, in getOutputText
        output = output + self.getSpaces(spaces) + WeatherText.conditions_weather_font[self.day_forecast[day_number].condition_code]
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1006, in getOutputText
        string = self.day_forecast[day_number].wind_speed
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 994, in getOutputText
        string = self.day_forecast[day_number].wind_dir
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 989, in getOutputText
        string = self.day_forecast[day_number].humidity
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 984, in getOutputText
        string = self.day_forecast[day_number].precip
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 858, in getOutputText
        output = output + self.getSpaces(spaces) + WeatherText.conditions_text[self.night_forecast[day_number].condition_code]
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 836, in getOutputText
        output = output + self.getSpaces(spaces) + WeatherText.conditions_weather_font[self.night_forecast[day_number].condition_code]
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 883, in getOutputText
        string = self.night_forecast[day_number].wind_speed
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 872, in getOutputText
        string = self.night_forecast[day_number].wind_dir
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 989, in getOutputText
        string = self.day_forecast[day_number].humidity
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 862, in getOutputText
        string = self.night_forecast[day_number].precip
    IndexError: list index out of range
    XOAP_PAR and XOAP_KEY are set to the pair I just received (btw: have I to sign to other products other than XML Data Feed?)
    conkyrc's are the ones you provide, only the location is changed.

    Any hint?
    Thanks in advance.
    G.

  5. #25
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Weather Forecast Python Script

    Quote Originally Posted by giancarlo76 View Post
    I'm going to test this awesome script, but I get this bunch of errors:

    Code:
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 957, in getOutputText
        output = output + self.getSpaces(spaces) + WeatherText.day_of_week[self.day_forecast[day_number].day_of_week]
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 968, in getOutputText
        string = self.day_forecast[day_number].high
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 961, in getOutputText
        string = self.day_forecast[day_number].low
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 980, in getOutputText
        output = output + self.getSpaces(spaces) + WeatherText.conditions_text[self.day_forecast[day_number].condition_code]
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 959, in getOutputText
        output = output + self.getSpaces(spaces) + WeatherText.conditions_weather_font[self.day_forecast[day_number].condition_code]
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1006, in getOutputText
        string = self.day_forecast[day_number].wind_speed
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 994, in getOutputText
        string = self.day_forecast[day_number].wind_dir
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 989, in getOutputText
        string = self.day_forecast[day_number].humidity
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 984, in getOutputText
        string = self.day_forecast[day_number].precip
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 858, in getOutputText
        output = output + self.getSpaces(spaces) + WeatherText.conditions_text[self.night_forecast[day_number].condition_code]
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 836, in getOutputText
        output = output + self.getSpaces(spaces) + WeatherText.conditions_weather_font[self.night_forecast[day_number].condition_code]
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 883, in getOutputText
        string = self.night_forecast[day_number].wind_speed
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 872, in getOutputText
        string = self.night_forecast[day_number].wind_dir
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 989, in getOutputText
        string = self.day_forecast[day_number].humidity
    IndexError: list index out of range
    Traceback (most recent call last):
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1436, in <module>
        weather.outputData()
      File "/home/giancarlo/share/weather/conkyForecast.py", line 1408, in outputData
        output = self.getOutputText(self.options.datatype,self.options.startday,self.options.endday,self.options.night,self.options.shortweekday,self.options.imperial,self.options.beaufont,self.options.hideunits,self.options.spaces)
      File "/home/giancarlo/share/weather/conkyForecast.py", line 862, in getOutputText
        string = self.night_forecast[day_number].precip
    IndexError: list index out of range
    XOAP_PAR and XOAP_KEY are set to the pair I just received (btw: have I to sign to other products other than XML Data Feed?)
    conkyrc's are the ones you provide, only the location is changed.

    Any hint?
    Thanks in advance.
    G.
    Do you get any data output? do the current conditions display (if you are requesting them?)

    You probably need to post your conkyrc file, but I think you are asking the script to get forecast details it can't find. This is usually because a --startday or --endday is set to greater than 4. The forecasting of the xoap service does not exceed 4 days into the future.

    If that's not the reason please post your conkyrc

    Hope that helps

  6. #26
    Join Date
    Nov 2006
    Beans
    13

    Re: Conky Weather Forecast Python Script

    It worked, in conkyrc-test --startday was 0 and --endday was 7. Now it's time to explore all of its capabilities..
    I will translate the strings in italian - btw: what about providing separate scripts for locales?

    Thanks,
    G.

  7. #27
    Join Date
    Oct 2007
    Location
    Belgium
    Beans
    73
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Conky Weather Forecast Python Script

    Hello Guys,

    Thanks for all adaptations. I think the best for the hour-system is indeed to base it on the system time format (to prevent too many options). As for the beaufort speeds: i will test it tonight.

    @kaivalagi: it's beaufoRt, not beafoNt

    @Bruce:
    Your weekdays are correctly translated. For the short ones, just take the first 2 letters of each one.
    For the wind directions its pretty simple:
    North => Noord
    East => Oost
    South => Zuid
    West => West
    So, N and W can stay, E=>O and S=>Z.

    As for the other translations, i think they are 90% correct, but i will correct them later when i have some time.

    Great work!

    Matt

  8. #28
    Join Date
    Oct 2007
    Location
    Belgium
    Beans
    73
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Conky Weather Forecast Python Script

    Here you go:

    Code:
    0	Tornado			Tornado
    1	Tropical Storm		Tropisch Onweer
    2	Hurricane		Orkaan
    3	Severe Thunderstorms	Hevige Onweersbuien
    4	Thunderstorms		Onweersbuien
    5	Mixed Rain and Snow	Gemengde Regen en Sneeuw
    6	Mixed Rain and Sleet	Gemengde Regen en Ijzel
    7	Mixed Precipitation	Gemengde Neerslag
    8	Freezing Drizzle	Aanvriezende Motregen
    9	Drizzle			Motregen
    10	Freezing Rain		Aanvriezende Regen
    11	Showers			Buien
    12	Showers			Buien
    13	Snow Flurries		Sneeuwvlagen
    14	Light Snow Showers	Lichte Sneeuwbuien
    15	Blowing Snow		Blazende Sneeuw
    16	Snow			Sneeuw
    17	Hail			Hagel
    18	Sleet			Ijzel
    19	Dust			Stof
    20	Fog			Mist
    21	Haze			Nevel
    22	Smoke			Rook
    23	Blustery		Stormachtig
    24	Windy			Winderig
    25	Cold			Koude
    26	Cloudy			Bewolkt
    27	Mostly Cloudy		Meestal Bewolkt
    28	Mostly Cloudy		Meestal Bewolkt
    29	Partly Cloudy		Gedeeltelijk Bewolkt
    30	Partly Cloudy		Gedeeltelijk Bewolkt
    31	Clear			Helder
    32	Clear			Helder
    33	Fair			Mooi
    34	Fair			Mooi
    35	Mixed Rain and Hail	Gemengde Regen en Hagel
    36	Hot			Heet
    37	Isolated Thunderstorms	Geïsoleerde Onweersbuien
    38	Scattered Thunderstorms	Verspreide Onweersbuien
    39	Scattered Thunderstorms	Verspreide Onweersbuien
    40	Scattered Showers	Verspreide Buien
    41	Heavy Snow		Zware Sneeuwval
    42	Scattered Snow Showers	Verspreide Sneeuwbuien
    43	Heavy Snow		Zware Sneeuwval
    44	Partly Cloudy		Gedeeltelijk Bewolkt
    45	Thunder Showers		Onweersbuien
    46	Snow Showers		Sneeuwbuien
    47	Isolated Thunderstorms	Geïsoleerde Onweersbuien

  9. #29
    Join Date
    Oct 2007
    Location
    Belgium
    Beans
    73
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Conky Weather Forecast Python Script

    ok,

    I did some testing.

    The --night mode changed nothing to my current output from today (may be a coincidence), it did change the precipitation chance and wind direction for the forecast, may be interesting to expand the forecast with night conditions.

    The --beaufont mode needs to be changed to --beaufort (like said above), but works fine. I dont think it has a unit other then "beaufort", and i have only seen it displayd as a number, without unit behind it.

    24H format is not correct, it displays 09:36 now (before 09.36PM), but that should be 21:36.

    Code:
    ${font arrows:size=15}${execi 3600 python /home/matt/conky/conkyForecast.py --location=BEXX0008 --startday=1 --endday=4 --datatype=BF}$font$color
    does seem to output to rectangles between each arrow?
    Last edited by killerwhale65; July 29th, 2008 at 05:58 PM.

  10. #30
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Weather Forecast Python Script

    Quote Originally Posted by killerwhale65 View Post
    ok,

    I did some testing.

    The --night mode changed nothing to my current output from today (may be a coincidence), it did change the precipitation chance and wind direction for the forecast, may be interesting to expand the forecast with night conditions.

    The --beaufont mode needs to be changed to --beaufort (like said above), but works fine. I dont think it has a unit other then "beaufort", and i have only seen it displayd as a number, without unit behind it.

    24H format is not correct, it displays 09:36 now (before 09.36PM), but that should be 21:36.

    Code:
    ${font arrows:size=15}${execi 3600 python /home/matt/conky/conkyForecast.py --location=BEXX0008 --startday=1 --endday=4 --datatype=BF}$font$color
    does seem to output to rectangles between each arrow?
    --night only has an effect for forecast data, as I posted previously day and night xml is only there for forecast data, not for current conditions.

    I'll update the --beaufont option to be spelt properly when I next update the script for something else...like the 24hr clock output...apparently %H doesn't format hours in 24 hour mode...according to the python docs it should have worked...maybe I missed something

    When I run "python /home/matt/conky/conkyForecast.py --location=BEXX0008 --startday=1 --endday=4 --datatype=BF" on the command line I get:

    p o d c

    Which should by all accounts translate to 4 arrows when output using the arrows font. Do you get this output on the command line? If you do you may want to check the font you have installed with something like gnome-specimen...

Page 3 of 380 FirstFirst 123451353103 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •