Git Product home page Git Product logo

quick2wire-gpio-admin's Introduction

GPIO Admin

This code is no longer necessary, and the instructions for installing it will no longer work.

I will update the README with links to current instructions about accessing GPIO pins. Until then, you are recommended to use either RPi.GPIO or (GPIO zero)[https://www.raspberrypi.org/blog/gpio-zero-a-friendly-python-api-for-physical-computing/]

Quick2Wire reeborn

I am currently in the process of updating the Quick2Wire codebase and documentation.

You can follow progress on (RAREblog)[http://blog.rareschool.com/]

quick2wire-gpio-admin's People

Contributors

gnarlie avatar npryce avatar romilly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

quick2wire-gpio-admin's Issues

It can't find "gpio-admin" when I run a node server by /etc/init.d/

I made a node server, using pi + node + express + pi-gpio . And I also use FOREVER to run the server forever.
It work well when I run it as "node app.js" or "forever start app.js". The pi-gpio can work conrectly and GPIO can work too.

but , if I add the FOREVER command to a /etc/init.d/ service, for example, /etc/init.d/nodepi, it won't work well. It said "GPIO admin can't find".

the /etc/init.d/nodepi's content like this:
forever start node app.js

After running the /etc/init.d/nodepi, the webserver has started and I can visit it. But the GPIO of PI couldn't work.

Weirdly, If I run another command after this, "PORT=1234 node app.js" , I can visit the website by PORT 1234. And then, The GPIO works!. When I return to visit PORT 3000 website (the app.js default port) I can control the GPIO. It's working!

I think there might be some problem on user's rights.
All those operations are ran by root.

/sys/devices/virtual/gpio doesn't exist

I'm using 2015-05-05-raspbian-wheezy on a Raspberry Pi 2 and when I run gpio-admin, I get the following error: "gpio-admin: failed to change group ownership of /sys/devices/virtual/gpio/gpio22/direction: No such file or directory". Does the program have to use the "/sys/devices/virtual/gpio..." folders or can it use the "sys/class/gpio..." folders?

pi-gpio does not turn on/off the pin

Hi guys, I installed the HAP-NodeJS and I am using the Light_accessory.js to control a light. I Also installed pi-gpio and when the server is running I see that the stace changes from 0-1 and vise versa. The lights does not turn on/off. Do you have any ideas?

Getting this error please help!

I get this error
Error when trying to open pin 11
gpio-admin: could not flush data to /sys/class/gpio/export: Device or resource busy
Raspberry pi 3b+
config.json:
`
{
"bridge": {
"name": "Homebridge3",
"username": "DC:22:3D:E3:CE:30",
"port": 4000,
"pin": "333-33-333"
},

"description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",
"ports": {
  "start": 52100,
  "end": 52150,
  "comment": "This section is used to control the range of ports that separate accessory (like camera or television) should be bind to."
},
"accessories": [
  {
    "accessory": "relay",
    "name": "Relay 1",
    "pin" : 11,
    "duration" : 0
  },
  {
    "accessory": "relay",
    "name": "Relay 2",
    "pin" : 12,
    "duration" : 0
  }
],

  
    "platform": "CameraUI",
    "videoProcessor": "ffmpeg",
    "cameras": [
      {
        "name": "Flur",
        "active": true,
        "videoConfig": {
          "source": "-f v4l2 -r 30 -s 1280x720 -i /dev/video0",
          "maxWidth": 1920,
          "maxHeight": 1080,
          "maxFPS": 30
        }
      }
    ]

}`

Typo in man page

NOTE
Pins are identified by their SOC poin numbers, not the header pin numbers.

Should be:

NOTE
Pins are identified by their SOC pin numbers, not the header pin numbers.

permission denied from time to time in nodejs pi-gpio

I created a server using nodejs and i created a scheduler that turns on pins at different times. Most of the time it works but from time to time i get "Error: EACCES: permission denied, open '/sys/class/gpio/gpio4/direction'"

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.