Re: [weewx-user] Re: CRITICAL __main__: **** must be real number, not NoneType OR CRITICAL __main__:*** %x formatpe or : an integer is required, not float

2021-01-02 Thread Co van der lee
Hi Luc,
Thanks a lot for your quick action, great! I found v0.20, brand new :)
I will update the driver with the following commands on the Rpi


   - sudo wget -O weewx-rtldavis-master.zip
   https://github.com/lheijst/weewx-rtldavis/archive/master.zip
   - sudo ./bin/wee_extension --install weewx-rtldavis-master.zip
   - sudo ./bin/wee_config --reconfigure --driver=user.rtldavis --no-prompt
   - reboot

is this the procedure or do I miss something?

For this update I need to go to the lake (Setup with 4g mobile connection)
no remote management.

i will report the results.

Compliments for your work to make 868Mhz SDR communication possible and
thanks again!

/Co


Op za 2 jan. 2021 om 17:38 schreef Luc Heijst :

> Hi Co,
>
> The error on line 938 occurs when no single message is received from the
> Davis station during an archive interval (typical 5 minutes).
> The error on line 1200 occurs when data is reveived from an analog
> temperature sensor. The 12-bit raw data is converted to 10 bits causing the
> integer type to be changed to a float.
> (This type of sensor is seldom used with Davis stations.)
>
> Luc
>
> Op zaterdag 2 januari 2021 om 10:47:10 UTC-3 schreef covan...@gmail.com:
>
>> Hi all,
>>
>>
>>
>> Ik hope someone can help me to automate errorhandling……….
>>
>>
>>
>> The Rpi with SDR (weewx 4.2 / Mysql / apache) runs well, at inexplicable
>> moments the loop is interrupted, see parts op the logfile.
>>
>>
>>
>> the weewx.service remains active only sub-processes have been stopped. a
>> /etc/init.d./weewx restart reactivate the loop until the next error.
>>
>>
>>
>> Question: my idea is a workaround, does anyone know how I can read out
>> the last 6 minutes of / var / log / syslog using a cron job (or script) and
>> if a text CRITICAL __main occurs that /etc/init.d./weewx restart will be
>> executed.
>>
>>
>>
>> or is there an easier way for a workaround.
>>
>> or will it cause other problems in the long term?
>>
>>
>>
>> Thnx a lot, in the meantime I'm going to consider a reinstall on another
>> Rpi 
>>
>>
>>
>> (29-12-202) @7:50
>>
>> · weewx.engine: Main loop exiting. Shutting engine down.
>>
>> · weewx.engine: Shutting down StdReport thread
>>
>> · user.rtldavis: shutdown process /home/pi/work/bin/rtldavis -ex
>> 200 -tf EU -tr 1
>>
>> · user.rtldavis: rtldavis with pid 1166 killed
>>
>> · *CRITICAL __main__:* Caught unrecoverable exception:
>>
>> · CRITICAL __main__:   must be real number, not NoneType
>>
>>
>>
>> earlier error (27-11-2020)
>>
>> · CRITICAL __main__:   %x format: an integer is
>> required, not float
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> LOGFILES -> ---
>>
>>
>>
>> Dec 29 02:05:16 wsb-meteo weewx[1162] INFO weewx.manager: Added record
>> 2020-12-29 02:05:00 CET (1609203900) to database 'weewx'
>>
>> Dec 29 02:05:16 wsb-meteo weewx[1162] INFO weewx.manager: Added record
>> 2020-12-29 02:05:00 CET (1609203900) to daily summary in 'weewx'
>>
>> Dec 29 02:10:16 wsb-meteo weewx[1162] INFO weewx.manager: Added record
>> 2020-12-29 02:10:00 CET (1609204200) to database 'weewx'
>>
>> Dec 29 02:10:16 wsb-meteo weewx[1162] INFO weewx.manager: Added record
>> 2020-12-29 02:10:00 CET (1609204200) to daily summary in 'weewx'
>>
>> Dec 29 02:10:16 wsb-meteo weewx[1162] INFO weewx.engine: Garbage
>> collected 21556 objects in 0.09 seconds
>>
>> Dec 29 02:15:16 wsb-meteo weewx[1162] INFO weewx.manager: Added record
>> 2020-12-29 02:15:00 CET (1609204500) to database 'weewx'
>>
>> Dec 29 02:15:16 wsb-meteo weewx[1162] INFO weewx.manager: Added record
>> 2020-12-29 02:15:00 CET (1609204500) to daily summary in 'weewx'
>>
>> --loop still runs well
>> --
>>
>> Dec 29 07:45:16 wsb-meteo weewx[1162] INFO weewx.manager: Added record
>> 2020-12-29 07:45:00 CET (1609224300) to database 'weewx'
>>
>> Dec 29 07:45:17 wsb-meteo weewx[1162] INFO weewx.manager: Added record
>> 2020-12-29 07:45:00 CET (1609224300) to daily summary in 'weewx'
>>
>>
>>
>> Error started
>>
>>
>>
>> Dec 29 07:50:16 wsb-meteo weewx[1162] INFO weewx.engine: Main loop
>> exiting. Shutting engine down.
>>
>> Dec 29 07:50:16 wsb-meteo weewx[1162] INFO weewx.engine: Shutting down
>> StdReport thread
>>
>> Dec 29 07:50:16 wsb-meteo weewx[1162] INFO user.rtldavis: shutdown
>> process /home/pi/work/bin/rtldavis -ex 200 -tf EU -tr 1
>>
>> Dec 29 07:50:16 wsb-meteo weewx[1162] INFO user.rtldavis: rtldavis with
>> pid 1166 killed
>>
>> Dec 29 07:50:16 wsb-meteo weewx[1162] CRITICAL __main__: Caught
>> unrecoverable exception:
>>
>> Dec 29 07:50:16 wsb-meteo weewx[1162] CRITICAL __main__:   must
>> be real number, not NoneType
>>
>> Dec 29 07:50:16 wsb-meteo weewx[1162] CRITICAL __main__: 
>> Traceback (most recent call last):
>>
>> Dec 29 07:50:16 wsb-meteo weewx[1162] CRITICAL __main__: File
>> "/home/weewx/bin/weewx/engine.py", line 210

