Re: [weewx-user] Re: Replacing the Raspberry Pi
On Friday, December 16, 2016 at 7:29:32 AM UTC-8, Andrew Milner wrote: > > Just do one thing at a time > > Agree. Go very slowly. One step at a time. Your post at 6:40AM where you wiggled the cable and got some syslog messages leads me to believe that you have some cable or adaptor that is not quite seated fully, but be very careful with the pi. Those ports are 'very' fragile. -- 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.
Re: [weewx-user] Re: Replacing the Raspberry Pi
Well the last restart has fixed it with nothing else being done! The generated page is visible via the Pi's web server, and it's uploading to the other PC which serves it to the wider web. Wunderground reports I am back on line as well, so it is looking good. http://muchty-weather.org.uk/weather/ (I don't put wind direction data on as due to the location of the sensors it's meaningless) Think the initial problem was not being hot plug the Pi. I was keen to switch to wifi having found the problems I did have with it are resolved in latest version of the Pi OS to get rid of the Homeplug and it's cable. On Friday, 16 December 2016 15:29:32 UTC, Andrew Milner wrote: > Just do one thing at a time > > still have not seen the log from start for 10 minutes when using wifi!! > > Personally, if it used to be Ethernet then I would be using Ethernet now > and only change to wifi when once I knew that what used to work still > works!! > > I never imagined the console had moved - I was always assuming that it > would be the pi in a different place - but that still means the cable run > from weather station to old pi is not exactly the same as weather station > to new pi, and the new pi may be located near interference or the cable may > now be crossing over a cause of interference - when it wasn't before. > > > > On 16 December 2016 at 17:21, Auchtermuchty Weather> wrote: > >> The weather station is in exactly the same place. The Pi is in a >> slightly different one, I'm not using a hub as this is one of the newer Pis >> with 4 USB ports - the old Pi had one but I was using a wired network via a >> Powerlink plug. >> >> However I can switch back to the Powerlink... >> >> >> On Friday, 16 December 2016 15:09:41 UTC, Andrew Milner wrote: >> >>> switching on a wifi dongle will certainly cause the system to be busy >>> while it sorts itself out and estasblishes the network connection - and >>> depending on hoable and physicallyw you have things connected may well >>> cause problems (especially on a rpi) and especially if you are not using a >>> powered hub. Also I thought you had moved the station from one pi to >>> another - so you have moved the cable and physically reconnected to the new >>> rpi - er so I cant be the same as it has been for 4 years - or are we still >>> on the original rpi and just upgraded the weewx? Am getting confuzzed now >>> think I'll just stay quiet for a while .. >>> >>> >>> >>> On Friday, 16 December 2016 17:02:36 UTC+2, Auchtermuchty Weather wrote: >>> Could switching to a wifi dongle cause enough interference to be a problem? Otherwise it's almost exactly as it's been for 4 years. On Friday, 16 December 2016 14:56:01 UTC, Andrew Milner wrote: > or you could just have it routed badly now near some form of > interference .. > > slow down > > 1. connect all your hardware > 2. stop weewx > 3. set debug = 1 in weewx.conf > 3. start weewx > 4. wait for weewx to get 'missing' archive records from console if > there are any to retrieve > 5.wait for first archive interval to pass (5 or 10 minutes??) > > 6. post log from start to first interval if you still have problems. > > If all is well > edit weewx.conf to turn debug off and restart weewx > > > > > > > On Friday, 16 December 2016 16:40:53 UTC+2, Auchtermuchty Weather > wrote: > >> I shut down weewx and rebooted the Pi as it occurred to me hot >> plugging the weather station might be a problem, and then restarted Pi >> again with 'debug=1'. It's not finding the weather station: >> >> Dec 16 14:23:02 weather2 systemd[1]: Stopping LSB: weewx weather >> system... >> Dec 16 14:23:02 weather2 weewx[9448]: Stopping weewx weather system: >> weewx not running >> Dec 16 14:23:02 weather2 systemd[1]: Starting LSB: weewx weather >> system... >> Dec 16 14:23:03 weather2 weewx[9472]: engine: Initializing weewx >> version 3.6.2 >> Dec 16 14:23:03 weather2 weewx[9472]: engine: Using Python 2.7.9 >> (default, Sep 17 2016, 20:26:04) #012[GCC 4.9.2] >> Dec 16 14:23:03 weather2 weewx[9472]: engine: Platform >> Linux-4.4.34+-armv6l-with-debian-8.0 >> Dec 16 14:23:04 weather2 weewx[9472]: engine: pid file is >> /var/run/weewx.pid >> Dec 16 14:23:04 weather2 weewx[9462]: Starting weewx weather system: >> weewx. >> Dec 16 14:23:04 weather2 systemd[1]: Started LSB: weewx weather >> system. >> Dec 16 14:23:04 weather2 weewx[9476]: engine: Using configuration >> file /home/weewx/weewx.conf >> Dec 16 14:23:04 weather2 weewx[9476]: engine: Initializing engine >> Dec 16 14:23:04 weather2 weewx[9476]: engine: Loading station type >> FineOffsetUSB (weewx.drivers.fousb) >> Dec 16 14:23:04 weather2 weewx[9476]: fousb: driver version is
Re: [weewx-user] Re: Replacing the Raspberry Pi
Just do one thing at a time still have not seen the log from start for 10 minutes when using wifi!! Personally, if it used to be Ethernet then I would be using Ethernet now and only change to wifi when once I knew that what used to work still works!! I never imagined the console had moved - I was always assuming that it would be the pi in a different place - but that still means the cable run from weather station to old pi is not exactly the same as weather station to new pi, and the new pi may be located near interference or the cable may now be crossing over a cause of interference - when it wasn't before. On 16 December 2016 at 17:21, Auchtermuchty Weatherwrote: > The weather station is in exactly the same place. The Pi is in a slightly > different one, I'm not using a hub as this is one of the newer Pis with 4 > USB ports - the old Pi had one but I was using a wired network via a > Powerlink plug. > > However I can switch back to the Powerlink... > > > On Friday, 16 December 2016 15:09:41 UTC, Andrew Milner wrote: > >> switching on a wifi dongle will certainly cause the system to be busy >> while it sorts itself out and estasblishes the network connection - and >> depending on hoable and physicallyw you have things connected may well >> cause problems (especially on a rpi) and especially if you are not using a >> powered hub. Also I thought you had moved the station from one pi to >> another - so you have moved the cable and physically reconnected to the new >> rpi - er so I cant be the same as it has been for 4 years - or are we still >> on the original rpi and just upgraded the weewx? Am getting confuzzed now >> think I'll just stay quiet for a while .. >> >> >> >> On Friday, 16 December 2016 17:02:36 UTC+2, Auchtermuchty Weather wrote: >> >>> Could switching to a wifi dongle cause enough interference to be a >>> problem? Otherwise it's almost exactly as it's been for 4 years. >>> >>> >>> >>> On Friday, 16 December 2016 14:56:01 UTC, Andrew Milner wrote: >>> or you could just have it routed badly now near some form of interference .. slow down 1. connect all your hardware 2. stop weewx 3. set debug = 1 in weewx.conf 3. start weewx 4. wait for weewx to get 'missing' archive records from console if there are any to retrieve 5.wait for first archive interval to pass (5 or 10 minutes??) 6. post log from start to first interval if you still have problems. If all is well edit weewx.conf to turn debug off and restart weewx On Friday, 16 December 2016 16:40:53 UTC+2, Auchtermuchty Weather wrote: > I shut down weewx and rebooted the Pi as it occurred to me hot > plugging the weather station might be a problem, and then restarted Pi > again with 'debug=1'. It's not finding the weather station: > > Dec 16 14:23:02 weather2 systemd[1]: Stopping LSB: weewx weather > system... > Dec 16 14:23:02 weather2 weewx[9448]: Stopping weewx weather system: > weewx not running > Dec 16 14:23:02 weather2 systemd[1]: Starting LSB: weewx weather > system... > Dec 16 14:23:03 weather2 weewx[9472]: engine: Initializing weewx > version 3.6.2 > Dec 16 14:23:03 weather2 weewx[9472]: engine: Using Python 2.7.9 > (default, Sep 17 2016, 20:26:04) #012[GCC 4.9.2] > Dec 16 14:23:03 weather2 weewx[9472]: engine: Platform > Linux-4.4.34+-armv6l-with-debian-8.0 > Dec 16 14:23:04 weather2 weewx[9472]: engine: pid file is > /var/run/weewx.pid > Dec 16 14:23:04 weather2 weewx[9462]: Starting weewx weather system: > weewx. > Dec 16 14:23:04 weather2 systemd[1]: Started LSB: weewx weather system. > Dec 16 14:23:04 weather2 weewx[9476]: engine: Using configuration file > /home/weewx/weewx.conf > Dec 16 14:23:04 weather2 weewx[9476]: engine: Initializing engine > Dec 16 14:23:04 weather2 weewx[9476]: engine: Loading station type > FineOffsetUSB (weewx.drivers.fousb) > Dec 16 14:23:04 weather2 weewx[9476]: fousb: driver version is 1.9 > Dec 16 14:23:04 weather2 weewx[9476]: fousb: polling mode is PERIODIC > Dec 16 14:23:04 weather2 weewx[9476]: fousb: polling interval is 60 > Dec 16 14:23:04 weather2 weewx[9476]: fousb: Cannot find USB device > with Vendor=0x1941 ProdID=0x8021 Device=None > Dec 16 14:23:04 weather2 weewx[9476]: import of driver failed: Unable > to find USB device () > Dec 16 14:23:04 weather2 weewx[9476]: engine: Unable to load driver: > Unable to find USB device > Dec 16 14:23:04 weather2 weewx[9476]: Exiting... > > FineOffset is correct. > > > Fiddling with the cable produced several of these: > Dec 16 14:27:50 weather2 kernel: [ 1703.009271] usb 1-1.2: new > low-speed USB device number 5 using dwc_otg > Dec 16 14:27:50 weather2 kernel: [ 1703.155425] usb 1-1.2: New USB
Re: [weewx-user] Re: Replacing the Raspberry Pi
The weather station is in exactly the same place. The Pi is in a slightly different one, I'm not using a hub as this is one of the newer Pis with 4 USB ports - the old Pi had one but I was using a wired network via a Powerlink plug. However I can switch back to the Powerlink... On Friday, 16 December 2016 15:09:41 UTC, Andrew Milner wrote: > switching on a wifi dongle will certainly cause the system to be busy > while it sorts itself out and estasblishes the network connection - and > depending on hoable and physicallyw you have things connected may well > cause problems (especially on a rpi) and especially if you are not using a > powered hub. Also I thought you had moved the station from one pi to > another - so you have moved the cable and physically reconnected to the new > rpi - er so I cant be the same as it has been for 4 years - or are we still > on the original rpi and just upgraded the weewx? Am getting confuzzed now > think I'll just stay quiet for a while .. > > > > On Friday, 16 December 2016 17:02:36 UTC+2, Auchtermuchty Weather wrote: > >> Could switching to a wifi dongle cause enough interference to be a >> problem? Otherwise it's almost exactly as it's been for 4 years. >> >> >> >> On Friday, 16 December 2016 14:56:01 UTC, Andrew Milner wrote: >> >>> or you could just have it routed badly now near some form of >>> interference .. >>> >>> slow down >>> >>> 1. connect all your hardware >>> 2. stop weewx >>> 3. set debug = 1 in weewx.conf >>> 3. start weewx >>> 4. wait for weewx to get 'missing' archive records from console if there >>> are any to retrieve >>> 5.wait for first archive interval to pass (5 or 10 minutes??) >>> >>> 6. post log from start to first interval if you still have problems. >>> >>> If all is well >>> edit weewx.conf to turn debug off and restart weewx >>> >>> >>> >>> >>> >>> >>> On Friday, 16 December 2016 16:40:53 UTC+2, Auchtermuchty Weather wrote: >>> I shut down weewx and rebooted the Pi as it occurred to me hot plugging the weather station might be a problem, and then restarted Pi again with 'debug=1'. It's not finding the weather station: Dec 16 14:23:02 weather2 systemd[1]: Stopping LSB: weewx weather system... Dec 16 14:23:02 weather2 weewx[9448]: Stopping weewx weather system: weewx not running Dec 16 14:23:02 weather2 systemd[1]: Starting LSB: weewx weather system... Dec 16 14:23:03 weather2 weewx[9472]: engine: Initializing weewx version 3.6.2 Dec 16 14:23:03 weather2 weewx[9472]: engine: Using Python 2.7.9 (default, Sep 17 2016, 20:26:04) #012[GCC 4.9.2] Dec 16 14:23:03 weather2 weewx[9472]: engine: Platform Linux-4.4.34+-armv6l-with-debian-8.0 Dec 16 14:23:04 weather2 weewx[9472]: engine: pid file is /var/run/weewx.pid Dec 16 14:23:04 weather2 weewx[9462]: Starting weewx weather system: weewx. Dec 16 14:23:04 weather2 systemd[1]: Started LSB: weewx weather system. Dec 16 14:23:04 weather2 weewx[9476]: engine: Using configuration file /home/weewx/weewx.conf Dec 16 14:23:04 weather2 weewx[9476]: engine: Initializing engine Dec 16 14:23:04 weather2 weewx[9476]: engine: Loading station type FineOffsetUSB (weewx.drivers.fousb) Dec 16 14:23:04 weather2 weewx[9476]: fousb: driver version is 1.9 Dec 16 14:23:04 weather2 weewx[9476]: fousb: polling mode is PERIODIC Dec 16 14:23:04 weather2 weewx[9476]: fousb: polling interval is 60 Dec 16 14:23:04 weather2 weewx[9476]: fousb: Cannot find USB device with Vendor=0x1941 ProdID=0x8021 Device=None Dec 16 14:23:04 weather2 weewx[9476]: import of driver failed: Unable to find USB device () Dec 16 14:23:04 weather2 weewx[9476]: engine: Unable to load driver: Unable to find USB device Dec 16 14:23:04 weather2 weewx[9476]: Exiting... FineOffset is correct. Fiddling with the cable produced several of these: Dec 16 14:27:50 weather2 kernel: [ 1703.009271] usb 1-1.2: new low-speed USB device number 5 using dwc_otg Dec 16 14:27:50 weather2 kernel: [ 1703.155425] usb 1-1.2: New USB device found, idVendor=1941, idProduct=8021 Dec 16 14:27:50 weather2 kernel: [ 1703.155465] usb 1-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0 Dec 16 14:27:50 weather2 kernel: [ 1703.213542] hid-generic 0003:1941:8021.0001: hiddev0,hidraw0: USB HID v1.00 Device [HID 1941:8021] on usb-2098.usb-1.2/input0 And I have this: pi@weather2:/home/weewx $ sudo lsusb Bus 001 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter Bus 001 Device 008: ID 1941:8021 Dream Link WH1080 Weather Station / USB Missile Launcher Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9514 Standard
Re: [weewx-user] Re: Replacing the Raspberry Pi
Could switching to a wifi dongle cause enough interference to be a problem? Otherwise it's almost exactly as it's been for 4 years. On Friday, 16 December 2016 14:56:01 UTC, Andrew Milner wrote: > or you could just have it routed badly now near some form of > interference .. > > slow down > > 1. connect all your hardware > 2. stop weewx > 3. set debug = 1 in weewx.conf > 3. start weewx > 4. wait for weewx to get 'missing' archive records from console if there > are any to retrieve > 5.wait for first archive interval to pass (5 or 10 minutes??) > > 6. post log from start to first interval if you still have problems. > > If all is well > edit weewx.conf to turn debug off and restart weewx > > > > > > > On Friday, 16 December 2016 16:40:53 UTC+2, Auchtermuchty Weather wrote: > >> I shut down weewx and rebooted the Pi as it occurred to me hot plugging >> the weather station might be a problem, and then restarted Pi again with >> 'debug=1'. It's not finding the weather station: >> >> Dec 16 14:23:02 weather2 systemd[1]: Stopping LSB: weewx weather system... >> Dec 16 14:23:02 weather2 weewx[9448]: Stopping weewx weather system: >> weewx not running >> Dec 16 14:23:02 weather2 systemd[1]: Starting LSB: weewx weather system... >> Dec 16 14:23:03 weather2 weewx[9472]: engine: Initializing weewx version >> 3.6.2 >> Dec 16 14:23:03 weather2 weewx[9472]: engine: Using Python 2.7.9 >> (default, Sep 17 2016, 20:26:04) #012[GCC 4.9.2] >> Dec 16 14:23:03 weather2 weewx[9472]: engine: Platform >> Linux-4.4.34+-armv6l-with-debian-8.0 >> Dec 16 14:23:04 weather2 weewx[9472]: engine: pid file is >> /var/run/weewx.pid >> Dec 16 14:23:04 weather2 weewx[9462]: Starting weewx weather system: >> weewx. >> Dec 16 14:23:04 weather2 systemd[1]: Started LSB: weewx weather system. >> Dec 16 14:23:04 weather2 weewx[9476]: engine: Using configuration file >> /home/weewx/weewx.conf >> Dec 16 14:23:04 weather2 weewx[9476]: engine: Initializing engine >> Dec 16 14:23:04 weather2 weewx[9476]: engine: Loading station type >> FineOffsetUSB (weewx.drivers.fousb) >> Dec 16 14:23:04 weather2 weewx[9476]: fousb: driver version is 1.9 >> Dec 16 14:23:04 weather2 weewx[9476]: fousb: polling mode is PERIODIC >> Dec 16 14:23:04 weather2 weewx[9476]: fousb: polling interval is 60 >> Dec 16 14:23:04 weather2 weewx[9476]: fousb: Cannot find USB device with >> Vendor=0x1941 ProdID=0x8021 Device=None >> Dec 16 14:23:04 weather2 weewx[9476]: import of driver failed: Unable to >> find USB device () >> Dec 16 14:23:04 weather2 weewx[9476]: engine: Unable to load driver: >> Unable to find USB device >> Dec 16 14:23:04 weather2 weewx[9476]: Exiting... >> >> FineOffset is correct. >> >> >> Fiddling with the cable produced several of these: >> Dec 16 14:27:50 weather2 kernel: [ 1703.009271] usb 1-1.2: new low-speed >> USB device number 5 using dwc_otg >> Dec 16 14:27:50 weather2 kernel: [ 1703.155425] usb 1-1.2: New USB device >> found, idVendor=1941, idProduct=8021 >> Dec 16 14:27:50 weather2 kernel: [ 1703.155465] usb 1-1.2: New USB device >> strings: Mfr=0, Product=0, SerialNumber=0 >> Dec 16 14:27:50 weather2 kernel: [ 1703.213542] hid-generic >> 0003:1941:8021.0001: hiddev0,hidraw0: USB HID v1.00 Device [HID 1941:8021] >> on usb-2098.usb-1.2/input0 >> >> And I have this: >> pi@weather2:/home/weewx $ sudo lsusb >> Bus 001 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless >> Adapter >> Bus 001 Device 008: ID 1941:8021 Dream Link WH1080 Weather Station / USB >> Missile Launcher >> Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. >> SMSC9512/9514 Fast Ethernet Adapter >> Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. >> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub >> >> Restarted weewx, the tail of syslog: >> 021] on usb-2098.usb-1.2/input0 >> Dec 16 14:30:38 weather2 systemd[1]: Started LSB: weewx weather system. >> pi@weather2:/home/weewx $ date >> Fri 16 Dec 14:39:06 GMT 2016 >> pi@weather2:/home/weewx $ >> >> >> Connection problem, having disturbed a cable that was left to it's own >> devices for 4 years? New USB cable maybe? >> >> >> On Friday, 16 December 2016 14:15:44 UTC, Tom Keffer wrote: >> >>> Take a look at the "driver" option in weewx.conf and make sure it's >>> correct. >>> >>> If that's not the problem, then set debug=1, restart weewx, then follow >>> Andrew's suggestion of posting more of the log. >>> >>> -tk >>> >>> On Fri, Dec 16, 2016 at 5:57 AM, Auchtermuchty Weather < >>> shunr...@gmail.com> wrote: >>> I was going to say this should be painless after some experimentation and realising I just needed (in outline) to copy over /home/weewx, and upgrade with setup.py - that was how I originally installed it, and I prefer having everything in one directory. However... Am getting these errors in syslog: Dec 16 13:32:12 weather2 weewx[625]: import of driver failed: 'module'
Re: [weewx-user] Re: Replacing the Raspberry Pi
or you could just have it routed badly now near some form of interference .. slow down 1. connect all your hardware 2. stop weewx 3. set debug = 1 in weewx.conf 3. start weewx 4. wait for weewx to get 'missing' archive records from console if there are any to retrieve 5.wait for first archive interval to pass (5 or 10 minutes??) 6. post log from start to first interval if you still have problems. If all is well edit weewx.conf to turn debug off and restart weewx On Friday, 16 December 2016 16:40:53 UTC+2, Auchtermuchty Weather wrote: > I shut down weewx and rebooted the Pi as it occurred to me hot plugging > the weather station might be a problem, and then restarted Pi again with > 'debug=1'. It's not finding the weather station: > > Dec 16 14:23:02 weather2 systemd[1]: Stopping LSB: weewx weather system... > Dec 16 14:23:02 weather2 weewx[9448]: Stopping weewx weather system: weewx > not running > Dec 16 14:23:02 weather2 systemd[1]: Starting LSB: weewx weather system... > Dec 16 14:23:03 weather2 weewx[9472]: engine: Initializing weewx version > 3.6.2 > Dec 16 14:23:03 weather2 weewx[9472]: engine: Using Python 2.7.9 (default, > Sep 17 2016, 20:26:04) #012[GCC 4.9.2] > Dec 16 14:23:03 weather2 weewx[9472]: engine: Platform > Linux-4.4.34+-armv6l-with-debian-8.0 > Dec 16 14:23:04 weather2 weewx[9472]: engine: pid file is > /var/run/weewx.pid > Dec 16 14:23:04 weather2 weewx[9462]: Starting weewx weather system: weewx. > Dec 16 14:23:04 weather2 systemd[1]: Started LSB: weewx weather system. > Dec 16 14:23:04 weather2 weewx[9476]: engine: Using configuration file > /home/weewx/weewx.conf > Dec 16 14:23:04 weather2 weewx[9476]: engine: Initializing engine > Dec 16 14:23:04 weather2 weewx[9476]: engine: Loading station type > FineOffsetUSB (weewx.drivers.fousb) > Dec 16 14:23:04 weather2 weewx[9476]: fousb: driver version is 1.9 > Dec 16 14:23:04 weather2 weewx[9476]: fousb: polling mode is PERIODIC > Dec 16 14:23:04 weather2 weewx[9476]: fousb: polling interval is 60 > Dec 16 14:23:04 weather2 weewx[9476]: fousb: Cannot find USB device with > Vendor=0x1941 ProdID=0x8021 Device=None > Dec 16 14:23:04 weather2 weewx[9476]: import of driver failed: Unable to > find USB device () > Dec 16 14:23:04 weather2 weewx[9476]: engine: Unable to load driver: > Unable to find USB device > Dec 16 14:23:04 weather2 weewx[9476]: Exiting... > > FineOffset is correct. > > > Fiddling with the cable produced several of these: > Dec 16 14:27:50 weather2 kernel: [ 1703.009271] usb 1-1.2: new low-speed > USB device number 5 using dwc_otg > Dec 16 14:27:50 weather2 kernel: [ 1703.155425] usb 1-1.2: New USB device > found, idVendor=1941, idProduct=8021 > Dec 16 14:27:50 weather2 kernel: [ 1703.155465] usb 1-1.2: New USB device > strings: Mfr=0, Product=0, SerialNumber=0 > Dec 16 14:27:50 weather2 kernel: [ 1703.213542] hid-generic > 0003:1941:8021.0001: hiddev0,hidraw0: USB HID v1.00 Device [HID 1941:8021] > on usb-2098.usb-1.2/input0 > > And I have this: > pi@weather2:/home/weewx $ sudo lsusb > Bus 001 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless > Adapter > Bus 001 Device 008: ID 1941:8021 Dream Link WH1080 Weather Station / USB > Missile Launcher > Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 > Fast Ethernet Adapter > Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub > > Restarted weewx, the tail of syslog: > 021] on usb-2098.usb-1.2/input0 > Dec 16 14:30:38 weather2 systemd[1]: Started LSB: weewx weather system. > pi@weather2:/home/weewx $ date > Fri 16 Dec 14:39:06 GMT 2016 > pi@weather2:/home/weewx $ > > > Connection problem, having disturbed a cable that was left to it's own > devices for 4 years? New USB cable maybe? > > > On Friday, 16 December 2016 14:15:44 UTC, Tom Keffer wrote: > >> Take a look at the "driver" option in weewx.conf and make sure it's >> correct. >> >> If that's not the problem, then set debug=1, restart weewx, then follow >> Andrew's suggestion of posting more of the log. >> >> -tk >> >> On Fri, Dec 16, 2016 at 5:57 AM, Auchtermuchty Weather < >> shunr...@gmail.com> wrote: >> >>> I was going to say this should be painless after some experimentation >>> and realising I just needed (in outline) to copy over /home/weewx, and >>> upgrade with setup.py - that was how I originally installed it, and I >>> prefer having everything in one directory. >>> >>> However... Am getting these errors in syslog: >>> >>> Dec 16 13:32:12 weather2 weewx[625]: import of driver failed: 'module' >>> object has no attribute 'getAltitudeM' () >>> Dec 16 13:32:12 weather2 weewx[625]: engine: Unable to load driver: >>> 'module' object has no attribute 'getAltitudeM' >>> Dec 16 13:32:12 weather2 weewx[625]: Exiting... >>> Dec 16 13:35:34 weather2 rsyslogd-2007: action 'action 17' suspended, >>> next retry is Fri Dec 16
Re: [weewx-user] Re: Replacing the Raspberry Pi
Take a look at the "driver" option in weewx.conf and make sure it's correct. If that's not the problem, then set debug=1, restart weewx, then follow Andrew's suggestion of posting more of the log. -tk On Fri, Dec 16, 2016 at 5:57 AM, Auchtermuchty Weatherwrote: > I was going to say this should be painless after some experimentation and > realising I just needed (in outline) to copy over /home/weewx, and upgrade > with setup.py - that was how I originally installed it, and I prefer having > everything in one directory. > > However... Am getting these errors in syslog: > > Dec 16 13:32:12 weather2 weewx[625]: import of driver failed: 'module' > object has no attribute 'getAltitudeM' () > Dec 16 13:32:12 weather2 weewx[625]: engine: Unable to load driver: > 'module' object has no attribute 'getAltitudeM' > Dec 16 13:32:12 weather2 weewx[625]: Exiting... > Dec 16 13:35:34 weather2 rsyslogd-2007: action 'action 17' suspended, next > retry is Fri Dec 16 13:36:34 2016 [try http://www.rsyslog.com/e/2007 ] > > There is no output to /home/weewx/public_html being created - the most > recent time is before I stopped the old Pi. > > On Friday, 9 December 2016 10:41:37 UTC, Auchtermuchty Weather wrote: > >> I realised that not only am I running an old (2.7) version of Weewx, the >> RPi it's on is short of room on the SD card - it's an old B model with an >> SD card. >> >> I had a B+ Pi doing nothing (Micro SD card, 4 USB ports) so I put the >> latest Raspberrian on an 8GB card and then installed Weewx and it's working >> fine with the simulator - the HTML files are being produced with correct >> units & layout. >> >> Not quite sure what the process of changing the two over is though. I >> know I will have to copy some stuff across (not a problem as both are on my >> network), not sure what stuff though. >> >> Nor am I sure if there are any 'gotchas' I need to be aware of. >> >> -- > 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. > -- 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.
Re: [weewx-user] Re: Replacing the Raspberry Pi
The penny has dropped that I had the new RPi uploading to a different folder on the web server. The one it will use when running live of course has it's NOAA folder complete! It doesn't matter if it's incomplete on the RPi. On Friday, 9 December 2016 18:58:46 UTC, Andrew Milner wrote: > > If you delete the NOAA dire3cory it will be re-created on the firs report > run > > > On Friday, 9 December 2016 20:55:14 UTC+2, Auchtermuchty Weather wrote: > >> *"I'm going to try copying the entire /home/weewx tree to the new RPi and >> then use setup.py to upgrade there, and see how it goes."* >> >> That seems to work including the Ftp (I had passwd not password!), so I >> will stop the old Pi, take another copy etc. and put it on the new Pi and >> take it from there. However I do also need to copy the NOAA directory to >> the web server that the Internet sees. >> >> >> >> On Friday, 9 December 2016 16:27:32 UTC, Tom Keffer wrote: >> >>> Keep it simple. >>> >>> Your strategy is a reasonable, simple one. Go for it. >>> >>> -tk >>> >>> On Fri, Dec 9, 2016 at 5:26 AM, Auchtermuchty Weather < >>> shunr...@gmail.com> wrote: >>> Clean install of the OS, Weewx or both? I'm going to try copying the entire /home/weewx tree to the new RPi and then use setup.py to upgrade there, and see how it goes. On Friday, 9 December 2016 12:19:47 UTC, Andrew Milner wrote: > Dave - I don't think that would move from Wheezy to Jessie, and I seem > to recall that Raspberry recommended a clean install when going to Jessie. > > > > On Friday, 9 December 2016 14:15:49 UTC+2, Dave Webb wrote: > >> Why don't you just upgrade everything on the currently running Pi >> including weewx then copy the card and burn to bigger SD card. After you >> do >> that you can put the card in the B+. >> >> https://www.raspberrypi.org/documentation/raspbian/updating.md >> >> Dave-KB1PVH >> >> >> Sent from my Galaxy S7 >> >> On Dec 9, 2016 7:07 AM, "Auchtermuchty Weather">> wrote: >> >>> OK, so there is nothing else? Was wondering about the NOAA stuff? >>> >>> I will try copying the weewx.sdb over and recreating stats.sdb. >>> >>> On Friday, 9 December 2016 11:55:40 UTC, Andrew Milner wrote: >>> If you installed weewx 3.6.2 then the old 2.7 database will need to be updated to the new format. The easiest way of updating is to copy over the archive sdb file and use the 3.6 utilities for database manipulation (see documentation) to create the daily summaries (the old stats database). On Friday, 9 December 2016 12:41:37 UTC+2, Auchtermuchty Weather wrote: > I realised that not only am I running an old (2.7) version of > Weewx, the RPi it's on is short of room on the SD card - it's an old > B > model with an SD card. > > I had a B+ Pi doing nothing (Micro SD card, 4 USB ports) so I put > the latest Raspberrian on an 8GB card and then installed Weewx and > it's > working fine with the simulator - the HTML files are being produced > with > correct units & layout. > > Not quite sure what the process of changing the two over is > though. I know I will have to copy some stuff across (not a problem > as > both are on my network), not sure what stuff though. > > Nor am I sure if there are any 'gotchas' I need to be aware of. > > -- >>> 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+...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- 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+...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. >>> >>> -- 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.
Re: [weewx-user] Re: Replacing the Raspberry Pi
If you delete the NOAA dire3cory it will be re-created on the firs report run On Friday, 9 December 2016 20:55:14 UTC+2, Auchtermuchty Weather wrote: > *"I'm going to try copying the entire /home/weewx tree to the new RPi and > then use setup.py to upgrade there, and see how it goes."* > > That seems to work including the Ftp (I had passwd not password!), so I > will stop the old Pi, take another copy etc. and put it on the new Pi and > take it from there. However I do also need to copy the NOAA directory to > the web server that the Internet sees. > > > > On Friday, 9 December 2016 16:27:32 UTC, Tom Keffer wrote: > >> Keep it simple. >> >> Your strategy is a reasonable, simple one. Go for it. >> >> -tk >> >> On Fri, Dec 9, 2016 at 5:26 AM, Auchtermuchty Weather> > wrote: >> >>> Clean install of the OS, Weewx or both? >>> >>> I'm going to try copying the entire /home/weewx tree to the new RPi and >>> then use setup.py to upgrade there, and see how it goes. >>> >>> >>> On Friday, 9 December 2016 12:19:47 UTC, Andrew Milner wrote: >>> Dave - I don't think that would move from Wheezy to Jessie, and I seem to recall that Raspberry recommended a clean install when going to Jessie. On Friday, 9 December 2016 14:15:49 UTC+2, Dave Webb wrote: > Why don't you just upgrade everything on the currently running Pi > including weewx then copy the card and burn to bigger SD card. After you > do > that you can put the card in the B+. > > https://www.raspberrypi.org/documentation/raspbian/updating.md > > Dave-KB1PVH > > > Sent from my Galaxy S7 > > On Dec 9, 2016 7:07 AM, "Auchtermuchty Weather" > wrote: > >> OK, so there is nothing else? Was wondering about the NOAA stuff? >> >> I will try copying the weewx.sdb over and recreating stats.sdb. >> >> On Friday, 9 December 2016 11:55:40 UTC, Andrew Milner wrote: >> >>> If you installed weewx 3.6.2 then the old 2.7 database will need to >>> be updated to the new format. The easiest way of updating is to copy >>> over >>> the archive sdb file and use the 3.6 utilities for database >>> manipulation >>> (see documentation) to create the daily summaries (the old stats >>> database). >>> >>> >>> >>> On Friday, 9 December 2016 12:41:37 UTC+2, Auchtermuchty Weather >>> wrote: >>> I realised that not only am I running an old (2.7) version of Weewx, the RPi it's on is short of room on the SD card - it's an old B model with an SD card. I had a B+ Pi doing nothing (Micro SD card, 4 USB ports) so I put the latest Raspberrian on an 8GB card and then installed Weewx and it's working fine with the simulator - the HTML files are being produced with correct units & layout. Not quite sure what the process of changing the two over is though. I know I will have to copy some stuff across (not a problem as both are on my network), not sure what stuff though. Nor am I sure if there are any 'gotchas' I need to be aware of. -- >> 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+...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > -- >>> 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+...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- 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.
Re: [weewx-user] Re: Replacing the Raspberry Pi
*"I'm going to try copying the entire /home/weewx tree to the new RPi and then use setup.py to upgrade there, and see how it goes."* That seems to work including the Ftp (I had passwd not password!), so I will stop the old Pi, take another copy etc. and put it on the new Pi and take it from there. However I do also need to copy the NOAA directory to the web server that the Internet sees. On Friday, 9 December 2016 16:27:32 UTC, Tom Keffer wrote: > Keep it simple. > > Your strategy is a reasonable, simple one. Go for it. > > -tk > > On Fri, Dec 9, 2016 at 5:26 AM, Auchtermuchty Weather> wrote: > >> Clean install of the OS, Weewx or both? >> >> I'm going to try copying the entire /home/weewx tree to the new RPi and >> then use setup.py to upgrade there, and see how it goes. >> >> >> On Friday, 9 December 2016 12:19:47 UTC, Andrew Milner wrote: >> >>> Dave - I don't think that would move from Wheezy to Jessie, and I seem >>> to recall that Raspberry recommended a clean install when going to Jessie. >>> >>> >>> >>> On Friday, 9 December 2016 14:15:49 UTC+2, Dave Webb wrote: >>> Why don't you just upgrade everything on the currently running Pi including weewx then copy the card and burn to bigger SD card. After you do that you can put the card in the B+. https://www.raspberrypi.org/documentation/raspbian/updating.md Dave-KB1PVH Sent from my Galaxy S7 On Dec 9, 2016 7:07 AM, "Auchtermuchty Weather" wrote: > OK, so there is nothing else? Was wondering about the NOAA stuff? > > I will try copying the weewx.sdb over and recreating stats.sdb. > > On Friday, 9 December 2016 11:55:40 UTC, Andrew Milner wrote: > >> If you installed weewx 3.6.2 then the old 2.7 database will need to >> be updated to the new format. The easiest way of updating is to copy >> over >> the archive sdb file and use the 3.6 utilities for database manipulation >> (see documentation) to create the daily summaries (the old stats >> database). >> >> >> >> On Friday, 9 December 2016 12:41:37 UTC+2, Auchtermuchty Weather >> wrote: >> >>> I realised that not only am I running an old (2.7) version of Weewx, >>> the RPi it's on is short of room on the SD card - it's an old B model >>> with >>> an SD card. >>> >>> I had a B+ Pi doing nothing (Micro SD card, 4 USB ports) so I put >>> the latest Raspberrian on an 8GB card and then installed Weewx and it's >>> working fine with the simulator - the HTML files are being produced >>> with >>> correct units & layout. >>> >>> Not quite sure what the process of changing the two over is though. >>> I know I will have to copy some stuff across (not a problem as both are >>> on >>> my network), not sure what stuff though. >>> >>> Nor am I sure if there are any 'gotchas' I need to be aware of. >>> >>> -- > 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+...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- >> 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+...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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.
Re: [weewx-user] Re: Replacing the Raspberry Pi
Keep it simple. Your strategy is a reasonable, simple one. Go for it. -tk On Fri, Dec 9, 2016 at 5:26 AM, Auchtermuchty Weatherwrote: > Clean install of the OS, Weewx or both? > > I'm going to try copying the entire /home/weewx tree to the new RPi and > then use setup.py to upgrade there, and see how it goes. > > > On Friday, 9 December 2016 12:19:47 UTC, Andrew Milner wrote: > >> Dave - I don't think that would move from Wheezy to Jessie, and I seem to >> recall that Raspberry recommended a clean install when going to Jessie. >> >> >> >> On Friday, 9 December 2016 14:15:49 UTC+2, Dave Webb wrote: >> >>> Why don't you just upgrade everything on the currently running Pi >>> including weewx then copy the card and burn to bigger SD card. After you do >>> that you can put the card in the B+. >>> >>> https://www.raspberrypi.org/documentation/raspbian/updating.md >>> >>> Dave-KB1PVH >>> >>> >>> Sent from my Galaxy S7 >>> >>> On Dec 9, 2016 7:07 AM, "Auchtermuchty Weather" >>> wrote: >>> OK, so there is nothing else? Was wondering about the NOAA stuff? I will try copying the weewx.sdb over and recreating stats.sdb. On Friday, 9 December 2016 11:55:40 UTC, Andrew Milner wrote: > If you installed weewx 3.6.2 then the old 2.7 database will need to be > updated to the new format. The easiest way of updating is to copy over > the > archive sdb file and use the 3.6 utilities for database manipulation (see > documentation) to create the daily summaries (the old stats database). > > > > On Friday, 9 December 2016 12:41:37 UTC+2, Auchtermuchty Weather wrote: > >> I realised that not only am I running an old (2.7) version of Weewx, >> the RPi it's on is short of room on the SD card - it's an old B model >> with >> an SD card. >> >> I had a B+ Pi doing nothing (Micro SD card, 4 USB ports) so I put the >> latest Raspberrian on an 8GB card and then installed Weewx and it's >> working >> fine with the simulator - the HTML files are being produced with correct >> units & layout. >> >> Not quite sure what the process of changing the two over is though. >> I know I will have to copy some stuff across (not a problem as both are >> on >> my network), not sure what stuff though. >> >> Nor am I sure if there are any 'gotchas' I need to be aware of. >> >> -- 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+...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. >>> -- > 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. > -- 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.
Re: [weewx-user] Re: Replacing the Raspberry Pi
On Friday, December 9, 2016 at 5:26:53 AM UTC-8, Auchtermuchty Weather wrote: > > Clean install of the OS, Weewx or both? > > I'm going to try copying the entire /home/weewx tree to the new RPi and > then use setup.py to upgrade there, and see how it goes. > >> The thing in a 2.x => 3.x weewx upgrade that takes a 'lot' of time, and even fails sometime on a pi specifically, is the database conversion. If you had a fast system that you could do a quick Vagrant VM or Docker container of weewx on, you could do your database conversion offline and just copy the /home/weewx/archive tree into place onto the new pi. Similarly your old public_html tree is still good, so you could just copy that tree into place too on the pi. That's the fastest and most reliable way I've found. I have stuff on github for how to quickly spin up a vagrant box running weewx 'or' a docker container running weewx if you have interest. Email me for the links. If your new pi+ disk has 3.6.2 on it and working in simulator mode already, you'll also have to eventually change the driver from Simulator to whatever your system uses, and also change the interface to match whether you're serial or usb. Pretty normal weewx stuff there. Just make sure you stop weewx so your don't get simulator data corrupting your converted historical data. If you've edited any of the skins, you'd have to copy them into place too. -- 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.
Re: [weewx-user] Re: Replacing the Raspberry Pi
Dave - I don't think that would move from Wheezy to Jessie, and I seem to recall that Raspberry recommended a clean install when going to Jessie. On Friday, 9 December 2016 14:15:49 UTC+2, Dave Webb wrote: > Why don't you just upgrade everything on the currently running Pi > including weewx then copy the card and burn to bigger SD card. After you do > that you can put the card in the B+. > > https://www.raspberrypi.org/documentation/raspbian/updating.md > > Dave-KB1PVH > > > Sent from my Galaxy S7 > > On Dec 9, 2016 7:07 AM, "Auchtermuchty Weather"> wrote: > >> OK, so there is nothing else? Was wondering about the NOAA stuff? >> >> I will try copying the weewx.sdb over and recreating stats.sdb. >> >> On Friday, 9 December 2016 11:55:40 UTC, Andrew Milner wrote: >> >>> If you installed weewx 3.6.2 then the old 2.7 database will need to be >>> updated to the new format. The easiest way of updating is to copy over the >>> archive sdb file and use the 3.6 utilities for database manipulation (see >>> documentation) to create the daily summaries (the old stats database). >>> >>> >>> >>> On Friday, 9 December 2016 12:41:37 UTC+2, Auchtermuchty Weather wrote: >>> I realised that not only am I running an old (2.7) version of Weewx, the RPi it's on is short of room on the SD card - it's an old B model with an SD card. I had a B+ Pi doing nothing (Micro SD card, 4 USB ports) so I put the latest Raspberrian on an 8GB card and then installed Weewx and it's working fine with the simulator - the HTML files are being produced with correct units & layout. Not quite sure what the process of changing the two over is though. I know I will have to copy some stuff across (not a problem as both are on my network), not sure what stuff though. Nor am I sure if there are any 'gotchas' I need to be aware of. -- >> 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+...@googlegroups.com . >> For more options, visit https://groups.google.com/d/optout. >> > -- 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.
Re: [weewx-user] Re: Replacing the Raspberry Pi
Why don't you just upgrade everything on the currently running Pi including weewx then copy the card and burn to bigger SD card. After you do that you can put the card in the B+. https://www.raspberrypi.org/documentation/raspbian/updating.md Dave-KB1PVH Sent from my Galaxy S7 On Dec 9, 2016 7:07 AM, "Auchtermuchty Weather"wrote: > OK, so there is nothing else? Was wondering about the NOAA stuff? > > I will try copying the weewx.sdb over and recreating stats.sdb. > > On Friday, 9 December 2016 11:55:40 UTC, Andrew Milner wrote: > >> If you installed weewx 3.6.2 then the old 2.7 database will need to be >> updated to the new format. The easiest way of updating is to copy over the >> archive sdb file and use the 3.6 utilities for database manipulation (see >> documentation) to create the daily summaries (the old stats database). >> >> >> >> On Friday, 9 December 2016 12:41:37 UTC+2, Auchtermuchty Weather wrote: >> >>> I realised that not only am I running an old (2.7) version of Weewx, the >>> RPi it's on is short of room on the SD card - it's an old B model with an >>> SD card. >>> >>> I had a B+ Pi doing nothing (Micro SD card, 4 USB ports) so I put the >>> latest Raspberrian on an 8GB card and then installed Weewx and it's working >>> fine with the simulator - the HTML files are being produced with correct >>> units & layout. >>> >>> Not quite sure what the process of changing the two over is though. I >>> know I will have to copy some stuff across (not a problem as both are on my >>> network), not sure what stuff though. >>> >>> Nor am I sure if there are any 'gotchas' I need to be aware of. >>> >>> -- > 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. > -- 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.