Re: [weewx-user] image caching problem with Chrome

2019-09-23 Thread Chris Richmond
Thanks.  I don't think I have access to the web server config to go at it 
from that angle, but since I'm post-processing
all the web pages anyway to change host names, I can add the actual 
timestamps from the files while I'm at it.

Any other ideas on the report sequence?  I can fiddle with that when I get 
home.

Thx, Chris

On Sunday, September 22, 2019 at 5:05:53 PM UTC-7, Thomas Keffer wrote:
>
> Take a look at this thread 
> . It 
> offers several solutions.
>
> -tk
>
>>
>> Semi-unrelated, but is there a way to get the rsync report to run after 
>> the the images are generated rather than
>> before?  As it is, the images are always a cycle behind the rest of the 
>> page updates.  The report module isn't sorting
>> the names, but maybe naming rsync ZRSYNC and sorting the report names 
>> would work???
>>
>> Sep 22 16:20:38 pivue weewx[30301]: copygenerator: copied 0 files to 
>> /home/weewx/public_html.vp2
>> Sep 22 16:25:14 pivue weewx[30301]: manager: Added record 2019-09-22 
>> 16:25:00 MDT (1569191100) to database 'weewx.sdb'
>> Sep 22 16:25:15 pivue weewx[30301]: manager: Added record 2019-09-22 
>> 16:25:00 MDT (1569191100) to daily summary in 'weewx.sdb'
>> Sep 22 16:25:16 pivue weewx[30301]: rsyncupload: rsync'd 23 files 
>> (168,268 bytes) in 0.96 seconds
>> Sep 22 16:25:32 pivue weewx[30301]: cheetahgenerator: Generated 9 files 
>> for report SeasonsReport in 14.57 seconds
>> Sep 22 16:25:38 pivue weewx[30301]: imagegenerator: Generated 14 images 
>> for SeasonsReport in 6.61 seconds
>> Sep 22 16:25:38 pivue weewx[30301]: copygenerator: copied 0 files to 
>> /home/weewx/public_html.vp2
>>
>> Site is here: http://www.csrhome.online/vp2weather/index.html
>>
>> thx,Chris 
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "weewx-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to weewx...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/e136d56f-7066-4c39-b433-c6a27f131d21%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/036e8386-e37a-4b3e-aa7a-3ef3376462e1%40googlegroups.com.


Re: [weewx-user] image caching problem with Chrome

2019-09-22 Thread Thomas Keffer
Take a look at this thread
. It
offers several solutions.

-tk

On Sun, Sep 22, 2019 at 3:34 PM Chris Richmond 
wrote:

> All, this can't be a new thing, but using Chrome and weewx 3.9.1, the
> graphs don't reload when refreshing the
> web page.  Rather than having to clear the image cache in Chrome's
> Settings, is it reasonable to add a trick like this:
> http://www.csrhome.online/myshake/gifs/RD066_EHZ_AM_00.2019090100.gif?v=1567339258>
> ">
>
> This is from a different web published RPi dodad raspberryshake (mine is
> broken at the moment).  Anyhow, the trick
> is to add a timestamp to the href that updates with the image so that it
> tricks the caching mechanism into reloading the
> same named file when the timestamp has changed.  Does cheetah support that
> sort of thing?
>
> Semi-unrelated, but is there a way to get the rsync report to run after
> the the images are generated rather than
> before?  As it is, the images are always a cycle behind the rest of the
> page updates.  The report module isn't sorting
> the names, but maybe naming rsync ZRSYNC and sorting the report names
> would work???
>
> Sep 22 16:20:38 pivue weewx[30301]: copygenerator: copied 0 files to
> /home/weewx/public_html.vp2
> Sep 22 16:25:14 pivue weewx[30301]: manager: Added record 2019-09-22
> 16:25:00 MDT (1569191100) to database 'weewx.sdb'
> Sep 22 16:25:15 pivue weewx[30301]: manager: Added record 2019-09-22
> 16:25:00 MDT (1569191100) to daily summary in 'weewx.sdb'
> Sep 22 16:25:16 pivue weewx[30301]: rsyncupload: rsync'd 23 files (168,268
> bytes) in 0.96 seconds
> Sep 22 16:25:32 pivue weewx[30301]: cheetahgenerator: Generated 9 files
> for report SeasonsReport in 14.57 seconds
> Sep 22 16:25:38 pivue weewx[30301]: imagegenerator: Generated 14 images
> for SeasonsReport in 6.61 seconds
> Sep 22 16:25:38 pivue weewx[30301]: copygenerator: copied 0 files to
> /home/weewx/public_html.vp2
>
> Site is here: http://www.csrhome.online/vp2weather/index.html
>
> thx,Chris
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/e136d56f-7066-4c39-b433-c6a27f131d21%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zECnr2AW4L9TtevAPnP8QAtKcKzridOmRYKdV7RyZfr8vQ%40mail.gmail.com.


[weewx-user] image caching problem with Chrome

2019-09-22 Thread Chris Richmond
All, this can't be a new thing, but using Chrome and weewx 3.9.1, the 
graphs don't reload when refreshing the
web page.  Rather than having to clear the image cache in Chrome's 
Settings, is it reasonable to add a trick like this:
http://www.csrhome.online/myshake/gifs/RD066_EHZ_AM_00.2019090100.gif?v=1567339258>
">

This is from a different web published RPi dodad raspberryshake (mine is 
broken at the moment).  Anyhow, the trick
is to add a timestamp to the href that updates with the image so that it 
tricks the caching mechanism into reloading the
same named file when the timestamp has changed.  Does cheetah support that 
sort of thing?

Semi-unrelated, but is there a way to get the rsync report to run after the 
the images are generated rather than
before?  As it is, the images are always a cycle behind the rest of the 
page updates.  The report module isn't sorting
the names, but maybe naming rsync ZRSYNC and sorting the report names would 
work???

Sep 22 16:20:38 pivue weewx[30301]: copygenerator: copied 0 files to 
/home/weewx/public_html.vp2
Sep 22 16:25:14 pivue weewx[30301]: manager: Added record 2019-09-22 
16:25:00 MDT (1569191100) to database 'weewx.sdb'
Sep 22 16:25:15 pivue weewx[30301]: manager: Added record 2019-09-22 
16:25:00 MDT (1569191100) to daily summary in 'weewx.sdb'
Sep 22 16:25:16 pivue weewx[30301]: rsyncupload: rsync'd 23 files (168,268 
bytes) in 0.96 seconds
Sep 22 16:25:32 pivue weewx[30301]: cheetahgenerator: Generated 9 files for 
report SeasonsReport in 14.57 seconds
Sep 22 16:25:38 pivue weewx[30301]: imagegenerator: Generated 14 images for 
SeasonsReport in 6.61 seconds
Sep 22 16:25:38 pivue weewx[30301]: copygenerator: copied 0 files to 
/home/weewx/public_html.vp2

Site is here: http://www.csrhome.online/vp2weather/index.html

thx,Chris 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/e136d56f-7066-4c39-b433-c6a27f131d21%40googlegroups.com.