Re: [weewx-user] howto fix weewx sqlite database

2022-07-25 Thread Fische Namenlos
done and working

thx

tke...@gmail.com schrieb am Sonntag, 24. Juli 2022 um 13:18:53 UTC+2:

> See the wiki article Cleaning up old "bad" data 
> <https://github.com/weewx/weewx/wiki/Cleaning-up-old-'bad'-data>, in 
> particular, the section *Deleting unwanted records 
> <https://github.com/weewx/weewx/wiki/Cleaning-up-old-'bad'-data#deleting-unwanted-records>*
> .
>
>
> On Sun, Jul 24, 2022 at 1:53 AM Fische Namenlos  
> wrote:
>
>> great,
>> it worked. my linux-computer was working for hours for only 60MB of data, 
>> but database is readable by weewx.
>>
>> a single gap is now that the NOAA-files are created from up 1988 and, of 
>> course, empty. The station has started in 2019.
>> Is there a way to fix it?
>>
>> regards
>>
>> Oscar schrieb am Dienstag, 12. Juli 2022 um 17:47:09 UTC+2:
>>
>>> The database is corrupt.  Could be caused by a bad SD card, losing power 
>>> during a write, a number of reasons.  I've been able to use this process to 
>>> recover most of a corrupt data base.   With 5 years of data, the recreate 
>>> process will take a long time (days(?)) on a pi.  I recommend coping the 
>>> database to a faster machine to create the database, then copy it back to 
>>> the pi.
>>>
>>> # Dump the database as INSERT commands.  
>>> sqlite3 weewx.sdb
>>> .mode insert
>>> .output dump_all.sql
>>> .dump
>>> .exit
>>>
>>> # remove unwanted records from the dump file
>>>
>>> cat dump_all.sql | grep -v TRANSACTION | grep -v ROLLBACK | grep -v 
>>> COMMIT >dump_all_notrans.sql
>>>
>>> # recreate the database using the insert statements.
>>>
>>> sqlite3  new-weewx.sdb ".read dump_all_notrans.sql"
>>>
>>> make a copy of your existing weewx.sdb file and  then copy new-weewx.sdb 
>>> to weewx.sdb.  
>>>  
>>>
>>> On Monday, July 11, 2022 at 7:02:52 AM UTC-6 tke...@gmail.com wrote:
>>>
>>>> It is very unlikely that the size of the database is a problem. Like 
>>>> Graham, I have over 15 years of data on mine without a problem.
>>>>
>>>> You did not say what kind of storage you are using, but if it is an old 
>>>> SD card, it is much more likely that the card is corrupt.
>>>>
>>>> You may be able to recover the database by using the utility sqlite3. 
>>>>
>>>> sqlite3 /home/weewx/archive/weewx.sdb
>>>> sqlite> .recover
>>>> sqlite> .quit
>>>>
>>>> However, usually this does not work, in which case you will have to 
>>>> recover from a backup copy. Then, replace the card.
>>>>
>>>> -tk
>>>>
>>>>
>>>> On Sun, Jul 10, 2022 at 10:27 AM Fische Namenlos  
>>>> wrote:
>>>>
>>>>> here it is:
>>>>> Sun Jul 10 19:25:39 2022 user.debug weewx[2812] DEBUG weewx.restx: 
>>>>> Shut down StationRegistry thread.
>>>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>>>> Caught unrecoverable exception:
>>>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>>>>   database disk image is malformed
>>>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>>>>   Traceback (most recent call last):
>>>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>>>> File "/home/weewx/bin/weewx/engine.py", line 214, in run
>>>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>>>>   self.dispatchEvent(weewx.Event(weewx.CHECK_LOOP, packet=packet))
>>>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>>>> File "/home/weewx/bin/weewx/engine.py", line 245, in dispatchEvent
>>>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>>>>   callback(event)
>>>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>>>> File "/home/weewx/bin/weewx/engine.py", line 634, in check_loop
>>>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>>>>   raise BreakLoop
>>>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>>>>   weewx.engin

Re: [weewx-user] howto fix weewx sqlite database

2022-07-24 Thread Fische Namenlos
great,
it worked. my linux-computer was working for hours for only 60MB of data, 
but database is readable by weewx.

a single gap is now that the NOAA-files are created from up 1988 and, of 
course, empty. The station has started in 2019.
Is there a way to fix it?

regards

