Launching Weewx

337 views
Skip to first unread message

Marie-Laure TERRIENNE

unread,
Apr 12, 2024, 4:08:19 AMApr 12
to weewx-user
Hello everybody,

I have installed WeeWX 5.0.2 on my PC running under Ubuntu 22.04.4 LTS 64 bits.

My weather station belongs to the recognized stations : Fine offset WH1081.

I can't launch weewx correctly. What I'm doing :

  1. I open the "file browser" and looking for /var/www/html/weewx/index.html (the icon has a small padlock) and I click on this file : the web browser opens and tells me : File not found Firefox cannot find the file at /var/www/html/weewx/index.html.
  2. I open the web browser (Firefox) and with the "Open a file" menu, I'm looking for var/www/html/weewx/index.html and I click on this name. This time a window opens and shows a text file with data from my weather station. But I don't have a graphical presentation. In addition, if I click on one of the available links (for example: statistics), I come across the message : File not found Firefox cannot find the file at /var/www/html/weewx/statistics.html.

So, is there something wrong or what to do to correctly launch weewx ?

Sincerely your.

Pierre.



Tom Keffer

unread,
Apr 12, 2024, 8:23:16 AMApr 12
to weewx...@googlegroups.com
Impossible to say without seeing the log. To get a good log, see the wiki article Help! Posting to weewx-user.

--
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/5e31005d-77dc-48a0-a40e-54e256798ab5n%40googlegroups.com.

DR

unread,
Apr 12, 2024, 9:43:09 AMApr 12
to weewx...@googlegroups.com
Tom,

THE most often made comment from the developers is to turn on debug and
then furnish the log.

Question:  Is there a down side to just leaving debug on? Doesn't the
buffer for it just overwrite, and not cause the program to stop once it
is full?  I know that the SD cards don't seem to have the problem with
exceeding their write cycles, so saving the writes to the card doesn't
seem to be as much of a factor.  And I don't gather that a performance
hit of doing all that logging is much of a factor.


I'm for neat, efficient, focused code, but until an installation has run
perfectly for a few weeks, can we just leave Debug on for awhile?  Just
curious.

Dale


Tom Keffer

unread,
Apr 12, 2024, 11:06:22 AMApr 12
to weewx...@googlegroups.com
Yes, you can leave it on. It will mean a lot of log entries, but storage is cheap these days. 



--
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.

Chuck Rhode

unread,
Apr 12, 2024, 1:21:23 PMApr 12
to weewx...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 12 Apr 2024 08:43:04 -0500
DR <wxe...@gmail.com> wrote:

> THE most often made comment from the developers is to turn on debug
> and then furnish the log.

Humpf! If it's that easy, why not put it in a script like a
client-side *bugzilla*? Seems like a good idea to me. All us mice could
approve, wouldn't we?

Of course, it takes only one mouse to put a bell on this (apparently)
sleepy cat.

What scope should the script have?

+ NO PARAMETERS!

+ NO *.ini*!

+ Import *configobj*.

+ Get write authority to ~/weewx-data/weewx.conf. Not so easy because
it could be in any number of locations.

+ Save *debug* option status.

+ Set *debug* option.

+ Ask real-time User of this script for *root* authority and escalate
to it, telling User what we're doing and making doubly sure of his
approval. Danger, Will Robinson!

+ Do *systemctl restart weewx*. If this fails, throw up hands.

+ Keep User on hold for an hour.

+ Reset *debug* option.

+ Do *systemctl restart weewx*. Expect success.

+ Checkpoint current log file. Not so easy because it could be in any
number of locations. Allow read-only access to User.

+ Relinquish *root* authority.

+ Checkpoint the output of *weectl debug*.

+ Ask for the User's favorite code editor. Give Newbies *emacs*.

+ Conjure authority to send eMail.

* What is your name?

* What is your eMail address?

* Which is your SMTP server?

* What port is allowed?

* What password is required?

* What is your quest?

* What's your favorite color?

+ Present a template for a well-formed Bug report.

* What happened that prompted you to make this bug report?

* What did you expect to happen?

* What did you do to make it happen?

* What was the most recent change you made?

+ Checkpoint the template and amendments.

+ Compose eMail to weewx...@googlegroups.com.

