{"id":20095964,"url":"https://github.com/avicted/skogsnet","last_synced_at":"2025-07-27T03:33:29.078Z","repository":{"id":41326704,"uuid":"508710362","full_name":"Avicted/Skogsnet","owner":"Avicted","description":"Arduino -\u003e Serial bus -\u003e Unix -\u003e (main) Measuements read from the Serial bus. With Raylib as Visualization for the data.","archived":false,"fork":false,"pushed_at":"2024-10-18T18:51:20.000Z","size":6210,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-06T05:42:31.274Z","etag":null,"topics":["arduino","c","cpp","embedded-systems","iot","linux","makefile","pid","pid-control","raylib","raylib-c","raylib-cpp","serial-communication","temperature","unix"],"latest_commit_sha":null,"homepage":"","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/Avicted.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,"zenodo":null}},"created_at":"2022-06-29T13:48:24.000Z","updated_at":"2024-10-18T18:51:25.000Z","dependencies_parsed_at":"2024-08-23T18:16:02.105Z","dependency_job_id":"ff2607b9-00fd-4cb0-a20a-6541a922047c","html_url":"https://github.com/Avicted/Skogsnet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Avicted/Skogsnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Avicted%2FSkogsnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Avicted%2FSkogsnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Avicted%2FSkogsnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Avicted%2FSkogsnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Avicted","download_url":"https://codeload.github.com/Avicted/Skogsnet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Avicted%2FSkogsnet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267294180,"owners_count":24065343,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"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":["arduino","c","cpp","embedded-systems","iot","linux","makefile","pid","pid-control","raylib","raylib-c","raylib-cpp","serial-communication","temperature","unix"],"created_at":"2024-11-13T16:57:11.784Z","updated_at":"2025-07-27T03:33:29.034Z","avatar_url":"https://github.com/Avicted.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Skogsnet   [![Badge License]][license]\n\n_Temperature and Humidity monitoring._\n\n# New version of Skogsnet\nThis project has been deprecated in favor of the new version, which is a complete rewrite in Go with a more modern architecture and better performance.\n\nFor the latest version, please visit:\n[Skogsnet V2](https://github.com/Avicted/skogsnet_v2)\n\n\n\u003cbr\u003e\n\n## Concept\n\nUsing a **[I2C Grove Sensor]**, you can transmit \u003cbr\u003e\ntemperature / humidity data with a **[Arduino \u003cbr\u003e\nMKR1010 Wifi][arduino]**\nboard.\n\nThe Arduino sends the data through Serial USB \u003cbr\u003e\nto the host, where the program `skogsnet.cpp` \u003cbr\u003e\nreads the serial stream and parses the JSON data.\n\nThis data can then be used as inputs to some \u003cbr\u003e\nlogic, a PID regulator implementation perhaps.\n\nThe data received by the skogsnet program is written out to **output.dat**\n\n\u003cbr\u003e\n\n\n## Dependencies\n\n_How to install required dependencies._\n\n```shell\nsudo pacman -S raylib nlohmann-json base-devel cmake \n```\n\n_Add the current user to the group of the USB device port:_\n```shell\n# Show the group\nls -l /dev/ttyACM0\ncrw-rw---- 1 root uucp 166, 0 Oct 18 21:41 /dev/ttyACM0\n\n# Add the current user to the group\nsudo usermod -aG uucp $(whoami)\n\n# Logout -\u003e Login again\n```\n\n## Running\n\n_How to start both programs._\n\n```shell\nmake -j 2 skogsnet raylibfrontend\n```\n\n## Skogsnet output\n```bash\n\u003e make -j 2 skogsnet raylibfrontend\ng++  -O0 -g -Wall -std=c++11 -Wno-narrowing -I/usr/include  -c -o code/skogsnet.o code/skogsnet.cpp\n\nCreating directories\nmkdir -p build\nmkdir -p ./raylib_frontend/build\n\nBuilding the and running raylib frontend\ng++ -O0 -g -Wall -std=c++11 -Wno-narrowing -I/usr/include -o ./raylib_frontend/build/raylibfrontend ./raylib_frontend/frontend.cpp -L /usr/lib -lstdc++ -lm  -lraylib -lm -lpthread\n./raylib_frontend/build/raylibfrontend\n\tNo input args OK!\n\tCurrent working directory: /home/avic/projects/Skogsnet\n\tHello from raylib_frontend!\n\tSuccessfully read data points from file! Total points in buffer: 100000\n\nBuilding the program\ng++ -O0 -g -Wall -std=c++11 -Wno-narrowing -I/usr/include -o ./build/skogsnet ./code/PID.cpp ./code/skogsnet.cpp -L /usr/lib -lstdc++ -lm \n./build/skogsnet\n\tSetting up time measurement and serial communications...\n./build/skogsnet\n\n      Trying port: /dev/ttyACM0\n\n        Skogsnet is running now, connected to port: /dev/ttyACM0\n\n\n        Measurement:\n        Timestamp:\t\t1725985596922\n        TemperatureCelcius:\t23.656250\n        Humidity:\t\t80.812500\n\n\tSuccessfully wrote to file: output.dat\n\n        Measurement:\n        Timestamp:\t\t1725985602463\n        TemperatureCelcius:\t23.625000\n        Humidity:\t\t80.875000\n\n\tSuccessfully wrote to file: output.dat\n\n\n^C\tCaught SIGINT, exiting peacefully!\n\n        dummy: 2\n        Exiting successfully.\n\tMemory used in GigaBytes: 0.001118\n\tMemory used in MegaBytes: 1.144409\n\nFreeing DataPoints: 1200000\n\n        [Performance Metrics]\n        Total memory allocated \t\t = 0.0 MB\n        Current Wall clock run time \t = 9.0 secs\n```\n\n## Raylib Frontend\n\n![screenshot.png](screenshot.png \"Frontend\")\n\n\u003c!-----------------------------------------------------------------------------\u003e\n\n[badge license]: https://img.shields.io/badge/License-GPL_3-blue.svg?style=for-the-badge\n[i2c grove sensor]: https://www.seeedstudio.com/Grove-Temperature-Humidity-Sensor-High-Accuracy-Mini.html\n[arduino]: https://docs.arduino.cc/hardware/mkr-1000-wifi\n[license]: #\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favicted%2Fskogsnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favicted%2Fskogsnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favicted%2Fskogsnet/lists"}