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/d730ac2f-0b67-41db-9910-2440fc9d4a6cn%40googlegroups.com.

Reply via email to