[weewx-user] Re: Need some help for NOAA modification

2021-12-25 Thread David Schulz
Sorry for spamming. here the solution... ;-)

Min, max temperatures by year
#for $year in *$alltime.years*
$year.dateTime.format("%Y"): Min, max temperatures: $year.outTemp.min 
$year.outTemp.max
#end for

David Schulz schrieb am Samstag, 25. Dezember 2021 um 20:50:05 UTC+1:

> hi,
>
> i need some help to customize my noaa report or i don't get the desired 
> result. i want a yearly overview and use the following code.
>
> Min, max temperatures by year
> #for $year in $year.years
> $year.dateTime.format("%Y"): Min, max temperatures: $year.outTemp.min 
> $year.outTemp.max
> #end for
>
> Min, max temperatures by year
> 2021: Min, max temperatures: -17,6 °C 36,9 °C
>
> And do not get the appropriate result. Data for 2020 is also available.
>

-- 
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/72d9af11-2551-4f1f-aae2-74568ad0fb55n%40googlegroups.com.


[weewx-user] Need some help for NOAA modification

2021-12-25 Thread David Schulz
hi,

i need some help to customize my noaa report or i don't get the desired 
result. i want a yearly overview and use the following code.

Min, max temperatures by year
#for $year in $year.years
$year.dateTime.format("%Y"): Min, max temperatures: $year.outTemp.min 
$year.outTemp.max
#end for

Min, max temperatures by year
2021: Min, max temperatures: -17,6 °C 36,9 °C

And do not get the appropriate result. Data for 2020 is also available.

-- 
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/25fdfbfd-990c-4a24-a22d-d5bf471734e5n%40googlegroups.com.


[weewx-user] Need some help for NOAA modification

2021-12-25 Thread David Schulz
hi,

i need some help to customize my noaa report or i don't get the desired 
result. i want a yearly overview and use the following code.

Min, max temperatures by year
#for $year in $year.years
$year.dateTime.format("%Y"): Min, max temperatures: $year.outTemp.min 
$year.outTemp.max
#end for

$current.dateTimeMin, max temperatures by year
#for $year in $year.years
$year.dateTime.format("%Y"): Min, max temperatures: $year.outTemp.min 
$year.outTemp.max
#end for

Min, max temperatures by year
2021: Min, max temperatures: -17,6 °C 36,9 °C

And do not get the appropriate result. Data for 2020 is also available.

-- 
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/24b6748a-5c8f-4342-96fe-deb09ceb8c64n%40googlegroups.com.


[weewx-user] Need some help for NOAA modification

2021-12-25 Thread David Schulz
hi,

i need some help to customize my noaa report or i don't get the desired 
result. i want a yearly overview and use the following code.

Min, max temperatures by year
#for $year in $year.years
$year.dateTime.format("%Y"): Min, max temperatures: $year.outTemp.min 
$year.outTemp.max
#end for

$current.dateTimeMin, max temperatures by year
#for $year in $year.years
$year.dateTime.format("%Y"): Min, max temperatures: $year.outTemp.min 
$year.outTemp.max
#end for

Min, max temperatures by year
2021: Min, max temperatures: -17,6 °C 36,9 °C

25.12.2021 20:46:00

And do not get the appropriate result. Data for 2020 is also available.

Translated with www.DeepL.com/Translator (free version)

-- 
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/a290a6d2-c18b-490d-ba82-1c3afee3fb94n%40googlegroups.com.


[weewx-user] Re: Change to DocumentRoot has no effect

2021-12-25 Thread vince
The instructions you're following are incorrect for Fedora.

You want to do 'systemctl restart httpd' after editing the file and it'll 
work.
(tested on fedora-35)

On Saturday, December 25, 2021 at 10:54:40 AM UTC-8 vince wrote:

> Did you restart apache ?
> Did you look at your apache access and error logs ?
> Did you look at your weewx logs ?
>
>

-- 
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/2f252282-d73e-4a48-bde4-47fe5553fac8n%40googlegroups.com.


[weewx-user] Re: Change to DocumentRoot has no effect

2021-12-25 Thread vince
Did you restart apache ?
Did you look at your apache access and error logs ?
Did you look at your weewx logs ?

-- 
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/10087a75-ac1a-4840-bba5-46bc310738een%40googlegroups.com.


[weewx-user] Re: Sending the archive database to 2 servers

2021-12-25 Thread Michael
Hi Phil,

you don't write anything about your exact application...
Maybe the "MySQL Replication" is something for you: 
https://www.digitalocean.com/community/tutorials/how-to-set-up-replication-in-mysql

Michael

jszit...@gmail.com schrieb am Freitag, 24. Dezember 2021 um 17:58:59 UTC+1:

