[horde] provide default location values for weather services
Michael J Rubinsky
mrubinsk at horde.org
Fri Mar 9 15:33:57 UTC 2012
Quoting LALOT Dominique <dom.lalot at gmail.com>:
> 2012/3/8 LALOT Dominique <dom.lalot at gmail.com>
>
>> 2012/3/8 Michael J Rubinsky <mrubinsk at horde.org>
>>
>>>
>>> Quoting LALOT Dominique <dom.lalot at gmail.com>:
>>>
>>> Hello,
>>>>
>>>> How could we do that?
>>>>
>>>
>>> I will assume you mean the weather data returned via the timeobjects API?
>>>
>>> It tries the following in this order:
>>>
>>> * The user's location setting in the default identity
>>> * The address in a contact marked as "own" via the contacts API
>>> * If supported by the weather backend, attempts to determine via the
>>> browser's IP address.
>>>
>>> --
>>> mike
>>>
>>> The Horde Project (www.horde.org)
>>> mrubinsk at horde.org
>>>
>>> --
>>> Horde mailing list
>>> Frequently Asked Questions: http://horde.org/faq/
>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>>
>>> OK, that's clear now
>> How can I enter default location for an identity (what is the syntax?).
>> That's a free text area!
>>
>> I tried to put this:
> $_prefs['location']['value']='58 Boulevard Charles Livon, 13007 Marseille,
> France';
>
> but then I've got those traces on each login
> Mar 9 11:50:00 horde41 HORDE: [timeobjects] PHP ERROR: Undefined offset: 0
> [pid 21460 on line 217 of
> "/var/www/horde/timeobjects/lib/Driver/Weather.php"]
> Mar 9 11:50:00 horde41 HORDE: [timeobjects] PHP ERROR: Trying to get
> property of non-object [pid 21460 on line 219 of
> "/var/www/horde/timeobjects/lib/Driver/Weather.php"]
>
> So, what is the syntax?
It's part of the identity pref, not a stand alone pref. I believe if
you want to provide default values for the identity variables, you
would need to use a hook to build the identity.
--
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/20120309/e28421aa/attachment.bin>
More information about the horde
mailing list