Weather34

1,017 views
Skip to first unread message

Matthieu Devigne

unread,
Feb 26, 2022, 11:12:38 AM2/26/22
to weewx-user
Hello,

I am installing weather34 with weewx
I put the file service.txt file in weather34

But I have a problem with the installation :

>>> %Run w34_installer.py
!!! THIS INSTALL IS USING PYTHON VERSION 3.9.2 IS THIS CORRECT? (Yes/No)Yes
Install will continue with Python Version 3.9.2

PYTHON EPHEM VERSION 3.7.7.1 INSTALLED
PYTHON XMLTODICT VERSION 0.12.0 INSTALLED

PHP 7.4.28 (cli) (built: Feb 17 2022 16:17:19) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.28, Copyright (c), by Zend Technologies
PHP INSTALLED

List of found conf files to install with
1 -> setup_py.conf
2 -> macos.conf
3 -> packaged.conf
Enter the NUMBER of the installer config file 3
Installer Config file packaged.conf was chosen.
Traceback (most recent call last):
  File "/home/pi/weewx-Weather34/w34_installer.py", line 97, in __init__
    with open("../services.txt") as infile:
FileNotFoundError: [Errno 2] No such file or directory: '../services.txt'
[Errno 2] No such file or directory: '../services.txt'
>>> 

Steeple Ian

unread,
Feb 26, 2022, 1:09:40 PM2/26/22
to weewx-user
Hi,

The services.txt file must be alongside you weather34 install folder not in it. Eg if your weather34 installer folder is in your home folder, services.txt should be in your home folder as well.

Ian

Matthieu Devigne

unread,
Feb 26, 2022, 3:35:37 PM2/26/22
to weewx-user
The services.txt is /home/pi/weewx-Weather34 :
Is no correct ?

44.png

Steeple Ian

unread,
Feb 26, 2022, 5:02:26 PM2/26/22
to weewx-user
No that is not correct. If that location is where your weewx-Weather34 folder is, services.txt should be /home/pi/services.txt

The reason for that location is to prevent the files services.txt being copied to your webserver during the install process which would the expose all your api keys etc and create a security risk.

Matthieu Devigne

unread,
Feb 27, 2022, 1:25:58 AM2/27/22
to weewx-user
Thanks, I have a new problem with weather34.

I don't understand where the problem comes from. I modified weewx.conf
45.png

Steeple Ian

unread,
Feb 27, 2022, 2:42:54 AM2/27/22
to weewx-user

It looks as though the main weather34.py module has not install correctly.
I will be releasing a new version of the template this evening which I think may help you. 
I will let you know directly when this happens.
Ian

Matthieu Devigne

unread,
Feb 27, 2022, 3:03:21 AM2/27/22
to weewx-user
Good ;) , thanks. 

Steeple Ian

unread,
Feb 27, 2022, 10:34:09 AM2/27/22
to weewx-user
Hi,
The repository has now been updated to the new vesion 4.2.0

Matthieu Devigne

unread,
Feb 27, 2022, 1:04:29 PM2/27/22
to weewx-user
Yes, I download the new version with the method setup py.
I have a permission denied : home/weewx/bin/user/w34hightchartsSearchX.py

And I always have the error messages in syslog.
46.png

Steeple Ian

unread,
Feb 27, 2022, 1:56:26 PM2/27/22
to weewx-user
Which OS are you using? You may have to prefix your command with sudo

vince

unread,
Feb 27, 2022, 1:58:09 PM2/27/22
to weewx-user

Looks like you need to use sudo....

Matthieu Devigne

unread,
Feb 27, 2022, 2:57:46 PM2/27/22
to weewx-user
I use debian (raspberry)

Matthieu Devigne

unread,
Feb 27, 2022, 3:02:05 PM2/27/22
to weewx-user
When i use sudo python3 /home/pi/weewx-Weather34/w34_installer.py

I have a message :

PHP 7.4.28 (cli) (built: Feb 17 2022 16:17:19) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.28, Copyright (c), by Zend Technologies
!!! NO VALID W34_INSTALLER CONFIG FILE. INSTALL ABORTED!!!
pi@raspberrypi:~ $ sudo python3 /home/pi/weewx-Weather34/w34_installer.py
!!! THIS INSTALL IS USING PYTHON VERSION 3.9.2 IS THIS CORRECT? (Yes/No) y

Install will continue with Python Version 3.9.2

PYTHON EPHEM VERSION 3.7.7.1 INSTALLED
PYTHON XMLTODICT VERSION 0.12.0 INSTALLED

PHP 7.4.28 (cli) (built: Feb 17 2022 16:17:19) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.28, Copyright (c), by Zend Technologies
Cannot find ../services.txt file INSTALL ABORTED

Whereas my file service.txt is in /home/pi


vince

unread,
Feb 27, 2022, 3:44:58 PM2/27/22
to weewx-user
On Sunday, February 27, 2022 at 12:02:05 PM UTC-8 matthieu89...@gmail.com wrote:
When i use sudo python3 /home/pi/weewx-Weather34/w34_installer.py 
Cannot find ../services.txt file INSTALL ABORTED

Whereas my file service.txt is in /home/pi


It is trying to find services.txt using a relative path one level up from the directory you are running the command in.

Try:
  • cd /home/pi/weewx-Weather34
  • sudo python3 /home/pi/weewx-Weather34/w34_installer.py

Steeple Ian

