{"id":19601513,"url":"https://github.com/frosty515/arduino-server","last_synced_at":"2026-07-08T14:31:30.112Z","repository":{"id":230671602,"uuid":"779917780","full_name":"Frosty515/arduino-server","owner":"Frosty515","description":"A server for interacting with an arduino.","archived":false,"fork":false,"pushed_at":"2024-08-17T08:19:49.000Z","size":104,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T08:58:41.799Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Frosty515.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-03-31T06:28:48.000Z","updated_at":"2024-08-17T08:19:53.000Z","dependencies_parsed_at":"2024-08-17T09:31:32.390Z","dependency_job_id":"518a1f4e-f6d2-460e-95fa-5f893e80c246","html_url":"https://github.com/Frosty515/arduino-server","commit_stats":null,"previous_names":["frosty515/arduino-server"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frosty515%2Farduino-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frosty515%2Farduino-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frosty515%2Farduino-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Frosty515%2Farduino-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Frosty515","download_url":"https://codeload.github.com/Frosty515/arduino-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240879726,"owners_count":19872415,"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-11-11T09:18:44.010Z","updated_at":"2026-07-08T14:31:30.089Z","avatar_url":"https://github.com/Frosty515.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# arduino-server\n\nA server for interacting with an arduino.\n\n## COPYING\n\nCopyright (©) 2024  Frosty515\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n\n## Arduino support\n\nCurrently only `Arduino Uno R3` is supported. To add support for others, you will need to add more pin support in the `cpp-frontend`, `js-server` and `arduino` folders.\nTo add more pin support, you will need to update the `PIN_COUNT` macro in `cpp-frontend/src/App.cpp`. Then, you will need to update the first line of `js-server/index.js` to be the number of pins you want to support. Then, you will need to update the `arduino/arduino.ino` file to support the new pins.\n\n## Requirements\n\n- cjson\n- GCC\n- binutils\n- nodejs\n- npm\n- ninja\n- cmake\n\n### Installation of requirements\n\n#### Debian/Ubuntu\n\nRun `sudo apt update \u0026\u0026 sudo apt install build-essential libcjson-dev nodejs npm cmake ninja-build`\n\n#### Arch\n\nRun `sudo pacman -Syu base-devel cjson nodejs npm cmake ninja`\n\n## Building\n\n1. For the first build, run `cd js-server \u0026\u0026 npm update`.\n2. `arduino/arduino.ino` needs to be built and uploaded to the arduino.\n3. Create and enter a build directory with `mkdir build \u0026\u0026 cd build`.\n4. Run `cmake -GNinja ..` to configure the build.\n5. Run `ninja install` to build and install the project to the `bin` directory in the root of the project.\n\n## Running\n\nRun `cd js-server \u0026\u0026 ../cpp-backend/bin/cpp-backend server.js \u003cserial_port\u003e`, where `\u003cserial_port\u003e` is the serial port the arduino is connected to.\nThe server lauches a http server on port 8080.\n\n## Connecting\n\n### HTML web frontend\n\nThe web frontend is in the `js-server` folder with the server. To connect to the server, open a web browser and go to `http://localhost:8080`.\n\n### GTK+ 4 based C++ frontend\n\nThe C++ frontend is in the `cpp-frontend` folder. To connect to the server, run `./bin/cpp-frontend`.\n\n## HTTPS support\n\nFor https support, a key and certificate with the names `selfsigned.key` and `selfsigned.crt`, respectively, will need to be generated in the `js-server` folder. Also, lines 29-35, 106 and 112-114 in `js-server/server.js` will need to be uncommented. With this, a https server will also start on port 8443.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrosty515%2Farduino-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrosty515%2Farduino-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrosty515%2Farduino-server/lists"}