GithubHelp home page GithubHelp logo

Comments (8)

andylittle avatar andylittle commented on September 22, 2024

Try this.
What does the 'flags' indicate?

from weewx-sdr.

Sar6e avatar Sar6e commented on September 22, 2024

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?

from weewx-sdr.

andylittle avatar andylittle commented on September 22, 2024

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"

from weewx-sdr.

Sar6e avatar Sar6e commented on September 22, 2024

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.

from weewx-sdr.

Sar6e avatar Sar6e commented on September 22, 2024

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

from weewx-sdr.

andylittle avatar andylittle commented on September 22, 2024

https://github.com/andylittle/weewx-sdr-1/blob/16c92a043450db06f2e662146a08b76801522230/bin/user/sdr.py maybe that link was wrong.

from weewx-sdr.

Sar6e avatar Sar6e commented on September 22, 2024

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.

from weewx-sdr.

Sar6e avatar Sar6e commented on September 22, 2024

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.

from weewx-sdr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.