> Phil,
>
> I tried this along time ago with previous versions and did not have 
> success.  Are you just wishing to do this as a backup?  If so, you can 
> write a script to use mysqldump and upload that backup to another server.
>
> -Jonathan
>
> On Friday, December 24, 2021 at 12:35:44 AM UTC-6 Phil D wrote:
>
>> Hello everyone, 
>> I would like my data to be sent to a Mysql Archive database both on my 
>> local server (rasp) and on a remote server
>> I plan in weewx.conf to transform
>> [[MySQL]] driver = weedb.mysql host = localhost user = weewx password = 
>> weewx
>>
>> by
>>
>> [[MySQL]] driver = weedb.mysql host = localhost user = weewx password = 
>> weewx 
>> [[MySQL2] driver = weedb.mysql host = *remote host address* user = weewx 
>> password = weewx 
>>
>> Has anyone tried this yet, does this work?
>>
>> Thanks 
>> Phil 
>>
>>

-- 
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/58fbbefd-ee86-4067-8d06-4a72ce04d851n%40googlegroups.com.


[weewx-user] Change to DocumentRoot has no effect

2021-12-25 Thread Jonathan Ryshpan
Trying to make my weewx website 
   http://oaklandweather/weewx/
a little easier to access, I edited 
/etc/httpd/conf/httpd.conf as described in the instructions for Fedora
systems in
   
https://netshopisp.medium.com/how-to-change-default-documentroot-directory-in-apache-linux-63939a4aa0c
changing 
   DocumentRoot "/var/www/html"
to
   DocumentRoot "/var/www/html/weewx"
which should have made the site accessible as 
http://oaklandweather
But nothing seems to have changed.  Could something be cached in my
browsers?  Advice is welcome.

System info:
   Operating System: Fedora 34
   KDE Plasma Version: 5.22.5
   KDE Frameworks Version: 5.85.0
   Qt Version: 5.15.2
   Kernel Version: 5.15.10-100.fc34.x86_64 (64-bit)
   Graphics Platform: Wayland
   Processors: 2 × Intel® Pentium® CPU G2030 @ 3.00GHz
   Memory: 7.6 GiB of RAM
   Graphics Processor: Mesa DRI Intel® HD Graphics 2500

-- 
Sincerely Jonathan Ryshpan 

 The above message, which does not represent 
 the opinion of the Berkeley Linux Team, is sold 
 by weight, not by volume. 
 Some settling of the contents may have occurred
 during shipment.

-- 
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/8a8e4d8f6f3343c62fbff3ed2704c1feb27fd994.camel%40pacbell.net.


[weewx-user] Chill Hours Extension

2021-12-25 Thread Seth Ratner
Hi everyone,

I was wondering if anyone had already come up with a way to monitor chill 
hours (cumulative hours below 45℉) in WeeWx. I'm using Belchertown, and it 
would be nice to have a readout with Oct-May chill hours, and maybe a chart 
that shows the per-week and cumulative hours together. 

Thanks!
Seth

-- 
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/d00f5593-6aeb-44e2-a2ff-cf50ccf9a92bn%40googlegroups.com.


Re: [weewx-user] Weewx on Raspi Zero with openwrt no ttyUSB0

2021-12-25 Thread Fische Namenlos
sorry, was offline

For use with station renkforce WH-2315 (and other copies) the driver mod 
from EdwinGH should work with OpenWRT 21.x and Python3.9.x.

After update with wee_extension ---install You have a "new driver" choice 
[0] named as WH2315.

see it running at http://weather-server.uk.to:8080
tke...@gmail.com schrieb am Samstag, 25. Dezember 2021 um 16:11:26 UTC+1:

> For the sake of posterity and those who might be reading this thread in 
> the future, which driver worked?
>
> On Sat, Dec 25, 2021 at 6:16 AM Fische Namenlos  
> wrote:
>
>> success - driver is reading from device... it was the wrong "older" 
>> driver. 
>>
>> seems to have other "reading" complications, but it is still working... :)
>>
>> Thx
>>
>> tke...@gmail.com schrieb am Samstag, 25. Dezember 2021 um 14:36:48 UTC+1:
>>
>>> OK, progress. 
>>>
>>> I suspect there is one of three problems:
>>>
>>>1. The port is still wrong. This is probably the least likely.
>>>2. The kernel is loading the wrong module. This is possible: the 
>>>little dmesg snippet you included shows no evidence that the kernel is 
>>>treating the device as a traditional serial device.
>>>3. You're using the wrong driver. Take a look at this thread: 
>>>https://groups.google.com/g/weewx-user/c/zsTwFI7tSlw/m/DRlfX1SpAQAJ 
>>>While it suggests using Matthew Wall's driver, it has not been ported to 
>>>Python 3 and WeeWX v4. User Edwin has done the port, and offers some 
>>> tips. 
>>>See https://github.com/EdwinGH/weewx-wh23xx
>>>
>>> Hope that helps.
>>>
>>> -tk
>>>
>>> On Sat, Dec 25, 2021 at 4:53 AM Fische Namenlos  
>>> wrote:
>>>
 ah, sorry, wrong copy output:

 Sat Dec 25 13:46:54 2021 user.info weewx[2776] INFO weewx.engine: 
 Loading station type WS23xx (weewx.drivers.ws23xx)
 Sat Dec 25 13:46:54 2021 user.info weewx[2776] INFO 
 weewx.drivers.ws23xx: driver version is 0.41
 Sat Dec 25 13:46:54 2021 user.info weewx[2776] INFO 
 weewx.drivers.ws23xx: serial port is /dev/ttyUSB0
 Sat Dec 25 13:46:54 2021 user.info weewx[2776] INFO 
 weewx.drivers.ws23xx: polling interval is None
 Sat Dec 25 13:46:54 2021 user.debug weewx[2776] DEBUG 
 weewx.drivers.ws23xx: create LinuxSerialPort
 Sat Dec 25 13:46:54 2021 user.err weewx[2776] ERROR weewx.engine: 
 Import of driver failed: can't open tty device - [Errno 2] No such file or 
 directory: '/dev/ttyUSB0'. ()
 Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:   
     Traceback (most recent call last):
 Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:   
   File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 896, in 
 __init__
 Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:   
     self.serial_port = os.open(self.device, os.O_RDWR)
 Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:   
     FileNotFoundError: [Errno 2] No such file or directory: 
 '/dev/ttyUSB0'
 Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:   
   
 Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:   
     During handling of the above exception, another exception occurred:
 Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:   
   
 Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:   
     Traceback (most recent call last):
 Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:   
   File "/home/weewx/bin/weewx/engine.py", line 119, in setupStation
 Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:   
     self.console = loader_function(config_dict, self)
 Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:   
   File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 272, in 
 loader
 Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:   
     return WS23xxDriver(config_dict=config_dict, 
 **config_dict[DRIVER_NAME])
 Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:   
   File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 439, in 
 __init__
 Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:   
     self.station = WS23xx(self.port)
 Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:   
   File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 641, in 
 __init__
 Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:   
     self.serial_port = LinuxSerialPort(port)
 Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:   
   File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 898, in 
 __init__
 Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL 

