webmaestrofr / rpi-roam-webapp Goto Github PK
View Code? Open in Web Editor NEWSetup script and web application for a wireless Raspberry Pi bridge.
Home Page: https://blog.webmaestro.fr/wireless-raspberry-pi-bridge
Setup script and web application for a wireless Raspberry Pi bridge.
Home Page: https://blog.webmaestro.fr/wireless-raspberry-pi-bridge
If the Pi is not connected to WiFi, any HTTP request should redirect to the Flask application (available at raspberrypi.local by default). Ideally, some very simple iptables rules. I tried a few different things but cannot figure it out...
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?
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?
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 ๐
Hi
when I click con CONNECT in the webapp after setting the wifi I have this error in console:
InterfaceError: wlan1 Interface doesn't support scanning. // Werkzeug Debugger
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.