Oscar schrieb am Dienstag, 12. Juli 2022 um 17:47:09 UTC+2:

> The database is corrupt.  Could be caused by a bad SD card, losing power 
> during a write, a number of reasons.  I've been able to use this process to 
> recover most of a corrupt data base.   With 5 years of data, the recreate 
> process will take a long time (days(?)) on a pi.  I recommend coping the 
> database to a faster machine to create the database, then copy it back to 
> the pi.
>
> # Dump the database as INSERT commands.  
> sqlite3 weewx.sdb
> .mode insert
> .output dump_all.sql
> .dump
> .exit
>
> # remove unwanted records from the dump file
>
> cat dump_all.sql | grep -v TRANSACTION | grep -v ROLLBACK | grep -v COMMIT 
> >dump_all_notrans.sql
>
> # recreate the database using the insert statements.
>
> sqlite3  new-weewx.sdb ".read dump_all_notrans.sql"
>
> make a copy of your existing weewx.sdb file and  then copy new-weewx.sdb 
> to weewx.sdb.  
>  
>
> On Monday, July 11, 2022 at 7:02:52 AM UTC-6 tke...@gmail.com wrote:
>
>> It is very unlikely that the size of the database is a problem. Like 
>> Graham, I have over 15 years of data on mine without a problem.
>>
>> You did not say what kind of storage you are using, but if it is an old 
>> SD card, it is much more likely that the card is corrupt.
>>
>> You may be able to recover the database by using the utility sqlite3. 
>>
>> sqlite3 /home/weewx/archive/weewx.sdb
>> sqlite> .recover
>> sqlite> .quit
>>
>> However, usually this does not work, in which case you will have to 
>> recover from a backup copy. Then, replace the card.
>>
>> -tk
>>
>>
>> On Sun, Jul 10, 2022 at 10:27 AM Fische Namenlos  
>> wrote:
>>
>>> here it is:
>>> Sun Jul 10 19:25:39 2022 user.debug weewx[2812] DEBUG weewx.restx: Shut 
>>> down StationRegistry thread.
>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: Caught 
>>> unrecoverable exception:
>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>>   database disk image is malformed
>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>>   Traceback (most recent call last):
>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>> File "/home/weewx/bin/weewx/engine.py", line 214, in run
>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>>   self.dispatchEvent(weewx.Event(weewx.CHECK_LOOP, packet=packet))
>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>> File "/home/weewx/bin/weewx/engine.py", line 245, in dispatchEvent
>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>>   callback(event)
>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>> File "/home/weewx/bin/weewx/engine.py", line 634, in check_loop
>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>>   raise BreakLoop
>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>>   weewx.engine.BreakLoop
>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>> 
>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>>   During handling of the above exception, another exception occurred:
>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>> 
>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>>   Traceback (most recent call last):
>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>> File "/home/weewx/bin/weewxd", line 153, in main
>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>>   engine.run()
>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>> File "/home/weewx/bin/weewx/engine.py", line 221, in run
>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__: 
>>>   self.dispatchEvent(weewx.Event(weewx.POST_LOOP))
>>> Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CR

Re: [weewx-user] howto fix weewx sqlite database

2022-07-10 Thread Fische Namenlos
wx[2812] CRITICAL __main__:  
 sqlite3.DatabaseError: database disk image is malformed
Sun Jul 10 19:25:39 2022 user.crit weewx[2812] CRITICAL __main__:  
 Exiting.
peterq...@gmail.com schrieb am Sonntag, 10. Juli 2022 um 17:45:42 UTC+2:

> What error messages are you getting?
>
> On Sun, Jul 10, 2022 at 8:00 AM Graham Eddy  wrote:
>
>> 15 years of data, running happily on RPi 4B:
>>
>> *graham@paperbark*:*/home/weewx/archive $* ls -l weewx.sdb 
>> -rw-r--r-- 1 weewx weewx 175935488 Jul 11 00:55 weewx.sdb
>>
>>
>> On 11 Jul 2022, at 12:43 am, Fische Namenlos  wrote:
>>
>> my station is using sqlite database (weewx.sdb) for nearly 5 years, and 
>> now - I suppose - is getting to big for my Raspi-server, it stops 
>> working/writting.
>>
>>
>> -- 
>> 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/8C3EB25A-F4A3-4D14-B43C-16556831AF91%40geddy.au
>>  
>> <https://groups.google.com/d/msgid/weewx-user/8C3EB25A-F4A3-4D14-B43C-16556831AF91%40geddy.au?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> -- 
> Peter Quinn
> (415)794-2264 <(415)%20794-2264>
>