Re: [weewx-user] Weewx on Raspi Zero with openwrt no ttyUSB0

2021-12-25 Thread Tom Keffer
For the sake of posterity and those who might be reading this thread in the
future, which driver worked?

On Sat, Dec 25, 2021 at 6:16 AM Fische Namenlos 
wrote:

> success - driver is reading from device... it was the wrong "older"
> driver.
>
> seems to have other "reading" complications, but it is still working... :)
>
> Thx
>
> tke...@gmail.com schrieb am Samstag, 25. Dezember 2021 um 14:36:48 UTC+1:
>
>> OK, progress.
>>
>> I suspect there is one of three problems:
>>
>>1. The port is still wrong. This is probably the least likely.
>>2. The kernel is loading the wrong module. This is possible: the
>>little dmesg snippet you included shows no evidence that the kernel is
>>treating the device as a traditional serial device.
>>3. You're using the wrong driver. Take a look at this thread:
>>https://groups.google.com/g/weewx-user/c/zsTwFI7tSlw/m/DRlfX1SpAQAJ
>>While it suggests using Matthew Wall's driver, it has not been ported to
>>Python 3 and WeeWX v4. User Edwin has done the port, and offers some tips.
>>See https://github.com/EdwinGH/weewx-wh23xx
>>
>> Hope that helps.
>>
>> -tk
>>
>> On Sat, Dec 25, 2021 at 4:53 AM Fische Namenlos 
>> wrote:
>>
>>> ah, sorry, wrong copy output:
>>>
>>> Sat Dec 25 13:46:54 2021 user.info weewx[2776] INFO weewx.engine:
>>> Loading station type WS23xx (weewx.drivers.ws23xx)
>>> Sat Dec 25 13:46:54 2021 user.info weewx[2776] INFO
>>> weewx.drivers.ws23xx: driver version is 0.41
>>> Sat Dec 25 13:46:54 2021 user.info weewx[2776] INFO
>>> weewx.drivers.ws23xx: serial port is /dev/ttyUSB0
>>> Sat Dec 25 13:46:54 2021 user.info weewx[2776] INFO
>>> weewx.drivers.ws23xx: polling interval is None
>>> Sat Dec 25 13:46:54 2021 user.debug weewx[2776] DEBUG
>>> weewx.drivers.ws23xx: create LinuxSerialPort
>>> Sat Dec 25 13:46:54 2021 user.err weewx[2776] ERROR weewx.engine: Import
>>> of driver failed: can't open tty device - [Errno 2] No such file or
>>> directory: '/dev/ttyUSB0'. ()
>>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>>>     Traceback (most recent call last):
>>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>>>   File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 896, in
>>> __init__
>>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>>>     self.serial_port = os.open(self.device, os.O_RDWR)
>>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>>>     FileNotFoundError: [Errno 2] No such file or directory:
>>> '/dev/ttyUSB0'
>>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>>>   
>>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>>>     During handling of the above exception, another exception occurred:
>>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>>>   
>>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>>>     Traceback (most recent call last):
>>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>>>   File "/home/weewx/bin/weewx/engine.py", line 119, in setupStation
>>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>>>     self.console = loader_function(config_dict, self)
>>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>>>   File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 272, in
>>> loader
>>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>>>     return WS23xxDriver(config_dict=config_dict,
>>> **config_dict[DRIVER_NAME])
>>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>>>   File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 439, in
>>> __init__
>>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>>>     self.station = WS23xx(self.port)
>>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>>>   File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 641, in
>>> __init__
>>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>>>     self.serial_port = LinuxSerialPort(port)
>>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>>>   File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 898, in
>>> __init__
>>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>>>     raise FatalError(self.device, "can't open tty device - %s." %
>>> str(e))
>>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>>>     weewx.drivers.ws23xx.FatalError: can't open tty device - [Errno 2]
>>> No such file or directory: '/dev/ttyUSB0'.
>>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL __main__: Unable
>>> to load driver: can't open tty device - [Errno 2] No such file or
>>> directory: '/dev/ttyUSB0'.
>>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL __main__:
>>>   

