{"id":13499820,"url":"https://github.com/WebThingsIO/webthing-upy","last_synced_at":"2025-03-29T05:32:23.357Z","repository":{"id":113659218,"uuid":"133543121","full_name":"WebThingsIO/webthing-upy","owner":"WebThingsIO","description":"MicroPython implementation of a Web Thing server ","archived":false,"fork":false,"pushed_at":"2021-01-07T17:38:20.000Z","size":67,"stargazers_count":52,"open_issues_count":3,"forks_count":16,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-01-24T04:54:20.084Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WebThingsIO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-05-15T16:21:49.000Z","updated_at":"2024-04-15T06:30:07.105Z","dependencies_parsed_at":null,"dependency_job_id":"b4a0b886-c3fc-4801-bd13-829423a2404e","html_url":"https://github.com/WebThingsIO/webthing-upy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebThingsIO%2Fwebthing-upy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebThingsIO%2Fwebthing-upy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebThingsIO%2Fwebthing-upy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebThingsIO%2Fwebthing-upy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WebThingsIO","download_url":"https://codeload.github.com/WebThingsIO/webthing-upy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246145012,"owners_count":20730494,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-07-31T22:00:43.451Z","updated_at":"2025-03-29T05:32:22.941Z","avatar_url":"https://github.com/WebThingsIO.png","language":"Python","readme":"# webthing-upy\n\nThis is a MicroPython version of webthing-python.\n\nThis has been tested on an ESP-WROVER-KIT and a SparkFun ESP32 Thing using the\nloboris version of ESP32 MicroPython.\nThe loboris port has a forked copy of https://github.com/jczic/MicroWebSrv and\nthis requires some further changes which can be found here:\n\nhttps://github.com/dhylands/MicroPython_ESP32_psRAM_LoBo/tree/rest-improvements\n\n# Building and Flashing MicroPython\n\nUsing https://github.com/dhylands/MicroPython_ESP32_psRAM_LoBo/tree/rest-improvements follow\nthe directions in the [README.md](https://github.com/dhylands/MicroPython_ESP32_psRAM_LoBo/tree/rest-improvements/README.md) file\n\n# Installing webthing-upy\n\nI used version 0.0.12 of [rshell](https://github.com/dhylands/rshell) to copy the webthing-upy files to the board. The\nESP-WROVER-KIT board advertises 2 serial ports. Use the second port (typically /dev/ttyUSB1). The SparkFun ESP32 Thing only advertises a single serial port.\n\nEdit the config.py with an appropriate SSID and password. Edit main.py to be appropriate for the board you're using.\n\nSample main.py for the SparkFun ESP32 Thing:\n```\nimport start\nstart.thing()\n```\nSample main.py for the ESP-WROVER-KIT:\n```\nimport start\nstart.rgb()\n```\nFor debugging, remove main.py and enter commands at the REPL manually.\n\n```\n$ cd webthing-upy\n$ rshell -a --buffer-size=30 --port=/dev/ttyUSB1\nwebthing-upy\u003e rsync -v . /flash\nwebthing-upy\u003e repl\n\u003e\u003e\u003e Control-D\n```\nPressing Control-D will cause the board to soft reboot which will start executing main.py.\n\n# Adding to Gateway\n\nTo add your web thing to the WebThings Gateway, install the \"Web Thing\" add-on and follow the instructions [here](https://github.com/WebThingsIO/thing-url-adapter#readme).\n","funding_links":[],"categories":["Section"],"sub_categories":["Libraries"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWebThingsIO%2Fwebthing-upy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWebThingsIO%2Fwebthing-upy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWebThingsIO%2Fwebthing-upy/lists"}