+ Show the User what we're going to send (with attachments) and ask
for approval.

+ Import *smtplib*.

+ Import *email.message*.

+ Do *SMTP.send_message()*. If this fails, throw up hands.


- --
.. Be Seeing You,
.. Chuck Rhode, Sheboygan, WI, USA
.. Weather: http://LacusVeris.com/WX
.. 53° — Wind NNW 25 mph

-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQT+MY/5I/LMPSswTbVg2/xipKOWUgUCZhltfgAKCRBg2/xipKOW
UuySAJ95fU4/3AMb+PFfbW90Zt+dPL9p/QCdHytzG+LsiviUTPGQJ+PQXd74aLI=
=KydE
-----END PGP SIGNATURE-----

Marie-Laure TERRIENNE

unread,
Apr 12, 2024, 2:51:31 PMApr 12
to weewx-user
I have followed what is said to get the log. Here is what i got :
mylog

vince

unread,
Apr 12, 2024, 4:42:08 PMApr 12
to weewx-user
I would suggest installing a webserver (I recommend nginx) and then just opening http://your_ip_here/weewx and seeing if that works.  Your log looks ok to me.

Graham Eddy

unread,
Apr 12, 2024, 9:18:45 PMApr 12
to WeeWX User
i interpreted the suggestion as making it the default that logging is turned on.
this is self-correcting: when the user has learnt enough to turn logging off, they can.
place the instruction how in the documentation that they should have read but did not (or did not understand at the time).
i like the idea.
cheers
⊣GE⊢

Marie-Laure TERRIENNE

unread,
Apr 14, 2024, 4:04:35 AMApr 14
to weewx-user
vince : i tried what you said : http://192.168.0.7/weewx

the answaer is :

The connection failed
An error occurred while connecting to 192.168.0.7.
The site may be temporarily unavailable or overloaded. Try again later;
If you cannot navigate to any site, check your computer's network connection;
If your computer or network is protected by a firewall or proxy, make sure Firefox is allowed to access the web.

Just a question : how do you simply launch, usually "weewx"

Sincerely.

Pierre.

vince

unread,
Apr 14, 2024, 12:33:28 PMApr 14
to weewx-user
On Sunday, April 14, 2024 at 1:04:35 AM UTC-7 Marie-Laure TERRIENNE wrote:
vince : i tried what you said : http://192.168.0.7/weewx

the answaer is :
The connection failed
An error occurred while connecting to 192.168.0.7.
The site may be temporarily unavailable or overloaded. Try again later;
If you cannot navigate to any site, check your computer's network connection;
If your computer or network is protected by a firewall or proxy, make sure Firefox is allowed to access the web.


Are you running Firefox on the weewx computer, or are you running it on a different computer (MS Windows?) ?

Are you running a firewall on the computer you are running Firefox on ?   Are you running a firewall on the weewx computer ?

 
Just a question : how do you simply launch, usually "weewx"
 
I'm sorry, I do not understand the question.  If you are not a native English speaker, rephrase that in French (?) and perhaps Google Translate will generate a different wording in English.

Your weewx log file seems to say that weewx is running.   Your error message seems to say the operating system on the computer you are running Firefox on is blocking Firefox from accessing your web site.   Can Firefox access other websites ?    Can you try a different browser on your ubuntu computer ?

If you can run a command from a shell prompt on your weewx computer, log into the weewx computer and run "curl http://192.168.0.7" and then "curl http://192.168.0.7/weewx" and see if they respond with something looking like a web page.

Marie-Laure TERRIENNE

unread,
Apr 14, 2024, 1:50:24 PMApr 14
to weewx-user
Thank you very much "vince" for answering to my problem.

First of all : I am French and not very good in English. I often use Google's online translation.
This was an opportunity for : Just a question : how do you simply launch, usually "weewx". Here is the French formulation: Simple question: Comment lance-ton normalement, habituellement "weewx"?

Note : If I run the following commands :

sudo weewxd
sudo weewxd /etc/weewx/weewx.conf

Nothing happens.

if I run : sudo weewxd /etc/weewx/weewx.conf-5.0.2, I get in the shell a lot of information about my weather station. This information is updated every two seconds. Mais je n'ai toujours pas de présentation graphique comme montrée dans le site weewx