Re: [weewx-user] Weewx on Raspi Zero with openwrt no ttyUSB0

2021-12-25 Thread Fische Namenlos
success - driver is reading from device... it was the wrong "older" driver. 

seems to have other "reading" complications, but it is still working... :)

Thx

tke...@gmail.com schrieb am Samstag, 25. Dezember 2021 um 14:36:48 UTC+1:

> OK, progress. 
>
> I suspect there is one of three problems:
>
>1. The port is still wrong. This is probably the least likely.
>2. The kernel is loading the wrong module. This is possible: the 
>little dmesg snippet you included shows no evidence that the kernel is 
>treating the device as a traditional serial device.
>3. You're using the wrong driver. Take a look at this thread: 
>https://groups.google.com/g/weewx-user/c/zsTwFI7tSlw/m/DRlfX1SpAQAJ 
>While it suggests using Matthew Wall's driver, it has not been ported to 
>Python 3 and WeeWX v4. User Edwin has done the port, and offers some tips. 
>See https://github.com/EdwinGH/weewx-wh23xx
>
> Hope that helps.
>
> -tk
>
> On Sat, Dec 25, 2021 at 4:53 AM Fische Namenlos  
> wrote:
>
>> ah, sorry, wrong copy output:
>>
>> Sat Dec 25 13:46:54 2021 user.info weewx[2776] INFO weewx.engine: 
>> Loading station type WS23xx (weewx.drivers.ws23xx)
>> Sat Dec 25 13:46:54 2021 user.info weewx[2776] INFO 
>> weewx.drivers.ws23xx: driver version is 0.41
>> Sat Dec 25 13:46:54 2021 user.info weewx[2776] INFO 
>> weewx.drivers.ws23xx: serial port is /dev/ttyUSB0
>> Sat Dec 25 13:46:54 2021 user.info weewx[2776] INFO 
>> weewx.drivers.ws23xx: polling interval is None
>> Sat Dec 25 13:46:54 2021 user.debug weewx[2776] DEBUG 
>> weewx.drivers.ws23xx: create LinuxSerialPort
>> Sat Dec 25 13:46:54 2021 user.err weewx[2776] ERROR weewx.engine: Import 
>> of driver failed: can't open tty device - [Errno 2] No such file or 
>> directory: '/dev/ttyUSB0'. ()
>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
>>   Traceback (most recent call last):
>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
>> File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 896, in 
>> __init__
>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
>>   self.serial_port = os.open(self.device, os.O_RDWR)
>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
>>   FileNotFoundError: [Errno 2] No such file or directory: '/dev/ttyUSB0'
>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
>> 
>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
>>   During handling of the above exception, another exception occurred:
>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
>> 
>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
>>   Traceback (most recent call last):
>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
>> File "/home/weewx/bin/weewx/engine.py", line 119, in setupStation
>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
>>   self.console = loader_function(config_dict, self)
>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
>> File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 272, in loader
>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
>>   return WS23xxDriver(config_dict=config_dict, 
>> **config_dict[DRIVER_NAME])
>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
>> File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 439, in 
>> __init__
>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
>>   self.station = WS23xx(self.port)
>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
>> File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 641, in 
>> __init__
>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
>>   self.serial_port = LinuxSerialPort(port)
>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
>> File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 898, in 
>> __init__
>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
>>   raise FatalError(self.device, "can't open tty device - %s." % 
>> str(e))
>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
>>   weewx.drivers.ws23xx.FatalError: can't open tty device - [Errno 2] No 
>> such file or directory: '/dev/ttyUSB0'.
>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL __main__: Unable 
>> to load driver: can't open tty device - [Errno 2] No such file or 
>> directory: '/dev/ttyUSB0'.
>> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL __main__: 
>>   Exiting...
>>
>> Fische Namenlos schrieb am Samstag, 25. Dezember 2021 um 13:52:07 UTC+1:
>>
>>> nope, weex.conf is set to /dev/ttyUSB0, too. I use the wee_config 
>>> --reconfigure 

Re: [weewx-user] WeeWX on Raspberry Pi Pico and MicroPython

2021-12-25 Thread Tom Keffer
I would be surprised if it works. It has, what, 2MB of memory? I don't know
what the minimum needed would be, but I suspect it's closer to 100MB.

On Thu, Dec 23, 2021 at 6:03 PM garrya...@gmail.com 
wrote:

> With apologies if there is already a thread about this but will WeeWX run
> on a Raspberry Pi Pico with MicroPython?
>
> If no one has actually tried it, and the consensus is that it might/should
> work, I might give it a try and report back.
>
> Regards,
>
> Garry
>
> --
> 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/3e387cf9-5b5b-4aee-b20d-565551b0cecbn%40googlegroups.com
> 
> .
>