Re: [weewx-user] CRITICAL __main__: **** must be real number, not NoneType OR CRITICAL __main__:*** %x formatpe or : an integer is required, not float

2021-01-02 Thread Co van der lee
Thanks for your quick response Tom, I posted it on lheist's Git. I hope he
can fix it?
The crazy thing is the spontaneous occurrence, every 5 minutes the loop
runs, some days without error and then suddenly this happend 

As a workaround for the time to fix .
- appear there other errors if i restart the weewx.server each hour
preventive? technicly possible with Cron.
- do you have an idea to automate when this occours (if message is CRITICAL
than ..) at script / tool? (read last 6 min. from syslog for CRITICAL
sign)

thanks! And keep up the good work! compliments for your work!

Op za 2 jan. 2021 om 15:30 schreef Tom Keffer :

> These are both simple errors in the driver rtldavis. Ask the driver's
> author to fix the problem.
>
> On Sat, Jan 2, 2021 at 5:47 AM Co van der lee 
> wrote:
>
>> Hi all,
>>
>>
>>
>> Ik hope someone can help me to automate errorhandling……….
>>
>>
>>
>> The Rpi with SDR (weewx 4.2 / Mysql / apache) runs well, at inexplicable
>> moments the loop is interrupted, see parts op the logfile.
>>
>>
>>
>> the weewx.service remains active only sub-processes have been stopped. a
>> /etc/init.d./weewx restart reactivate the loop until the next error.
>>
>>
>>
>> Question: my idea is a workaround, does anyone know how I can read out
>> the last 6 minutes of / var / log / syslog using a cron job (or script) and
>> if a text CRITICAL __main occurs that /etc/init.d./weewx restart will be
>> executed.
>>
>>
>>
>> or is there an easier way for a workaround.
>>
>> or will it cause other problems in the long term?
>>
>>
>>
>> Thnx a lot, in the meantime I'm going to consider a reinstall on another
>> Rpi 
>>
>>
>>
>> (29-12-202) @7:50
>>
>> · weewx.engine: Main loop exiting. Shutting engine down.
>>
>> · weewx.engine: Shutting down StdReport thread
>>
>> · user.rtldavis: shutdown process /home/pi/work/bin/rtldavis -ex
>> 200 -tf EU -tr 1
>>
>> · user.rtldavis: rtldavis with pid 1166 killed
>>
>> · *CRITICAL __main__:* Caught unrecoverable exception:
>>
>> · CRITICAL __main__:   must be real number, not NoneType
>>
>>
>>
>> earlier error (27-11-2020)
>>
>> · CRITICAL __main__:   %x format: an integer is
>> required, not float
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> LOGFILES -> ---
>>
>>
>>
>> Dec 29 02:05:16 wsb-meteo weewx[1162] INFO weewx.manager: Added record
>> 2020-12-29 02:05:00 CET (1609203900) to database 'weewx'
>>
>> Dec 29 02:05:16 wsb-meteo weewx[1162] INFO weewx.manager: Added record
>> 2020-12-29 02:05:00 CET (1609203900) to daily summary in 'weewx'
>>
>> Dec 29 02:10:16 wsb-meteo weewx[1162] INFO weewx.manager: Added record
>> 2020-12-29 02:10:00 CET (1609204200) to database 'weewx'
>>
>> Dec 29 02:10:16 wsb-meteo weewx[1162] INFO weewx.manager: Added record
>> 2020-12-29 02:10:00 CET (1609204200) to daily summary in 'weewx'
>>
>> Dec 29 02:10:16 wsb-meteo weewx[1162] INFO weewx.engine: Garbage
>> collected 21556 objects in 0.09 seconds
>>
>> Dec 29 02:15:16 wsb-meteo weewx[1162] INFO weewx.manager: Added record
>> 2020-12-29 02:15:00 CET (1609204500) to database 'weewx'
>>
>> Dec 29 02:15:16 wsb-meteo weewx[1162] INFO weewx.manager: Added record
>> 2020-12-29 02:15:00 CET (1609204500) to daily summary in 'weewx'
>>
>> --loop still runs well
>> --
>>
>> Dec 29 07:45:16 wsb-meteo weewx[1162] INFO weewx.manager: Added record
>> 2020-12-29 07:45:00 CET (1609224300) to database 'weewx'
>>
>> Dec 29 07:45:17 wsb-meteo weewx[1162] INFO weewx.manager: Added record
>> 2020-12-29 07:45:00 CET (1609224300) to daily summary in 'weewx'
>>
>>
>>
>> Error started
>>
>>
>>
>> Dec 29 07:50:16 wsb-meteo weewx[1162] INFO weewx.engine: Main loop
>> exiting. Shutting engine down.
>>
>> Dec 29 07:50:16 wsb-meteo weewx[1162] INFO weewx.engine: Shutting down
>> StdReport thread
>>
>> Dec 29 07:50:16 wsb-meteo weewx[1162] INFO user.rtldavis: shutdown
>> process /home/pi/work/bin/rtldavis -ex 200 -tf EU -tr 1
>>
>> Dec 29 07:50:16 wsb-meteo weewx[1162] INFO user.rtldavis: rtldavis with
>> pid 1166 killed
>>
&g