Now, reading your answers, I have the impression that you have not understood my software and hardware configuration. I only have one computer with Ubuntu operating system and I have "weewx" installed on it. My web browser is Firefox.

With Firefox, I can go to any external site ; that of this forum for example.

I haven't tried it with another browser yet.

Sincerely.

Pierre.

vince

unread,
Apr 14, 2024, 2:45:52 PMApr 14
to weewx-user
Your English is ok.  Google Translate is not always so ok :-)

You might want to check your /etc/weewx/weewx.conf to see if it looks correct.  Make sure that it is not zero length.   This example is running the simulator driver.

/etc/weewx$ ls -lgd /etc/weewx/weewx.conf*
-rw-r--r-- 1 weewx 23713 Apr  2 12:04 /etc/weewx/weewx.conf
-rw-rw-r-- 1 weewx 19482 Apr  2 12:04 /etc/weewx/weewx.conf.20240402120403
-rw-rw-r-- 1 weewx 19463 Feb  9 23:03 /etc/weewx/weewx.conf-5.0.2


Weewx v5 runs as user 'weewx' and group 'weewx', but the command to test from the shell is somewhat complicated.  This example is the simulator driver.

$ sudo -u weewx bash -c 'python3 /usr/share/weewx/weewxd.py /etc/weewx/weewx.conf'

LOOP:   2024-04-14 11:39:38 PDT (1713119978) 'altimeter': '31.10283290280814', 'appTemp': '28.46010918752483', 'barometer': '31.099999998967093', 'cloudbase': '1244.323176426526', 'consBatteryVoltage': '12.718450749586843', 'dateTime': '1713119978', 'dewpoint': '27.203560993945757', 'ET': 'None', 'heatindex': '32.67858297022247', 'heatingVoltage': '12.0', 'humidex': '32.67858297022247', 'inDewpoint': '31.079533828013187', 'inHumidity': '29.999999958683617', 'inTemp': '63.00000002065819', 'inTempBatteryStatus': '0', 'maxSolarRad': '66.05216886122633', 'outHumidity': '79.99999996901272', 'outTemp': '32.67858297022247', 'outTempBatteryStatus': '0', 'pressure': '31.099999998967093', 'radiation': '992.1106767453836', 'rain': '0', 'rainBatteryStatus': '0', 'rainRate': '0.0', 'referenceVoltage': '12.0', 'rxCheckPercent': '82.52427564124497', 'supplyVoltage': '13.150462912118508', 'txBatteryStatus': '0', 'usUnits': '1', 'UV': '13.88954947443537', 'windBatteryStatus': '0', 'windchill': '32.67858297022247', 'windDir': '359.9999998140763', 'windGust': '6.197456769996279e-09', 'windGustDir': '359.9999998140763', 'windrun': 'None', 'windSpeed': '5.164547900449179e-09'

^C to stop it in the command above.   You should see LOOP messages every few seconds.

To start and stop weewx, you would use systemctl 'with' sudo required:

$ sudo systemctl start weewx
$ sudo systemctl stop weewx

Marie-Laure TERRIENNE

unread,
Apr 15, 2024, 11:49:03 AMApr 15
to weewx-user
Je mets mon message en français, les traducteurs en ligne font un travail correct.
Le contenu de weewx.conf est :

Note : désolé, je n'ai pas vu comment mettre en forme du texte copié/collé ; je l'ai mis en italique.

[Station]
   
    # Description of the station location, such as your town.
    location = Le Haut Bilain LCDB 35660
   
    # Latitude in decimal degrees. Negative for southern hemisphere.
    latitude = 47.698963
    # Longitude in decimal degrees. Negative for western hemisphere.
    longitude = -1.921372
   
    # Altitude of the station, with the unit it is in. This is used only
    # if the hardware cannot supply a value.
    altitude = 20, meter    # Choose 'foot' or 'meter' for unit
   
    # Set to type of station hardware. There must be a corresponding stanza
    # in this file, which includes a value for the 'driver' option.
    station_type = FineOffsetUSB
   
    # If you have a website, you may specify an URL. The URL is required if you
    # intend to register your station. The URL must include the scheme, for
    # example, "http://" or "https://"
    #station_url = https://www.example.com
   
    # The start of the rain year (1=January; 10=October, etc.). This is
    # downloaded from the station if the hardware supports it.
    rain_year_start = 1
   
    # Start of week (0=Monday, 6=Sunday)
    week_start = 6

