{"id":14963225,"url":"https://github.com/lnb51/spark","last_synced_at":"2026-01-28T19:02:01.566Z","repository":{"id":253477439,"uuid":"843596541","full_name":"lnB51/spark","owner":"lnB51","description":"Turn on your PC via Telegram bot and ESP32","archived":false,"fork":false,"pushed_at":"2024-08-16T23:18:37.000Z","size":314,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-31T05:19:13.559Z","etag":null,"topics":["esp32","esp32-c3","remote-power","rust-lang","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/lnB51.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":"2024-08-16T21:53:16.000Z","updated_at":"2024-08-17T02:19:32.000Z","dependencies_parsed_at":"2024-08-17T02:06:38.942Z","dependency_job_id":null,"html_url":"https://github.com/lnB51/spark","commit_stats":null,"previous_names":["lnb51/spark"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lnB51/spark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnB51%2Fspark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnB51%2Fspark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnB51%2Fspark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnB51%2Fspark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lnB51","download_url":"https://codeload.github.com/lnB51/spark/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lnB51%2Fspark/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28849361,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"last_error":"SSL_read: 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":["esp32","esp32-c3","remote-power","rust-lang","telegram-bot"],"created_at":"2024-09-24T13:31:11.995Z","updated_at":"2026-01-28T19:02:01.545Z","avatar_url":"https://github.com/lnB51.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\r\n\u003cp align=\"center\"\u003e\r\n\u003cimg src=\"https://github.com/lnB51/spark/blob/master/images/logo.png\" width=150px alt=\"spark logo\"/\u003e\r\n\u003cbr /\u003e\r\n\u003ch1 align=\"center\"\u003eSpark\u003c/h1\u003e\r\n\u003c/p\u003e\r\n\r\n#### Remote starter for PC\r\n![Version 0.1](https://img.shields.io/badge/Version%200.1-FFC832?style=for-the-badge\u0026logoColor=white)\r\n![Rust](https://img.shields.io/badge/Rust-000?style=for-the-badge\u0026logo=rust\u0026logoColor=white)\r\n[![MIT License](https://img.shields.io/badge/MIT%20License-004772?style=for-the-badge\u0026logo=license\u0026logoColor=white)](https://github.com/lnB51/spark/blob/master/LICENSE)\r\n\u003cp\u003e\r\n  This project was designed to solve the problem of arranging a remote workplace. If there were no problems with remote control tools, how to run a computer remotely with minimal costs is a difficult question.\r\n\u003c/p\u003e\r\n\r\n## What You’ll Need:\r\n    \r\n  - An ESP32-C3 board ⚙️\r\n  - Your trusty PC or laptop 🐱‍💻\r\n  - A cup of tea or coffee (your choice!) ☕\r\n  - A good mood 😊\r\n## Prerequisites\r\n\r\n### Install Rust (with `rustup`)\r\n\r\nIf you don't have `rustup` installed yet, follow the instructions on the [rustup.rs site](https://rustup.rs)\r\n\r\n### Install ESP32 toolchain \r\nIf you haven't installed the ESP toolchain yet, here's the link to get started: [espressif](https://docs.espressif.com/projects/esp-idf/en/v5.0.2/esp32/get-started/index.html#manual-installation)\r\n\r\n### Install Cargo Sub-Commands\r\n\r\n```sh\r\ncargo install cargo-generate\r\ncargo install ldproxy\r\ncargo install espup\r\ncargo install espflash\r\n```\r\n\r\n## Let's get started\r\n\r\n#### Copy source code\r\n```sh\r\ngit clone https://github.com/lnB51/spark\r\n```\r\n\r\n#### Create a ```cfg.toml``` file in the root directory. You can use ```cfg.toml.example``` as a template — just update it with your own details.\r\n```sh\r\n[spark]\r\nwifi_ssid = \"Spark\"\r\nwifi_pass = \"Remote\"\r\nbot_token = \"Hello I'm bot token\"\r\nbot_owner_id = 12345678\r\n```\r\n\r\nP.S.: You can find your ```bot_owner_id``` by visiting [Web Telegram](https://web.telegram.org/a/). Just open your \"Saved Messages\" and check the webpage URL for the ID. To get your ```bot_token```, use [BotFather](https://telegram.me/BotFather) on Telegram.\r\n\r\nIf you're using VSCode, I recommend installing [Task runner](https://marketplace.visualstudio.com/items?itemName=SanaAjani.taskrunnercode). I've already set up a ```task.json``` file for you, so you can easily ```build, flash, and monitor``` with just one click!\r\n\r\nJust a heads up—log monitoring from the board is only available in debug mode.\r\n\r\nIf you're not using VSCode, here are the commands you'll need:\r\n\r\n#### Build (Debug)\r\n```sh\r\ncargo build\r\n```\r\n\r\n#### Build (Release)\r\n```sh\r\ncargo build --release\r\n```\r\n\r\n#### Flash\r\n```sh\r\nespflash flash target/riscv32imc-esp-espidf/debug/spark --list-all-ports\r\n```\r\n\r\n#### Monitor\r\n```sh\r\nespflash monitor\r\n```\r\n\r\n## Next steps\r\n\r\nAfter you have uploaded the firmware to the board, you will need to solder the following [Circuit](https://github.com/lnB51/spark/blob/master/images/soldering_scheme.png)\r\n\r\nTo learn more you can use pinout diagram [Pinout](https://github.com/lnB51/spark/blob/master/images/pinout_scheme.jpg)\r\n\r\n## Result\r\n\r\nEverything is ready, now you can check your work by sending the following commands to the bot 🤖:\r\n\r\n```/poweron``` - Turn on the computer\r\n\r\n```/poweroff``` - Turn off the computer in normal mode\r\n\r\n```/reboot``` - Force reboot the computer (use only if the computer is frozen or you cannot turn it off in the usual way)\r\n\r\n## Modify the Code for Other Platforms\r\n\r\nIf you want to use a different board, check out the instructions here:\r\n\r\n* [Rust on ESP-IDF](https://github.com/esp-rs/esp-idf-template/blob/master/README.md)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnb51%2Fspark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flnb51%2Fspark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flnb51%2Fspark/lists"}