[weewx-user] CRITICAL __main__: **** must be real number, not NoneType OR CRITICAL __main__:*** %x formatpe or : an integer is required, not float

2021-01-02 Thread Co van der lee
Hi all,



Ik hope someone can help me to automate errorhandling……….



The Rpi with SDR (weewx 4.2 / Mysql / apache) runs well, at inexplicable
moments the loop is interrupted, see parts op the logfile.



the weewx.service remains active only sub-processes have been stopped. a
/etc/init.d./weewx restart reactivate the loop until the next error.



Question: my idea is a workaround, does anyone know how I can read out the
last 6 minutes of / var / log / syslog using a cron job (or script) and if
a text CRITICAL __main occurs that /etc/init.d./weewx restart will be
executed.



or is there an easier way for a workaround.

or will it cause other problems in the long term?



Thnx a lot, in the meantime I'm going to consider a reinstall on another
Rpi 



(29-12-202) @7:50

· weewx.engine: Main loop exiting. Shutting engine down.

· weewx.engine: Shutting down StdReport thread

· user.rtldavis: shutdown process /home/pi/work/bin/rtldavis -ex
200 -tf EU -tr 1

· user.rtldavis: rtldavis with pid 1166 killed

· *CRITICAL __main__:* Caught unrecoverable exception:

· CRITICAL __main__:   must be real number, not NoneType



earlier error (27-11-2020)

· CRITICAL __main__:   %x format: an integer is required,
not float











LOGFILES -> ---



Dec 29 02:05:16 wsb-meteo weewx[1162] INFO weewx.manager: Added record
2020-12-29 02:05:00 CET (1609203900) to database 'weewx'

Dec 29 02:05:16 wsb-meteo weewx[1162] INFO weewx.manager: Added record
2020-12-29 02:05:00 CET (1609203900) to daily summary in 'weewx'

Dec 29 02:10:16 wsb-meteo weewx[1162] INFO weewx.manager: Added record
2020-12-29 02:10:00 CET (1609204200) to database 'weewx'

Dec 29 02:10:16 wsb-meteo weewx[1162] INFO weewx.manager: Added record
2020-12-29 02:10:00 CET (1609204200) to daily summary in 'weewx'

Dec 29 02:10:16 wsb-meteo weewx[1162] INFO weewx.engine: Garbage collected
21556 objects in 0.09 seconds

Dec 29 02:15:16 wsb-meteo weewx[1162] INFO weewx.manager: Added record
2020-12-29 02:15:00 CET (1609204500) to database 'weewx'

Dec 29 02:15:16 wsb-meteo weewx[1162] INFO weewx.manager: Added record
2020-12-29 02:15:00 CET (1609204500) to daily summary in 'weewx'

--loop still runs well
--

Dec 29 07:45:16 wsb-meteo weewx[1162] INFO weewx.manager: Added record
2020-12-29 07:45:00 CET (1609224300) to database 'weewx'

Dec 29 07:45:17 wsb-meteo weewx[1162] INFO weewx.manager: Added record
2020-12-29 07:45:00 CET (1609224300) to daily summary in 'weewx'



Error started



Dec 29 07:50:16 wsb-meteo weewx[1162] INFO weewx.engine: Main loop exiting.
Shutting engine down.

Dec 29 07:50:16 wsb-meteo weewx[1162] INFO weewx.engine: Shutting down
StdReport thread

Dec 29 07:50:16 wsb-meteo weewx[1162] INFO user.rtldavis: shutdown process
/home/pi/work/bin/rtldavis -ex 200 -tf EU -tr 1

Dec 29 07:50:16 wsb-meteo weewx[1162] INFO user.rtldavis: rtldavis with pid
1166 killed

Dec 29 07:50:16 wsb-meteo weewx[1162] CRITICAL __main__: Caught
unrecoverable exception:

Dec 29 07:50:16 wsb-meteo weewx[1162] CRITICAL __main__:   must be
real number, not NoneType

Dec 29 07:50:16 wsb-meteo weewx[1162] CRITICAL __main__: 
Traceback (most recent call last):

Dec 29 07:50:16 wsb-meteo weewx[1162] CRITICAL __main__: File
"/home/weewx/bin/weewx/engine.py", line 210, in run

Dec 29 07:50:16 wsb-meteo weewx[1162] CRITICAL __main__: 
self.dispatchEvent(weewx.Event(weewx.CHECK_LOOP, packet=packet))

Dec 29 07:50:16 wsb-meteo weewx[1162] CRITICAL __main__: File
"/home/weewx/bin/weewx/engine.py", line 241, in dispatchEvent

Dec 29 07:50:16 wsb-meteo weewx[1162] CRITICAL __main__: 
callback(event)

Dec 29 07:50:16 wsb-meteo weewx[1162] CRITICAL __main__: File
"/home/weewx/bin/weewx/engine.py", line 630, in check_loop

Dec 29 07:50:16 wsb-meteo weewx[1162] CRITICAL __main__: 
raise BreakLoop

Dec 29 07:50:16 wsb-meteo weewx[1162] CRITICAL __main__: 
weewx.engine.BreakLoop

Dec 29 07:50:16 wsb-meteo weewx[1162] CRITICAL __main__: 

Dec 29 07:50:16 wsb-meteo weewx[1162] CRITICAL __main__:   During
handling of the above exception, another exception occurred:

Dec 29 07:50:16 wsb-meteo weewx[1162] CRITICAL __main__: 