-- 
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/47d68a21-a20c-4145-bfc0-2179b9e847e8n%40googlegroups.com.


[weewx-user] howto fix weewx sqlite database

2022-07-10 Thread Fische Namenlos
Dear,
my station is using sqlite database (weewx.sdb) for nearly 5 years, and now 
- I suppose - is getting to big for my Raspi-server, it stops 
working/writting.
Howto fix or customize in weewx 4.8.0 to split this database, maybe yearly 
and howto "tell" weewx howto search historical data in "splitted" datafiles?

Sorry for my english, hope you understand what I'm meaning.

I try to find information in weewx docs session and/or wee_database, but 
(?)

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/9fd07af1-7dba-4bae-a026-3ff9f354b0d6n%40googlegroups.com.


Re: [weewx-user] windGustDir is always set to NULL in database after upgrating to weewx version 4.6.0/4.6.2

2022-02-16 Thread Fische Namenlos
Fische Namenlos schrieb am Mittwoch, 16. Februar 2022 um 10:52:28 UTC+1:

> I've similar failures for the WindGust, but only in the *creation *of 
> "image"  for the *stacked WindRose*. I use the blue sofaskin on a 
> renkforce WH2315, alias FineOffset.
>
> It was working nicely with 4.5.1...
>
>
> remy.l...@gmail.com schrieb am Montag, 14. Februar 2022 um 13:37:41 UTC+1:
>
>> A *water year* (also called *hydrological year*, *discharge year* or *flow 
>> year*) is a term commonly used in hydrology 
>> <https://en.m.wikipedia.org/wiki/Hydrology> to describe a time period of 
>> 12 months for which precipitation 
>> <https://en.m.wikipedia.org/wiki/Precipitation> totals are measured. Its 
>> beginning differs from the calendar year 
>> <https://en.m.wikipedia.org/wiki/Calendar_year> because part of the 
>> precipitation that falls in late autumn and winter accumulates as snow 
>> <https://en.m.wikipedia.org/wiki/Snow> and does not drain until the 
>> following spring or summer's snowmelt 
>> <https://en.m.wikipedia.org/wiki/Snowmelt>.
>>
>> Due to meteorological and geographical factors, the definition of the 
>> water years varies; the United States Geological Survey 
>> <https://en.m.wikipedia.org/wiki/United_States_Geological_Survey> defines 
>> it as the period between October 1 of one year and September 30th of the 
>> next. The water year is designated by the calendar year in which it ends, 
>> so the 2010 water year (USGS) started on October 1, 2009 and ended on 
>> September 30, 2010.
>>
>> One way to identify a water-year is to find that successive 12-month 
>> period that most consistently, year after year, gives the highest 
>> correlation between precipitation and streamflow and negligible changes in 
>> storage (i.e., soil water and snow).
>> Thank’s Wikipedia...
>> Le lundi 14 février 2022 à 12:45:58 UTC+1, paul...@gmail.com a écrit :
>>
>>> Checked this morning and pleased to say Max Wind direction is now 
>>> reporting and updating in the Day tab of the Statistics section. Still N/A 
>>> in Week but I'm guessing it will update in due course.
>>> Just out of interest I've noticed in the Statistics section the Year tab 
>>> is blue and if you click on it you get the option of Year or Rain Year. 
>>> What actually is the difference between these two? In my case the values 
>>> reported are identical.
>>> Paul
>>>
>>> On Sunday, 13 February 2022 at 20:01:25 UTC remy.l...@gmail.com wrote:
>>>
>>>> Yes, it’s the good python file, same as me  (if standard 
>>>> installation...)
>>>> The Tom’s update/patch solves perfectly the problem and also min/max 
>>>> windGustDir data base.
>>>> Try stop and start weewx (logicaly same thing as restart... !?)
>>>> Try to look for all wxxtype.py on your system to see if there is 
>>>> another file ? Logicaly no...
>>>>
>>>>
>>>> Le dimanche 13 février 2022 à 20:23:07 UTC+1, paul...@gmail.com a 
>>>> écrit :
>>>>
>>>>> Hi Remy
>>>>> Yes I did sudo /etc/init.d/weewx restart. Just in case I've done it 
>>>>> again but no change.
>>>>> Can I just check I swapped the correct wxxtypes.py file. I swapped the 
>>>>> one in /usr/share/weewx/weewx
>>>>> Paul
>>>>>
>>>>> On Sunday, 13 February 2022 at 18:08:44 UTC remy.l...@gmail.com wrote:
>>>>>
>>>>>> Hi Paul.
>>>>>> Have you triedto stop weewx and restart it ?
>>>>>> You must do that if you modify python file.
>>>>>> Cordialy 
>>>>>>
>>>>>>
>>>>>> Le dimanche 13 février 2022 à 18:32:38 UTC+1, paul...@gmail.com a 
>>>>>> écrit :
>>>>>>
>>>>>>> I don't report wind gust values/direction in the Current Conditions 
>>>>>>> section of my Seasons skin (version 4.6.2) but in the Statistics 
>>>>>>> (previously High/Low) section I've always had a Max Wind entry with 
>>>>>>> both 
>>>>>>> speed and direction reported. Since 4.6.2 the direction is reported as 
>>>>>>> N/A 
>>>>>>> so I've followed this thread and replaced the wxxtypes.py file with the 
>>>>>>> new 
>>>>>>> one from Tom but it doesn't seem to have made any differen