-- 
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/CAPq0zEDfb3OLwBYJoJY6y4qJPJ5aedQk3wye1jjFVG3UHSWbQQ%40mail.gmail.com.


[weewx-user] Re: WeeWX on Raspberry Pi Pico and MicroPython

2021-12-25 Thread 'Peter Fletcher' via weewx-user
Highly unlikely! Even if the weewx code and its associated libraries do not 
use Python functionalities that MicroPython doesn't support, and you can 
deal with the interfacing, there probably isn't enough memory space to fit 
the interpreter and all the code and libraries on the device, especially 
not while leaving room to store any saved data. 

On Friday, December 24, 2021 at 11:05:30 PM UTC-5 garrya...@gmail.com wrote:

> Davis Pro2 by USB.
>
> On Thursday, December 23, 2021 at 8:06:59 PM UTC-8 vince wrote:
>
>> On Thursday, December 23, 2021 at 6:02:57 PM UTC-8 garrya...@gmail.com 
>> wrote:
>>
>>> With apologies if there is already a thread about this but will WeeWX 
>>> run on a Raspberry Pi Pico with MicroPython?
>>> If no one has actually tried it, and the consensus is that it 
>>> might/should work, I might give it a try and report back.
>>>
>>>
>> For starters - what kind of station do you have and how would you 
>> interface it with a pico ?
>>
>> But I'd be a bit surprised if it met the python prerequisites for weewx, 
>> specifically the imaging libraries and Cheetah.
>>
>>

-- 
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/7ff2ad5d-bb3d-4789-91a1-d4487fa940e4n%40googlegroups.com.


Re: [weewx-user] Weewx on Raspi Zero with openwrt no ttyUSB0

2021-12-25 Thread Tom Keffer
OK, progress.

I suspect there is one of three problems:

   1. The port is still wrong. This is probably the least likely.
   2. The kernel is loading the wrong module. This is possible: the little
   dmesg snippet you included shows no evidence that the kernel is treating
   the device as a traditional serial device.
   3. You're using the wrong driver. Take a look at this thread:
   https://groups.google.com/g/weewx-user/c/zsTwFI7tSlw/m/DRlfX1SpAQAJ
   While it suggests using Matthew Wall's driver, it has not been ported to
   Python 3 and WeeWX v4. User Edwin has done the port, and offers some tips.
   See https://github.com/EdwinGH/weewx-wh23xx

Hope that helps.

-tk

On Sat, Dec 25, 2021 at 4:53 AM Fische Namenlos 
wrote:

> ah, sorry, wrong copy output:
>
> Sat Dec 25 13:46:54 2021 user.info weewx[2776] INFO weewx.engine: Loading
> station type WS23xx (weewx.drivers.ws23xx)
> Sat Dec 25 13:46:54 2021 user.info weewx[2776] INFO weewx.drivers.ws23xx:
> driver version is 0.41
> Sat Dec 25 13:46:54 2021 user.info weewx[2776] INFO weewx.drivers.ws23xx:
> serial port is /dev/ttyUSB0
> Sat Dec 25 13:46:54 2021 user.info weewx[2776] INFO weewx.drivers.ws23xx:
> polling interval is None
> Sat Dec 25 13:46:54 2021 user.debug weewx[2776] DEBUG
> weewx.drivers.ws23xx: create LinuxSerialPort
> Sat Dec 25 13:46:54 2021 user.err weewx[2776] ERROR weewx.engine: Import
> of driver failed: can't open tty device - [Errno 2] No such file or
> directory: '/dev/ttyUSB0'. ()
> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>   Traceback (most recent call last):
> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
> File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 896, in
> __init__
> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>   self.serial_port = os.open(self.device, os.O_RDWR)
> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>   FileNotFoundError: [Errno 2] No such file or directory: '/dev/ttyUSB0'
> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
> 
> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>   During handling of the above exception, another exception occurred:
> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
> 
> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>   Traceback (most recent call last):
> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
> File "/home/weewx/bin/weewx/engine.py", line 119, in setupStation
> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>   self.console = loader_function(config_dict, self)
> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
> File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 272, in loader
> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>   return WS23xxDriver(config_dict=config_dict,
> **config_dict[DRIVER_NAME])
> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
> File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 439, in
> __init__
> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>   self.station = WS23xx(self.port)
> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
> File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 641, in
> __init__
> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>   self.serial_port = LinuxSerialPort(port)
> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
> File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 898, in
> __init__
> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>   raise FatalError(self.device, "can't open tty device - %s." %
> str(e))
> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine:
>   weewx.drivers.ws23xx.FatalError: can't open tty device - [Errno 2] No
> such file or directory: '/dev/ttyUSB0'.
> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL __main__: Unable
> to load driver: can't open tty device - [Errno 2] No such file or
> directory: '/dev/ttyUSB0'.
> Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL __main__: 
>  Exiting...
>
> Fische Namenlos schrieb am Samstag, 25. Dezember 2021 um 13:52:07 UTC+1:
>
>> nope, weex.conf is set to /dev/ttyUSB0, too. I use the wee_config
>> --reconfigure script...
>>
>> tke...@gmail.com schrieb am Samstag, 25. Dezember 2021 um 12:51:01 UTC+1:
>>
>>> It looks like you're trying to connect to /dev/ttyS0, which is generally
>>> a serial port, not a USB port.
>>>
>>> Check weewx.conf and make sure you got it right.
>>>
>>> On Sat, Dec 25, 2021 at 3:39 AM Fische Namenlos 
>>> wrote:
>>>

 Dear,
 sorry for this question, maybe simple, but I'm a programmer-nob...

 I installed successful openwrt 