Dec 29 07:50:16 wsb-meteo weewx[1162] CRITICAL __main__: 
Traceback (most recent call last):

Dec 29 07:50:16 wsb-meteo weewx[1162] CRITICAL __main__: File
"/home/weewx/bin/weewx/engine.py", line 646, in post_loop

Dec 29 07:50:16 wsb-meteo weewx[1162] CRITICAL __main__: 
self._catchup(self.engine.console.genArchiveRecords)

Dec 29 07:50:16 wsb-meteo weewx[1162] CRITICAL __main__: File
"/home/weewx/bin/weewx/engine.py", line 690, in _catchup

Dec 29 07:50:16 wsb-meteo weewx[1162] CRITICAL __main__:   for
record in generator(lastgood_ts)

Re: [weewx-user] Re: Script if service weewx[xxxx] is CRITICAL _ then.......f.e. reboot

2020-12-30 Thread Co van der lee
Hi Vince,

Thanks for reply and suggestion.

I already did but no response thats why i was looking for a work-a-round

The critical error appears sometimes in the loop with an error that there
was a float where the software expected a integer.

I hope someone had a suggestion for the script.

Tnx



Op wo 30 dec. 2020 19:23 schreef vince :

> Usually the best path is to examine your logs to find out 'why' you are
> running into problems, and then fix the issue. Most sites run for years
> without issues.
>
> Set debug=1 in weewx.conf, restart weewx, and check your logs if it
> happens again. Post here if you want others to try to help.
>
> On Wednesday, December 30, 2020 at 7:31:21 AM UTC-8 covan...@gmail.com
> wrote:
>
>> Hi,
>>
>> Sometimes @ unexpected times the weewx service become critical and stops
>> / hangs.
>> as workaround I want to create a python / bash script the checks (f.e.
>> every hour) by Cron the status and if the status is Critical or Error then
>> the system reboots.
>>
>> Is this possible, I guess Yess but I need some help.
>>
>> Does someone has an idea how to achieve that.
>>
>> thanks!
>> regards Co
>>
> --
> 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/66a2271e-8f15-4575-9f23-7bcbbf29de34n%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/CABQzV8wzvKO8iZD9JEawBAx3EXv7vw%2B3GoK0QtdWUDZ6ZndCqA%40mail.gmail.com.


[weewx-user] Script if service weewx[xxxx] is CRITICAL _ then.......f.e. reboot

2020-12-30 Thread Co van der lee
Hi,

Sometimes @ unexpected times the weewx service become critical and stops /
hangs.
as workaround I want to create a python / bash script the checks (f.e.
every hour) by Cron the status and if the status is Critical or Error then
the system reboots.

Is this possible, I guess Yess but I need some help.

Does someone has an idea how to achieve that.

thanks!
regards Co

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


[weewx-user] Weewx Crash - CRITICAL __main__: **** TypeError: %x format: an integer is required, not float

2020-12-28 Thread Co van der lee
Hi,

We are happy with the system is up and running and publishes every 5
minutes the data to Windy and Windguru, this is great!

Sometimes the system crashes / hang after some day's or weeks. last time it
runs 3,5 week without any problem.

this is the log, it seems that there is float data where the system expects
an integer, the strange thing is that the loop run's each 5 minuteswhy
it could crash?

I run the latest version of Weewx, does anybody has an idea or solution?

Tnx!
Regards Co,


Nov 29 09:20:16 wsb-meteo weewx[1104] INFO weewx.restx: Windy: Published
record 2020-11-29 09:20:00 CET (1606638000)
Nov 29 09:20:16 wsb-meteo weewx[1104] INFO weewx.restx: WindGuru: Published
record 2020-11-29 09:20:00 CET (1606638000)
Nov 29 09:20:19 wsb-meteo weewx[1104] INFO weewx.cheetahgenerator:
Generated 8 files for report SeasonsReport in 3.07 seconds
Nov 29 09:20:20 wsb-meteo weewx[1104] INFO weewx.imagegenerator: Generated
15 images for report SeasonsReport in 1.49 seconds
Nov 29 09:20:20 wsb-meteo weewx[1104] INFO weewx.reportengine: Copied 0
files to /home/weewx/public_html
Nov 29 09:25:15 wsb-meteo weewx[1104] INFO weewx.manager: Added record
2020-11-29 09:25:00 CET (1606638300) to database 'weewx'
Nov 29 09:25:16 wsb-meteo weewx[1104] INFO weewx.manager: Added record
2020-11-29 09:25:00 CET (1606638300) to daily summary in 'weewx'
Nov 29 09:25:16 wsb-meteo weewx[1104] INFO weewx.restx: Windy: Published
record 2020-11-29 09:25:00 CET (1606638300)
Nov 29 09:25:16 wsb-meteo weewx[1104] INFO weewx.restx: WindGuru: Published
record 2020-11-29 09:25:00 CET (1606638300)
Nov 29 09:25:19 wsb-meteo weewx[1104] INFO weewx.cheetahgenerator:
Generated 8 files for report SeasonsReport in 2.87 seconds
Nov 29 09:25:20 wsb-meteo weewx[1104] INFO weewx.imagegenerator: Generated
15 images for report SeasonsReport in 1.60 seconds
Nov 29 09:25:20 wsb-meteo weewx[1104] INFO weewx.reportengine: Copied 0
files to /home/weewx/public_html
Nov 29 09:30:10 wsb-meteo weewx[1104] INFO weewx.engine: Main loop exiting.
Shutting engine down.
Nov 29 09:30:10 wsb-meteo weewx[1104] INFO weewx.engine: Shutting down
StdReport thread
Nov 29 09:30:10 wsb-meteo weewx[1104] INFO user.rtldavis: shutdown process
/home/pi/work/bin/rtldavis -ex 200 -tf EU -tr 1
Nov 29 09:30:10 wsb-meteo weewx[1104] INFO user.rtldavis: rtldavis with pid
1108 killed
Nov 29 09:30:10 wsb-meteo weewx[1104] CRITICAL __main__: Caught
unrecoverable exception:
Nov 29 09:30:10 wsb-meteo weewx[1104] CRITICAL __main__:   %x
format: an integer is required, not float
Nov 29 09:30:11 wsb-meteo weewx[1104] CRITICAL __main__: 
 Traceback (most recent call last):
Nov 29 09:30:11 wsb-meteo weewx[1104] CRITICAL __main__: File
"./bin/weewxd", line 154, in main
Nov 29 09:30:11 wsb-meteo weewx[1104] CRITICAL __main__: File
"/home/weewx/bin/weewx/engine.py", line 203, in run
Nov 29 09:30:11 wsb-meteo weewx[1104] CRITICAL __main__:   for
packet in self.console.genLoopPackets():
Nov 29 09:30:11 wsb-meteo weewx[1104] CRITICAL __main__: File
"/home/weewx/bin/user/rtldavis.py", line 995, in genLoopPackets
Nov 29 09:30:11 wsb-meteo weewx[1104] CRITICAL __main__:   for
data in PacketFactory.create(self, lines):
Nov 29 09:30:11 wsb-meteo weewx[1104] CRITICAL __main__: File
"/home/weewx/bin/user/rtldavis.py", line 616, in create
Nov 29 09:30:11 wsb-meteo weewx[1104] CRITICAL __main__:   pkt
= PacketFactory.parse_text(self, lines)
Nov 29 09:30:11 wsb-meteo weewx[1104] CRITICAL __main__: File
"/home/weewx/bin/user/rtldavis.py", line 628, in parse_text
Nov 29 09:30:11 wsb-meteo weewx[1104] CRITICAL __main__:   pkt
= parser.parse_text(self, payload, lines)
Nov 29 09:30:11 wsb-meteo weewx[1104] CRITICAL __main__: File
"/home/weewx/bin/user/rtldavis.py", line 529, in parse_text
Nov 29 09:30:11 wsb-meteo weewx[1104] CRITICAL __main__:   pkt
= self.parse_raw(self, raw_pkt)
Nov 29 09:30:11 wsb-meteo weewx[1104] CRITICAL __main__: File
"/home/weewx/bin/user/rtldavis.py", line 1200, in parse_raw
Nov 29 09:30:11 wsb-meteo weewx[1104] CRITICAL __main__:   %
(temp_raw, temp_c))
Nov 29 09:30:11 wsb-meteo weewx[1104] CRITICAL __main__: 
 TypeError: %x format: an integer is required, not float
Nov 29 09:30:11 wsb-meteo weewx[1104] CRITICAL __main__:   Exiting.

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


[weewx-user] Can't get RTL-SDR running on Rpi3+ (868 Mhz EU)

2020-11-01 Thread Co van der lee


Hi, 

I’m struggeling a few weeks to get RTL-SDR running on my Rpi 3+ with a 
NooElec nano v2 https://www.nooelec.com/store/nesdr-nano2.html

I wanted to minimize the possible misconfigurations so i didn’t install 
Weewx, this should bet he next step but before that i want be sure RTL-SDR 
is functioning OK.

I installed Debian 10 (Buster), and installed thet pre-requisites form 
http://weewx.com/docs/setup.htm

 

After this is followed the folowing steps:

https://github.com/lheijst/rtldavis/blob/master/README.md

 

*The test after installation looks like this:.*

 

pi@wsb-meteo:~/work/src/github.com/lheijst/rtldavis $ $GOPATH/bin/rtldavis 
-ex 200

14:30:11.389438 rtldavis.go VERSION=0.15

14:30:11.390879 tr=1 fc=0 ppm=0 gain=0 maxmissed=51 ex=200 
receiveWindow=300 actChan=[0] maxChan=1

14:30:11.391160 undefined=false verbose=false disableAfc=false 
deviceString=0

14:30:11.392226 BitRate: 19200

14:30:11.392380 SymbolLength: 14

14:30:11.392476 SampleRate: 268800

14:30:11.392573 Preamble: 1100101110001001

14:30:11.392668 PreambleSymbols: 16

14:30:11.392763 PreambleLength: 224

14:30:11.392859 PacketSymbols: 80

14:30:11.392954 PacketLength: 1120

14:30:11.393048 BlockSize: 512

14:30:11.393143 BufferLength: 2048

Found Rafael Micro R820T tuner

14:30:11.843016 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 
Transmitter:0}

Exact sample rate is: 268800.001367 Hz

14:30:12.018160 GetTunerGain: 0 Db

14:30:12.018311 SetFreqCorrection 0 ppm Successful

Allocating 1 zero-copy buffers

14:30:12.021978 Init channels: wait max 17 seconds for a message of each 
transmitter

14:30:29.961383 Init channels: wait max 17 seconds for a message of each 
transmitter

14:30:29.961516 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 
Transmitter:0}

14:30:47.900464 Init channels: wait max 17 seconds for a message of each 
transmitter

14:30:47.900594 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 
Transmitter:0}

14:31:05.839529 Init channels: wait max 17 seconds for a message of each 
transmitter

14:31:05.839662 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 
Transmitter:0}

 

*After that i tested the following:*

 

pi@wsb-meteo:~/work/src/github.com/lheijst/rtldavis $ $GOPATH/bin/rtldavis 
-tr 1 -startfreq 868315000 -endfreq 86832100 -stepfreq 500

 

