mp101;192029 Wrote:
> Hi,
>
> Great plugin I use it all the time,
>
> One question though, I use it to look at UK stocks, but because of the
> time difference i don't start to get stocks til about 1pm.
>
> I have used the time offset in the plugins section, and looked through
> the plugin, but cant get it to start at UK Market times.
>
> Can you help
>
> Thanks very much
When I added Yahoo finance support I didn't take into account that
non-us markets are available on there as well. Therefore, the offset
setting basically sets it to retrieve quotes during US trading hours.
If you're only using the plugin to retrieve weather and stocks (no US
sports) you can play with the offset setting to achieve what you're
looking for.
If I'm thinking properly (it's Monday and my mind is still hazy from
the weekend) if you set your timezone to US eastern in the plugin you
should start getting quotes.
If you're also using the plugin to retreive US sports, you can modify
the plugin directly by changing this line:
Code:
--------------------
if (($stocks ne "" && $wday >0 && $wday <6 && $hour <18 && $hour >8)||
($stocks ne "" && $wday >0 && $wday <6 && $hour >17 && (scalar
@STKdisplayItems1 == 0))) { #Make sure stocks data is needed. Update from 9am
to 5pm.
--------------------
I'm guessing in this case you'd have to add 5 hours to each of the
$hour spots in the code and set your timezone offset to London.
***Depending on when you change the timezone offset setting you may
have to restart your server to begin retreiving quotes for that day
(otherwise they'll start up the following day automatically). If you
modify the plugin code you'll obviously have to restart as well.
Lemme know if you have any issues.
-Greg
--
GoCubs
------------------------------------------------------------------------
GoCubs's Profile: http://forums.slimdevices.com/member.php?userid=312
View this thread: http://forums.slimdevices.com/showthread.php?t=14327
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins