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:30avril 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 dataavril 16
17:08:00 PC-64 weewxd[1319]: DEBUG weewx.drivers.fousb: setting sensor
clock 0.516293avril 16 17:08:00 PC-64 weewxd[1319]: DEBUG
weewx.drivers.fousb: live synchronisedavril 16 17:08:00 PC-64 weewxd[1319]:
DEBUG weewx.drivers.fousb: packet timestamp is 15:08:00avril 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.908215284347534avril 16 17:08:51 PC-64
weewxd[1319]: DEBUG weewx.drivers.fousb: new dataavril 16 17:08:51 PC-64
weewxd[1319]: DEBUG weewx.drivers.fousb: packet timestamp is 15:08:48avril
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 0xb870avril 16 17:08:51 PC-64 weewxd[1319]: DEBUG
weewx.drivers.fousb: found 0 archive recordsavril 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.0avril 16 17:10:52 PC-64
weewxd[1319]: INFO weewx.cheetahgenerator: Generated 8 files for report
SeasonsReport in 0.49 secondsavril 16 17:10:52 PC-64 weewxd[1319]: DEBUG
weewx.manager: Daily summary version is 4.0avril 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 secondsavril 16 17:10:53 PC-64 weewxd[1319]: INFO weewx.reportengine:
Copied 5 files to /var/www/html/weewxavril 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.
Le lundi 15 avril 2024 à 20:33:52 UTC+2, vince a écrit :
> 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.
>
> On Monday, April 15, 2024 at 8:49:03 AM UTC-7 Marie-Laure TERRIENNE wrote:
>
>> 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 <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
>> <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.
>> Le dimanche 14 avril 2024 à 20:45:52 UTC+2, vince a écrit :
>>
>>> 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
>>>
>>> On Sunday, April 14, 2024 at 10:50:24 AM UTC-7 Marie-Laure TERRIENNE
>>> wrote:
>>>
>>>> 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.
>>>> Le dimanche 14 avril 2024 à 18:33:28 UTC+2, vince a écrit :
>>>>
>>>>> 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.
>>>>>
>>>>>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/d9a3b3ed-67d7-4c4d-85f0-c6b157a96c6an%40googlegroups.com.