Re: [weewx-user] Weewx on Raspi Zero with openwrt no ttyUSB0

2021-12-25 Thread Fische Namenlos
ah, sorry, wrong copy output:

Sat Dec 25 13:46:54 2021 user.info weewx[2776] INFO weewx.engine: Loading 
station type WS23xx (weewx.drivers.ws23xx)
Sat Dec 25 13:46:54 2021 user.info weewx[2776] INFO weewx.drivers.ws23xx: 
driver version is 0.41
Sat Dec 25 13:46:54 2021 user.info weewx[2776] INFO weewx.drivers.ws23xx: 
serial port is /dev/ttyUSB0
Sat Dec 25 13:46:54 2021 user.info weewx[2776] INFO weewx.drivers.ws23xx: 
polling interval is None
Sat Dec 25 13:46:54 2021 user.debug weewx[2776] DEBUG weewx.drivers.ws23xx: 
create LinuxSerialPort
Sat Dec 25 13:46:54 2021 user.err weewx[2776] ERROR weewx.engine: Import of 
driver failed: can't open tty device - [Errno 2] No such file or directory: 
'/dev/ttyUSB0'. ()
Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
  Traceback (most recent call last):
Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 896, in 
__init__
Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
  self.serial_port = os.open(self.device, os.O_RDWR)
Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
  FileNotFoundError: [Errno 2] No such file or directory: '/dev/ttyUSB0'
Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 

Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
  During handling of the above exception, another exception occurred:
Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 

Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
  Traceback (most recent call last):
Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
File "/home/weewx/bin/weewx/engine.py", line 119, in setupStation
Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
  self.console = loader_function(config_dict, self)
Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 272, in loader
Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
  return WS23xxDriver(config_dict=config_dict, 
**config_dict[DRIVER_NAME])
Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 439, in 
__init__
Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
  self.station = WS23xx(self.port)
Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 641, in 
__init__
Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
  self.serial_port = LinuxSerialPort(port)
Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 898, in 
__init__
Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
  raise FatalError(self.device, "can't open tty device - %s." % 
str(e))
Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL weewx.engine: 
  weewx.drivers.ws23xx.FatalError: can't open tty device - [Errno 2] No 
such file or directory: '/dev/ttyUSB0'.
Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL __main__: Unable to 
load driver: can't open tty device - [Errno 2] No such file or directory: 
'/dev/ttyUSB0'.
Sat Dec 25 13:46:54 2021 user.crit weewx[2776] CRITICAL __main__:  
 Exiting...

Fische Namenlos schrieb am Samstag, 25. Dezember 2021 um 13:52:07 UTC+1:

> nope, weex.conf is set to /dev/ttyUSB0, too. I use the wee_config 
> --reconfigure script... 
>
> tke...@gmail.com schrieb am Samstag, 25. Dezember 2021 um 12:51:01 UTC+1:
>
>> It looks like you're trying to connect to /dev/ttyS0, which is generally 
>> a serial port, not a USB port.
>>
>> Check weewx.conf and make sure you got it right.
>>
>> On Sat, Dec 25, 2021 at 3:39 AM Fische Namenlos  
>> wrote:
>>
>>>
>>> Dear,
>>> sorry for this question, maybe simple, but I'm a programmer-nob...
>>>
>>> I installed successful openwrt 21.02.1 and weewx 4.5.1with python3 with 
>>> my old weather station Cresta/Hideki and driver TE923. All works well!
>>>
>>> Now I changed to a newer one: renkforce WH2315 alias Froggit with driver 
>>> ws23xx. Both driver use /dev/ttyUSB0.
>>>
>>> Device is recognized at boot as :
>>> [9.108633] hid-generic 0003:10C4:8468.0001: hiddev96,hidraw0: USB 
>>> HID v1.01 Device [SLAB HIDtoSPI Slave] on usb-2098.usb-1.1/input0
>>> [9.124682] usbcore: registered new interface driver usbhid
>>> [9.132115] usbhid: USB HID core driver
>>> [9.145064] usbcore: registered new interface driver usbserial_generic
>>> [9.153713] usbserial: USB Serial support registered for generic
>>>
>>> lsusb:  Bus device 003: ID 10c4:8468 SLAB HIDtoSPI Slave
>>>
>>> But there 

Re: [weewx-user] Weewx on Raspi Zero with openwrt no ttyUSB0

2021-12-25 Thread Fische Namenlos
nope, weex.conf is set to /dev/ttyUSB0, too. I use the wee_config 
--reconfigure script... 

tke...@gmail.com schrieb am Samstag, 25. Dezember 2021 um 12:51:01 UTC+1:

