{"id":17816487,"url":"https://github.com/zebrajaeger/esp8266_switch","last_synced_at":"2025-04-02T08:26:07.073Z","repository":{"id":97328844,"uuid":"134322668","full_name":"zebrajaeger/esp8266_switch","owner":"zebrajaeger","description":null,"archived":false,"fork":false,"pushed_at":"2018-05-21T20:44:26.000Z","size":470,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T23:43:01.593Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","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/zebrajaeger.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-21T20:38:12.000Z","updated_at":"2018-05-21T20:44:28.000Z","dependencies_parsed_at":"2023-03-13T16:15:16.990Z","dependency_job_id":null,"html_url":"https://github.com/zebrajaeger/esp8266_switch","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/zebrajaeger%2Fesp8266_switch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebrajaeger%2Fesp8266_switch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebrajaeger%2Fesp8266_switch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebrajaeger%2Fesp8266_switch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zebrajaeger","download_url":"https://codeload.github.com/zebrajaeger/esp8266_switch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246779930,"owners_count":20832488,"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-10-27T16:38:15.951Z","updated_at":"2025-04-02T08:26:07.040Z","avatar_url":"https://github.com/zebrajaeger.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## hardware\n\n* esp-01\n* program adapter (USB to serial, 3,3V Regulator with program and reset switch)\n\n## modify esp-01\n\n* Buy a flash memory chip mit 32Mbit (4MByte) and replace it with the existing one\n\n## build frontend\n\ninstall node\n\ncd frontend_ap\nnpm install\nnpm run build\n\ncd ../frontend_ap\nnpm install\nnpm run build\n\n## build and flash esp\n\ninstall atom with platformio-ide plugin and httpclang\nsee http://docs.platformio.org/en/latest/ide/atom.html\ninstall expressif8266 plugin\n\nGo to .platfromio in user directory and search for a file with name 'esp01_1m.json'\ni.E. C:\\Users\\lars\\.platformio\\platforms\\espressif8266\\boards\\esp01_1m.json\n\nParallel to this file create a new one:\n\ntouch esp01_4m.json and copy this content in:\n\n{\n  \"build\": {\n    \"core\": \"esp8266\",\n    \"extra_flags\": \"-DESP8266 -DARDUINO_ARCH_ESP8266 -DARDUINO_ESP8266_ESP01\",\n    \"f_cpu\": \"80000000L\",\n    \"f_flash\": \"40000000L\",\n    \"flash_mode\": \"qio\",\n    \"ldscript\": \"eagle.flash.4m.ld\",\n    \"mcu\": \"esp8266\",\n    \"variant\": \"generic\"\n  },\n  \"connectivity\": [\n    \"wifi\"\n  ],\n  \"frameworks\": [\n    \"arduino\",\n    \"esp8266-rtos-sdk\",\n    \"esp8266-nonos-sdk\"\n  ],\n  \"name\": \"Espressif Generic ESP8266 ESP-01 1M\",\n  \"upload\": {\n    \"maximum_ram_size\": 81920,\n    \"maximum_size\": 4194304,\n    \"require_upload_port\": true,\n    \"resetmethod\": \"ck\",\n    \"speed\": 115200\n  },\n  \"url\": \"http://www.esp8266.com/wiki/doku.php?id=esp8266-module-family\",\n  \"vendor\": \"Espressif\"\n}\n\n* Now open the bootstrap project and flash it via usb\n* start it and see on serial monitor the output\n* the ip address is important. you will need it to configure the firmware project\n\n* open the firmware project\n* change or add the line of code with the ip you got from the previous step\n** upload_port = 192.168.178.27\n* Transfer frontend Files into flash\n** Atom -\u003e PlatformIO -\u003e Run other target -\u003e PIO Upload SPIFFS Image\n* Write firmware\n** Atom -\u003e PlatformIO -\u003e Upload\n\n## Run\nReboot esp\n\nTake a mobile device like a smartphone. Open Wifi settings and connect to the \"ESP8266 AP\"\nOpen a Browser und put in some url like foo.bar (a domain thats ip is not cached like a non existing domain) \nChoose a Network, enter pasword\nReboot\nYour Router shold say what ip the esp has\nopen a browser and connect to http://\u003cip\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzebrajaeger%2Fesp8266_switch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzebrajaeger%2Fesp8266_switch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzebrajaeger%2Fesp8266_switch/lists"}