##############################################################################

[FineOffsetUSB]
    # This section is for the Fine Offset series of weather stations.
   
    # The station model, e.g., WH1080, WS1090, WS2080, WH3081
    model = WH1081
   
    # How often to poll the station for data, in seconds
    polling_interval = 60
   
    # The driver to use:
    driver = weewx.drivers.fousb


Il décrit bien ma station, mais quand je lance :"sudo weewxd /etc/weewx/weewx.conf", rien ne se passe.

Le contenu de weewx.conf-5.0.2 est :

#   This section is for information about the station.

[Station]
   
    # Description of the station location, such as your town.
    location = WeeWX station
   
    # Latitude in decimal degrees. Negative for southern hemisphere.
    latitude = 0.0
    # Longitude in decimal degrees. Negative for western hemisphere.
    longitude = 0.0
   
    # Altitude of the station, with the unit it is in. This is used only
    # if the hardware cannot supply a value.
    altitude = 0, foot    # Choose 'foot' or 'meter' for unit
   
    # Set to type of station hardware. There must be a corresponding stanza
    # in this file, which includes a value for the 'driver' option.
    station_type = Simulator
   
    # If you have a website, you may specify an URL. The URL is required if you
    # intend to register your station. The URL must include the scheme, for
    # example, "http://" or "https://"
    #station_url = https://www.example.com
   
    # The start of the rain year (1=January; 10=October, etc.). This is
    # downloaded from the station if the hardware supports it.
    rain_year_start = 1
   
    # Start of week (0=Monday, 6=Sunday)
    week_start = 6

##############################################################################

[Simulator]
    # This section is for the weewx weather station simulator.
   
    # The time (in seconds) between LOOP packets.
    loop_interval = 2.5
   
    # The simulator mode can be either 'simulator' or 'generator'.
    # Real-time simulator. Sleep between each LOOP packet.
    mode = simulator
    # Generator.  Emit LOOP packets as fast as possible (useful for testing).
    #mode = generator
   
    # The start time. Format is YYYY-mm-ddTHH:MM. If not specified, the
    # default is to use the present time.
    #start = 2011-01-01T00:00
   
    # The driver to use.
    driver = weewx.drivers.simulator

##############################################################################


Cela ne correspond plus à ma station, ça correspond au simulator et quand je lance :"sudo weewxd /etc/weewx/weewx.conf-5.0.2, j'obtiens des résultats dans le terminal, mais ils ne correspondent bien entendu pas à ceux de ma station. C'est à peu près les mêmes valeurs que celles que vous avez mises dans votre post.

Faut-il modifier weewx.conf-5.0.2 et si oui, comment.

Cordialement.

Pierre.

vince

unread,
Apr 15, 2024, 2:33:52 PMApr 15
to weewx-user
The correct configuration file is /etc/weewx/weewx.conf which you can modify by running "weectl station reconfigure" and answering the questions it asks.  Then run "sudo systemctl restart weewx" to restart weewx.

You can view your logs with "sudo journalctl -u weewx --no-pager" to see all weewx related log entries since weewx restart.

Marie-Laure TERRIENNE

unread,
Apr 16, 2024, 11:33:52 AMApr 16
to weewx-user
Merci "vince" pour ces informations.

J'ai modifiée le fichier /etc/weewx/weewx.conf comme vous me l'avez dit : ma station figure maintenant dans le fichier de configuration.

Appliquant cette commande : sudo systemctl restart weewx" to restart weewx , rien ne s'affiche dans le terminal et rien ne se passe, tout du moins visuellement.

Appliquant cette commande : sudo journalctl -u weewx --no-pager , j'obtiens un volumineux fichier dont les dernières lignes sont :

