[weewx-user] problem with INDEX.HTML file version

2022-08-21 Thread Eric Gammeter
Seemingly out of the blue I have a problem with the INDEX.HTML.  IE:  When 
I look at my Rpi (192.168.1.38/weewx) in a browser locally-  the correct 
report formatting is there and it looks fine (has all it's graphs); however 
when I go to the web address (http://www.n8aay.net) the index file that I 
see there is only "formatted for RSS" (that is:  no graphics, only text).  
I did recently upgrade to v 4.8.0  
?   /Thanks, EG

-- 
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/f470168b-b111-48ac-9597-80f02195cf49n%40googlegroups.com.


[weewx-user] Re: problem with INDEX.HTML file version

2022-08-21 Thread Eric Gammeter
both of the INDEX.HTML files referred to above are updating every 30 
minutes.

On Sunday, August 21, 2022 at 11:49:11 AM UTC-4 Eric Gammeter wrote:

> Seemingly out of the blue I have a problem with the INDEX.HTML.  IE:  When 
> I look at my Rpi (192.168.1.38/weewx) in a browser locally-  the correct 
> report formatting is there and it looks fine (has all it's graphs); however 
> when I go to the web address (http://www.n8aay.net) the index file that I 
> see there is only "formatted for RSS" (that is:  no graphics, only text).  
> I did recently upgrade to v 4.8.0  
> ?   /Thanks, EG
>

-- 
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/2851c648-b40c-4986-a420-eba6eb047558n%40googlegroups.com.


[weewx-user] Re: problem with INDEX.HTML file version

2022-08-21 Thread Eric Gammeter
Aug 21 12:00:55 raspberrypi3WEEWX weewx[606] DEBUG weeutil.ftpupload: 56 
./index.html 
522bce22f22f09c2ee428a8373f9f8d72f490b88a1463d82971d8ff3630fa1d2
Aug 21 12:00:55 raspberrypi3WEEWX weewx[606] DEBUG weeutil.ftpupload: 
Uploaded file /var/www/html/weewx/index.html to /weather/4.8/index.html

 

[[SeasonsReport]]

# The SeasonsReport uses the 'Seasons' skin, which contains the

# images, templates and plots for the report.

skin = Seasons

enable = true

 

[[SmartphoneReport]]

# The SmartphoneReport uses the 'Smartphone' skin, and the images 
and

# files are placed in a dedicated subdirectory.

skin = Smartphone

enable = true

HTML_ROOT = /var/www/html/weewx/smartphone

 

[[MobileReport]]

# The MobileReport uses the 'Mobile' skin, and the images and files

# are placed in a dedicated subdirectory.

skin = Mobile

enable = true

HTML_ROOT = /var/www/html/weewx/mobile

 

[[StandardReport]]

# This is the old "Standard" skin. By default, it is not enabled.

skin = Standard

enable = false

 


Station uses VANTAGE weather station.  


Version:  4.8.0

On Sunday, August 21, 2022 at 11:51:22 AM UTC-4 Eric Gammeter wrote:

> both of the INDEX.HTML files referred to above are updating every 30 
> minutes.
>
> On Sunday, August 21, 2022 at 11:49:11 AM UTC-4 Eric Gammeter wrote:
>
>> Seemingly out of the blue I have a problem with the INDEX.HTML.  IE:  
>> When I look at my Rpi (192.168.1.38/weewx) in a browser locally-  the 
>> correct report formatting is there and it looks fine (has all it's graphs); 
>> however when I go to the web address (http://www.n8aay.net) the index 
>> file that I see there is only "formatted for RSS" (that is:  no graphics, 
>> only text).  I did recently upgrade to v 4.8.0  
>> ?   /Thanks, EG
>>
>

-- 
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/0c23f1d6-4c73-4dd8-8f01-d1fe1705d1e0n%40googlegroups.com.


Re: [weewx-user] Re: problem with INDEX.HTML file version

2022-08-21 Thread Doug Jenkins
Eric:

First clear your  browser cache. you can check this by running in-private
browsing in either edge or chrome.

if that doesn't work, we are going to need a lot more information to help.
Specifically:

1. What is your web server?
2. What port is your webserver serving weewx (assuming 80)
3. How are you routing your n8aay.net domain to your local RPi?
4. Do you have your firewall properly configured to route incoming 80/443
traffic to your RPi?

On Sun, Aug 21, 2022 at 12:17 PM Eric Gammeter  wrote:

> Aug 21 12:00:55 raspberrypi3WEEWX weewx[606] DEBUG weeutil.ftpupload: 56
> ./index.html
> 522bce22f22f09c2ee428a8373f9f8d72f490b88a1463d82971d8ff3630fa1d2
> Aug 21 12:00:55 raspberrypi3WEEWX weewx[606] DEBUG weeutil.ftpupload:
> Uploaded file /var/www/html/weewx/index.html to /weather/4.8/index.html
>
>
>
> [[SeasonsReport]]
>
> # The SeasonsReport uses the 'Seasons' skin, which contains the
>
> # images, templates and plots for the report.
>
> skin = Seasons
>
> enable = true
>
>
>
> [[SmartphoneReport]]
>
> # The SmartphoneReport uses the 'Smartphone' skin, and the images
> and
>
> # files are placed in a dedicated subdirectory.
>
> skin = Smartphone
>
> enable = true
>
> HTML_ROOT = /var/www/html/weewx/smartphone
>
>
>
> [[MobileReport]]
>
> # The MobileReport uses the 'Mobile' skin, and the images and
> files
>
> # are placed in a dedicated subdirectory.
>
> skin = Mobile
>
> enable = true
>
> HTML_ROOT = /var/www/html/weewx/mobile
>
>
>
> [[StandardReport]]
>
> # This is the old "Standard" skin. By default, it is not enabled.
>
> skin = Standard
>
> enable = false
>
>
>
>
> Station uses VANTAGE weather station.
>
>
> Version:  4.8.0
>
> On Sunday, August 21, 2022 at 11:51:22 AM UTC-4 Eric Gammeter wrote:
>
>> both of the INDEX.HTML files referred to above are updating every 30
>> minutes.
>>
>> On Sunday, August 21, 2022 at 11:49:11 AM UTC-4 Eric Gammeter wrote:
>>
>>> Seemingly out of the blue I have a problem with the INDEX.HTML.  IE:
>>> When I look at my Rpi (192.168.1.38/weewx) in a browser locally-  the
>>> correct report formatting is there and it looks fine (has all it's graphs);
>>> however when I go to the web address (http://www.n8aay.net) the index
>>> file that I see there is only "formatted for RSS" (that is:  no graphics,
>>> only text).  I did recently upgrade to v 4.8.0
>>> ?   /Thanks, EG
>>>
>> --
> 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/0c23f1d6-4c73-4dd8-8f01-d1fe1705d1e0n%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/CACC0i0wbeM6xh86%3DeFzJ%2B5aOrKrtVAK1XdGTP6SxhHZj3HJoHA%40mail.gmail.com.


Re: [weewx-user] Re: problem with INDEX.HTML file version

2022-08-21 Thread Doug Jenkins
The other thing to check is make sure you have the permissions set
correctly for your web server account to access the subdirectories that are
published. One thing I do is make sure the target public_html directly has
read/write permissions for the weewx account and read permissions that are
inheritable by the webserver account.

Once that is set, I clear the public_html directly completely (all files
and folders) and restart weewx. it will recreate everything (including the
folders) with the correct permissions.



On Sun, Aug 21, 2022 at 12:17 PM Eric Gammeter  wrote:

> Aug 21 12:00:55 raspberrypi3WEEWX weewx[606] DEBUG weeutil.ftpupload: 56
> ./index.html
> 522bce22f22f09c2ee428a8373f9f8d72f490b88a1463d82971d8ff3630fa1d2
> Aug 21 12:00:55 raspberrypi3WEEWX weewx[606] DEBUG weeutil.ftpupload:
> Uploaded file /var/www/html/weewx/index.html to /weather/4.8/index.html
>
>
>
> [[SeasonsReport]]
>
> # The SeasonsReport uses the 'Seasons' skin, which contains the
>
> # images, templates and plots for the report.
>
> skin = Seasons
>
> enable = true
>
>
>
> [[SmartphoneReport]]
>
> # The SmartphoneReport uses the 'Smartphone' skin, and the images
> and
>
> # files are placed in a dedicated subdirectory.
>
> skin = Smartphone
>
> enable = true
>
> HTML_ROOT = /var/www/html/weewx/smartphone
>
>
>
> [[MobileReport]]
>
> # The MobileReport uses the 'Mobile' skin, and the images and
> files
>
> # are placed in a dedicated subdirectory.
>
> skin = Mobile
>
> enable = true
>
> HTML_ROOT = /var/www/html/weewx/mobile
>
>
>
> [[StandardReport]]
>
> # This is the old "Standard" skin. By default, it is not enabled.
>
> skin = Standard
>
> enable = false
>
>
>
>
> Station uses VANTAGE weather station.
>
>
> Version:  4.8.0
>
> On Sunday, August 21, 2022 at 11:51:22 AM UTC-4 Eric Gammeter wrote:
>
>> both of the INDEX.HTML files referred to above are updating every 30
>> minutes.
>>
>> On Sunday, August 21, 2022 at 11:49:11 AM UTC-4 Eric Gammeter wrote:
>>
>>> Seemingly out of the blue I have a problem with the INDEX.HTML.  IE:
>>> When I look at my Rpi (192.168.1.38/weewx) in a browser locally-  the
>>> correct report formatting is there and it looks fine (has all it's graphs);
>>> however when I go to the web address (http://www.n8aay.net) the index
>>> file that I see there is only "formatted for RSS" (that is:  no graphics,
>>> only text).  I did recently upgrade to v 4.8.0
>>> ?   /Thanks, EG
>>>
>> --
> 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/0c23f1d6-4c73-4dd8-8f01-d1fe1705d1e0n%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/CACC0i0zV%3D6NOGeArKBfEjNaTdZqRuHnqAvmxdX7P%3D8PLmC%2BvpQ%40mail.gmail.com.


[weewx-user] Re: Power outage without RTC module

2022-08-21 Thread MikeQ
I have had a similar issue twice but not since January 2021.  I have my 
Davis console on wall power plus batteries, assuming the batteries would 
work like a UPS but that might not be reliable.

Look at the weewx wiki:
https://github.com/weewx/weewx/wiki/Troubleshooting-the-Davis-Vantage-station#weewx-generates-html-pages-but-it-does-not-update-them

I shut down weewx and inspected my database using DB Browser for SQLite on 
a desktop and there are no issues in the DB so clock slew was not my issue.

If I follow the instructions in 'Corrupt station memory' using debug mode i 
see exactly the same results as the wiki shows with the DMPACT command 
indicating the download is complete while I still have 197 pages in the 
datalogger.

Rebooting the console did not work for me and I had to use the dump & clear 
commands.  That resulted in the loss of records for a 25 minute period the 
last time around. 



On Saturday, August 20, 2022 at 4:46:11 PM UTC-6 disaveri...@gmail.com 
wrote:

> Today I had a power outage, from the 06:01 CEST to the 07:51 CEST.
> So the last record added by weewx before the outage was at 06:01 CEST. 
> From logs (reporting here only last two lines):
>
> pi@raspberrypi:~ $ journalctl -b -1
> Aug 20 06:01:14 raspberrypi python3[16243]: weewx[16243] INFO 
> weewx.manager: Added record 2022-08-20 06:01:00 CEST (1660968060) to 
> database 'weewx.sdb'
> Aug 20 06:01:14 raspberrypi python3[16243]: weewx[16243] INFO 
> weewx.manager: Added record 2022-08-20 06:01:00 CEST (1660968060) to daily 
> summary in 'weewx.s>
>
> When the power came back, the wifi was not available, so the raspberry's 
> time (I have no RTC module) was automatically set to a previously recorded 
> timestamp: 05:53:32 CEST (118 mins before real time).
> So when weewx re-started recording, it discarded first 8 samples and then 
> started going. From logs:
>
> Aug 20 06:01:19 raspberrypi python3[600]: weewx[600] ERROR 
> weewx.manager: Unable to add record 2022-08-20 05:54:00 CEST (1660967640) 
> to database 'weewx.sdb': UNIQUE constraint failed: archive.dateTime
> Aug 20 06:01:19 raspberrypi python3[600]: weewx[600] ERROR 
> weewx.manager: Unable to add record 2022-08-20 05:55:00 CEST (1660967700) 
> to database 'weewx.sdb': UNIQUE constraint failed: archive.dateTime
> Aug 20 06:01:19 raspberrypi python3[600]: weewx[600] ERROR 
> weewx.manager: Unable to add record 2022-08-20 05:56:00 CEST (1660967760) 
> to database 'weewx.sdb': UNIQUE constraint failed: archive.dateTime
> Aug 20 06:01:19 raspberrypi python3[600]: weewx[600] ERROR 
> weewx.manager: Unable to add record 2022-08-20 05:57:00 CEST (1660967820) 
> to database 'weewx.sdb': UNIQUE constraint failed: archive.dateTime
> Aug 20 06:01:19 raspberrypi python3[600]: weewx[600] ERROR 
> weewx.manager: Unable to add record 2022-08-20 05:58:00 CEST (1660967880) 
> to database 'weewx.sdb': UNIQUE constraint failed: archive.dateTime
> Aug 20 06:01:19 raspberrypi python3[600]: weewx[600] ERROR 
> weewx.manager: Unable to add record 2022-08-20 05:59:00 CEST (1660967940) 
> to database 'weewx.sdb': UNIQUE constraint failed: archive.dateTime
> Aug 20 06:01:19 raspberrypi python3[600]: weewx[600] ERROR 
> weewx.manager: Unable to add record 2022-08-20 06:00:00 CEST (1660968000) 
> to database 'weewx.sdb': UNIQUE constraint failed: archive.dateTime
> Aug 20 06:01:19 raspberrypi python3[600]: weewx[600] ERROR 
> weewx.manager: Unable to add record 2022-08-20 06:01:00 CEST (1660968060) 
> to database 'weewx.sdb': UNIQUE constraint failed: archive.dateTime
> Aug 20 06:02:16 raspberrypi python3[600]: weewx[600] INFO 
> weewx.manager: Added record 2022-08-20 06:02:00 CEST (1660968120) to 
> database 'weewx.sdb'
> Aug 20 06:02:16 raspberrypi python3[600]: weewx[600] INFO 
> weewx.manager: Added record 2022-08-20 06:02:00 CEST (1660968120) to daily 
> summary in 'weewx.sdb'
>
> But, and this is a bit surprising, it also discarded records collected in 
> the davis datalogger.
> They are 110 lines, from 1660968120 (06:02:00 CEST) and 1660974660 
> (07:51:00 CEST) (The power outage didn't affect the davis station: it is 
> battery powered).
> From logs (reporting only the first and the last one):
>
> Aug 20 05:53:35 raspberrypi python3[600]: weewx[600] WARNING 
> weewx.engine: Ignore historical record: {'dateTime': 1660968120, 'usUnits': 
> 1, 'interval': 1, 'rxCheckPercent': 89.6875, 'outTemp': 68.8>
> ...
> Aug 20 05:53:35 raspberrypi python3[600]: weewx[600] WARNING 
> weewx.engine: Ignore historical record: {'dateTime': 1660974660, 'usUnits': 
> 1, 'interval': 1, 'rxCheckPercent': 100.0, 'outTemp': 69.5, >
>
> Why were they discarded? Because the weewx time was before the record's 
> time?
>
> Then, few hours later I restored the wifi network, and the rasp 
> automatically changed his time, and so weewx. From logs:
>
> Aug 20 12:09:33 raspberrypi systemd[1]: Started Network Time 
> Synchronization.
> Aug 20 14:07