hello Pat
how are you
My actual files ( weather_station_BYO_10.py) is installed in
/home/pi/weather-station/
I put your file "byows.py" in the same directory; it is OK ?
And I run the file by python3 byows.py
1st error:
python3 byows.py
File "byows.py", line 104
global self.wind_count
^
SyntaxError: invalid syntax
but maybe I'm wrong, it's the application "Weewx" by the web server that
launches the file "byows.py" and not as I do, in any case the application
by: http / localhost / weewx / gets off to a good start, but it's simulator
mode data
I modified the file as:
def reset_wind(self):
self.wind_count
self.wind_count = 0
I run again the file and 2nd error:
python3 byows.py
Traceback (most recent call last):
File "byows.py", line 22, in <module>
import weedb
ImportError: No module named 'weedb'
but maybe I'm wrong, it's the application "Weewx" by the web server that
launches the file "byows.py" and not as I do, in any case the application
by: http / localhost / weewx / gets off to a good start, but it's simulator
mode data
watch the log:
$ sudo tail -f /var/log/syslog -n 100
Dec 9 14:17:08 raspberrypi weewx[6993]: engine: Terminating weewx version
3.8.2
Dec 9 14:17:13 raspberrypi weewx[7227]: Stopping weewx weather system:
weewx..
Dec 9 14:17:13 raspberrypi systemd[1]: Stopped LSB: weewx weather system.
Dec 9 14:17:13 raspberrypi systemd[1]: Starting LSB: weewx weather
system...
Dec 9 14:17:14 raspberrypi weewx[7268]: engine: Initializing weewx version
3.8.2
Dec 9 14:17:14 raspberrypi weewx[7268]: engine: Using Python 2.7.13
(default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
Dec 9 14:17:14 raspberrypi weewx[7268]: engine: Platform
Linux-4.14.79-v7+-armv7l-with-debian-9.6
Dec 9 14:17:14 raspberrypi weewx[7268]: engine: Locale is 'fr_FR.UTF-8'
Dec 9 14:17:14 raspberrypi weewx[7268]: engine: pid file is
/var/run/weewx.pid
Dec 9 14:17:14 raspberrypi weewx[7272]: engine: Using configuration file
/etc/weewx/weewx.conf
Dec 9 14:17:14 raspberrypi weewx[7272]: engine: Loading station type
Simulator (weewx.drivers.simulator)
Dec 9 14:17:14 raspberrypi weewx[7257]: Starting weewx weather system:
weewx.
Dec 9 14:17:14 raspberrypi systemd[1]: Started LSB: weewx weather system.
Dec 9 14:17:14 raspberrypi weewx[7272]: engine: StdConvert target unit is
0x1
Dec 9 14:17:14 raspberrypi weewx[7272]: wxcalculate: The following values
will be calculated: barometer=prefer_hardware, windchill=prefer_hardware,
dewpoint=prefer_hardware, appTemp=prefer_hardware,
rainRate=prefer_hardware, windrun=prefer_hardware,
heatindex=prefer_hardware, maxSolarRad=prefer_hardware,
humidex=prefer_hardware, pressure=prefer_hardware,
inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware,
cloudbase=prefer_hardware
Dec 9 14:17:14 raspberrypi weewx[7272]: wxcalculate: The following
algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Dec 9 14:17:14 raspberrypi weewx[7272]: engine: Archive will use data
binding wx_binding
Dec 9 14:17:14 raspberrypi weewx[7272]: engine: Record generation will be
attempted in 'hardware'
Dec 9 14:17:14 raspberrypi weewx[7272]: engine: Using archive interval of
300 seconds (specified in weewx configuration)
Dec 9 14:17:14 raspberrypi weewx[7272]: engine: Using binding 'wx_binding'
to database 'weewx.sdb'
Dec 9 14:17:14 raspberrypi weewx[7272]: manager: Starting backfill of
daily summaries
Dec 9 14:17:14 raspberrypi weewx[7272]: restx: StationRegistry:
Registration not requested.
Dec 9 14:17:14 raspberrypi weewx[7272]: restx: Wunderground: Posting not
enabled.
Dec 9 14:17:14 raspberrypi weewx[7272]: restx: PWSweather: Posting not
enabled.
Dec 9 14:17:14 raspberrypi weewx[7272]: restx: CWOP: Posting not enabled.
Dec 9 14:17:14 raspberrypi weewx[7272]: restx: WOW: Posting not enabled.
Dec 9 14:17:14 raspberrypi weewx[7272]: restx: AWEKAS: Posting not enabled.
Dec 9 14:17:14 raspberrypi weewx[7272]: engine: Starting up weewx version
3.8.2
Dec 9 14:17:14 raspberrypi weewx[7272]: engine: Clock error is -0.20
seconds (positive is fast)
Dec 9 14:17:14 raspberrypi weewx[7272]: engine: Starting main packet loop.
Dec 9 14:20:16 raspberrypi weewx[7272]: manager: Added record 2018-12-09
14:20:00 CET (1544361600) to database 'weewx.sdb'
Dec 9 14:20:16 raspberrypi weewx[7272]: manager: Added record 2018-12-09
14:20:00 CET (1544361600) to daily summary in 'weewx.sdb'
Dec 9 14:20:24 raspberrypi weewx[7272]: cheetahgenerator: Generated 14
files for report StandardReport in 7.20 seconds
Dec 9 14:20:25 raspberrypi weewx[7272]: imagegenerator: Generated 12
images for StandardReport in 1.32 seconds
Dec 9 14:20:25 raspberrypi weewx[7272]: copygenerator: copied 9 files to
/var/www/html/weewx
Dec 9 14:25:16 raspberrypi weewx[7272]: manager: Added record 2018-12-09
14:25:00 CET (1544361900) to database 'weewx.sdb'
Dec 9 14:25:16 raspberrypi weewx[7272]: manager: Added record 2018-12-09
14:25:00 CET (1544361900) to daily summary in 'weewx.sdb'
Dec 9 14:25:19 raspberrypi weewx[7272]: cheetahgenerator: Generated 14
files for report StandardReport in 2.28 seconds
Dec 9 14:25:20 raspberrypi weewx[7272]: imagegenerator: Generated 12
images for StandardReport in 1.26 seconds
Dec 9 14:25:20 raspberrypi weewx[7272]: copygenerator: copied 0 files to
/var/www/html/weewx
Dec 9 14:30:16 raspberrypi weewx[7272]: manager: Added record 2018-12-09
14:30:00 CET (1544362200) to database 'weewx.sdb'
Dec 9 14:30:16 raspberrypi weewx[7272]: manager: Added record 2018-12-09
14:30:00 CET (1544362200) to daily summary in 'weewx.sdb'
Dec 9 14:30:19 raspberrypi weewx[7272]: cheetahgenerator: Generated 14
files for report StandardReport in 2.30 seconds
Dec 9 14:30:20 raspberrypi weewx[7272]: imagegenerator: Generated 12
images for StandardReport in 1.27 seconds
Dec 9 14:30:20 raspberrypi weewx[7272]: copygenerator: copied 0 files to
/var/www/html/weewx
Dec 9 14:35:16 raspberrypi weewx[7272]: manager: Added record 2018-12-09
14:35:00 CET (1544362500) to database 'weewx.sdb'
Dec 9 14:35:16 raspberrypi weewx[7272]: manager: Added record 2018-12-09
14:35:00 CET (1544362500) to daily summary in 'weewx.sdb'
Dec 9 14:35:19 raspberrypi weewx[7272]: cheetahgenerator: Generated 14
files for report StandardReport in 2.33 seconds
Dec 9 14:35:20 raspberrypi weewx[7272]: imagegenerator: Generated 12
images for StandardReport in 1.27 seconds
Dec 9 14:35:20 raspberrypi weewx[7272]: copygenerator: copied 0 files to
/var/www/html/weewx
Dec 9 14:39:01 raspberrypi CRON[7410]: (root) CMD ( [ -x
/usr/lib/php/sessionclean ] && if [ ! -d /run/systemd/system ]; then
/usr/lib/php/sessionclean; fi)
Dec 9 14:39:09 raspberrypi systemd[1]: Starting Clean php session files...
Dec 9 14:39:10 raspberrypi systemd[1]: Started Clean php session files.
Dec 9 14:40:16 raspberrypi weewx[7272]: manager: Added record 2018-12-09
14:40:00 CET (1544362800) to database 'weewx.sdb'
Dec 9 14:40:16 raspberrypi weewx[7272]: manager: Added record 2018-12-09
14:40:00 CET (1544362800) to daily summary in 'weewx.sdb'
Dec 9 14:40:19 raspberrypi weewx[7272]: cheetahgenerator: Generated 14
files for report StandardReport in 2.56 seconds
Dec 9 14:40:20 raspberrypi weewx[7272]: imagegenerator: Generated 12
images for StandardReport in 1.31 seconds
Dec 9 14:40:20 raspberrypi weewx[7272]: copygenerator: copied 0 files to
/var/www/html/weewx
Dec 9 14:45:16 raspberrypi weewx[7272]: manager: Added record 2018-12-09
14:45:00 CET (1544363100) to database 'weewx.sdb'
Dec 9 14:45:16 raspberrypi weewx[7272]: manager: Added record 2018-12-09
14:45:00 CET (1544363100) to daily summary in 'weewx.sdb'
Dec 9 14:45:19 raspberrypi weewx[7272]: cheetahgenerator: Generated 14
files for report StandardReport in 2.30 seconds
Dec 9 14:45:20 raspberrypi weewx[7272]: imagegenerator: Generated 12
images for StandardReport in 1.26 seconds
Dec 9 14:45:20 raspberrypi weewx[7272]: copygenerator: copied 0 files to
/var/www/html/weewx
Dec 9 14:47:58 raspberrypi systemd[1]: Stopping LSB: weewx weather
system...
Dec 9 14:47:58 raspberrypi weewx[7272]: engine: Shutting down StdReport
thread
Dec 9 14:47:58 raspberrypi weewx[7272]: engine: Terminating weewx version
3.8.2
Dec 9 14:48:03 raspberrypi weewx[7606]: Stopping weewx weather system:
weewx..
Dec 9 14:48:03 raspberrypi systemd[1]: Stopped LSB: weewx weather system.
Dec 9 14:48:11 raspberrypi systemd[1]: Starting LSB: weewx weather
system...
Dec 9 14:48:12 raspberrypi weewx[7679]: engine: Initializing weewx version
3.8.2
Dec 9 14:48:12 raspberrypi weewx[7679]: engine: Using Python 2.7.13
(default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
Dec 9 14:48:12 raspberrypi weewx[7679]: engine: Platform
Linux-4.14.79-v7+-armv7l-with-debian-9.6
Dec 9 14:48:12 raspberrypi weewx[7679]: engine: Locale is 'fr_FR.UTF-8'
Dec 9 14:48:12 raspberrypi weewx[7679]: engine: pid file is
/var/run/weewx.pid
Dec 9 14:48:12 raspberrypi weewx[7683]: engine: Using configuration file
/etc/weewx/weewx.conf
Dec 9 14:48:12 raspberrypi weewx[7683]: engine: Loading station type
Simulator (weewx.drivers.simulator)
Dec 9 14:48:12 raspberrypi weewx[7668]: Starting weewx weather system:
weewx.
Dec 9 14:48:12 raspberrypi systemd[1]: Started LSB: weewx weather system.
Dec 9 14:48:12 raspberrypi weewx[7683]: engine: StdConvert target unit is
0x1
Dec 9 14:48:12 raspberrypi weewx[7683]: wxcalculate: The following values
will be calculated: barometer=prefer_hardware, windchill=prefer_hardware,
dewpoint=prefer_hardware, appTemp=prefer_hardware,
rainRate=prefer_hardware, windrun=prefer_hardware,
heatindex=prefer_hardware, maxSolarRad=prefer_hardware,
humidex=prefer_hardware, pressure=prefer_hardware,
inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware,
cloudbase=prefer_hardware
Dec 9 14:48:12 raspberrypi weewx[7683]: wxcalculate: The following
algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Dec 9 14:48:12 raspberrypi weewx[7683]: engine: Archive will use data
binding wx_binding
Dec 9 14:48:12 raspberrypi weewx[7683]: engine: Record generation will be
attempted in 'hardware'
Dec 9 14:48:12 raspberrypi weewx[7683]: engine: Using archive interval of
300 seconds (specified in weewx configuration)
Dec 9 14:48:12 raspberrypi weewx[7683]: engine: Using binding 'wx_binding'
to database 'weewx.sdb'
Dec 9 14:48:12 raspberrypi weewx[7683]: manager: Starting backfill of
daily summaries
Dec 9 14:48:12 raspberrypi weewx[7683]: restx: StationRegistry:
Registration not requested.
Dec 9 14:48:12 raspberrypi weewx[7683]: restx: Wunderground: Posting not
enabled.
Dec 9 14:48:12 raspberrypi weewx[7683]: restx: PWSweather: Posting not
enabled.
Dec 9 14:48:12 raspberrypi weewx[7683]: restx: CWOP: Posting not enabled.
Dec 9 14:48:12 raspberrypi weewx[7683]: restx: WOW: Posting not enabled.
Dec 9 14:48:12 raspberrypi weewx[7683]: restx: AWEKAS: Posting not enabled.
Dec 9 14:48:12 raspberrypi weewx[7683]: engine: Starting up weewx version
3.8.2
Dec 9 14:48:12 raspberrypi weewx[7683]: engine: Clock error is -0.18
seconds (positive is fast)
Dec 9 14:48:12 raspberrypi weewx[7683]: engine: Starting main packet loop.
Dec 9 14:50:14 raspberrypi weewx[7683]: manager: Added record 2018-12-09
14:50:00 CET (1544363400) to database 'weewx.sdb'
Dec 9 14:50:14 raspberrypi weewx[7683]: manager: Added record 2018-12-09
14:50:00 CET (1544363400) to daily summary in 'weewx.sdb'
Dec 9 14:50:22 raspberrypi weewx[7683]: cheetahgenerator: Generated 14
files for report StandardReport in 7.18 seconds
Dec 9 14:50:23 raspberrypi weewx[7683]: imagegenerator: Generated 12
images for StandardReport in 1.33 seconds
Dec 9 14:50:23 raspberrypi weewx[7683]: copygenerator: copied 9 files to
/var/www/html/weewx
Dec 9 14:55:14 raspberrypi weewx[7683]: manager: Added record 2018-12-09
14:55:00 CET (1544363700) to database 'weewx.sdb'
Dec 9 14:55:14 raspberrypi weewx[7683]: manager: Added record 2018-12-09
14:55:00 CET (1544363700) to daily summary in 'weewx.sdb'
Dec 9 14:55:17 raspberrypi weewx[7683]: cheetahgenerator: Generated 14
files for report StandardReport in 2.42 seconds
Dec 9 14:55:18 raspberrypi weewx[7683]: imagegenerator: Generated 12
images for StandardReport in 1.30 seconds
Dec 9 14:55:18 raspberrypi weewx[7683]: copygenerator: copied 0 files to
/var/www/html/weewx
Patrick
On Saturday, December 8, 2018 at 3:40:43 PM UTC+1, Patrick Tranchant wrote:
>
> hello I am a newbie from France ( sorry for my english )
>
> I want to use weewx on a raspberry with a weather station built by myself
> (view on Magpi)
> I don't see my station on your website to configure :
>
> Weather Station Hardware Comparison: I don't found my weather station.
> Do you have a solution or how to configure Weewx
>
> thank you for your help
>
> Patrick
>
--
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].
For more options, visit https://groups.google.com/d/optout.