...
avril 16 17:07:48 PC-64 weewxd[1319]: DEBUG weewx.drivers.fousb: get 1452 records since 2024-04-16 15:12:30
avril 16 17:07:48 PC-64 weewxd[1319]: INFO weewx.drivers.fousb: synchronising to the weather station (quality=0)
avril 16 17:07:49 PC-64 weewxd[1319]: DEBUG weewx.drivers.fousb: status {'rain_overflow': 0, 'lost_connection': 0, 'unknown': 0} (0)
avril 16 17:08:00 PC-64 weewxd[1319]: DEBUG weewx.drivers.fousb: new data
avril 16 17:08:00 PC-64 weewxd[1319]: DEBUG weewx.drivers.fousb: setting sensor clock 0.516293
avril 16 17:08:00 PC-64 weewxd[1319]: DEBUG weewx.drivers.fousb: live synchronised
avril 16 17:08:00 PC-64 weewxd[1319]: DEBUG weewx.drivers.fousb: packet timestamp is 15:08:00
avril 16 17:08:00 PC-64 weewxd[1319]: DEBUG weewx.drivers.fousb: estimated log time 15:03:36 +/- 24s (15:03:12..15:04:00)
avril 16 17:08:45 PC-64 weewxd[1319]: DEBUG weewx.drivers.fousb: avoid 5.908215284347534
avril 16 17:08:51 PC-64 weewxd[1319]: DEBUG weewx.drivers.fousb: new data
avril 16 17:08:51 PC-64 weewxd[1319]: DEBUG weewx.drivers.fousb: packet timestamp is 15:08:48
avril 16 17:08:51 PC-64 weewxd[1319]: DEBUG weewx.drivers.fousb: estimated log time 15:03:54 +/- 6s (15:03:48..15:04:00)
avril 16 17:08:51 PC-64 weewxd[1319]: DEBUG weewx.drivers.fousb: synchronised to 2024-04-16 15:03:54 for ptr 0xb870
avril 16 17:08:51 PC-64 weewxd[1319]: DEBUG weewx.drivers.fousb: found 0 archive records
avril 16 17:08:51 PC-64 weewxd[1319]: INFO weewx.engine: Starting main packet loop.
avril 16 17:08:51 PC-64 weewxd[1319]: INFO weewx.drivers.fousb: station status {'rain_overflow': 0, 'lost_connection': 0, 'unknown': 0} (0)
avril 16 17:10:52 PC-64 weewxd[1319]: INFO weewx.manager: Added record 2024-04-16 17:10:00 CEST (1713280200) to database 'weewx.sdb'
avril 16 17:10:52 PC-64 weewxd[1319]: INFO weewx.manager: Added record 2024-04-16 17:10:00 CEST (1713280200) to daily summary in 'weewx.sdb'
avril 16 17:10:52 PC-64 weewxd[1319]: DEBUG weewx.reportengine: Running reports for latest time in the database.
avril 16 17:10:52 PC-64 weewxd[1319]: DEBUG weewx.reportengine: Running report 'SeasonsReport'
avril 16 17:10:52 PC-64 weewxd[1319]: DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/Seasons/skin.conf for report 'SeasonsReport'
avril 16 17:10:52 PC-64 weewxd[1319]: DEBUG weewx.reportengine: Running generators for report 'SeasonsReport' in directory '/etc/weewx/skins/Seasons'
avril 16 17:10:52 PC-64 weewxd[1319]: DEBUG weewx.cheetahgenerator: Using search list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.DisplayOptions', 'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.Gettext', 'weewx.cheetahgenerator.JSONHelpers', 'weewx.cheetahgenerator.PlotInfo', 'weewx.cheetahgenerator.SkinInfo', 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo']
avril 16 17:10:52 PC-64 weewxd[1319]: DEBUG weewx.manager: Daily summary version is 4.0
avril 16 17:10:52 PC-64 weewxd[1319]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 0.49 seconds
avril 16 17:10:52 PC-64 weewxd[1319]: DEBUG weewx.manager: Daily summary version is 4.0
avril 16 17:10:53 PC-64 weewxd[1319]: ERROR weewx.imagegenerator: Unable to save to file '/var/www/html/weewx/dayET.png' [Errno 13] Permission non accordée: '/var/www/html/weewx/dayET.png':
avril 16 17:10:53 PC-64 weewxd[1319]: ERROR weewx.imagegenerator: Unable to save to file '/var/www/html/weewx/dayUV.png' [Errno 13] Permission non accordée: '/var/www/html/weewx/dayUV.png':
avril 16 17:10:53 PC-64 weewxd[1319]: ERROR weewx.imagegenerator: Unable to save to file '/var/www/html/weewx/dayradiation.png' [Errno 13] Permission non accordée: '/var/www/html/weewx/dayradiation.png':
avril 16 17:10:53 PC-64 weewxd[1319]: ERROR weewx.imagegenerator: Unable to save to file '/var/www/html/weewx/dayvolt.png' [Errno 13] Permission non accordée: '/var/www/html/weewx/dayvolt.png':
avril 16 17:10:53 PC-64 weewxd[1319]: ERROR weewx.imagegenerator: Unable to save to file '/var/www/html/weewx/weekET.png' [Errno 13] Permission non accordée: '/var/www/html/weewx/weekET.png':
avril 16 17:10:53 PC-64 weewxd[1319]: ERROR weewx.imagegenerator: Unable to save to file '/var/www/html/weewx/weekUV.png' [Errno 13] Permission non accordée: '/var/www/html/weewx/weekUV.png':
avril 16 17:10:53 PC-64 weewxd[1319]: ERROR weewx.imagegenerator: Unable to save to file '/var/www/html/weewx/weekradiation.png' [Errno 13] Permission non accordée: '/var/www/html/weewx/weekradiation.png':
avril 16 17:10:53 PC-64 weewxd[1319]: ERROR weewx.imagegenerator: Unable to save to file '/var/www/html/weewx/weekvolt.png' [Errno 13] Permission non accordée: '/var/www/html/weewx/weekvolt.png':
avril 16 17:10:53 PC-64 weewxd[1319]: ERROR weewx.imagegenerator: Unable to save to file '/var/www/html/weewx/monthET.png' [Errno 13] Permission non accordée: '/var/www/html/weewx/monthET.png':
avril 16 17:10:53 PC-64 weewxd[1319]: ERROR weewx.imagegenerator: Unable to save to file '/var/www/html/weewx/monthUV.png' [Errno 13] Permission non accordée: '/var/www/html/weewx/monthUV.png':
avril 16 17:10:53 PC-64 weewxd[1319]: ERROR weewx.imagegenerator: Unable to save to file '/var/www/html/weewx/monthradiation.png' [Errno 13] Permission non accordée: '/var/www/html/weewx/monthradiation.png':
avril 16 17:10:53 PC-64 weewxd[1319]: ERROR weewx.imagegenerator: Unable to save to file '/var/www/html/weewx/monthvolt.png' [Errno 13] Permission non accordée: '/var/www/html/weewx/monthvolt.png':
avril 16 17:10:53 PC-64 weewxd[1319]: ERROR weewx.imagegenerator: Unable to save to file '/var/www/html/weewx/yearET.png' [Errno 13] Permission non accordée: '/var/www/html/weewx/yearET.png':
avril 16 17:10:53 PC-64 weewxd[1319]: ERROR weewx.imagegenerator: Unable to save to file '/var/www/html/weewx/yearUV.png' [Errno 13] Permission non accordée: '/var/www/html/weewx/yearUV.png':
avril 16 17:10:53 PC-64 weewxd[1319]: ERROR weewx.imagegenerator: Unable to save to file '/var/www/html/weewx/yearradiation.png' [Errno 13] Permission non accordée: '/var/www/html/weewx/yearradiation.png':
avril 16 17:10:53 PC-64 weewxd[1319]: ERROR weewx.imagegenerator: Unable to save to file '/var/www/html/weewx/yearvolt.png' [Errno 13] Permission non accordée: '/var/www/html/weewx/yearvolt.png':
avril 16 17:10:53 PC-64 weewxd[1319]: INFO weewx.imagegenerator: Generated 11 images for report SeasonsReport in 0.40 seconds
avril 16 17:10:53 PC-64 weewxd[1319]: INFO weewx.reportengine: Copied 5 files to /var/www/html/weewx
avril 16 17:10:53 PC-64 weewxd[1319]: DEBUG weewx.reportengine: Report 'SmartphoneReport' not enabled. Skipping.
avril 16 17:10:53 PC-64 weewxd[1319]: DEBUG weewx.reportengine: Report 'MobileReport' not enabled. Skipping.
avril 16 17:10:53 PC-64 weewxd[1319]: DEBUG weewx.reportengine: Report 'StandardReport' not enabled. Skipping.
avril 16 17:10:53 PC-64 weewxd[1319]: DEBUG weewx.reportengine: Report 'FTP' not enabled. Skipping.
avril 16 17:10:53 PC-64 weewxd[1319]: DEBUG weewx.reportengine: Report 'RSYNC' not enabled. Skipping.

 

