Coder Social home page Coder Social logo

Comments (8)

Nickduino avatar Nickduino commented on August 25, 2024

Hum, not much ideas I'm afraid.

Are you sure the pigpiod daemon is running? Have you checked the solved issues? https://github.com/Nickduino/Pi-Somfy/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aclosed

(I've modified the file just now, please give it a second shot)

from pi-somfy.

MichaelB2018 avatar MichaelB2018 commented on August 25, 2024

Thanks. appreciate the quick response. I did a bit of digging and my pigpiod is in v64, which seems correct. However I got another thought. When I download the somfy.py from github and run it, I get an error message:

File "./somfy.py", line 115 for j in range(1,repetition): # repeating frames ^ IndentationError: unexpected indent

So I added indentation to line 113, making essentially a nested for loop in line 115 (within line 105). But I'm now thinking whether I should remove indentation from line 115, bringing it on the same level as line 105, and therefore not nesting the 2 for loops. If I do so, the code works without error. (and I could move on to program my shutter to recognize my new remote)

What do you think is correct?

from pi-somfy.

turuwhiska avatar turuwhiska commented on August 25, 2024

is only a problem of tab spaces

from pi-somfy.

Nickduino avatar Nickduino commented on August 25, 2024

Well, "I've modified the file just now, please give it a second shot"

Did you? 'cause I changed the indentation of line 122 and following.

from pi-somfy.

turuwhiska avatar turuwhiska commented on August 25, 2024

i have the file complete can i upload the file?

from pi-somfy.

MichaelB2018 avatar MichaelB2018 commented on August 25, 2024

Yes I did download it again. You see the same problem here with line 115 (following 113):

https://github.com/Nickduino/Pi-Somfy/blob/master/somfy.py

from pi-somfy.

turuwhiska avatar turuwhiska commented on August 25, 2024

The file is fixed, but for some reason git down the old file
you just have to modify the spaces of these lines and it works well
and do not forget to start pigpiod

from pi-somfy.

Nickduino avatar Nickduino commented on August 25, 2024

i have the file complete can i upload the file?

I believe the proper Github way would be to fork my repo, fix my file, then make a pull request. But I'm supposed to have fixed it yesterday already.

The file is fixed, but for some reason git down the old file

That's a weird behavior. Anyway, yes the wf.append() around line 126 have to be inside the if: and the else:

from pi-somfy.

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.