13:43:04.106356 rtldavis.go VERSION=0.15

13:43:04.107193 tr=1 fc=0 ppm=0 gain=0 maxmissed=51 ex=0 receiveWindow=300 
actChan=[0] maxChan=1

13:43:04.107295 undefined=false verbose=false disableAfc=false 
deviceString=0

13:43:04.107345 TEST: startFreq=868315000 endFreq=86832100 stepFreq=500

13:43:04.108215 BitRate: 19200

13:43:04.108286 SymbolLength: 14

13:43:04.108328 SampleRate: 268800

13:43:04.108367 Preamble: 1100101110001001

13:43:04.108406 PreambleSymbols: 16

13:43:04.108446 PreambleLength: 224

13:43:04.108484 PacketSymbols: 80

13:43:04.108526 PacketLength: 1120

13:43:04.108566 BlockSize: 512

13:43:04.108604 BufferLength: 2048

Found Rafael Micro R820T tuner

13:43:04.569158 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 
Transmitter:0}

Exact sample rate is: 268800.001367 Hz

13:43:04.744014 GetTunerGain: 0 Db

13:43:04.744066 SetFreqCorrection 0 ppm Successful

Allocating 1 zero-copy buffers

13:43:04.748731 Init channels: wait max 17 seconds for a message of each 
transmitter

13:43:22.686845 Test reached endfreq; test ended

pi@wsb-meteo:~/work/src/github.com/lheijst/rtldavis $

 

*i searched internet and found this:*

https://www.wxforum.net/index.php?topic=36267.0

 

if i compare the result (see below which give results) to my version it 
looks like something went wrong??. Does anyone have some suggestions?

 

Thanks!

 

$GOPATH/bin/rtldavis -tr 1 -startfreq 868315000 -endfreq 868321000 
-stepfreq 500

12:31:03.070259 TESTFREQ 1: Frequency 868315000 (freqError=-523): OK, 
msg.data: 80330D003E89
12:31:15.883647 TESTFREQ 2: Frequency 868315500 (freqError=2514): OK, 
msg.data: E0080500DD6C
12:31:28.694940 TESTFREQ 3: Frequency 868316000 (freqError=2540): OK, 
msg.data: 5021650035BD
12:31:41.508008 TESTFREQ 4: Frequency 868316500 (freqError=1646): OK, 
msg.data: A07A3D008D28
12:31:54.320391 TESTFREQ 5: Frequency 868317000 (freqError=1261): OK, 
msg.data: 80330D003E89
12:32:09.696444 TESTFREQ 6: Frequency 868317500: NOK
12:32:19.944829 TESTFREQ 7: Frequency 868318000 (freqError=460): OK, 
msg.data: 50396500DF7F
12:32:32.758386 TESTFREQ 8: Frequency 868318500 (freqError=-110): OK, 
msg.data: A07B3D00BA18   <== pick this frequency for the p.channels 
list in protocol.go
12:32:45.569193 TESTFREQ 9: Frequency 868319000 (freqError=-1030): OK, 
msg.data: 80330D003E89
12:32:58.382205 TESTFREQ 10: Frequency 868319500 (freqError=-1063): OK, 
msg.data: E0090500EA5C
12:33:11.193817 TESTFREQ 11: Frequency 86832 (freqError=-1940): OK, 
msg.data: 50396500DF7F
12:33:24.007724 TESTFREQ 12: Frequency 868320500 (freqError=-2365): OK, 
msg.data: A07A3D008D28
12:33:36.818709 TESTFREQ

Re: [weewx-user] RTLSDR cannot see output

2020-10-14 Thread Co van der lee
I started with python (see 1st post) which give me a error, Tom made a
suggestion to try python3

I think you are right it should work with python like the repo of Lheijst.



Op wo 14 okt. 2020 21:53 schreef vince :

> On Wednesday, October 14, 2020 at 11:37:10 AM UTC-7, Co van der lee wrote:
>
>> pi@wsb-meteo:/home/weewx $ sudo PYTHONPATH=bin python3
>> bin/user/rtldavis.py
>> Traceback (most recent call last):
>>   File "bin/user/rtldavis.py", line 1387, in 
>> syslog.openlog('rtldavis', syslog.LOG_PID | syslog.LOG_CONS)
>> NameError: name 'syslog' is not defined
>>
>
>
> Are you sure that rtldavis.py has been updated to python3 ?
>
> The repo you mentioned hasn't been touched in almost 18 months...
>
> --
> 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/4057f521-42b5-478e-b6ea-259e3753ace7o%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/4057f521-42b5-478e-b6ea-259e3753ace7o%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/CABQzV8zP60SATGzRA7iBp2AFXY8MJLMFAxM79rrq%2BciePEBWiQ%40mail.gmail.com.


Re: [weewx-user] RTLSDR cannot see output

2020-10-14 Thread Co van der lee
ewx.manager: Added record
2020-10-14 19:55:00 CEST (1602698100) to daily summary in 'weewx'
Oct 14 19:55:15 wsb-meteo weewx[1704] INFO weewx.cheetahgenerator:
Generated 8 files for report SeasonsReport in 0.83 seconds
Oct 14 19:55:18 wsb-meteo weewx[1704] INFO weewx.imagegenerator: Generated
45 images for report SeasonsReport in 2.66 seconds
Oct 14 19:55:18 wsb-meteo weewx[1704] INFO weewx.reportengine: Copied 5
files to /home/weewx/public_html
Oct 14 20:00:19 wsb-meteo weewx[1704] INFO weewx.engine: Main loop exiting.
Shutting engine down.
Oct 14 20:00:19 wsb-meteo weewx[1704] INFO weewx.engine: Shutting down
StdReport thread
Oct 14 20:00:19 wsb-meteo weewx[1704] INFO user.rtldavis: shutdown process
/home/pi/work/bin/rtldavis -ex 200 -tf EU -tr 1
Oct 14 20:00:19 wsb-meteo weewx[1704] INFO user.rtldavis: rtldavis with pid
1708 killed
Oct 14 20:00:19 wsb-meteo weewx[1704] CRITICAL __main__: Caught
unrecoverable exception:
Oct 14 20:00:19 wsb-meteo weewx[1704] CRITICAL __main__:   must be
real number, not NoneType
Oct 14 20:00:19 wsb-meteo weewx[1704] CRITICAL __main__: 
 Traceback (most recent call last):