> It looks like you're trying to connect to /dev/ttyS0, which is generally a 
> serial port, not a USB port.
>
> Check weewx.conf and make sure you got it right.
>
> On Sat, Dec 25, 2021 at 3:39 AM Fische Namenlos  
> wrote:
>
>>
>> Dear,
>> sorry for this question, maybe simple, but I'm a programmer-nob...
>>
>> I installed successful openwrt 21.02.1 and weewx 4.5.1with python3 with 
>> my old weather station Cresta/Hideki and driver TE923. All works well!
>>
>> Now I changed to a newer one: renkforce WH2315 alias Froggit with driver 
>> ws23xx. Both driver use /dev/ttyUSB0.
>>
>> Device is recognized at boot as :
>> [9.108633] hid-generic 0003:10C4:8468.0001: hiddev96,hidraw0: USB HID 
>> v1.01 Device [SLAB HIDtoSPI Slave] on usb-2098.usb-1.1/input0
>> [9.124682] usbcore: registered new interface driver usbhid
>> [9.132115] usbhid: USB HID core driver
>> [9.145064] usbcore: registered new interface driver usbserial_generic
>> [9.153713] usbserial: USB Serial support registered for generic
>>
>> lsusb:  Bus device 003: ID 10c4:8468 SLAB HIDtoSPI Slave
>>
>> But there is no ttyUSB0 created, so weewx dies on starting with error:
>> Sat Dec 25 12:06:07 2021 user.info weewx[1836] INFO weewx.engine: 
>> Loading station type WS23xx (weewx.drivers.ws23xx)
>> Sat Dec 25 12:06:07 2021 user.info weewx[1836] INFO 
>> weewx.drivers.ws23xx: driver version is 0.41
>> Sat Dec 25 12:06:07 2021 user.info weewx[1836] INFO 
>> weewx.drivers.ws23xx: serial port is /dev/ttyS0
>> Sat Dec 25 12:06:07 2021 user.info weewx[1836] INFO 
>> weewx.drivers.ws23xx: polling interval is None
>> Sat Dec 25 12:06:07 2021 user.debug weewx[1836] DEBUG 
>> weewx.drivers.ws23xx: create LinuxSerialPort
>> Sat Dec 25 12:06:07 2021 user.err weewx[1836] ERROR weewx.engine: Import 
>> of driver failed: (5, 'I/O error') ()
>> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
>>   Traceback (most recent call last):
>> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
>> File "/home/weewx/bin/weewx/engine.py", line 119, in setupStation
>> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
>>   self.console = loader_function(config_dict, self)
>> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
>> File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 272, in loader
>> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
>>   return WS23xxDriver(config_dict=config_dict, 
>> **config_dict[DRIVER_NAME])
>> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
>> File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 439, in 
>> __init__
>> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
>>   self.station = WS23xx(self.port)
>> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
>> File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 641, in 
>> __init__
>> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
>>   self.serial_port = LinuxSerialPort(port)
>> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
>> File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 901, in 
>> __init__
>> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
>>   self.orig_settings = tty.tcgetattr(self.serial_port)
>> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
>>   termios.error: (5, 'I/O error')
>> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL __main__: Unable 
>> to load driver: (5, 'I/O error')
>> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL __main__: 
>>   Exiting...
>>
>> any ideas? The ws23xx driver ist the last "modified" for the renkforce 
>> weather-station.
>>
>> Thx
>>
>> -- 
>> 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.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/a131fd19-b8cf-4532-b3b8-2f559f3913b4n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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/13e9b640-03f9-4d6e-aa4d-dce9aca25c4en%40googlegroups.com.


Re: [weewx-user] Weewx on Raspi Zero with openwrt no ttyUSB0

2021-12-25 Thread Tom Keffer
It looks like you're trying to connect to /dev/ttyS0, which is generally a
serial port, not a USB port.

Check weewx.conf and make sure you got it right.

On Sat, Dec 25, 2021 at 3:39 AM Fische Namenlos 
wrote:

