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. 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/82bf0c06-426b-4852-93de-eb0e6e80dd15n%40googlegroups.com.