Oct 14 20:00:19 wsb-meteo weewx[1704] CRITICAL __main__: File
"/home/weewx/bin/weewx/engine.py", line 195, in run
Oct 14 20:00:19 wsb-meteo weewx[1704] CRITICAL __main__: 
 self.dispatchEvent(weewx.Event(weewx.CHECK_LOOP, packet=packet))
Oct 14 20:00:19 wsb-meteo weewx[1704] CRITICAL __main__: File
"/home/weewx/bin/weewx/engine.py", line 224, in dispatchEvent
Oct 14 20:00:19 wsb-meteo weewx[1704] CRITICAL __main__: 
 callback(event)


i have no idea why this program stops? i hope anybody can tell me what I
did wrong??


tnx

/Co



Op wo 14 okt. 2020 17:12 schreef Tom Keffer :

> I can't speak to your RTL/SDR problems, but the "No module named
> configobj" error is because you are trying to run under python 2. Try this:
>
> *sudo PYTHONPATH=bin python3 bin/user/rtldavis.py --help*
>
>
> On Wed, Oct 14, 2020 at 5:55 AM Co van der lee 
> wrote:
>
>> Hi all,
>>
>> I configured RPI with Buster and installed Weewx with install script.
>> the location is /home/weewx/
>> http://weewx.com/docs/setup.htm ( WeeWX: Installation using setup.py )
>> I made different installs (MySQL and default sbd DB)
>>
>> Configuration Weewx is made in simulator mode because i want to use a
>> NOOELEC – Nano2+  NESDR RTL SDR device
>>
>>
>> https://www.nooelec.com/store/downloads/dl/file/id/72/product/0/nesdr_installation_manual_for_ubuntu.pdf
>>
>> i blacklisted the default drivers conform the manual, 1 made another file
>> (blacklist.conf) to.
>>
>> with the command lsusb i see thee device with ID: obda:2838 conform Udev
>> setup ( source:  git  lheijst/rtldavis)
>> install driver:
>> https://github.com/lheijst/rtldavis
>>
>> after installing the driver: (some parts ar already done while installing
>> the driver, step before)
>> https://github.com/lheijst/weewx-rtldavis
>>
>> test results:
>>
>> pi@wsb-meteo:/home/weewx $ sudo $GOPATH/bin/rtldavis -ex 200
>> 14:44:29.838227 rtldavis.go VERSION=0.15
>> 14:44:29.838711 tr=1 fc=0 ppm=0 gain=0 maxmissed=51 ex=200
>> receiveWindow=300 actChan=[0] maxChan=1
>> 14:44:29.838950 undefined=false verbose=false disableAfc=false
>> deviceString=0
>> 14:44:29.839240 BitRate: 19200
>> 14:44:29.839513 SymbolLength: 14
>> 14:44:29.839749 SampleRate: 268800
>> 14:44:29.839791 Preamble: 1100101110001001
>> 14:44:29.839828 PreambleSymbols: 16
>> 14:44:29.839864 PreambleLength: 224
>> 14:44:29.839901 PacketSymbols: 80
>> 14:44:29.839937 PacketLength: 1120
>> 14:44:29.839973 BlockSize: 512
>> 14:44:29.840009 BufferLength: 2048
>> Found Rafael Micro R820T tuner
>> 14:44:30.832430 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0
>> Transmitter:0}
>> Exact sample rate is: 268800.001367 Hz
>> 14:44:31.136851 GetTunerGain: 0 Db
>> 14:44:31.138133 SetFreqCorrection 0 ppm Successful
>> 14:44:31.145999 Init channels: wait max 17 seconds for a message of each
>> transmitter
>> Allocating 1 zero-copy buffers
>> 14:44:49.085402 Init channels: wait max 17 seconds for a message of each
>> transmitter
>> 14:44:49.085420 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0
>> Transmitter:0}
>> 14:45:07.023533 Init channels: wait max 17 seconds for a message of each
>> transmitter
>> 14:45:07.023559 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0
>> Transmitter:0}
>>
>> *is this ok so far?*
>>
>> *next test:*
>> cd /home/weewx sudo
>> ./bin/weewxd weewx.conf
>>
>> *after some time the system will cra

[weewx-user] RTLSDR cannot see output

2020-10-14 Thread Co van der lee
Hi all,

I configured RPI with Buster and installed Weewx with install script.
the location is /home/weewx/  
http://weewx.com/docs/setup.htm ( WeeWX: Installation using setup.py )
I made different installs (MySQL and default sbd DB)  
 
Configuration Weewx is made in simulator mode because i want to use a 
NOOELEC – Nano2+  NESDR RTL SDR device

https://www.nooelec.com/store/downloads/dl/file/id/72/product/0/nesdr_installation_manual_for_ubuntu.pdf

i blacklisted the default drivers conform the manual, 1 made another file 
(blacklist.conf) to.

