[horde] Fwd: Weather in Horde 4

Michael J Rubinsky mrubinsk at horde.org
Fri Mar 2 17:02:40 UTC 2012


Quoting Andreas Mauser <andreas at mauser.info>:

> Hi
>
> ----- Nachricht von Michael J Rubinsky <mrubinsk at horde.org> ---------
>   Datum: Fri, 02 Mar 2012 11:47:00 -0500
>     Von: Michael J Rubinsky <mrubinsk at horde.org>
> Betreff: Re: [horde] Fwd: Weather in Horde 4
>      An: horde at lists.horde.org
>
>
>> Quoting Andreas Mauser <andreas at mauser.info>:
>>
>>> Hi
>>> ----- Nachricht von Michael J Rubinsky <mrubinsk at horde.org> ---------
>>> Datum: Fri, 02 Mar 2012 11:29:19 -0500
>>>   Von: Michael J Rubinsky <mrubinsk at horde.org>
>>> Betreff: Re: [horde] Fwd: Weather in Horde 4
>>>    An: horde at lists.horde.org
>>>
>>>
>>>> Quoting Andreas Mauser <andreas at mauser.info>:
>>>>
>>>>> Hi
>>>>> ----- Nachricht von Simon Brereton  
>>>>> <simon.brereton at buongiorno.com> ---------
>>>>>  Datum: Fri, 2 Mar 2012 10:44:58 -0500
>>>>>    Von: Simon Brereton <simon.brereton at buongiorno.com>
>>>>> Antwort an: simon.brereton at buongiorno.com
>>>>> Betreff: Re: [horde] Fwd: Weather in Horde 4
>>>>>     An: horde <horde at lists.horde.org>
>>>>>
>>>>>
>>>>>> On 2 March 2012 01:35, Andreas Mauser <andreas at mauser.info> wrote:
>>>>>>> Hi
>>>>>>>
>>>>>>> ----- Nachricht von Michael J Rubinsky <mrubinsk at horde.org> ---------
>>>>>>>  Datum: Thu, 01 Mar 2012 14:02:50 -0500
>>>>>>>    Von: Michael J Rubinsky <mrubinsk at horde.org>
>>>>>>> Betreff: Re: [horde] Fwd: Weather in Horde 4
>>>>>>>     An: horde at lists.horde.org
>>>>>>>
>>>>>>>
>>>>>>>> Quoting Andreas Mauser <andreas at mauser.info>:
>>>>>>>>
>>>>>>>>> Hi
>>>>>>>>> ----- Nachricht von Michael J Rubinsky <mrubinsk at horde.org> ---------
>>>>>>>>>  Datum: Thu, 01 Mar 2012 13:06:33 -0500
>>>>>>>>>   Von: Michael J Rubinsky <mrubinsk at horde.org>
>>>>>>>>> Betreff: Re: [horde] Fwd: Weather in Horde 4
>>>>>>>>>    An: horde at lists.horde.org
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> Quoting Andreas Mauser <andreas at mauser.info>:
>>>>>>>>>>
>>>>>>>>>>> Hi
>>>>>>>>>>> ----- Nachricht von Michael J Rubinsky  
>>>>>>>>>>> <mrubinsk at horde.org> ---------
>>>>>>>>>>> Datum: Thu, 01 Mar 2012 12:33:04 -0500
>>>>>>>>>>>  Von: Michael J Rubinsky <mrubinsk at horde.org>
>>>>>>>>>>> Betreff: Re: [horde] Fwd: Weather in Horde 4
>>>>>>>>>>>  An: horde at lists.horde.org
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>> Quoting Andreas Mauser <andreas at mauser.info>:
>>>>>>>>>>>>
>>>>>>>>>>>>> I have Pear Services Weather installed,
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> You don't need PEAR's Services_Weather - you need
>>>>>>>>>>>> Horde_Service_Weather.
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> When looking for Weather in my separate pear's  
>>>>>>>>>>> installation I find the
>>>>>>>>>>> following:
>>>>>>>>>>>
>>>>>>>>>>> /var/www/mauser.info/mailoffice/pear/pear list-all |grep weather
>>>>>>>>>>> pear/Services_Weather                          1.4.6      
>>>>>>>>>>>  1.4.2    This
>>>>>>>>>>> class acts as an interface to various online weather-services.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> This is PEAR/Services_Weather, not Horde/Service_Weather.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> When I search for it I get the following:
>>>>>>>>>>>
>>>>>>>>>>> /var/www/mauser.info/mailoffice/pear/pear search weather
>>>>>>>>>>> Retrieving data...0%
>>>>>>>>>>> Matched packages, channel pear.php.net:
>>>>>>>>>>> =======================================
>>>>>>>>>>> Package          Stable/(Latest) Local
>>>>>>>>>>> Services_Weather 1.4.6 (stable)  1.4.2 This class acts as  
>>>>>>>>>>> an interface
>>>>>>>>>>> to various online weather-services.
>>>>>>>>>>>
>>>>>>>>>>> Is this the correct 'Weather'?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> No. Both of the above examples are PEAR's Services_Weather.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> And if not, How do I inistall it in separate pear?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Read docs INSTALL, or http://pear.horde.org
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> OK, I did install the Horde/Weather as following:
>>>>>>>>>
>>>>>>>>> /var/www/mauser.info/mailoffice/pear/pear -c
>>>>>>>>> /var/www/mauser.info/mailoffice/pear.conf install
>>>>>>>>> horde/Horde_Service_Weather
>>>>>>>>> Did not download optional dependencies: horde/Horde_Test,  
>>>>>>>>> use --alldeps
>>>>>>>>> to download automatically
>>>>>>>>> horde/Horde_Http can optionally use package  
>>>>>>>>> "horde/Horde_Test" (version
>>>>>>>>>> = 1.0.0, version <= 2.0.0, excluded versions: 2.0.0)
>>>>>>>>> horde/Horde_Http can optionally use PHP extension "curl"
>>>>>>>>> horde/Horde_Http can optionally use PHP extension "http"
>>>>>>>>> downloading Horde_Service_Weather-1.1.0.tgz ...
>>>>>>>>> Starting to download Horde_Service_Weather-1.1.0.tgz (163,137 bytes)
>>>>>>>>> ..................................done: 163,137 bytes
>>>>>>>>> downloading Horde_Date-1.0.10.tgz ...
>>>>>>>>> Starting to download Horde_Date-1.0.10.tgz (57,009 bytes)
>>>>>>>>> ...done: 57,009 bytes
>>>>>>>>> downloading Horde_Http-1.1.1.tgz ...
>>>>>>>>> Starting to download Horde_Http-1.1.1.tgz (11,967 bytes)
>>>>>>>>> ...done: 11,967 bytes
>>>>>>>>> downloading Horde_Support-1.0.2.tgz ...
>>>>>>>>> Starting to download Horde_Support-1.0.2.tgz (22,284 bytes)
>>>>>>>>> ...done: 22,284 bytes
>>>>>>>>> install ok: channel://pear.horde.org/Horde_Date-1.0.10
>>>>>>>>> install ok: channel://pear.horde.org/Horde_Support-1.0.2
>>>>>>>>> install ok: channel://pear.horde.org/Horde_Http-1.1.1
>>>>>>>>> install ok: channel://pear.horde.org/Horde_Service_Weather-1.1.0
>>>>>>>>
>>>>>>>>
>>>>>>>> Something is broken with your Horde install. I don't think  
>>>>>>>> it's possible
>>>>>>>> to have Horde 4 installed and NOT already have at least  
>>>>>>>> Horde_Date and/or
>>>>>>>> Horde_Support.
>>>>>>>>
>>>>>>> I set up Horde4 again new according to this installation howto:
>>>>>>>
>>>>>>> http://www.bsntech.com/bsntech-blog-mainmenu-321/computers-mainmenu-281/6121-installing-horde-4-webmail-in-linux.html
>>>>>>>
>>>>>>> Weather blocks in portal view still missing, only title is here.
>>>>>>
>>>>>> I don't know about the others, but  screenshot would help me here.
>>>>>> Once you've inserted the block (either from the add Content page) or
>>>>>> in the normal view you have actually set up the weather service, yes?
>>>>>>
>>>>>
>>>>> Here the requested screenshots and it is also what I set where:
>>>>>
>>>>> https://mauser.info/mailoffice/ablage/API_page.png
>>>>> https://mauser.info/mailoffice/ablage/Set_Block.png
>>>>> https://mauser.info/mailoffice/ablage/Portal_Block_Missing.png
>>>>
>>>> This all looks fine. I have *no* idea why it's not working for you.
>>>>
>>>> Can you provide a list of all the horde packages you have installed?
>>>>
>>>> pear list -c pear.horde.org
>>>
>>> Yes, that is:
>>>
>>> pear list -c pear.horde.org
>>> Installed packages, channel pear.horde.org:
>>> ===========================================
>>> Package    Version State
>>> Horde_Role 1.0.0   stable
>>
>> This is impossible if you installed Horde via PEAR, unless you used  
>> a separate PEAR install just for Horde...and if you did, you need  
>> to use *that* pear to provide the list. i.e.:
>>
>> /path/to/separate/pear -c /path/to/separate/pear/pear.conf list -c  
>> pear.horde.org
>
> Sorry, here the new list:
>
> Installed packages, channel pear.horde.org:
> ===========================================
> Package                    Version State
> Horde_ActiveSync           1.2.4   stable
> Horde_Alarm                1.0.7   stable
> Horde_Argv                 1.0.5   stable
> Horde_Auth                 1.4.8   stable
> Horde_Autoloader           1.0.1   stable
> Horde_Browser              1.0.6   stable
> Horde_Cache                1.0.4   stable
> Horde_Cli                  1.0.4   stable
> Horde_Compress             1.0.6   stable
> Horde_Constraint           1.0.1   stable
> Horde_Controller           1.0.1   stable
> Horde_Core                 1.8.5   stable
> Horde_Crypt                1.1.1   stable
> Horde_Data                 1.0.5   stable
> Horde_DataTree             1.0.1   stable
> Horde_Date                 1.0.10  stable
> Horde_Date_Parser          1.0.2   stable
> Horde_Db                   1.2.0   stable
> Horde_Editor               1.0.1   stable
> Horde_Exception            1.0.8   stable
> Horde_Feed                 1.1.1   stable
> Horde_Form                 1.0.6   stable
> Horde_Group                1.0.5   stable
> Horde_History              1.0.0   stable
> Horde_Http                 1.1.1   stable
> Horde_Icalendar            1.1.1   stable
> Horde_Image                1.0.10  stable
> Horde_Imap_Client          1.5.1   stable
> Horde_Imsp                 1.0.6   stable
> Horde_Injector             1.0.1   stable
> Horde_Itip                 1.0.7   stable
> Horde_Kolab_Format         1.1.1   stable
> Horde_Kolab_Server         1.0.1   stable
> Horde_Kolab_Session        1.1.0   stable
> Horde_Kolab_Storage        1.1.0   stable
> Horde_Lock                 1.0.1   stable
> Horde_Log                  1.1.2   stable
> Horde_LoginTasks           1.0.3   stable
> Horde_Mail                 1.1.0   stable
> Horde_Memcache             1.0.5   stable
> Horde_Mime                 1.5.0   stable
> Horde_Mime_Viewer          1.0.8   stable
> Horde_Nls                  1.1.4   stable
> Horde_Notification         1.0.1   stable
> Horde_Oauth                1.0.0   stable
> Horde_Pdf                  1.0.2   stable
> Horde_Perms                1.0.6   stable
> Horde_Prefs                1.1.7   stable
> Horde_Rdo                  1.1.1   stable
> Horde_Role                 1.0.0   stable
> Horde_Routes               1.1.2   stable
> Horde_Rpc                  1.0.3   stable
> Horde_Scribe               1.0.1   stable
> Horde_Secret               1.0.0   stable
> Horde_Serialize            1.0.2   stable
> Horde_Service_Facebook     1.1.2   stable
> Horde_Service_Twitter      1.1.3   stable
> Horde_Service_UrlShortener 1.0.0   stable
> Horde_Service_Weather      1.1.0   stable
> Horde_SessionHandler       1.0.4   stable
> Horde_Share                1.2.2   stable
> Horde_SpellChecker         1.0.0   stable
> Horde_Stream_Filter        1.1.0   stable
> Horde_Stream_Wrapper       1.0.0   stable
> Horde_Support              1.0.2   stable
> Horde_SyncMl               1.0.8   stable
> Horde_Template             1.0.1   stable
> Horde_Text_Diff            1.0.2   stable
> Horde_Text_Filter          1.1.3   stable
> Horde_Text_Filter_Csstidy  1.0.0   stable
> Horde_Text_Flowed          1.0.0   stable
> Horde_Thrift               1.0.0   stable
> Horde_Token                1.1.5   stable
> Horde_Translation          1.0.1   stable
> Horde_Tree                 1.0.0   stable
> Horde_Url                  1.0.0   stable
> Horde_Util                 1.2.0   stable
> Horde_Vfs                  1.0.8   stable
> Horde_View                 1.0.1   stable
> Horde_Xml_Element          1.0.1   stable
> Horde_Xml_Wbxml            1.0.3   stable
> ansel                      2.0.1   stable
> content                    1.0.3   stable
> gollem                     2.0.1   stable
> horde                      4.0.14  stable
> imp                        5.0.19  stable
> ingo                       2.0.7   stable
> kronolith                  3.0.15  stable
> mnemo                      3.0.5   stable
> nag                        3.0.7   stable
> passwd                     4.0.1   stable
> timeobjects                1.0.6   stable
> turba                      3.0.12  stable
> webmail                    4.0.6   stable
> wicked                     1.0.1   stable

Looks good.

In the file horde/lib/Blocks/Weather.php, add the following on line 101:

Horde::debug($weather);

then on line 131:


Horde::debug($location);

and pastebin the output of your horde debug file (by default in your  
system's tmp directory named "horde_debug.txt").
-- 
mike

The Horde Project (www.horde.org)
mrubinsk at horde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6096 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.horde.org/archives/horde/attachments/20120302/7224fe06/attachment-0001.bin>


More information about the horde mailing list