Luc,

you were right in many respects.
I had some success, yet not with tfrec. It always renders "BAD" instead of
temperature or humidity. I changed trigger value and gain a lot but found
no set of parameters that worked. I ordered another but different SDR stick
and we'll see whether hardware was the root cause.

Following your other advice I indeed installed weewx with your klimalogg
driver and it worked as designed. Then I added to your routine
genLoopPackets   the code to put the data into mosquitto:

def pub(packet):

    tags = {"temp":"temperature", "humidity":"humidity",
"batteryStatus":"battery"}
    for tag in tags:
        for i in range(10):
            key = "%s%d" % (tag, i)
            if key in packet and not (packet[key] is None):
                topic = "klimalogg/%d/%s" % (i, tags[tag])
                payload = packet[key]
                publish.single(topic, payload, hostname="localhost")
null = None


this was easily catched by openhabian (standard mqtt binding). Yet only
works for the current value. I am struggling a bit with storage and
presentation (grafana). All was new to me: openhab, weewx, grafana, SDR.

I also need to put your kl.py into debug mode one day to understand the
sequence in which weewx invokes the routines.

For the time being I just wanted to let you know.

regards,

Walter




Am Mo., 24. Aug. 2020 um 13:23 Uhr schrieb L.J.M. Heijst <
[email protected]>:

> Hi Walter,
>
> I don't know if your approach is working. The software in the KlimaLogg
> PRO station is very time critical.
> Perhaps you try the driver first within weewx and when it is working you
> can go from there.
>
> The KlimaLogg PRO base station needs to be synchronized once with the
> driver.
> To do this:
> Press and hold the USB button for three seconds until a beep is heard,
> then start weewx with the kl-driver (within 5 seconds). A second beep is
> heard when the synchronization was succesfull.
>
> From now on a short press on the USB button is needed whenever the driver
> lost communication with the base station. The driver is telling you to do
> so.
>
> There is another (much easier) way to read the values of the KlimaLogg
> sensors with a SDR-dongle (the base station is not needed anymore), see:
> https://github.com/baycom/tfrec
> The instructions on this site to compile the tfrc program don't work
> anymore for Raspbian Buster. When you are interested I can send you my
> notes how I managed to get it work under Buster.
>
> Success,
> Luc
>
>
> Luc,
> I appreciate so much the profound work you have been doing over the last 5
> years.
> Could you please advise for my project? I am not using weewx, did not even
> install it. Yet I want to retrieve data from KlimaLogg-pro.
>
> starting from: https://github.com/matthewwall/weewx-klimalogg
>
> My approach: call routines in your kl.py from another python program like
>     from kl import *
>     maxtries = 3
>     klimalogg = KlimaLoggConfigurator()
>     klimalogg.station = KlimaLoggDriver()
>     klimalogg.check_transceiver(maxtries)
>     klimalogg.pair(maxtries)
> in your code KlimaLoggConfigurator and KlimaLoggDriver are subclassed from
> weewx classes. I removed the superclass from their definitions.
> first "results":
>     Checking for transceiver...
>     Transceiver is present
>     serial: 01012110140255
>     id: 567 (0x0237)
>     Pairing transceiver with console...
>     Press and hold the USB button until "USB" appears (attempt 1 of 3)
>     Press and hold the USB button until "USB" appears (attempt 2 of 3)
>     Press and hold the USB button until "USB" appears (attempt 3 of 3)
>     Transceiver not paired to console.
>
> Would you agree, this makes sense? Anything to change up to here?
> USB pairing did not work so far (pressing the button --> "USB" blinking in
> display, nothing else happening.
>
>
> best regards
> Walter
>
>
> Luc Heijst schrieb am Montag, 25. Mai 2020 um 17:21:24 UTC+2:
>
> Hi Pete,
>
> Attached the Klimalogg Pro driver compatible with python2, python3 and the
> weewx v.4.0 logging.
>
> Luc
>
> On Monday, 25 May 2020 03:23:25 UTC-3, pete_panic wrote:
>
> Hi everyone!
>
> This thread has been extremely helpful. Thank you so much for all the
> input. Nevertheless unfortunatly I wasn't able yet to successfully get the
> rf communication between the raspi and the Klimalogg Pro started.
>
> I was able to connect to the transceiver and everything went well until
> the log showed the error message "exception in doRF: %s" after "starting rf
> communication". Since I am not firm (yet) with python (I'm more one of the
> old php guys), I wonder if there was the possibility to have a python3
> compatible version of the Klimalogg Pro driver? I did get the message to
> press the USB button on the console but that did not help, it kept on
> showing up...
>
> Did anyone else have this problem?
>
> Thank you again and cheers
>
> Pete
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/O1ogABfGETA/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/6e4b04f7-1938-4157-8fc3-83c9e4e0191bn%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/6e4b04f7-1938-4157-8fc3-83c9e4e0191bn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
>  Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
> <#m_-8438383237655016812_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/812515819.20200824082349%40gmail.com
> <https://groups.google.com/d/msgid/weewx-user/812515819.20200824082349%40gmail.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CABp6s3Hq4GVDXnCxy%3D%2B_4CuCLcNgpajtdHEb4Otp3xHTSa%2BdNg%40mail.gmail.com.

Reply via email to