hello Pat
how are you ?

I found maybe the problem
I must unplug the BME280 module

watch the log, I didn't found anything

With the command : tail -f /var/log/syslog -n 100

Dec 10 18:31:33 raspberrypi systemd[1]: Stopping LSB: weewx weather 
system...
Dec 10 18:31:33 raspberrypi weewx[1721]: Stopping weewx weather system: 
weewx not running....
Dec 10 18:31:33 raspberrypi systemd[1]: Stopped LSB: weewx weather system.
Dec 10 18:31:33 raspberrypi systemd[1]: Starting LSB: weewx weather 
system...
Dec 10 18:31:34 raspberrypi weewx[1746]: engine: Initializing weewx version 
3.8.2
Dec 10 18:31:34 raspberrypi weewx[1746]: engine: Using Python 2.7.13 
(default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
Dec 10 18:31:34 raspberrypi weewx[1746]: engine: Platform 
Linux-4.14.79-v7+-armv7l-with-debian-9.6
Dec 10 18:31:34 raspberrypi weewx[1746]: engine: Locale is 'fr_FR.UTF-8'
Dec 10 18:31:34 raspberrypi weewx[1746]: engine: pid file is 
/var/run/weewx.pid
Dec 10 18:31:34 raspberrypi weewx[1751]: engine: Using configuration file 
/etc/weewx/weewx.conf
Dec 10 18:31:34 raspberrypi weewx[1751]: engine: Loading station type BYOWS 
(user.byows)
Dec 10 18:31:34 raspberrypi weewx[1734]: Starting weewx weather system: 
weewx.
Dec 10 18:31:34 raspberrypi systemd[1]: Started LSB: weewx weather system.
Dec 10 18:31:36 raspberrypi weewx[1751]: engine: Caught unrecoverable 
exception in engine:
Dec 10 18:31:36 raspberrypi weewx[1751]:     ****  [Errno 121] Erreur 
d'entrée/sortie sur l'hôte cible
Dec 10 18:31:36 raspberrypi weewx[1751]:     ****  Traceback (most recent 
call last):
Dec 10 18:31:36 raspberrypi weewx[1751]:     ****    File 
"/usr/share/weewx/weewx/engine.py", line 871, in main
Dec 10 18:31:36 raspberrypi weewx[1751]:     ****      engine = 
engine_class(config_dict)
Dec 10 18:31:36 raspberrypi weewx[1751]:     ****    File 
"/usr/share/weewx/weewx/engine.py", line 72, in __init__
Dec 10 18:31:36 raspberrypi weewx[1751]:     ****      
self.setupStation(config_dict)
Dec 10 18:31:36 raspberrypi weewx[1751]:     ****    File 
"/usr/share/weewx/weewx/engine.py", line 96, in setupStation
Dec 10 18:31:36 raspberrypi weewx[1751]:     ****      __import__(driver)
Dec 10 18:31:36 raspberrypi weewx[1751]:     ****    File 
"/usr/share/weewx/user/byows.py", line 15, in <module>
Dec 10 18:31:36 raspberrypi weewx[1751]:     ****      import 
bme280_sensor_2
Dec 10 18:31:36 raspberrypi weewx[1751]:     ****    File 
"/usr/share/weewx/user/bme280_sensor_2.py", line 9, in <module>
Dec 10 18:31:36 raspberrypi weewx[1751]:     ****      
bme280.load_calibration_params(bus,address)
Dec 10 18:31:36 raspberrypi weewx[1751]:     ****    File 
"/usr/local/lib/python2.7/dist-packages/bme280/__init__.py", line 155, in 
load_calibration_params
Dec 10 18:31:36 raspberrypi weewx[1751]:     ****      
compensation_params.dig_T1 = read.unsigned_short(0x88)
Dec 10 18:31:36 raspberrypi weewx[1751]:     ****    File 
"/usr/local/lib/python2.7/dist-packages/bme280/reader.py", line 40, in 
unsigned_short
Dec 10 18:31:36 raspberrypi weewx[1751]:     ****      return 
self._bus.read_word_data(self._address, register) & 0xffff
Dec 10 18:31:36 raspberrypi weewx[1751]:     ****    File 
"/usr/local/lib/python2.7/dist-packages/smbus2/smbus2.py", line 396, in 
read_word_data
Dec 10 18:31:36 raspberrypi weewx[1751]:     ****      ioctl(self.fd, 
I2C_SMBUS, msg)
Dec 10 18:31:36 raspberrypi weewx[1751]:     ****  IOError: [Errno 121] 
Erreur d'entrée/sortie sur l'hôte cible
Dec 10 18:31:36 raspberrypi weewx[1751]:     ****  Exiting.

  connection module BME280 on GPIO of RPi: 
RPI OK 
restart weewx => /etc/init.d/weewx restart
RPI NOK

Dec 10 18:36:27 raspberrypi systemd[1]: Stopping LSB: weewx weather 
system...
Dec 10 18:36:27 raspberrypi weewx[1806]: Stopping weewx weather system: 
weewx not running....
Dec 10 18:36:27 raspberrypi systemd[1]: Stopped LSB: weewx weather system.
Dec 10 18:36:27 raspberrypi systemd[1]: Starting LSB: weewx weather 
system...
Dec 10 18:36:28 raspberrypi weewx[1830]: engine: Initializing weewx version 
3.8.2
Dec 10 18:36:28 raspberrypi weewx[1830]: engine: Using Python 2.7.13 
(default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
Dec 10 18:36:28 raspberrypi weewx[1830]: engine: Platform 
Linux-4.14.79-v7+-armv7l-with-debian-9.6
Dec 10 18:36:28 raspberrypi weewx[1830]: engine: Locale is 'fr_FR.UTF-8'
Dec 10 18:36:28 raspberrypi weewx[1830]: engine: pid file is 
/var/run/weewx.pid
Dec 10 18:36:28 raspberrypi weewx[1835]: engine: Using configuration file 
/etc/weewx/weewx.conf
Dec 10 18:36:28 raspberrypi weewx[1835]: engine: Loading station type BYOWS 
(user.byows)
Dec 10 18:36:28 raspberrypi weewx[1819]: Starting weewx weather system: 
weewx.
Dec 10 18:36:28 raspberrypi systemd[1]: Started LSB: weewx weather system.

unplug module BME280
reboot OK
I go to watch the syslog

open syslog => cat /var/log/syslog
I go before RPi NOK

Dec 10 18:31:36 raspberrypi weewx[1751]:     ****  Exiting.
Dec 10 18:30:34 raspberrypi systemd-modules-load[83]: Inserted module 
'i2c_dev'
Dec 10 18:30:34 raspberrypi systemd-modules-load[83]: Inserted module 
'w1_gpio'
Dec 10 18:30:34 raspberrypi systemd-modules-load[83]: Inserted module 
'w1_therm'
Dec 10 18:30:34 raspberrypi fake-hwclock[89]: lundi 10 décembre 2018, 
17:17:01 (UTC+0000)
Dec 10 18:30:34 raspberrypi systemd-fsck[114]: fsck: /etc/fstab: parse 
error at line 6 -- ignored
Dec 10 18:30:34 raspberrypi systemd[1]: Started Create Static Device Nodes 
in /dev.
Dec 10 18:30:34 raspberrypi systemd[1]: Starting udev Kernel Device 
Manager...
Dec 10 18:30:34 raspberrypi systemd-fsck[114]: /dev/mmcblk0p2 : propre, 
149537/1911616 fichiers, 1780623/7779968 blocs
Dec 10 18:30:34 raspberrypi systemd[1]: Started File System Check on Root 
Device

I go to try uninstall pip2 RPi.bme280

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 weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to