with the command lsusb i see thee device with ID: obda:2838 conform Udev 
setup ( source:  git  lheijst/rtldavis)
install driver:
https://github.com/lheijst/rtldavis

after installing the driver: (some parts ar already done while installing 
the driver, step before)
https://github.com/lheijst/weewx-rtldavis

test results:

pi@wsb-meteo:/home/weewx $ sudo $GOPATH/bin/rtldavis -ex 200
14:44:29.838227 rtldavis.go VERSION=0.15
14:44:29.838711 tr=1 fc=0 ppm=0 gain=0 maxmissed=51 ex=200 
receiveWindow=300 actChan=[0] maxChan=1
14:44:29.838950 undefined=false verbose=false disableAfc=false 
deviceString=0
14:44:29.839240 BitRate: 19200
14:44:29.839513 SymbolLength: 14
14:44:29.839749 SampleRate: 268800
14:44:29.839791 Preamble: 1100101110001001
14:44:29.839828 PreambleSymbols: 16
14:44:29.839864 PreambleLength: 224
14:44:29.839901 PacketSymbols: 80
14:44:29.839937 PacketLength: 1120
14:44:29.839973 BlockSize: 512
14:44:29.840009 BufferLength: 2048
Found Rafael Micro R820T tuner
14:44:30.832430 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 
Transmitter:0}
Exact sample rate is: 268800.001367 Hz
14:44:31.136851 GetTunerGain: 0 Db
14:44:31.138133 SetFreqCorrection 0 ppm Successful
14:44:31.145999 Init channels: wait max 17 seconds for a message of each 
transmitter
Allocating 1 zero-copy buffers
14:44:49.085402 Init channels: wait max 17 seconds for a message of each 
transmitter
14:44:49.085420 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 
Transmitter:0}
14:45:07.023533 Init channels: wait max 17 seconds for a message of each 
transmitter
14:45:07.023559 Hop: {ChannelIdx:0 ChannelFreq:868077250 FreqError:0 
Transmitter:0}

*is this ok so far?*

*next test:*
cd /home/weewx sudo 
./bin/weewxd weewx.conf  

*after some time the system will crash. (10 a 15 minutes)*
*(output from /var/log/syslog)*

Oct 14 09:01:07 wsb-meteo mtp-probe: checking bus 2, device 2: 
"/sys/devices/pci:00/:00:11.0/:02:03.0/usb2/2-1"
Oct 14 09:01:07 wsb-meteo mtp-probe: bus: 2, device: 2 was not an MTP device
Oct 14 09:01:07 wsb-meteo mtp-probe: checking bus 2, device 2: 
"/sys/devices/pci:00/:00:11.0/:02:03.0/usb2/2-1"
Oct 14 09:01:07 wsb-meteo mtp-probe: bus: 2, device: 2 was not an MTP device
Oct 14 10:21:00 wsb-meteo mtp-probe: checking bus 2, device 2: 
"/sys/devices/pci:00/:00:11.0/:02:00.0/usb2/2-1"
Oct 14 10:21:00 wsb-meteo mtp-probe: bus: 2, device: 2 was not an MTP device
Oct 14 10:21:00 wsb-meteo udisksd[592]: udisks daemon version 2.8.1 starting
Oct 14 10:20:59 wsb-meteo udisksd[592]: failed to load module crypto: 
libbd_crypto.so.2: cannot open shared object file: No such file or directory
Oct 14 10:20:59 wsb-meteo udisksd[592]: failed to load module mdraid: 
libbd_mdraid.so.2: cannot open shared object file: No such file or directory
Oct 14 10:21:00 wsb-meteo udisksd[592]: Failed to load the 'mdraid' 
libblockdev plugin
Oct 14 10:21:00 wsb-meteo udisksd[592]: Failed to load the 'crypto' 
libblockdev plugin
Oct 14 10:21:00 wsb-meteo udisksd[592]: Acquired the name 
org.freedesktop.UDisks2 on the system message bus
Oct 14 10:21:00 wsb-meteo udisksd[592]: Cleaning up mount point 
/media/cdrom0 (device 11:0 is not mounted)
Oct 14 10:21:00 wsb-meteo lightdm[711]: Error getting user list from 
org.freedesktop.Accounts: 
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name 
org.freedesktop.Accounts was not provided by any .service files
Oct 14 10:21:02 wsb-meteo lightdm[803]: Error getting user list from 
org.freedesktop.Accounts: 
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name 
org.freedesktop.Accounts was not provided by any .service files
Oct 14 10:21:03 wsb-meteo udisksd[592]: Mounted /dev/sr0 (system) at 
/media/cdrom0 on behalf of uid 1000
Oct 14 10:22:13 wsb-meteo mtp-probe: checking bus 1, device 2: 
"/sys/devices/pci:00/:00:11.0/:02:03.0/usb1/1-1"
Oct 14 10:22:13 wsb-meteo mtp-probe: bus: 1, device: 2 was not an MTP device
Oct 14 10:22:13 wsb-meteo mtp-probe: checking bus 1, device 2: 
"/sys/devices/pci:00/:00:11.0/:02:03.0/usb1/1-1"
Oct 14 10:22:13 wsb-meteo mtp-probe: bus: 1, device: 2 was not an MTP device
Oct 14 12:05:06 wsb-meteo mtp-probe: checking bus 1, device 3: 
"/sys/devices/pci:00/:00:11.0/:02:03.0/usb1/1-1"
Oct 14 12:05:06 wsb-meteo mtp-probe: bus: 1, device: 3 was not an MTP device
Oct 14 12:05:06 wsb-meteo mtp-probe: checking bus 1, device 3: 
"/sys/devices/pc