>
> Dear,
> sorry for this question, maybe simple, but I'm a programmer-nob...
>
> I installed successful openwrt 21.02.1 and weewx 4.5.1with python3 with my
> old weather station Cresta/Hideki and driver TE923. All works well!
>
> Now I changed to a newer one: renkforce WH2315 alias Froggit with driver
> ws23xx. Both driver use /dev/ttyUSB0.
>
> Device is recognized at boot as :
> [9.108633] hid-generic 0003:10C4:8468.0001: hiddev96,hidraw0: USB HID
> v1.01 Device [SLAB HIDtoSPI Slave] on usb-2098.usb-1.1/input0
> [9.124682] usbcore: registered new interface driver usbhid
> [9.132115] usbhid: USB HID core driver
> [9.145064] usbcore: registered new interface driver usbserial_generic
> [9.153713] usbserial: USB Serial support registered for generic
>
> lsusb:  Bus device 003: ID 10c4:8468 SLAB HIDtoSPI Slave
>
> But there is no ttyUSB0 created, so weewx dies on starting with error:
> Sat Dec 25 12:06:07 2021 user.info weewx[1836] INFO weewx.engine: Loading
> station type WS23xx (weewx.drivers.ws23xx)
> Sat Dec 25 12:06:07 2021 user.info weewx[1836] INFO weewx.drivers.ws23xx:
> driver version is 0.41
> Sat Dec 25 12:06:07 2021 user.info weewx[1836] INFO weewx.drivers.ws23xx:
> serial port is /dev/ttyS0
> Sat Dec 25 12:06:07 2021 user.info weewx[1836] INFO weewx.drivers.ws23xx:
> polling interval is None
> Sat Dec 25 12:06:07 2021 user.debug weewx[1836] DEBUG
> weewx.drivers.ws23xx: create LinuxSerialPort
> Sat Dec 25 12:06:07 2021 user.err weewx[1836] ERROR weewx.engine: Import
> of driver failed: (5, 'I/O error') ()
> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine:
>   Traceback (most recent call last):
> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine:
> File "/home/weewx/bin/weewx/engine.py", line 119, in setupStation
> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine:
>   self.console = loader_function(config_dict, self)
> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine:
> File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 272, in loader
> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine:
>   return WS23xxDriver(config_dict=config_dict,
> **config_dict[DRIVER_NAME])
> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine:
> File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 439, in
> __init__
> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine:
>   self.station = WS23xx(self.port)
> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine:
> File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 641, in
> __init__
> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine:
>   self.serial_port = LinuxSerialPort(port)
> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine:
> File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 901, in
> __init__
> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine:
>   self.orig_settings = tty.tcgetattr(self.serial_port)
> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine:
>   termios.error: (5, 'I/O error')
> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL __main__: Unable
> to load driver: (5, 'I/O error')
> Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL __main__: 
>  Exiting...
>
> any ideas? The ws23xx driver ist the last "modified" for the renkforce
> weather-station.
>
> Thx
>
> --
> 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/a131fd19-b8cf-4532-b3b8-2f559f3913b4n%40googlegroups.com
> 
> .
>

-- 
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/CAPq0zEDg_LYJ2ush0436heY57WHbiKxeQhr%3DZV9Kx5Cop68TNA%40mail.gmail.com.


[weewx-user] Weewx on Raspi Zero with openwrt no ttyUSB0

2021-12-25 Thread Fische Namenlos

Dear,
sorry for this question, maybe simple, but I'm a programmer-nob...

I installed successful openwrt 21.02.1 and weewx 4.5.1with python3 with my 
old weather station Cresta/Hideki and driver TE923. All works well!

Now I changed to a newer one: renkforce WH2315 alias Froggit with driver 
ws23xx. Both driver use /dev/ttyUSB0.

Device is recognized at boot as :
[9.108633] hid-generic 0003:10C4:8468.0001: hiddev96,hidraw0: USB HID 
v1.01 Device [SLAB HIDtoSPI Slave] on usb-2098.usb-1.1/input0
[9.124682] usbcore: registered new interface driver usbhid
[9.132115] usbhid: USB HID core driver
[9.145064] usbcore: registered new interface driver usbserial_generic
[9.153713] usbserial: USB Serial support registered for generic

lsusb:  Bus device 003: ID 10c4:8468 SLAB HIDtoSPI Slave

But there is no ttyUSB0 created, so weewx dies on starting with error:
Sat Dec 25 12:06:07 2021 user.info weewx[1836] INFO weewx.engine: Loading 
station type WS23xx (weewx.drivers.ws23xx)
Sat Dec 25 12:06:07 2021 user.info weewx[1836] INFO weewx.drivers.ws23xx: 
driver version is 0.41
Sat Dec 25 12:06:07 2021 user.info weewx[1836] INFO weewx.drivers.ws23xx: 
serial port is /dev/ttyS0
Sat Dec 25 12:06:07 2021 user.info weewx[1836] INFO weewx.drivers.ws23xx: 
polling interval is None
Sat Dec 25 12:06:07 2021 user.debug weewx[1836] DEBUG weewx.drivers.ws23xx: 
create LinuxSerialPort
Sat Dec 25 12:06:07 2021 user.err weewx[1836] ERROR weewx.engine: Import of 
driver failed: (5, 'I/O error') ()
Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
  Traceback (most recent call last):
Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
File "/home/weewx/bin/weewx/engine.py", line 119, in setupStation
Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
  self.console = loader_function(config_dict, self)
Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 272, in loader
Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
  return WS23xxDriver(config_dict=config_dict, 
**config_dict[DRIVER_NAME])
Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 439, in 
__init__
Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
  self.station = WS23xx(self.port)
Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 641, in 
__init__
Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
  self.serial_port = LinuxSerialPort(port)
Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
File "/home/weewx/bin/weewx/drivers/ws23xx.py", line 901, in 
__init__
Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
  self.orig_settings = tty.tcgetattr(self.serial_port)
Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL weewx.engine: 
  termios.error: (5, 'I/O error')
Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL __main__: Unable to 
load driver: (5, 'I/O error')
Sat Dec 25 12:06:07 2021 user.crit weewx[1836] CRITICAL __main__:  
 Exiting...

any ideas? The ws23xx driver ist the last "modified" for the renkforce 
weather-station.

Thx

-- 
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/a131fd19-b8cf-4532-b3b8-2f559f3913b4n%40googlegroups.com.