unread,
Feb 27, 2022, 5:31:13 PM2/27/22
to weewx-user
Vince is correct, it is looking for services.txt one level up from the install folder.

Assuming you downloaded the zip file from the repository into your /home/pi folder and un zipped it, the install folder is weewx-Weather34-main. The services.txt file should also be in your /home/pi folder.

Therefore you should: -

cd weewx-Weather34-main
sudo python3 ./w34_installer.py

Matthieu Devigne

unread,
Feb 28, 2022, 12:25:50 PM2/28/22
to weewx-user
Thanks !
Weather34 is running with weewx and debian ! :)

But, I have a message error :

Feb 28 16:56:38 raspberrypi weewx[2897] ERROR user.weather34: Failed getting web service data. URL: https://api.checkwx.com/metar//decoded Header: {'X-API-Key': ''}, Error: HTTP Error 404: Not Found
Feb 28 16:56:38 raspberrypi weewx[2897] ERROR user.weather34: Error Invalid Webservice Data: None, {'User-Agent': 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/534.3'}

And, I don't find a w34_db_backup.py file for put in /home/weewx/bin/user 
Where is he ?
51.png

Steeple Ian

unread,
Feb 28, 2022, 5:02:26 PM2/28/22
to weewx-user
I am glad the template is now running for you.

Regarding the two errors: -

1. Metar, it looks as though you did not add your X-API-Key or Metar airport code when you generated your services.txt. Did you follow the instructions to obtain a key and find your nearest airport?
The three relevant lines in the web services section of weewx.conf should look something like this (ABCD represents the airport code and 123456789 represents the API Key: -
      me_url = https://api.checkwx.com/metar/ABCD/decoded
      me_header = X-API-Key:123456789
      me_interval = 3600

2. The file should already be in place, all you need to do is edit weewx.conf and restart as in the instructions. I have updated the install instructions to make this clearer>

Ian

Matthieu Devigne

unread,
Mar 1, 2022, 2:28:01 PM3/1/22
to weewx-user
Yes, I will watch for the file service.txt.

For weewx.conf I add [Services]] section in the [Engine] stanza. : ,user.w34_db_backup.W34_DB_Backup
And at the end :
[W34_DB_Backup] # database path(s) seperated by , rename this/these database(s) to match your own databases = /home/weewx/archive/weewx.sdb,/home/weewx/archive/another.sdb # backup path(s) comma seperated backups = [your_backup_path]/weewx_backup.sdb,[your_backup_path]/home/pi/another_backup.sdb # set the daily time to backup comma seperated for multiple databases # the time must be set an to archive time so it runs immediately after the archive interval processes are complete backup_times = 00:00,00:00


Yes, sorry but the data for the pression, temperature, and windy for weather34 are not correct.
Is not the real values

What is the problem ?
55.png

Steeple Ian

unread,
Mar 1, 2022, 4:53:40 PM3/1/22
to weewx-user
Can you let me have your URL please, I need to check your realtime data. The situation in your screen shot indicates that the template is not getting live data from WeeWX.

Steeple Ian

unread,
Mar 2, 2022, 6:19:33 AM3/2/22
to weewx-user
Also make sure that WeeWX is actually running after you issued the restart command.

Matthieu Devigne

unread,
Mar 2, 2022, 2:35:52 PM3/2/22
to weewx-user
Hi,

Yes, weewx is running.

Matthieu Devigne

unread,
Mar 2, 2022, 2:36:20 PM3/2/22
to weewx-user
Message has been deleted

Steeple Ian

unread,
Mar 2, 2022, 4:39:30 PM3/2/22
to weewx-user
You need to change the setting for your live data in the settings page: -

Screenshot 2022-03-02 at 21.32.47.png

Matthieu Devigne

unread,
Mar 3, 2022, 2:53:21 PM3/3/22
to weewx-user
I didn't have change the setting (/var/www/html/weewx/weather34/serverdata/w34realtime.txt) : 
56.png

Steeple Ian

unread,
Mar 3, 2022, 4:54:08 PM3/3/22
to weewx-user
You need to change the path to serverdata/w34realtime.txt

Matthieu Devigne

unread,
Mar 4, 2022, 3:25:49 PM3/4/22
to weewx-user

Yes, the data are in live. Thanks. 😊

1) I see that the wind gust and wind speed are not the true data. Why ?

2) And, the data history data on charts is not run (all the charts) :

With a error message

57.png

Steeple Ian

unread,
Mar 4, 2022, 3:56:31 PM3/4/22
to weewx-user
1) according to your realtime file, the wind is calm at the moment
2) Most charts are working perfectly for me. You will need to wait for a while for the weekly reports to be run.

Also, you need to activate a free account with Aeris Weather to get your weather warnings working correctly.

Aeris Weather will also give far more detail for your weather forecasts compard with your current choice of Weather Underground.

Matthieu Devigne

unread,
Mar 5, 2022, 7:28:26 AM3/5/22
to weewx-user
1) I have a difference between weewx and weather 34 :

For today with weewx, I have gust wind max at 12km/hh and weather34  43.2km/h.

On my weather station him : 12km/k

2) All the charts are stopped for history (when I choose a date) : 
58.png
59.png

Matthieu Devigne

unread,
Mar 11, 2022, 2:17:01 PM3/11/22
to weewx-user
Hi,
I installed weather34 a second time.
Aeris isn't running with weather34. I activate a free version of aeris.
I don't understand how activate aeris.  There is a code somewhere ?
Reply all
Reply to author
Forward
0 new messages