{"id":16653697,"url":"https://github.com/trafitto/my-micropython-pocket-guide","last_synced_at":"2026-04-20T08:32:53.912Z","repository":{"id":138015866,"uuid":"424886935","full_name":"Trafitto/my-micropython-pocket-guide","owner":"Trafitto","description":null,"archived":false,"fork":false,"pushed_at":"2021-11-12T09:25:38.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T20:10:55.766Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Trafitto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-05T09:06:34.000Z","updated_at":"2021-11-12T09:25:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"18560adf-d007-4c98-9791-08ca056fa3c9","html_url":"https://github.com/Trafitto/my-micropython-pocket-guide","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Trafitto/my-micropython-pocket-guide","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trafitto%2Fmy-micropython-pocket-guide","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trafitto%2Fmy-micropython-pocket-guide/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trafitto%2Fmy-micropython-pocket-guide/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trafitto%2Fmy-micropython-pocket-guide/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Trafitto","download_url":"https://codeload.github.com/Trafitto/my-micropython-pocket-guide/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Trafitto%2Fmy-micropython-pocket-guide/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32040111,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-12T09:46:45.533Z","updated_at":"2026-04-20T08:32:53.893Z","avatar_url":"https://github.com/Trafitto.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# My pocket guide to Mictopython on ESP8266 Nodemcu V3\r\n\r\nJust a collection of things I am learning while trying and using micropython\r\n\r\n## Installations\r\n\r\nI dunno why but I cannot flash the Micropython firmware on Ubuntu due to an esptool error (connection failed).\r\n\r\nSo I follow the tutorial step with my Windows PC and everything works fine\r\n\r\nIn the new releases of Micropython it is necessary to set a password to access the webRel, I configured it with screen.\r\n\r\n## Dependencies\r\n\r\n- Ampy\r\n\r\n    `pip install adafruit-ampy`\r\n\r\n## Usage\r\n\r\nConnect to RELP (Read Evaluate Print Loop) with screen\r\n\r\n`screen /dev/ttyUSB0 115200` \r\n\r\nRELP is basically an onboard python console\r\n\r\nUse Ampy for run script\r\n\r\n##### NOTE: You have to use ampy or screen. They cannot be used together otherwise it fails to connect\r\n\r\n`ampy --port /dev/ttyUSB0 run blink/blink.py`\r\n\r\nPermanently run the script (Also: Run on boot)\r\n\r\n`ampy --port /dev/ttyUSB0 put blink/blink.py /main.py`\r\n\r\n\r\n## Networking\r\n\r\nConnect the NodeMcu to your wifi\r\n\r\nJust follow [this steps](https://docs.micropython.org/en/latest/esp8266/quickref.html#networking)\r\n\r\nLeave this functions here Micropython says it's useful... I have no idea\r\n\r\n```\r\ndef do_connect():\r\n    import network\r\n    wlan = network.WLAN(network.STA_IF)\r\n    wlan.active(True)\r\n    if not wlan.isconnected():\r\n        print('connecting to network...')\r\n        wlan.connect('essid', 'password')\r\n        while not wlan.isconnected():\r\n            pass\r\n    print('network config:', wlan.ifconfig())\r\n```\r\n\r\n\r\n## Installing package\r\n\r\nYou can install package with your RELP (with screen)\r\n\r\nImport upip:\r\n\r\n```\r\nimport upip\r\nupip.install('urequests')\r\n```\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrafitto%2Fmy-micropython-pocket-guide","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrafitto%2Fmy-micropython-pocket-guide","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrafitto%2Fmy-micropython-pocket-guide/lists"}