{ "info": { "author": "@sabzo", "author_email": "sabelo@sabelo.io", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries" ], "description": "## Raspberry Pi as an AccessPoint (AP) and Server\n**Nobu** is a minimum library to use the Raspberry Pi as an AccessPoint and a Web Server. It's important to note that depending on the Wireless Network card you maybe using (Realtek for example) the appropriate `hostapd` will need to be downloaded. For example the Raspbian hostapd doesn't work\non some Realtek chips (Realtek-RTL8188 for ex), as a result I've used the driver from Realtek.\n\n# EXAMPLE\n```python\n import nobu\n n = nobu.Nobu(\"ssid\", \"passwd_must_>_8_chars\")\n```\n\nThere are three components to create a Linux Accesspoint: hostapd (host access point daemon), interfaces configuration, dhcpd (dynamic host configuration protocol)\n\n# HOSTAPD\nThe hostapd mainly broadcasts the RPi as an Access Point. in its configuration file is where you set up the connection details (SSID/Password etc.,)\nBear in mind that this process and guide uses a Realtek WiFi chip, which REQUIRES its own Driver. So the hostapd that comes default with Raspbian WILL NOT WORK!\nI've included the correct default hostapd but it can be found online as well.\nReference: https://jenssegers.com/43/Realtek-RTL8188-based-access-point-on-Raspberry-Pi\n`sudo service hostapd start`\n`sudo hostapd /etc/hostapd/hostapd.conf `\n\n# Interfaces (/etc/network/interfaces)\nThis is where all the networking interfaces configuration go: ethernet (eth01), wireless (wlan0 for ex)\nThis is where you set up the static IP Address for the RPi which other devices will use when the send data to the Pi using sockets\n`sudo ifconfig wlan0 192.168.42.1`\n`sudo ifdown wlan0`\n`sudo ifup wlan0`\n\n# dhcpd\nSince the Pi is acting as a server it needs to communicate with the clients connected. To do so it needs to assign each client an IP address. Dynamic Host Configuration Protocol allows `hosts` that connect to be dynanimically configured for communication with the server (by receiving IP addresses).\nNeeed to also edit `/etc/default/isc-dhcp-server` and set INTERFACES=\"wlan0\" letting know the dhcp server will assign IP addresses to clients connecting on to the access point.\n`sudo dhcpd -cf /etc/dhcp/dhcpd.conf`\n`sudo service isc-dhcp-server status`\n\n# References\nFor more advanced setup like having the Pi connect with ethernet for an AP that can forward requests check out Adafruit\nMonitor the logs as the AP connection/handshake takes place: `tail -f /var/log/syslog`", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sabzo/nobu", "keywords": "raspberypi accesspoint wifi", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "nobu", "package_url": "https://pypi.org/project/nobu/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/nobu/", "project_urls": { "Homepage": "https://github.com/sabzo/nobu" }, "release_url": "https://pypi.org/project/nobu/1.0.4/", "requires_dist": null, "requires_python": null, "summary": "A Library for turning a raspberry pi into a Server/Access Point", "version": "1.0.4" }, "last_serial": 2019117, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "7dbd9e359dada14a65842830e9d91452", "sha256": "ca8bf2905effbca725d22001a5ed21714817ed2425c4303a3b687547c76058fd" }, "downloads": -1, "filename": "nobu-1.0.0.tar.gz", "has_sig": false, "md5_digest": "7dbd9e359dada14a65842830e9d91452", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2341, "upload_time": "2016-03-21T16:42:43", "url": "https://files.pythonhosted.org/packages/e0/23/cbe9f481641418529a4dab0524e8aa06695f5bff2859a71a29b363d9c44f/nobu-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "529d2c3eea6091152f9a230d65fab19e", "sha256": "6fa1f704b84d97ef548a2240cdf77d5829853b7b189b6623a7ba5a83ec61bca5" }, "downloads": -1, "filename": "nobu-1.0.1.tar.gz", "has_sig": false, "md5_digest": "529d2c3eea6091152f9a230d65fab19e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3818, "upload_time": "2016-03-21T17:20:20", "url": "https://files.pythonhosted.org/packages/f8/8a/19921b0aab4e9ad5873fcca0ee5fd693b6cd5dd33b60da91987f56f70b69/nobu-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "1842d255e60cac507888a96052ecf817", "sha256": "c9ee58f82dca7dd806d7d8217a02df16347917d123910b8b283a89df2e06d82b" }, "downloads": -1, "filename": "nobu-1.0.2.tar.gz", "has_sig": false, "md5_digest": "1842d255e60cac507888a96052ecf817", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3835, "upload_time": "2016-03-21T17:30:22", "url": "https://files.pythonhosted.org/packages/df/d8/5a59ac2a9a3a5d7e0d85a2954c4791d4c12c3a626c8a97684922d6abc051/nobu-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "807c0414c941062a9718c8fb552b31df", "sha256": "ec85f77b7b3d5c8a8d48b002d4fbb44ff084efb95aeb452c1104a81846fc9023" }, "downloads": -1, "filename": "nobu-1.0.3.tar.gz", "has_sig": false, "md5_digest": "807c0414c941062a9718c8fb552b31df", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3837, "upload_time": "2016-03-21T17:33:03", "url": "https://files.pythonhosted.org/packages/f6/77/f06f2dab0e3a72ce7807483aa78a33fe40fed42b0765540b83b215c772de/nobu-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "2e760438f988459aa21899b6a632938f", "sha256": "494965165661106f76ec15e72e99400c2258c079064ad5609e85d4f349122d4f" }, "downloads": -1, "filename": "nobu-1.0.4.tar.gz", "has_sig": false, "md5_digest": "2e760438f988459aa21899b6a632938f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3828, "upload_time": "2016-03-21T17:34:21", "url": "https://files.pythonhosted.org/packages/9c/14/88d47ab21d76ea6876ac243f5c9eb4eee35b937a8573814d0400e5c27f09/nobu-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2e760438f988459aa21899b6a632938f", "sha256": "494965165661106f76ec15e72e99400c2258c079064ad5609e85d4f349122d4f" }, "downloads": -1, "filename": "nobu-1.0.4.tar.gz", "has_sig": false, "md5_digest": "2e760438f988459aa21899b6a632938f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3828, "upload_time": "2016-03-21T17:34:21", "url": "https://files.pythonhosted.org/packages/9c/14/88d47ab21d76ea6876ac243f5c9eb4eee35b937a8573814d0400e5c27f09/nobu-1.0.4.tar.gz" } ] }