Re: [weewx-user] windGustDir is always set to NULL in database after upgrating to weewx version 4.6.0/4.6.2

2022-02-16 Thread Fische Namenlos
 I've similar failures for the WindGust, but only in the *creation *of 
"image"  for the *stacked WindRose*. I use the blue sofaskin on a renkforce 
WH2315, alias FineOffset.

It was working nicely with 4.5.1...


remy.l...@gmail.com schrieb am Montag, 14. Februar 2022 um 13:37:41 UTC+1:

> A *water year* (also called *hydrological year*, *discharge year* or *flow 
> year*) is a term commonly used in hydrology 
>  to describe a time period of 
> 12 months for which precipitation 
>  totals are measured. Its 
> beginning differs from the calendar year 
>  because part of the 
> precipitation that falls in late autumn and winter accumulates as snow 
>  and does not drain until the 
> following spring or summer's snowmelt 
> .
>
> Due to meteorological and geographical factors, the definition of the 
> water years varies; the United States Geological Survey 
>  defines 
> it as the period between October 1 of one year and September 30th of the 
> next. The water year is designated by the calendar year in which it ends, 
> so the 2010 water year (USGS) started on October 1, 2009 and ended on 
> September 30, 2010.
>
> One way to identify a water-year is to find that successive 12-month 
> period that most consistently, year after year, gives the highest 
> correlation between precipitation and streamflow and negligible changes in 
> storage (i.e., soil water and snow).
> Thank’s Wikipedia...
> Le lundi 14 février 2022 à 12:45:58 UTC+1, paul...@gmail.com a écrit :
>
>> Checked this morning and pleased to say Max Wind direction is now 
>> reporting and updating in the Day tab of the Statistics section. Still N/A 
>> in Week but I'm guessing it will update in due course.
>> Just out of interest I've noticed in the Statistics section the Year tab 
>> is blue and if you click on it you get the option of Year or Rain Year. 
>> What actually is the difference between these two? In my case the values 
>> reported are identical.
>> Paul
>>
>> On Sunday, 13 February 2022 at 20:01:25 UTC remy.l...@gmail.com wrote:
>>
>>> Yes, it’s the good python file, same as me  (if standard installation...)
>>> The Tom’s update/patch solves perfectly the problem and also min/max 
>>> windGustDir data base.
>>> Try stop and start weewx (logicaly same thing as restart... !?)
>>> Try to look for all wxxtype.py on your system to see if there is another 
>>> file ? Logicaly no...
>>>
>>>
>>> Le dimanche 13 février 2022 à 20:23:07 UTC+1, paul...@gmail.com a 
>>> écrit :
>>>
 Hi Remy
 Yes I did sudo /etc/init.d/weewx restart. Just in case I've done it 
 again but no change.
 Can I just check I swapped the correct wxxtypes.py file. I swapped the 
 one in /usr/share/weewx/weewx
 Paul

 On Sunday, 13 February 2022 at 18:08:44 UTC remy.l...@gmail.com wrote:

> Hi Paul.
> Have you triedto stop weewx and restart it ?
> You must do that if you modify python file.
> Cordialy 
>
>
> Le dimanche 13 février 2022 à 18:32:38 UTC+1, paul...@gmail.com a 
> écrit :
>
>> I don't report wind gust values/direction in the Current Conditions 
>> section of my Seasons skin (version 4.6.2) but in the Statistics 
>> (previously High/Low) section I've always had a Max Wind entry with both 
>> speed and direction reported. Since 4.6.2 the direction is reported as 
>> N/A 
>> so I've followed this thread and replaced the wxxtypes.py file with the 
>> new 
>> one from Tom but it doesn't seem to have made any difference to my Max 
>> Wind 
>> entry. If you look at the Statistics report below it still shows N/A for 
>> Max Wind degrees for Day and Week but for Month and Year (presumably 
>> data 
>> from 4.5.1) a degree value is reported.
>>
>> [image: Max Wind.jpg]
>> Any suggestions?
>>
>> Paul
>> On Sunday, 13 February 2022 at 15:04:26 UTC asla...@gmail.com wrote:
>>
>>> Brilliant, now it work just fine.
>>> Thanks a lot.
>>>
>>> On Sunday, February 13, 2022 at 3:28:45 PM UTC+1 remy.l...@gmail.com 
>>> wrote:
>>>
 Yes !! Thank-you Tom it works great now :

 [image: Capture d’écran de 2022-02-13 15-26-27.png]
 Le dimanche 13 février 2022 à 14:33:57 UTC+1, tke...@gmail.com a 
 écrit :

> I was able to replicate the problem. Pre V4.6, if windGustDir was 
> missing, windDir was substituted. That behavior went away with v4.6. 
> This 
> patch restores it.
>
> Index: bin/weewx/wxxtypes.py
> ===
> diff --git a/bin/weewx/wxxtypes.py b/bin/weewx/wxxtypes.

[weewx-user] Re: windDir is None since upgrading to 4.6.2 from 4.5.1 on VP2

2022-02-16 Thread Fische Namenlos
I've similar failures for the WindGust, but only in the *creation *of 
"image"  for the *stacked WindRose*. I use the blue sofaskin on a renkforce 
WH2315, alias FineOffset.

It was working nicely with 4.5.1...

gjr80 schrieb am Mittwoch, 16. Februar 2022 um 02:30:05 UTC+1:

> The 4.5.1 archive record looks very much like a software generated archive 
> record, you can tell by the windDir value. The windDir value in a 
> hardware generated archive record from a VP2 appears in multiples of 12.5 
> degrees - that is fixed and a limitation of the archive record format 
> emitted from the console/logger. In a WeeWX VP2 hardware generated archive 
> record the wind direction values will be multiples of 12.5 or None. 
> Software generated archive records contain an average of the loop packet 
> windDir values. windDir in a VP2 loop packet is in whole degrees and not 
> subject to the '12.5 degree multiple' effect. So in a software generated 
> archive record windDir will be a float, usually with a number of decimal 
> places and certainly (almost always) not a multiple of 12.5. I also see 
> THSW in the archive records, THSW is only present in the LOOP2 archive 
> packet so I am guessing you are using LOOP2 instead of the normal LOOP1 
> packet. Should not be a problem but it's something out of the ordinary.
>
> Might help to see the WeeWX startup for each case and weewx.conf to 
> understand your configuration. You say record generation is set to hardware 
> in weewx.conf, that is great but not necessarily what is used by WeeWX. 
> WeeWX will try hardware and if for some reason it doesn't work/isn't 
> available WeeWX will drop back to software record generation. Always best 
> to check what is in the log.
>
> I would also look at the loop packets, what wind direction values do you 
> see in loop packets? What appears in the subsequent archive record? No need 
> to modify WeeWX, just run WeeWX directly 
>  and you will see 
> loop packets and archive records direct to console.
>
> Gary
> On Wednesday, 16 February 2022 at 03:02:54 UTC+10 James Taylor wrote:
>
>> Hello
>>
>> I've upgraded to weewx 4.6.2 and found out that my vantage Pro2 REC is 
>> giving a different output for windDir 
>>
>> record_generation is set to hardware in weewx.conf 
>>
>> I amended StdPrint to output new_archive_record to stdout and log.debug 
>> and I can see a difference
>>
>> 4.6.2 - 
>> Feb 15 16:30:15 pi weewx[21988] DEBUG weewx.engine: REC:   2022-02-15 
>> 16:30:00 GMT (1644942600) 'altimeter': '29.664795850933803', 'appTemp': 
>> '44.26912313212261', 'bar_calibration': '-0.0020013', 
>> 'bar_offset': '-0.010005', 'bar_reduction': 
>> '0.0020013', 'barometer': '29.673', 'beaufort': '2', 
>> 'cloudbase': '794.2252812978254', 'consBatteryVoltage': '4.65', 'dateTime': 
>> '1644942600', 'dayET': '0.013', 'dayRain': '0.1338582669002', 
>> 'dewpoint': '46.75340876228957', 'ET': '0.0', 'extraAlarm1': '0.0', 
>> 'extraAlarm2': '0.0', 'extraAlarm3': '0.0', 'extraAlarm4': '0.0', 
>> 'extraAlarm5': '0.0', 'extraAlarm6': '0.0', 'extraAlarm7': '0.0', 
>> 'extraAlarm8': '0.0', 'forecastIcon': '3.0', 'forecastRule': '158', 
>> 'heatindex': '47.3580004', 'highOutTemp': '48.5', 'highRadiation': 
>> '11.0', 'highUV': '0.0', 'hourRain': '0.0078740157', 'humidex': 
>> '49.280997613295085', 'inDewpoint': '50.40086122975667', 'inHumidity': 
>> '48.0', 'insideAlarm': '0.0', 'inTemp': '71.1', 'interval': '5', 
>> 'leafWet4': '0.0', 'lowOutTemp': '48.4', 'maxSolarRad': 
>> '46.94974186677293', 'monthET': '0.52', 'monthRain': '1.0787401509', 
>> 'outHumidity': '94.0', 'outsideAlarm1': '0.0', 'outsideAlarm2': '0.0', 
>> 'outTemp': '48.4', 'pressure': '29.21395918348061', 'pressure_raw': 
>> '29.2247995', 'radiation': '5.3995', 'rain': '0.0', 
>> 'rain15': '0.0', 'rain24': '0.1338582669002', 'rainAlarm': '0.0', 
>> 'rainRate': '0.0', 'rxCheckPercent': '97.375', 'soilLeafAlarm1': '0.0', 
>> 'soilLeafAlarm2': '0.0', 'soilLeafAlarm3': '0.0', 'soilLeafAlarm4': '0.0', 
>> 'stormRain': '0.1338582669002', 'stormStart': '1644883200.0', 
>> 'sunrise': '1644912960.0', 'sunset': '1644949080.0', 'sunshineDuration': 
>> '0.0', 'THSW': '45.0', 'trendIcon': '-20.0', 'txBatteryStatus': '0', 
>> 'usUnits': '1', 'UV': '0.0', 'wind_samples': '114.0', 'windchill': 
>> '45.762013144176095', 'windDir': 'None', 'windGust': '10.0', 'windGust10': 
>> '10.0', 'windGustDir': '247.5', 'windGustDir10': '247.0', 'windrun': '0.5', 
>> 'windSpeed': '6.0', 'windSpeed2': '5.7', 'windSpeed10': '5.0', 'yearET': 
>> '1.13', 'yearRain': '1.527559045801'
>>
>> Back to 4.5.1 and everything is good ( windDir: 237.52965750482582).
>>
>> Feb 15 16:50:15 pi weewx[22480] DEBUG weewx.engine: REC:  2022-02-15 
>> 16:50:00 GMT (1644943800) altimeter: 29.656827096532094, appTemp: 
>> 45.77889412649187, bar_calibration: -0.0020013, bar_offset: 
>> -0.01

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

2021-12-28 Thread Fische Namenlos
*Addendum*: *polling_interval* could be changed in modded 
"user"-driver-file itself; has no effect in weewx.conf file. Standard is 
15sec

Renkforce WH2315 (and clones) has min. sensor intervall from 48sec.

Fische Namenlos schrieb am Samstag, 25. Dezember 2021 um 17:56:31 UTC+1:

> 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&paste 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):
>>>>&g

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&paste 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=confi

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&paste 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: 
>>   weew

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

2021-12-25 Thread Fische Namenlos
ah, sorry, wrong copy&paste 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
>>> [  

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
>>  
>> <https://groups.google.com/d/msgid/weewx-user/a131fd19-b8cf-4532-b3b8-2f559f3913b4n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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.


[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.