Firefox can’t find the file at /var/www/html/weewx/index.html.

136 views
Skip to first unread message

Phil Bilboe

unread,
Feb 2, 2024, 2:24:01 PM2/2/24
to weewx-user
I pretty sure weewx is running the simulator, however I get Firefox can’t find the file at /var/www/html/weewx/index.html. when I paste into my web browser.

I get the following when I run sudo systemctl status weewx

weewx.service - WeeWX
    Loaded: loaded (/lib/systemd/system/weewx.service; enabled; preset: enabled)
    Active: active (running) since Fri 2024-02-02 18:06:37 GMT; 1h 5min ago
      Docs: https://weewx.com/docs
  Main PID: 3116 (python3)
     Tasks: 1 (limit: 3387)
    Memory: 35.0M
       CPU: 27.393s
    CGroup: /system.slice/weewx.service
            └─3116 python3 /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf

Feb 02 19:05:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 19:05:00 GMT (1706900700) to database 'weewx.sdb'
Feb 02 19:05:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 19:05:00 GMT (1706900700) to daily summary in 'weewx.sdb'
Feb 02 19:05:16 phil-Inspiron-1545 weewxd[3116]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 1.18 seconds
Feb 02 19:05:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 0.43 seconds
Feb 02 19:05:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx
Feb 02 19:10:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 19:10:00 GMT (1706901000) to database 'weewx.sdb'
Feb 02 19:10:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 19:10:00 GMT (1706901000) to daily summary in 'weewx.sdb'
Feb 02 19:10:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 1.33 seconds
Feb 02 19:10:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 0.57 seconds
Feb 02 19:10:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx

And this when I run sudo journalctl -u weewx