Apparemment, ma station est reconnue et des infos sont enregistrées dans un fichier nommé "weewx.sdb". Quel est ce type de base de données ?

Je pense que les lignes d'erreur correspondent à des données non fournies par ma station.

Comment fait-on pour avoir des présentations graphiques telles que celles montrées à droite de la page : https://weewx.com/ ?

Je crois comprendre que ce sont des images d'applications que certains utilisateurs ont bien voulu montrer, mais que ce n'est pas une "option" de weewx. Oui, Non ?

Etant programmeur en Pascal Objet avec Lazarus, je saurais faire une présentation semblable pour autant que je puisse y insérer les données de ma station. Mais pour ce faire, j'ai besoin de pouvoir récupérer ces données, mises à jour toutes les "x" secondes via weewx. Où aller récupérer cela ? Dans quel fichier ?

Cordialement.

Pierre.

vince

unread,
Apr 16, 2024, 1:35:38 PMApr 16
to weewx-user
Pierre - I'm sorry but I have to ask some more general questions:
  • have you ever run weewx before, or is this a new installation ?
  • Are you a new unix/linux user ?
  • Did you install a webserver onto your weewx computer ?  If so, which one ?
Your questions tell me that you do not quite understand the entire system end-to-end, unless GoogleTranslate is misleading me.
  • weewx connects to your weather station to query it for sensor data
  • weewx periodically saves that data to a sqlite3 database named 'weewx.sdb'
  • weewx also periodically generates web pages and images 'from' that data and saves them to /var/www/html/weewx by default
