Re: [weewx-user] Re: Fresh install of weewx 3.9.1 with WMR300A on RPI, Non-positive value for record field 'interval': 0.0

2019-07-15 Thread Miguel Angel Peña Morales
Hello again.
Finally the result and the ultimate reason of my problem. 


THE RASPI 3 WAS FAULTY!!!


After 3 months of sort of working, it gived up locking up and don't even 
booting. Tried to reinstall raspbian and it failed miserably. Changed the 
sdcard and nothing... Connected a monitor and the screen showed the typical 
image corruption of fauty memory. Now it is working again flawessly on a 
Rpi 4 4GB. You can visit it on http://meteo.logrosan.com. I think it took 
me 30 minutes to install weewx and have it working from apt.

Thanks for everything and suspect some HW problem when it's kind of a 
impossible thing happening.

Regards!

El domingo, 26 de mayo de 2019, 20:14:42 (UTC+2), Miguel Angel Peña Morales 
escribió:
>
>
> Also, are there any other USB devices connected?
> No
> How long is your USB cable that connects to the WMR300?
> Is a standard cable. 1m or so. It worked before with a weather 
> display setup.
> Are you using an official Raspberry Pi power supply or another brand?
> Im using a Samsung brand PS. Shoud be enough to run as no message 
> of not enough juice is showing.
> (Newer RPI's draw up to 2.5amps, so it matters)...
>
> pi@raspberrypi:~ $ dmesg | grep "Machine model"
> [0.00] OF: fdt: Machine model: Raspberry Pi 3 Model B Rev 1.2
>
> pi@raspberrypi:~ $  uname -a
> Linux raspberrypi 4.19.42-v7+ #1219 SMP Tue May 14 21:20:58 BST 2019 
> armv7l GNU/Linux
>
> pi@raspberrypi:~ $ cat /etc/os-release
> PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
> NAME="Raspbian GNU/Linux"
> VERSION_ID="9"
> VERSION="9 (stretch)"
> ID=raspbian
> ID_LIKE=debian
> HOME_URL="http://www.raspbian.org/;
> SUPPORT_URL="http://www.raspbian.org/RaspbianForums;
> BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs;
>
> pi@raspberrypi:~ $ cat /proc/cpuinfo
> processor   : 0
> model name  : ARMv7 Processor rev 4 (v7l)
> BogoMIPS: 38.40
> Features: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva 
> idivt vfpd32 lpae evtstrm crc32
> CPU implementer : 0x41
> CPU architecture: 7
> CPU variant : 0x0
> CPU part: 0xd03
> CPU revision: 4
>
>
> processor   : 1
> model name  : ARMv7 Processor rev 4 (v7l)
> BogoMIPS: 38.40
> Features: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva 
> idivt vfpd32 lpae evtstrm crc32
> CPU implementer : 0x41
> CPU architecture: 7
> CPU variant : 0x0
> CPU part: 0xd03
> CPU revision: 4
>
>
> processor   : 2
> model name  : ARMv7 Processor rev 4 (v7l)
> BogoMIPS: 38.40
> Features: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva 
> idivt vfpd32 lpae evtstrm crc32
> CPU implementer : 0x41
> CPU architecture: 7
> CPU variant : 0x0
> CPU part: 0xd03
> CPU revision: 4
>
>
> processor   : 3
> model name  : ARMv7 Processor rev 4 (v7l)
> BogoMIPS: 38.40
> Features: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva 
> idivt vfpd32 lpae evtstrm crc32
> CPU implementer : 0x41
> CPU architecture: 7
> CPU variant : 0x0
> CPU part: 0xd03
> CPU revision: 4
>
>
> Hardware: BCM2835
> Revision: a22082
> Serial  : e4f0db99
>
> pi@raspberrypi:~ $ head -3 /proc/meminfo
> MemTotal: 948304 kB
> MemFree:  548404 kB
> MemAvailable: 723760 kB
> pi@raspberrypi:~ $ htop
>
>
>
>   1  [|||   2.9%]   Tasks: 62, 
> 59 thr; 1 running
>   2  [| 0.7%]   Load 
> average: 0.41 0.54 0.50
>   3  [  0.0%]   Uptime: 05
> :46:29
>   4  [  0.0%]
>   Mem[|||  169M/926M]
>   Swp[ 0K/100.0M]
>
>
>   PID USER  PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
> 1 root   20   0 27136  6132  4880 S  0.0  0.6  0:06.25 /sbin/init
>  1245 root   20   0  108M 69052  8748 S 32.0  7.3  2h23:24 ├─ python /
> usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid /e
>  1252 root   20   0  108M 69052  8748 S  0.0  7.3  0:03.03 │  ├─ 
> python /usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid
>  1251 root   20   0  108M 69052  8748 S  0.0  7.3  0:00.05 │  ├─ 
> python /usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid
>  1250 root   20   0  108M 69052  8748 S  0.0  7.3  0:00.00 │  └─ 
> python /usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid
>   794 root   20   0 59220  8680  7148 S  0.0  0.9  0:00.34 ├─ /usr/lib
> /udisks2/udisksd --no-debug
>   802 root   20   0 59220  8680  7148 S  0.0  0.9  0:00.00 │  ├─ /usr/
> lib/udisks2/udisksd --no-debug
>   801 root   20   0 59220  8680  7148 S  0.0  0.9  0:00.00 │  ├─ /usr/
> lib/udisks2/udisksd --no-debug
>   800 root   20   0 59220  8680  7148 S  0.0  0.9  0:00.01 │  ├─ /usr/
> lib/udisks2/udisksd 

Re: [weewx-user] Re: Fresh install of weewx 3.9.1 with WMR300A on RPI, Non-positive value for record field 'interval': 0.0

2019-05-26 Thread Miguel Angel Peña Morales

Also, are there any other USB devices connected?
No
How long is your USB cable that connects to the WMR300?
Is a standard cable. 1m or so. It worked before with a weather 
display setup.
Are you using an official Raspberry Pi power supply or another brand?
Im using a Samsung brand PS. Shoud be enough to run as no message 
of not enough juice is showing.
(Newer RPI's draw up to 2.5amps, so it matters)...

pi@raspberrypi:~ $ dmesg | grep "Machine model"
[0.00] OF: fdt: Machine model: Raspberry Pi 3 Model B Rev 1.2

pi@raspberrypi:~ $  uname -a
Linux raspberrypi 4.19.42-v7+ #1219 SMP Tue May 14 21:20:58 BST 2019 armv7l 
GNU/Linux

pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/;
SUPPORT_URL="http://www.raspbian.org/RaspbianForums;
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs;

pi@raspberrypi:~ $ cat /proc/cpuinfo
processor   : 0
model name  : ARMv7 Processor rev 4 (v7l)
BogoMIPS: 38.40
Features: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva 
idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part: 0xd03
CPU revision: 4


processor   : 1
model name  : ARMv7 Processor rev 4 (v7l)
BogoMIPS: 38.40
Features: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva 
idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part: 0xd03
CPU revision: 4


processor   : 2
model name  : ARMv7 Processor rev 4 (v7l)
BogoMIPS: 38.40
Features: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva 
idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part: 0xd03
CPU revision: 4


processor   : 3
model name  : ARMv7 Processor rev 4 (v7l)
BogoMIPS: 38.40
Features: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva 
idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part: 0xd03
CPU revision: 4


Hardware: BCM2835
Revision: a22082
Serial  : e4f0db99

pi@raspberrypi:~ $ head -3 /proc/meminfo
MemTotal: 948304 kB
MemFree:  548404 kB
MemAvailable: 723760 kB
pi@raspberrypi:~ $ htop



  1  [|||   2.9%]   Tasks: 62, 
59 thr; 1 running
  2  [| 0.7%]   Load average
: 0.41 0.54 0.50
  3  [  0.0%]   Uptime: 05:
46:29
  4  [  0.0%]
  Mem[|||  169M/926M]
  Swp[ 0K/100.0M]


  PID USER  PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
1 root   20   0 27136  6132  4880 S  0.0  0.6  0:06.25 /sbin/init
 1245 root   20   0  108M 69052  8748 S 32.0  7.3  2h23:24 ├─ python /
usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid /e
 1252 root   20   0  108M 69052  8748 S  0.0  7.3  0:03.03 │  ├─ python 
/usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid
 1251 root   20   0  108M 69052  8748 S  0.0  7.3  0:00.05 │  ├─ python 
/usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid
 1250 root   20   0  108M 69052  8748 S  0.0  7.3  0:00.00 │  └─ python 
/usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid
  794 root   20   0 59220  8680  7148 S  0.0  0.9  0:00.34 ├─ /usr/lib/
udisks2/udisksd --no-debug
  802 root   20   0 59220  8680  7148 S  0.0  0.9  0:00.00 │  ├─ /usr/
lib/udisks2/udisksd --no-debug
  801 root   20   0 59220  8680  7148 S  0.0  0.9  0:00.00 │  ├─ /usr/
lib/udisks2/udisksd --no-debug
  800 root   20   0 59220  8680  7148 S  0.0  0.9  0:00.01 │  ├─ /usr/
lib/udisks2/udisksd --no-debug
  796 root   20   0 59220  8680  7148 S  0.0  0.9  0:00.00 │  └─ /usr/
lib/udisks2/udisksd --no-debug
  733 pi 20   0 28440  6136  5640 S  0.0  0.6  0:00.08 ├─ /usr/lib/
menu-cache/menu-cached /run/user/1000/menu-cached-:0
  736 pi 20   0 28440  6136  5640 S  0.0  0.6  0:00.00 │  ├─ /usr/
lib/menu-cache/menu-cached /run/user/1000/menu-cached-:
  735 pi 20   0 28440  6136  5640 S  0.0  0.6  0:00.00 │  └─ /usr/
lib/menu-cache/menu-cached /run/user/1000/menu-cached-:
  716 root   20   0 40196  7420  6696 S  0.0  0.8  0:00.15 ├─ /usr/lib/
policykit-1/polkitd --no-debug
  719 root   20   0 40196  7420  6696 S  0.0  0.8  0:00.02 │  ├─ /usr/
lib/policykit-1/polkitd --no-debug
  717 root   20   0 40196  7420  6696 S  0.0  0.8  0:00.00 │  └─ /usr/
lib/policykit-1/polkitd --no-debug
  708 pi 20   0  3788   22016 S  0.0  0.0  0:00.00 ├─ /usr/bin/
ssh-agent -s
  604 root   20   0 35044  3520  3204 

Re: [weewx-user] Re: Fresh install of weewx 3.9.1 with WMR300A on RPI, Non-positive value for record field 'interval': 0.0

2019-05-24 Thread Leon Shaner
Hi, Miguel,

I see you are running the latest wmr300.py version 0.19rc6+f3+l2, which has 
Cameron D's history clearing fixes any the rain counter warning enhancement.  
This is good.

However, I've never seen this type of error before:

May 24 08:49:31 raspberrypi weewx[10767]: wmr300: Excessive heartbeat delay: 
90s, restarting

Which raspberry pi do you have and which kernel?
Also, are there any other USB devices connected?
How long is your USB cable that connects to the WMR300?
Are you using an official Raspberry Pi power supply or another brand?
(Newer RPI's draw up to 2.5amps, so it matters)...

Here is what I am running on...

 $ dmesg | grep "Machine model"
[0.00] OF: fdt: Machine model: Raspberry Pi Zero W Rev 1.1

$ uname -a
Linux nixie 4.19.42+ #1219 Tue May 14 21:16:38 BST 2019 armv6l GNU/Linux

$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/;
SUPPORT_URL="http://www.raspbian.org/RaspbianForums;
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs;

$ cat /proc/cpuinfo
processor   : 0
model name  : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS: 997.08
Features: half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part: 0xb76
CPU revision: 7

Hardware: BCM2835
Revision: 9000c1
Serial  : f7e29d3c


$ head -3 /proc/meminfo
MemTotal: 443132 kB
MemFree:  182188 kB
MemAvailable: 272340 kB


Regards,
\Leon
--
Leon Shaner :: Dearborn, Michigan (iPad Pro)

> On May 24, 2019, at 4:52 AM, Miguel Angel Peña Morales 
>  wrote:
> 
> May 24 08:33:51 raspberrypi systemd[1]: Started LSB: weewx weather system.
> May 24 08:33:51 raspberrypi weewx[10767]: engine: Using configuration file 
> /etc/weewx/weewx.conf
> May 24 08:33:51 raspberrypi weewx[10767]: engine: Loading station type WMR300 
> (weewx.drivers.wmr300)
> May 24 08:33:51 raspberrypi weewx[10767]: wmr300: driver version is 
> 0.19rc6+f3+l2
> May 24 08:33:51 raspberrypi weewx[10767]: wmr300: usb info: 
> pyusb_version=1.0.0
> May 24 08:33:51 raspberrypi weewx[10767]: wmr300: sensor map is 
> {'outHumidity': 'humidity_1', 'extraDewpoint6': 'dewpoint_7', 'windchill': 
> 'windchill', 'extraDewpoint4': 'dewpoint_5', 'rainRate': 'rain_rate', 
> 'heatindex': 'heatindex_1', 'inTemp': 'temperature_0', 'windGustDir': 
> 'wind_gust_dir', 'extraDewpoint2': 'dewpoint_3', 'extraDewpoint3': 
> 'dewpoint_4', 'extraDewpoint1': 'dewpoint_2', 'barometer': 'barometer', 
> 'extraDewpoint7': 'dewpoint_8', 'dewpoint': 'dewpoint_1', 'extraDewpoint5': 
> 'dewpoint_6', 'extraHumid6': 'humidity_7', 'pressure': 'pressure', 
> 'extraHumid4': 'humidity_5', 'extraHumid5': 'humidity_6', 'extraHumid2': 
> 'humidity_3', 'extraHumid3': 'humidity_4', 'extraHumid1': 'humidity_2', 
> 'extraTemp6': 'temperature_7', 'extraTemp7': 'temperature_8', 'extraTemp4': 
> 'temperature_5', 'extraTemp5': 'temperature_6', 'extraTemp2': 
> 'temperature_3', 'extraTemp3': 'temperature_4', 'extraTemp1': 
> 'temperature_2', 'extraHeatindex3': 'heatindex_4', 'extraHeatindex2': 
> 'heatindex_3', 'extraHeatindex1': 'heatindex_2', 'extraHeatindex7': 
> 'heatindex_8', 'extraHeatindex6': 'heatindex_7', 'extraHeatindex5': 
> 'heatindex_6', 'extraHumid7': 'humidity_8', 'extraHeatindex4': 'heatindex_5', 
> 'windDir': 'wind_dir', 'outTemp': 'temperature_1', 'windSpeed': 'wind_avg', 
> 'inHumidity': 'humidity_0', 'windGust': 'wind_gust'}
> May 24 08:33:51 raspberrypi weewx[10767]: wmr300: history limit is 20% at 
> index 6572
> May 24 08:33:52 raspberrypi kernel: [39422.245849] usb 1-1.5: reset 
> full-speed USB device number 8 using dwc_otg
> May 24 08:33:52 raspberrypi weewx[10767]: wmr300: communication established: 
> {'history_end_index': 32735, 'station_model': 'A004', 'station_type': 
> 'WMR300', 'mystery1': 44, 'mystery0': 73, 'history_cleared': False, 'magic1': 
> 255, 'magic0': 255, 'packet_type': 87}
> May 24 08:33:52 raspberrypi weewx[10767]: engine: StdConvert target unit is 
> 0x1
> May 24 08:33:52 raspberrypi weewx[10767]: wxcalculate: The following values 
> will be calculated: barometer=prefer_hardware, windchill=hardware, 
> dewpoint=software, appTemp=prefer_hardware, rainRate=hardware, 
> windrun=prefer_hardware, heatindex=hardware, maxSolarRad=prefer_hardware, 
> humidex=prefer_hardware, pressure=prefer_hardware, 
> inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, 
> cloudbase=prefer_hardware
> May 24 08:33:52 raspberrypi weewx[10767]: wxcalculate: The following 
> algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
> May 24 08:33:52 raspberrypi weewx[10767]: engine: Archive will use data 
> binding wx_binding
> May 24 08:33:52 raspberrypi weewx[10767]: engine: Record generation will be 
> attempted in 'hardware'
> May 24 08:33:52 raspberrypi weewx[10767]: 

Re: [weewx-user] Re: Fresh install of weewx 3.9.1 with WMR300A on RPI, Non-positive value for record field 'interval': 0.0

2019-05-22 Thread Miguel Angel Peña Morales
I will post a cleaner log when I arrive home.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/44c4446e-72a3-4085-b17e-90f5ff52894a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Fresh install of weewx 3.9.1 with WMR300A on RPI, Non-positive value for record field 'interval': 0.0

2019-05-22 Thread Miguel Angel Peña Morales
No, as I said, that's not the problem. I solved that yesterday. The 
intermittent data is the problem. I searched the web for the error in the data 
flow and I think I'm the only one...

Thanks anyway.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/5673738a-cd0a-46f9-85ce-5a6956fc6d53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Fresh install of weewx 3.9.1 with WMR300A on RPI, Non-positive value for record field 'interval': 0.0

2019-05-21 Thread gjr80
Hi,

The clue is in this line:

May 20 16:55:53 raspberrypi weewx[3969]: cheetahgenerator:  Reason: 
cannot find 'map_1_link_url' while searching for 'Extras.map_1_link_url'

Have a look in the [Extras] section of the neowx skin.conf, the config 
option map_1_link_url appears to be missing. Suggest you check the 
install/config instructions for the neowx skin or go back to the author for 
help.

Gary


On Tuesday, 21 May 2019 03:49:49 UTC+10, Miguel Angel Peña Morales wrote:
>
> Hello again,
> afer some hard work I finally made it. Now I have some things that are not 
> working perfectly. 
>
> https://www.wunderground.com/dashboard/pws/IEXTREMA34
>
> This is my WUG place. It misses a lot of data. In my log there are lots of 
> this:
>
>  wmr300: Excessive heartbeat delay: 91s, restarting
>
>
> Here's a longer version. I know I have some problems with the skin, but 
> it's not urgent.
>
> May 20 16:54:21 raspberrypi weewx[3969]: wmr300: get history complete: 
> count=0 last_index=32734 history_end_index=32735
> May 20 16:55:50 raspberrypi weewx[3969]: wmr300: Excessive heartbeat 
> delay: 89s, restarting
> May 20 16:55:50 raspberrypi weewx[3969]: manager: Added record 2019-05-20 
> 16:55:00 GMT (1558371300) to database 'weewx.sdb'
> May 20 16:55:50 raspberrypi weewx[3969]: manager: Added record 2019-05-20 
> 16:55:00 GMT (1558371300) to daily summary in 'weewx.sdb'
> May 20 16:55:51 raspberrypi weewx[3969]: wmr300: dump history
> May 20 16:55:51 raspberrypi weewx[3969]: wmr300: Clearing records since 
> 2019-05-20 16:55:51 GMT (1558371351) (last_index=32734 
> history_end_index=32735)
> May 20 16:55:51 raspberrypi weewx[3969]: wmr300: get history complete: 
> count=0 last_index=32734 history_end_index=32735
> May 20 16:55:53 raspberrypi weewx[3969]: cheetahgenerator: Generate failed 
> with exception ''
> May 20 16:55:53 raspberrypi weewx[3969]: cheetahgenerator:  Ignoring 
> template /etc/weewx/skins/neowx/maps.html.tmpl
> May 20 16:55:53 raspberrypi weewx[3969]: cheetahgenerator:  Reason: 
> cannot find 'map_1_link_url' while searching for 'Extras.map_1_link_url'
> May 20 16:55:53 raspberrypi weewx[3969]:   Traceback (most recent call 
> last):
> May 20 16:55:53 raspberrypi weewx[3969]: File 
> "/usr/share/weewx/weewx/cheetahgenerator.py", line 332, in generate
> May 20 16:55:53 raspberrypi weewx[3969]:   
> fd.write(str(compiled_template))
> May 20 16:55:53 raspberrypi weewx[3969]: File 
> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
> __str__
> May 20 16:55:53 raspberrypi weewx[3969]:   rc = getattr(self, 
> mainMethName)()
> May 20 16:55:53 raspberrypi weewx[3969]: File 
> "_etc_weewx_skins_neowx_maps_html_tmpl.py", line 306, in respond
> May 20 16:55:53 raspberrypi weewx[3969]:   NotFound: cannot find 
> 'map_1_link_url' while searching for 'Extras.map_1_link_url'
> May 20 16:56:30 raspberrypi weewx[3969]: imagegenerator: Generated 12 
> images for basic in 35.86 seconds
> May 20 16:56:30 raspberrypi weewx[3969]: copygenerator: copied 17 files to 
> /var/www/html/weewx
> May 20 16:57:21 raspberrypi weewx[3969]: wmr300: Excessive heartbeat 
> delay: 91s, restarting
> May 20 16:57:21 raspberrypi weewx[3969]: wmr300: dump history
> May 20 16:57:21 raspberrypi weewx[3969]: wmr300: Clearing records since 
> 2019-05-20 16:57:21 GMT (1558371441) (last_index=32734 
> history_end_index=32735)
> May 20 16:57:22 raspberrypi weewx[3969]: wmr300: get history complete: 
> count=0 last_index=32734 history_end_index=32735
> May 20 16:58:52 raspberrypi weewx[3969]: wmr300: Excessive heartbeat 
> delay: 90s, restarting
> May 20 16:58:52 raspberrypi weewx[3969]: wmr300: dump history
> May 20 16:58:52 raspberrypi weewx[3969]: wmr300: Clearing records since 
> 2019-05-20 16:58:52 GMT (1558371532) (last_index=32734 
> history_end_index=32735)
> May 20 16:58:52 raspberrypi weewx[3969]: wmr300: get history complete: 
> count=0 last_index=32734 history_end_index=32735
> May 20 17:00:22 raspberrypi weewx[3969]: wmr300: Excessive heartbeat 
> delay: 90s, restarting
> May 20 17:00:23 raspberrypi weewx[3969]: manager: Added record 2019-05-20 
> 17:00:00 GMT (1558371600) to database 'weewx.sdb'
> May 20 17:00:23 raspberrypi weewx[3969]: manager: Added record 2019-05-20 
> 17:00:00 GMT (1558371600) to daily summary in 'weewx.sdb'
> May 20 17:00:23 raspberrypi weewx[3969]: wmr300: dump history
> May 20 17:00:23 raspberrypi weewx[3969]: wmr300: Clearing records since 
> 2019-05-20 17:00:23 GMT (1558371623) (last_index=32734 
> history_end_index=32735)
> May 20 17:00:23 raspberrypi weewx[3969]: wmr300: get history complete: 
> count=0 last_index=32734 history_end_index=32735
> May 20 17:00:25 raspberrypi weewx[3969]: cheetahgenerator: Generate failed 
> with exception ''
> May 20 17:00:25 raspberrypi weewx[3969]: cheetahgenerator:  Ignoring 
> template /etc/weewx/skins/neowx/maps.html.tmpl
> May 20 17:00:25 raspberrypi weewx[3969]: 

Re: [weewx-user] Re: Fresh install of weewx 3.9.1 with WMR300A on RPI, Non-positive value for record field 'interval': 0.0

2019-05-20 Thread Miguel Angel Peña Morales
Hello again,
afer some hard work I finally made it. Now I have some things that are not 
working perfectly. 

https://www.wunderground.com/dashboard/pws/IEXTREMA34

This is my WUG place. It misses a lot of data. In my log there are lots of 
this:

 wmr300: Excessive heartbeat delay: 91s, restarting


Here's a longer version. I know I have some problems with the skin, but 
it's not urgent.

May 20 16:54:21 raspberrypi weewx[3969]: wmr300: get history complete: 
count=0 last_index=32734 history_end_index=32735
May 20 16:55:50 raspberrypi weewx[3969]: wmr300: Excessive heartbeat delay: 
89s, restarting
May 20 16:55:50 raspberrypi weewx[3969]: manager: Added record 2019-05-20 
16:55:00 GMT (1558371300) to database 'weewx.sdb'
May 20 16:55:50 raspberrypi weewx[3969]: manager: Added record 2019-05-20 
16:55:00 GMT (1558371300) to daily summary in 'weewx.sdb'
May 20 16:55:51 raspberrypi weewx[3969]: wmr300: dump history
May 20 16:55:51 raspberrypi weewx[3969]: wmr300: Clearing records since 
2019-05-20 16:55:51 GMT (1558371351) (last_index=32734 
history_end_index=32735)
May 20 16:55:51 raspberrypi weewx[3969]: wmr300: get history complete: 
count=0 last_index=32734 history_end_index=32735
May 20 16:55:53 raspberrypi weewx[3969]: cheetahgenerator: Generate failed 
with exception ''
May 20 16:55:53 raspberrypi weewx[3969]: cheetahgenerator:  Ignoring 
template /etc/weewx/skins/neowx/maps.html.tmpl
May 20 16:55:53 raspberrypi weewx[3969]: cheetahgenerator:  Reason: 
cannot find 'map_1_link_url' while searching for 'Extras.map_1_link_url'
May 20 16:55:53 raspberrypi weewx[3969]:   Traceback (most recent call 
last):
May 20 16:55:53 raspberrypi weewx[3969]: File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 332, in generate
May 20 16:55:53 raspberrypi weewx[3969]:   
fd.write(str(compiled_template))
May 20 16:55:53 raspberrypi weewx[3969]: File 
"/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
__str__
May 20 16:55:53 raspberrypi weewx[3969]:   rc = getattr(self, 
mainMethName)()
May 20 16:55:53 raspberrypi weewx[3969]: File 
"_etc_weewx_skins_neowx_maps_html_tmpl.py", line 306, in respond
May 20 16:55:53 raspberrypi weewx[3969]:   NotFound: cannot find 
'map_1_link_url' while searching for 'Extras.map_1_link_url'
May 20 16:56:30 raspberrypi weewx[3969]: imagegenerator: Generated 12 
images for basic in 35.86 seconds
May 20 16:56:30 raspberrypi weewx[3969]: copygenerator: copied 17 files to 
/var/www/html/weewx
May 20 16:57:21 raspberrypi weewx[3969]: wmr300: Excessive heartbeat delay: 
91s, restarting
May 20 16:57:21 raspberrypi weewx[3969]: wmr300: dump history
May 20 16:57:21 raspberrypi weewx[3969]: wmr300: Clearing records since 
2019-05-20 16:57:21 GMT (1558371441) (last_index=32734 
history_end_index=32735)
May 20 16:57:22 raspberrypi weewx[3969]: wmr300: get history complete: 
count=0 last_index=32734 history_end_index=32735
May 20 16:58:52 raspberrypi weewx[3969]: wmr300: Excessive heartbeat delay: 
90s, restarting
May 20 16:58:52 raspberrypi weewx[3969]: wmr300: dump history
May 20 16:58:52 raspberrypi weewx[3969]: wmr300: Clearing records since 
2019-05-20 16:58:52 GMT (1558371532) (last_index=32734 
history_end_index=32735)
May 20 16:58:52 raspberrypi weewx[3969]: wmr300: get history complete: 
count=0 last_index=32734 history_end_index=32735
May 20 17:00:22 raspberrypi weewx[3969]: wmr300: Excessive heartbeat delay: 
90s, restarting
May 20 17:00:23 raspberrypi weewx[3969]: manager: Added record 2019-05-20 
17:00:00 GMT (1558371600) to database 'weewx.sdb'
May 20 17:00:23 raspberrypi weewx[3969]: manager: Added record 2019-05-20 
17:00:00 GMT (1558371600) to daily summary in 'weewx.sdb'
May 20 17:00:23 raspberrypi weewx[3969]: wmr300: dump history
May 20 17:00:23 raspberrypi weewx[3969]: wmr300: Clearing records since 
2019-05-20 17:00:23 GMT (1558371623) (last_index=32734 
history_end_index=32735)
May 20 17:00:23 raspberrypi weewx[3969]: wmr300: get history complete: 
count=0 last_index=32734 history_end_index=32735
May 20 17:00:25 raspberrypi weewx[3969]: cheetahgenerator: Generate failed 
with exception ''
May 20 17:00:25 raspberrypi weewx[3969]: cheetahgenerator:  Ignoring 
template /etc/weewx/skins/neowx/maps.html.tmpl
May 20 17:00:25 raspberrypi weewx[3969]: cheetahgenerator:  Reason: 
cannot find 'map_1_link_url' while searching for 'Extras.map_1_link_url'
May 20 17:00:25 raspberrypi weewx[3969]:   Traceback (most recent call 
last):
May 20 17:00:25 raspberrypi weewx[3969]: File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 332, in generate
May 20 17:00:25 raspberrypi weewx[3969]:   
fd.write(str(compiled_template))
May 20 17:00:25 raspberrypi weewx[3969]: File 
"/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
__str__
May 20 17:00:25 raspberrypi weewx[3969]:   rc = getattr(self, 
mainMethName)()
May 20 17:00:25 raspberrypi weewx[3969]: 

Re: [weewx-user] Re: Fresh install of weewx 3.9.1 with WMR300A on RPI, Non-positive value for record field 'interval': 0.0

2019-05-19 Thread Leon Shaner
Yeah, good catch.

I expect it was running the old wmr300.pyc since the html one named wmr300.py 
was invalid.

Regards,
\Leon
--
Leon Shaner :: Dearborn, Michigan (iPhone)

> On May 19, 2019, at 7:36 AM, gjr80  wrote:
> 
> Hi, 
> 
> If you are downloading a source file from github you need to get the raw 
> source otherwise you end up with the github htmml used to display the file. 
> Try using the following commands to download and install wmr300.py:
> 
> $ wget -P /tmp 
> https://raw.githubusercontent.com/weewx/weewx/master/bin/weewx/drivers/wmr300.py
> $ sudo cp /tmp/wmr300.py /usr/share/weewx/weewx/drivers/wmr300.py
> 
> Then restart WeeWX.
> 
> Gary
> 
> -- 
> 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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/8281aa25-d717-4df6-8f61-7f4ca8ef4564%40googlegroups.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/8600EB2A-E8FD-45A4-80B8-49E5D9B60DC0%40isylum.org.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Fresh install of weewx 3.9.1 with WMR300A on RPI, Non-positive value for record field 'interval': 0.0

2019-05-19 Thread gjr80
Hi, 

If you are downloading a source file from github you need to get the raw source 
otherwise you end up with the github htmml used to display the file. Try using 
the following commands to download and install wmr300.py:

$ wget -P /tmp 
https://raw.githubusercontent.com/weewx/weewx/master/bin/weewx/drivers/wmr300.py
$ sudo cp /tmp/wmr300.py /usr/share/weewx/weewx/drivers/wmr300.py

Then restart WeeWX.

Gary

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/8281aa25-d717-4df6-8f61-7f4ca8ef4564%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: Fresh install of weewx 3.9.1 with WMR300A on RPI, Non-positive value for record field 'interval': 0.0

2019-05-19 Thread Miguel Angel Peña Morales
New thing, I restarted the rpi and now this is the log:

May 19 11:17:05 raspberrypi systemd[1]: Starting LSB: weewx weather 
system...
May 19 11:17:05 raspberrypi weewx[982]: engine: Initializing weewx version 
3.9.1
May 19 11:17:05 raspberrypi weewx[982]: engine: Using Python 2.7.13 
(default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
May 19 11:17:05 raspberrypi weewx[982]: engine: Platform 
Linux-4.19.42-v7+-armv7l-with-debian-9.9
May 19 11:17:05 raspberrypi weewx[982]: engine: Locale is 'es_ES.UTF-8'
May 19 11:17:05 raspberrypi weewx[982]: engine: pid file is 
/var/run/weewx.pid
May 19 11:17:06 raspberrypi weewx[971]: Starting weewx weather system: 
weewx.
May 19 11:17:06 raspberrypi systemd[1]: Started LSB: weewx weather system.
May 19 11:17:06 raspberrypi weewx[986]: engine: Using configuration file 
/etc/weewx/weewx.conf
May 19 11:17:06 raspberrypi weewx[986]: engine: Loading station type WMR300 
(weewx.drivers.wmr300)
May 19 11:17:06 raspberrypi weewx[986]: engine: Caught unrecoverable 
exception in engine:
May 19 11:17:06 raspberrypi weewx[986]:   invalid syntax 
(wmr300.py, line 7)
May 19 11:17:06 raspberrypi weewx[986]:   Traceback (most recent 
call last):
May 19 11:17:06 raspberrypi weewx[986]: File 
"/usr/share/weewx/weewx/engine.py", line 884, in main
May 19 11:17:06 raspberrypi weewx[986]:   engine = 
engine_class(config_dict)
May 19 11:17:06 raspberrypi weewx[986]: File 
"/usr/share/weewx/weewx/engine.py", line 72, in __init__
May 19 11:17:06 raspberrypi weewx[986]:   
self.setupStation(config_dict)
May 19 11:17:06 raspberrypi weewx[986]: File 
"/usr/share/weewx/weewx/engine.py", line 96, in setupStation
May 19 11:17:06 raspberrypi weewx[986]:   __import__(driver)
May 19 11:17:06 raspberrypi weewx[986]: File 
"/usr/share/weewx/weewx/drivers/wmr300.py", line 7
May 19 11:17:06 raspberrypi weewx[986]:   
May 19 11:17:06 raspberrypi weewx[986]:   ^
May 19 11:17:06 raspberrypi weewx[986]:   SyntaxError: invalid 
syntax
May 19 11:17:06 raspberrypi weewx[986]:   Exiting.




El domingo, 19 de mayo de 2019, 12:56:27 (UTC+2), Miguel Angel Peña Morales 
escribió:
>
> Hello again, no luck. I even tried to reinstall from purge and deleting 
> all the folders of weewx and nothing new...
>
> The thing I'm just seeing is the version of  the wmr300 driver in my old 
> log and this log is the same. 19rc6. Shouldn't be that different?
>
> Regards and thanks.
>
> New log.
>
> May 19 10:43:12 raspberrypi weewx[1048]: Stopping weewx weather system: 
> weewx not running
> May 19 10:43:12 raspberrypi systemd[1]: Stopped LSB: weewx weather system.
> May 19 10:43:13 raspberrypi systemd[1]: Reloading.
> May 19 10:43:18 raspberrypi systemd[1]: Reloading.
> May 19 10:43:21 raspberrypi dbus[373]: [system] Activating via systemd: 
> service name='org.freedesktop.PackageKit' unit='packagekit.service'
> May 19 10:43:21 raspberrypi systemd[1]: Starting PackageKit Daemon...
> May 19 10:43:21 raspberrypi PackageKit: daemon start
> May 19 10:43:21 raspberrypi dbus[373]: [system] Successfully activated 
> service 'org.freedesktop.PackageKit'
> May 19 10:43:21 raspberrypi systemd[1]: Started PackageKit Daemon.
> May 19 10:45:15 raspberrypi systemd[1]: Reloading.
> May 19 10:45:16 raspberrypi systemd[1]: Reloading.
> May 19 10:45:17 raspberrypi systemd[1]: Starting LSB: weewx weather 
> system...
> May 19 10:45:17 raspberrypi weewx[1314]: engine: Initializing weewx 
> version 3.9.1
> May 19 10:45:17 raspberrypi weewx[1314]: engine: Using Python 2.7.13 
> (default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
> May 19 10:45:17 raspberrypi weewx[1314]: engine: Platform 
> Linux-4.14.98-v7+-armv7l-with-debian-9.9
> May 19 10:45:17 raspberrypi weewx[1314]: engine: Locale is 'es_ES.UTF-8'
> May 19 10:45:17 raspberrypi weewx[1314]: engine: pid file is 
> /var/run/weewx.pid
> May 19 10:45:18 raspberrypi weewx[1303]: Starting weewx weather system: 
> weewx.
> May 19 10:45:18 raspberrypi systemd[1]: Started LSB: weewx weather system.
> May 19 10:45:18 raspberrypi weewx[1318]: engine: Using configuration file 
> /etc/weewx/weewx.conf
> May 19 10:45:18 raspberrypi weewx[1318]: engine: Loading station type 
> WMR300 (weewx.drivers.wmr300)
> May 19 10:45:18 raspberrypi weewx[1318]: wmr300: driver version is 0.19rc6
> May 19 10:45:18 raspberrypi weewx[1318]: wmr300: usb info: 
> pyusb_version=1.0.0
> May 19 10:45:18 raspberrypi weewx[1318]: wmr300: sensor map is 
> {'outHumidity': 'humidity_1', 'extraDewpoint6': 'dewpoint_7', 'windchill': 
> 'windchill', 'extraDewpoint4': 'dewpoint_5', 'rainRate': 'rain_rate', 
> 'heatindex': 'heatindex_1', 'inTemp': 'temperature_0', 'windGustDir': 
> 'wind_gust_dir', 'extraDewpoint2': 'dewpoint_3', 'extraDewpoint3': 
> 'dewpoint_4', 'extraDewpoint1': 'dewpoint_2', 'barometer': 'barometer', 
> 'extraDewpoint7': 'dewpoint_8', 'dewpoint': 'dewpoint_1', 

Re: [weewx-user] Re: Fresh install of weewx 3.9.1 with WMR300A on RPI, Non-positive value for record field 'interval': 0.0

2019-05-19 Thread Miguel Angel Peña Morales
Hello again, no luck. I even tried to reinstall from purge and deleting all 
the folders of weewx and nothing new...

The thing I'm just seeing is the version of  the wmr300 driver in my old 
log and this log is the same. 19rc6. Shouldn't be that different?

Regards and thanks.

New log.

May 19 10:43:12 raspberrypi weewx[1048]: Stopping weewx weather system: 
weewx not running
May 19 10:43:12 raspberrypi systemd[1]: Stopped LSB: weewx weather system.
May 19 10:43:13 raspberrypi systemd[1]: Reloading.
May 19 10:43:18 raspberrypi systemd[1]: Reloading.
May 19 10:43:21 raspberrypi dbus[373]: [system] Activating via systemd: 
service name='org.freedesktop.PackageKit' unit='packagekit.service'
May 19 10:43:21 raspberrypi systemd[1]: Starting PackageKit Daemon...
May 19 10:43:21 raspberrypi PackageKit: daemon start
May 19 10:43:21 raspberrypi dbus[373]: [system] Successfully activated 
service 'org.freedesktop.PackageKit'
May 19 10:43:21 raspberrypi systemd[1]: Started PackageKit Daemon.
May 19 10:45:15 raspberrypi systemd[1]: Reloading.
May 19 10:45:16 raspberrypi systemd[1]: Reloading.
May 19 10:45:17 raspberrypi systemd[1]: Starting LSB: weewx weather 
system...
May 19 10:45:17 raspberrypi weewx[1314]: engine: Initializing weewx version 
3.9.1
May 19 10:45:17 raspberrypi weewx[1314]: engine: Using Python 2.7.13 
(default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
May 19 10:45:17 raspberrypi weewx[1314]: engine: Platform 
Linux-4.14.98-v7+-armv7l-with-debian-9.9
May 19 10:45:17 raspberrypi weewx[1314]: engine: Locale is 'es_ES.UTF-8'
May 19 10:45:17 raspberrypi weewx[1314]: engine: pid file is 
/var/run/weewx.pid
May 19 10:45:18 raspberrypi weewx[1303]: Starting weewx weather system: 
weewx.
May 19 10:45:18 raspberrypi systemd[1]: Started LSB: weewx weather system.
May 19 10:45:18 raspberrypi weewx[1318]: engine: Using configuration file 
/etc/weewx/weewx.conf
May 19 10:45:18 raspberrypi weewx[1318]: engine: Loading station type 
WMR300 (weewx.drivers.wmr300)
May 19 10:45:18 raspberrypi weewx[1318]: wmr300: driver version is 0.19rc6
May 19 10:45:18 raspberrypi weewx[1318]: wmr300: usb info: 
pyusb_version=1.0.0
May 19 10:45:18 raspberrypi weewx[1318]: wmr300: sensor map is 
{'outHumidity': 'humidity_1', 'extraDewpoint6': 'dewpoint_7', 'windchill': 
'windchill', 'extraDewpoint4': 'dewpoint_5', 'rainRate': 'rain_rate', 
'heatindex': 'heatindex_1', 'inTemp': 'temperature_0', 'windGustDir': 
'wind_gust_dir', 'extraDewpoint2': 'dewpoint_3', 'extraDewpoint3': 
'dewpoint_4', 'extraDewpoint1': 'dewpoint_2', 'barometer': 'barometer', 
'extraDewpoint7': 'dewpoint_8', 'dewpoint': 'dewpoint_1', 'extraDewpoint5': 
'dewpoint_6', 'extraHumid6': 'humidity_7', 'pressure': 'pressure', 
'extraHumid4': 'humidity_5', 'extraHumid5': 'humidity_6', 'extraHumid2': 
'humidity_3', 'extraHumid3': 'humidity_4', 'extraHumid1': 'humidity_2', 
'extraTemp6': 'temperature_7', 'extraTemp7': 'temperature_8', 'extraTemp4': 
'temperature_5', 'extraTemp5': 'temperature_6', 'extraTemp2': 
'temperature_3', 'extraTemp3': 'temperature_4', 'extraTemp1': 
'temperature_2', 'extraHeatindex3': 'heatindex_4', 'extraHeatindex2': 
'heatindex_3', 'extraHeatindex1': 'heatindex_2', 'extraHeatindex7': 
'heatindex_8', 'extraHeatindex6': 'heatindex_7', 'extraHeatindex5': 
'heatindex_6', 'extraHumid7': 'humidity_8', 'extraHeatindex4': 
'heatindex_5', 'windDir': 'wind_dir', 'outTemp': 'temperature_1', 
'windSpeed': 'wind_avg', 'inHumidity': 'humidity_0', 'windGust': 
'wind_gust'}
May 19 10:45:18 raspberrypi weewx[1318]: wmr300: history limit is 20%
May 19 10:45:18 raspberrypi kernel: [  415.383352] usb 1-1.4: reset 
full-speed USB device number 8 using dwc_otg
May 19 10:45:18 raspberrypi systemd[1]: Reloading.
May 19 10:45:18 raspberrypi weewx[1318]: wmr300: communication established: 
{'station_model': 'A004', 'latest_index': 32736, 'station_type': 'WMR300', 
'mystery1': 44, 'mystery0': 73, 'history_cleared': False, 'magic1': 139, 
'magic0': 136, 'packet_type': 87}
May 19 10:45:18 raspberrypi weewx[1318]: engine: StdConvert target unit is 
0x1
May 19 10:45:18 raspberrypi weewx[1318]: wxcalculate: The following values 
will be calculated: barometer=prefer_hardware, windchill=hardware, 
dewpoint=software, appTemp=prefer_hardware, rainRate=hardware, 
windrun=prefer_hardware, heatindex=hardware, maxSolarRad=prefer_hardware, 
humidex=prefer_hardware, pressure=prefer_hardware, 
inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, 
cloudbase=prefer_hardware
May 19 10:45:18 raspberrypi weewx[1318]: wxcalculate: The following 
algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
May 19 10:45:18 raspberrypi weewx[1318]: engine: Archive will use data 
binding wx_binding
May 19 10:45:18 raspberrypi weewx[1318]: engine: Record generation will be 
attempted in 'hardware'
May 19 10:45:18 raspberrypi weewx[1318]: engine: Using archive interval of 
300 seconds (specified in weewx configuration)
May 19 10:45:18 raspberrypi