mythbuntu-bugs team mailing list archive
-
mythbuntu-bugs team
-
Mailing list archive
-
Message #01889
[Bug 574116] [NEW] Mythweather only updates once a day
Public bug reported:
Hi,
I'm finding that mythweather only updates the first time I check it.
For subsequent checks on the same day, it only uses the cached value.
I've determined that the problem is that the envcan.pl script for Canada
isn't calculating today's time properly, but I don't know perl, and I
can't figure out how to fix it.
Further details:
The script command my frontend calls is:
"nice /usr/share/mythtv/mythweather/scripts/ca_envcan/envcan.pl -u SI -d
/home/greg/.mythtv/MythWeather/ENVCAN on-118"
which runs without errors. However, when you look in the file it
creates, it says
2010-05-02T00:15:00 2010-05-02T00:00:00
%results = ('pressure' => '1003','visibility' => '24.1','copyright' => 'Copy$ ...
The first date/time on the first line is supposed to be the time of the
next update. The second date/time is supposed to be the current
date/time. If the current time is less than the next update time, the
script uses the cached values. However, the script always thinks it is
midnight, so it uses the cached value since midnight is before 00:15.
Once you reach the next day, the date changes, and it allows another
update.
I'm running Mythbuntu 10.04 with all the updates applied. The version
of mythweather I'm using is 0.23.0+fixes24269-0ubuntu0+mythbuntu2.
** Affects: mythbuntu
Importance: Undecided
Status: New
--
Mythweather only updates once a day
https://bugs.launchpad.net/bugs/574116
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to Mythbuntu.
Status in Mythbuntu, Ubuntu derivative focused upon MythTV: New
Bug description:
Hi,
I'm finding that mythweather only updates the first time I check it. For subsequent checks on the same day, it only uses the cached value. I've determined that the problem is that the envcan.pl script for Canada isn't calculating today's time properly, but I don't know perl, and I can't figure out how to fix it.
Further details:
The script command my frontend calls is:
"nice /usr/share/mythtv/mythweather/scripts/ca_envcan/envcan.pl -u SI -d /home/greg/.mythtv/MythWeather/ENVCAN on-118"
which runs without errors. However, when you look in the file it creates, it says
2010-05-02T00:15:00 2010-05-02T00:00:00
%results = ('pressure' => '1003','visibility' => '24.1','copyright' => 'Copy$ ...
The first date/time on the first line is supposed to be the time of the next update. The second date/time is supposed to be the current date/time. If the current time is less than the next update time, the script uses the cached values. However, the script always thinks it is midnight, so it uses the cached value since midnight is before 00:15. Once you reach the next day, the date changes, and it allows another update.
I'm running Mythbuntu 10.04 with all the updates applied. The version of mythweather I'm using is 0.23.0+fixes24269-0ubuntu0+mythbuntu2.
Follow ups
-
[Bug 574116] Re: Date::Manip changed in 10.04/Lucid
From: Thomas Mashos, 2015-01-11
-
[Bug 574116] Re: Date::Manip changed in 10.04/Lucid
From: Mario Limonciello, 2010-06-20
-
[Bug 574116] Re: Date::Manip changed in 10.04/Lucid
From: Bug Watch Updater, 2010-06-19
-
[Bug 574116] Re: Date::Manip changed in 10.04/Lucid
From: Bug Watch Updater, 2010-05-16
-
[Bug 574116] Re: UnixDate broken in Date::Manip in 10.04/Lucid
From: MarcRandolph, 2010-05-16
-
[Bug 574116] Re: UnixDate broken in Date::Manip in 10.04/Lucid
From: MarcRandolph, 2010-05-15
-
[Bug 574116] Re: UnixDate broken in Date::Manip in 10.04/Lucid
From: MarcRandolph, 2010-05-15
-
[Bug 574116] Re: UnixDate broken in Date::Manip in 10.04/Lucid
From: MarcRandolph, 2010-05-15
-
[Bug 574116] Re: Mythweather only updates once a day
From: MarcRandolph, 2010-05-14
-
[Bug 574116] Re: Mythweather only updates once a day
From: Greg L, 2010-05-14
-
[Bug 574116] Re: Mythweather only updates once a day
From: Greg L, 2010-05-04
-
[Bug 574116] [NEW] Mythweather only updates once a day
From: Greg L, 2010-05-03
References