And:
  • you 'also' need to install a webserver app of your choice.  I recommend nginx as the webserver to use
  • if you have weewx and a webserver installed, you should not see any permission errors at all
  • you should not need to write your own software to read the database and write out your own web pages or images
We can fix your permission errors but I wanted to make sure you understand what a complete weewx system looks like.  You need weewx 'and' a webserver installed and both need to be configured so that they work together.  If you install weewx and nginx, you should not be seeing any errors at all, and you should be able to browser your web pages via any browser.


(last questions he asked via Google Translate for our mostly English-speaking readers here)

    Apparently, my station is recognized and information is saved in a file named "weewx.sdb". What is this type of database?

    I think the error lines correspond to data not provided by my station.

    How do we get graphical presentations like those shown on the right of the page: https://weewx.com/?

    I understand that these are images of applications that some users were willing to show, but that this is not an "option" of weewx. Yes No ?

    Being an Object Pascal programmer with Lazarus, I could make a similar presentation as long as I could insert the data from my station. But to do this, I need to be able to retrieve this data, updated every "x" seconds via weewx. Where to get this? In which file?


Marie-Laure TERRIENNE

unread,
Apr 16, 2024, 2:54:49 PMApr 16
to weewx-user
vince, avant toute chose, je voudrais vous remercier de m'avoir accompagné pour résoudre un problème ... qui n'en était pas un, mais qui était, comme vous l'avez deviné, un problème lié à ma mauvaise connaissance de l'environnement Linux (Ubuntu dans mon cas).

Je pensais aussi que weewx était une application autonome et qu'avoir un serveur n'était qu'un petit plus.

Vous m'aviez demandé d'installer un serveur (nginx) et allant voir dans mon gestionnaire de paquets, ce serveur et ces dépendances étaient cochés. Oui, coché, mais pas installé ! J'avais mal interprété les coches. Je viens donc de l'installer et de relancer la commande que vous m'aviez dite : http://192.168.0.7/weewx et Oh miracle, les jolies courbes comme celles de la page weewx.com se sont affichées.

Je pense donc que "mon" problème est résolu. Tout fonctionne très bien.

Encore merci vince.

Cordialement.

Pierre.



vince

unread,
Apr 16, 2024, 2:58:28 PMApr 16
to weewx-user
Wonderful !!!!
Reply all
Reply to author
Forward
0 new messages