{"id":21933862,"url":"https://github.com/neo/smartclassroom","last_synced_at":"2026-04-29T09:31:52.079Z","repository":{"id":119680499,"uuid":"47850376","full_name":"neo/SmartClassroom","owner":"neo","description":"Smart classroom powered by Arduino","archived":false,"fork":false,"pushed_at":"2015-12-11T21:29:30.000Z","size":583,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-21T08:46:25.675Z","etag":null,"topics":["arduino","iot","python","twitter"],"latest_commit_sha":null,"homepage":"","language":"Arduino","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-11T20:50:57.000Z","updated_at":"2018-12-20T18:05:53.000Z","dependencies_parsed_at":"2023-03-14T23:40:58.725Z","dependency_job_id":null,"html_url":"https://github.com/neo/SmartClassroom","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/neo/SmartClassroom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo%2FSmartClassroom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo%2FSmartClassroom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo%2FSmartClassroom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo%2FSmartClassroom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neo","download_url":"https://codeload.github.com/neo/SmartClassroom/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neo%2FSmartClassroom/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32419821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","iot","python","twitter"],"created_at":"2024-11-29T00:13:49.797Z","updated_at":"2026-04-29T09:31:52.065Z","avatar_url":"https://github.com/neo.png","language":"Arduino","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smart Classroom\nThis is a project to hook up an Arduino borad to Twitter using Python. It takes data information from an Aruino in the classroom and tweet to the Twitter account [@SheridanS421](https://twitter.com/SheridanS421 \"Sheridan S421\").\n\nThe project is based on [pySerial](https://github.com/pyserial/pyserial), [Python Arduino Prototyping API v2](https://github.com/vascop/Python-Arduino-Proto-API-v2) and [Tweepy](https://github.com/tweepy/tweepy).\n\n## Basic Setup\n1. Go to [Twitter Apps](https://apps.twitter.com/) to create an app and generate your API tokens if you haven't already\n2. Hook up the Arduino board with the sensors and output devices. [This](./sketch/) is a example hooking up with a button, a 16 * 2 LCD and a [ADXL345 accelerometer](http://playground.arduino.cc/Main/InterfacingWithHardware#motion_accelerometer):\n\t![ssketch](./sketch/sketch_bb.png)\n3. Clone this repository or [Download ZIP](https://github.com/neolwc/SmartClassroom/archive/master.zip)\n4. Paste your Twitter API tokens to `tweet.py`\n5. Use the Arduino IDE to open the `ArduinoAPI.ino` under the directory [ArduinoAPI](./ArduinoAPI/)\n6. Start from a new `.py` file under the same directory, and [here](./template.py) is a basic template:\n```python\nfrom arduino import *\nfrom tweet import *\narduino = Arduino('COM6') // Use the Arduino port\narduino.output([])\n```\n\n## Basic Example\n[Here](./example.py) is a basic example that tweets when someone presses the button:\n```python\nfrom tweet import *\nfrom arduino import *\n\narduino = Arduino('COM6')\narduino.output([])\n\nbuttonPin = 8\n\nprint \"INITIATE\"\ntoday = 0\ntotal = 0\n\nwhile True:\n\tbutton = arduino.getState(buttonPin)\n\ttime.sleep(0.1)\n\tif button:\n\t\ttoday += 1\n\t\ttotal += 1\n\t\ttmp = arduino.getTemp()\n\t\tarduino.LCD(today, total, int(round(tmp)))\n\t\tname = str(raw_input(\"Who pressed me?! \"))\n\t\tprint tweet(name + \" pressed the big red button!\")\n\t\ttime.sleep(1)\n```\nIt gets the name from user input in the Python console when somebody presses the button and send a tweet with the name.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneo%2Fsmartclassroom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneo%2Fsmartclassroom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneo%2Fsmartclassroom/lists"}