Code Monkey home page Code Monkey logo

rpi-roam-webapp's People

Stargazers

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

Watchers

 avatar  avatar  avatar

rpi-roam-webapp's Issues

Python subprocess not working as expected in OrangePi

I tried your practice in Orange Pi with Ubuntu lxde OS.

If I run setup.sh, only the access point is created, the Web page is running.
When I use the "ps -ef | grep python" code, __main__py and connection.py do not appear on the screen.

Everything seems fine when I run the "crontab -l" command:

@reboot sudo rpi-roam-webapp/roam/.env/bin/python rpi-roam-webapp/roam/webapp --ip="10.0.0.1" --port=80 --name="KioskWifi" --ap=wlan0 --adapter=wlan2 & */2 * * * * sudo rpi-roam-webapp/roam/.env/bin/python rpi-roam-webapp/roam/webapp/modules/connection.py --ip="10.0.0.1" --port=80 --ap=wlan0 --adapter=wlan2 &

However, the application is not running. So I used the following code directly on the terminal.

orangepi@orangepi:~$ sudo rpi-roam-webapp/roam/.env/bin/python rpi-roam-webapp/roam/webapp --ip=\"10.0.0.1\" --port=80 --name=\"KioskWifi\" --ap=\"wlan0\" --adapter=\"wlan2\"

When I run this code, I get the following error:

Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/home/orangepi/rpi-roam-webapp/roam/webapp/__main__.py", line 22, in <module> ssid = connection.auto_connect(args.ap, args.adapter) File "rpi-roam-webapp/roam/webapp/modules/connection.py", line 83, in auto_connect for cell in list_networks(ap): File "rpi-roam-webapp/roam/webapp/modules/connection.py", line 42, in list_networks return Cell.all(interface) File "/home/orangepi/rpi-roam-webapp/roam/.env/local/lib/python2.7/site-packages/wifi/scan.py", line 39, in all stderr=subprocess.STDOUT) File "/usr/lib/python2.7/subprocess.py", line 567, in check_output process = Popen(stdout=PIPE, *popenargs, **kwargs) File "/usr/lib/python2.7/subprocess.py", line 711, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory

Also the "sudo iptables -L" command produces the following result:

`Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED

Chain OUTPUT (policy ACCEPT)
target prot opt source destination`

Can you help me for this problem?

Python error

When I installed the software using the method above I get:

"wifi.exceptions.InterfaceError: wlan1 Interface doesn't support scanning: Operation not supported"

However, scanning using iwlist does work just fine. How do I overcome this?

demo gifs or YT video

It's a lot more involved than the simple script for bridging connections or setting up an access point. I'd love to see a video of the setup process.

Really the raspberry pi foundation needs to do more to make setup of devices without a custom image or ROM easier to facilitate, but from some of the questions etc I received, I think it might be difficult for people to get up and running, despite the fact it's an awesome project ๐Ÿ˜„

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.