Feb 02 18:06:37 phil-Inspiron-1545 systemd[1]: Started weewx.service - WeeWX.
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO __main__: Initializing weewxd version 5.0.0
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO __main__: Command line: /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO __main__: Using Python 3.11.6 (main, Oct  8 2023, 05:06:43) [GCC 13.2.0]
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO __main__: Located at /usr/bin/python3
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO __main__: Platform Linux-6.5.0-9-generic-x86_64-with-glibc2.38
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO __main__: Locale: 'en_GB.UTF-8'
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO __main__: Entry path: /usr/share/weewx/weewxd.py
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO __main__: WEEWX_ROOT: /etc/weewx
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO __main__: Configuration file: /etc/weewx/weewx.conf
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO __main__: User module: /etc/weewx/bin/user
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO __main__: Debug: 1
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.engine: Loading station type Simulator (weewx.drivers.simulator)
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.engine: StdConvert target unit is 0x1
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.wxservices: StdWXCalculate will use data binding wx_binding
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.engine: Archive will use data binding wx_binding
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.engine: Record generation will be attempted in 'hardware'
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.engine: Using archive interval of 300 seconds (specified in weewx configuration)
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.restx: StationRegistry: Registration not requested.
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.restx: Wunderground: Posting not enabled.
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.restx: PWSweather: Posting not enabled.
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.restx: CWOP: Posting not enabled.
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.restx: WOW: Posting not enabled.
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.restx: AWEKAS: Posting not enabled.
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.engine: 'pyephem' detected, extended almanac data is available
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO __main__: Starting up weewx version 5.0.0
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.engine: Clock error is -0.07 seconds (positive is fast)
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Starting backfill of daily summaries
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Daily summaries up to date
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.engine: Starting main packet loop.
Feb 02 18:10:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:10:00 GMT (1706897400) to database 'weewx.sdb'
Feb 02 18:10:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:10:00 GMT (1706897400) to daily summary in 'weewx.sdb'
Feb 02 18:10:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 1.70 seconds
Feb 02 18:10:18 phil-Inspiron-1545 weewxd[3116]: INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 0.46 seconds
Feb 02 18:10:18 phil-Inspiron-1545 weewxd[3116]: INFO weewx.reportengine: Copied 5 files to /var/www/html/weewx
Feb 02 18:15:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:15:00 GMT (1706897700) to database 'weewx.sdb'
Feb 02 18:15:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:15:00 GMT (1706897700) to daily summary in 'weewx.sdb'
Feb 02 18:15:16 phil-Inspiron-1545 weewxd[3116]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 1.13 seconds
Feb 02 18:15:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 0.41 seconds
Feb 02 18:15:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx
Feb 02 18:20:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:20:00 GMT (1706898000) to database 'weewx.sdb'
Feb 02 18:20:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:20:00 GMT (1706898000) to daily summary in 'weewx.sdb'
Feb 02 18:20:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 1.26 seconds
Feb 02 18:20:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 0.47 seconds
Feb 02 18:20:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx
Feb 02 18:25:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:25:00 GMT (1706898300) to database 'weewx.sdb'
Feb 02 18:25:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:25:00 GMT (1706898300) to daily summary in 'weewx.sdb'
Feb 02 18:25:16 phil-Inspiron-1545 weewxd[3116]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 1.13 seconds
Feb 02 18:25:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 0.42 seconds
Feb 02 18:25:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx
Feb 02 18:30:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:30:00 GMT (1706898600) to database 'weewx.sdb'
Feb 02 18:30:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:30:00 GMT (1706898600) to daily summary in 'weewx.sdb'
Feb 02 18:30:16 phil-Inspiron-1545 weewxd[3116]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 1.06 seconds
Feb 02 18:30:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 0.42 seconds
Feb 02 18:30:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx
Feb 02 18:35:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:35:00 GMT (1706898900) to database 'weewx.sdb'
Feb 02 18:35:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:35:00 GMT (1706898900) to daily summary in 'weewx.sdb'
Feb 02 18:35:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 1.04 seconds
Feb 02 18:35:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 0.42 seconds
Feb 02 18:35:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx
Feb 02 18:40:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:40:00 GMT (1706899200) to database 'weewx.sdb'
Feb 02 18:40:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:40:00 GMT (1706899200) to daily summary in 'weewx.sdb'
Feb 02 18:40:16 phil-Inspiron-1545 weewxd[3116]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 1.06 seconds
Feb 02 18:40:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 0.42 seconds
Feb 02 18:40:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.restx: PWSweather: Posting not enabled.
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.restx: CWOP: Posting not enabled.
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.restx: WOW: Posting not enabled.
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.restx: AWEKAS: Posting not enabled.
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.engine: 'pyephem' detected, extended almanac data is available
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO __main__: Starting up weewx version 5.0.0
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.engine: Clock error is -0.07 seconds (positive is fast)
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.engine: Using binding 'wx_binding' to database 'weewx.sdb'
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Starting backfill of daily summaries
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Daily summaries up to date
Feb 02 18:06:37 phil-Inspiron-1545 weewxd[3116]: INFO weewx.engine: Starting main packet loop.
Feb 02 18:10:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:10:00 GMT (1706897400) to database 'weewx.sdb'
Feb 02 18:10:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:10:00 GMT (1706897400) to daily summary in 'weewx.sdb'
Feb 02 18:10:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 1.70 seconds
Feb 02 18:10:18 phil-Inspiron-1545 weewxd[3116]: INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 0.46 seconds
Feb 02 18:10:18 phil-Inspiron-1545 weewxd[3116]: INFO weewx.reportengine: Copied 5 files to /var/www/html/weewx
Feb 02 18:15:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:15:00 GMT (1706897700) to database 'weewx.sdb'
Feb 02 18:15:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:15:00 GMT (1706897700) to daily summary in 'weewx.sdb'
Feb 02 18:15:16 phil-Inspiron-1545 weewxd[3116]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 1.13 seconds
Feb 02 18:15:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 0.41 seconds
Feb 02 18:15:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx
Feb 02 18:20:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:20:00 GMT (1706898000) to database 'weewx.sdb'
Feb 02 18:20:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:20:00 GMT (1706898000) to daily summary in 'weewx.sdb'
Feb 02 18:20:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 1.26 seconds
Feb 02 18:20:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 0.47 seconds
Feb 02 18:20:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx
Feb 02 18:25:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:25:00 GMT (1706898300) to database 'weewx.sdb'
Feb 02 18:25:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:25:00 GMT (1706898300) to daily summary in 'weewx.sdb'
Feb 02 18:25:16 phil-Inspiron-1545 weewxd[3116]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 1.13 seconds
Feb 02 18:25:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 0.42 seconds
Feb 02 18:25:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.reportengine: Copied 0 files to /var/www/html/weewx
Feb 02 18:30:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:30:00 GMT (1706898600) to database 'weewx.sdb'
Feb 02 18:30:15 phil-Inspiron-1545 weewxd[3116]: INFO weewx.manager: Added record 2024-02-02 18:30:00 GMT (1706898600) to daily summary in 'weewx.sdb'
Feb 02 18:30:16 phil-Inspiron-1545 weewxd[3116]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 1.06 seconds
Feb 02 18:30:17 phil-Inspiron-1545 weewxd[3116]: INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 0.42 seconds

It looks like I'm not generating files to /var/ww/html/weewx.
Any suggestions as to why this is?

Many thanks,

Dominic Reich

unread,
Feb 2, 2024, 3:02:24 PM2/2/24
to weewx...@googlegroups.com
Phil Bilboe <itstheb...@gmail.com> wrote:

>I pretty sure weewx is running the simulator, however I get Firefox can’t find
>the file at /var/www/html/weewx/index.html. when I paste into my web browser.

The files are on the computer that runs weewx, not your local computer.
You will need a webserver that serves the diretory
`/var/www/html/weewx`. For testing purpose you could go into that
directory (on your Raspberry? you didn't told us where your WeeWX is
running) and run a simple http server with python: `python -m http.server`.
You would then browser this via Firefox with `http://192.168.1.13:8000`
where this would be the address of the computer that runs WeeWX.

If you want this to be running at all time I suggest installing Apache2 or Nginx
webserver (`apt get apache2` or `apt get nginx`).

--
If you tell the truth, you don't have to remember anything.
- Mark Twain

Δημήτρης Βήχος

unread,
Feb 2, 2024, 3:48:14 PM2/2/24
to weewx-user
install first apache2. then type in firefox  http://localhost/weewx/

Phil Bilboe

unread,
Feb 3, 2024, 10:17:45 AM2/3/24
to weewx-user
Thanks for the input, I'm running Weewx on an old laptop with Kubuntu just for learning purposes. I've installed Lighttpd and its working so thanks again.
Out of interest, my hope is to run Weewx and interogate my Ecowitt gateway with the GW1000 driver on a Raspberry Pi. Would you recommend I install a web server, Apache2, Nginx or Lighttpd first on the Raspberry PI OS before installing Weewx or doesn't it matter?

Dominic Reich

unread,
Feb 3, 2024, 1:43:47 PM2/3/24
to weewx...@googlegroups.com
Phil Bilboe <itstheb...@gmail.com> wrote:

>Thanks for the input, I'm running Weewx on an old laptop with Kubuntu just for
>learning purposes. I've installed Lighttpd and its working so thanks again.
>Out of interest, my hope is to run Weewx and interogate my Ecowitt gateway with
>the GW1000 driver on a Raspberry Pi. Would you recommend I install a web
>server, Apache2, Nginx or Lighttpd first on the Raspberry PI OS before
>installing Weewx or doesn't it matter?

That should not matter, just match the directories later where WeeWX
writes the files and the webserver reads them.

>
>On Friday 2 February 2024 at 20:48:14 UTC Δημήτρης Βήχος wrote:
>
> install first apache2. then type in firefox  http://localhost/weewx/
>
> Στις Παρασκευή 2 Φεβρουαρίου 2024 στις 10:02:24 μ.μ. UTC+2, ο χρήστης
> Dominic Reich έγραψε:
>
> Phil Bilboe <itstheb...@gmail.com> wrote:
>
> >I pretty sure weewx is running the simulator, however I get Firefox
> can’t find
> >the file at /var/www/html/weewx/index.html. when I paste into my web
> browser.
>
> The files are on the computer that runs weewx, not your local computer.
> You will need a webserver that serves the diretory
> `/var/www/html/weewx`. For testing purpose you could go into that
> directory (on your Raspberry? you didn't told us where your WeeWX is
> running) and run a simple http server with python: `python -m
> http.server`.
> You would then browser this via Firefox with `http://192.168.1.13:8000`
> where this would be the address of the computer that runs WeeWX.
>
> If you want this to be running at all time I suggest installing Apache2
> or Nginx
> webserver (`apt get apache2` or `apt get nginx`).
>
> --
> If you tell the truth, you don't have to remember anything.
> - Mark Twain
>
>--
>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+...@googlegroups.com.
>To view this discussion on the web visit https://groups.google.com/d/msgid/
>weewx-user/ac7f8a98-11a8-4e46-87f3-71e99aea2821n%40googlegroups.com.


--
The weak are always anxious for justice and equality.
The strong pay no heed to either.
- Aristotle
Reply all
Reply to author
Forward
0 new messages