Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser for Kedsum temperature humidity sensor #157

Open
Sar6e opened this issue Jun 22, 2022 · 8 comments
Open

Parser for Kedsum temperature humidity sensor #157

Sar6e opened this issue Jun 22, 2022 · 8 comments

Comments

@Sar6e
Copy link

Sar6e commented Jun 22, 2022

The USB console for my WH1080 station failed some time ago. I was really pleased to be able to continue to use the sensor array for the station using weewx-sdr. Thanks so much for your work! The instructions were clear and simple to follow. Great work!

Now that I have no console I've lost inside temperature and humidity. I have a temperature and humidity sensor that came with a set of kitchen scales of all things. I can see this output when running manually.

out: ['{"time" : "2022-06-17 00:23:59", "model" : "Kedsum-TH", "id" : 235, "channel" : 1, "battery_ok" : 0, "flags" : 8, "temperature_F" : 59.000, "humidity" : 74, "mic" : "CRC"}\n']

I'm not sure if creating a parser is within my capabilities or not but haven't been able to identify any pointers on how I might go about it.

andylittle added a commit to andylittle/weewx-sdr-1 that referenced this issue Jun 22, 2022
@andylittle
Copy link
Contributor

Try this.
What does the 'flags' indicate?

@Sar6e
Copy link
Author

Sar6e commented Jun 23, 2022

I renamed the existing sdr.py file then downloaded the updated sdr.py file. When I try to run the driver manually, I get an error.

File "/usr/share/weewx/user/sdr.py", line 8

^
SyntaxError: invalid syntax

Should I have done something more than just update the sdr.py file?

@andylittle
Copy link
Contributor

How did you run it? If you installed in /home/weewx
cd /home/weewx sudo PYTHONPATH=bin python bin/user/sdr.py --cmd="rtl_433 -M utc -F json"

@Sar6e
Copy link
Author

Sar6e commented Jun 23, 2022

I originally installed using wee-extension. In /usr/share/weewx/user I now have sdr-dist.py which is a copy of the original sdr.py. I also have sdr-kedsum.py which is a download of your latest commit.

If I copy sdr-dist.py to sdr.py and execute
sudo PYTHONPATH=/usr/share/weewx python /usr/share/weewx/user/sdr.py --cmd="rtl_433 -M utc -F json"
I start to see data being captured and parsed.

If I copy sdr-kedsum.py to sdr.py and execute the same command I get the syntax error.

@Sar6e
Copy link
Author

Sar6e commented Jun 23, 2022

To answer your other question... I have no idea what the flag attribute is returning.

@andylittle
Copy link
Contributor

@Sar6e
Copy link
Author

Sar6e commented Jun 23, 2022

Hi,

I just grabbed downloaded from the new link provided. Unfortunately, when I use that version of sdr.py, I'm still getting the syntax error.

@Sar6e
Copy link
Author

Sar6e commented Jun 25, 2022

I grabbed the additions you made to sdr.py and added them to my original copy of sdr.py. The driver is running manually and parsing the Kedsum data successfully. After updating weewx.conf, the values are writing to the DB successfully.

Happy to continue to test additional updates if that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants