{"id":16164278,"url":"https://github.com/troglobit/temp","last_synced_at":"2026-05-04T07:40:48.011Z","repository":{"id":213817133,"uuid":"734745172","full_name":"troglobit/temp","owner":"troglobit","description":"Template to use for C projects","archived":false,"fork":false,"pushed_at":"2023-12-30T07:51:27.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-13T09:18:24.488Z","etag":null,"topics":["c","hwmon","libite","libuev","linux","temperature","template"],"latest_commit_sha":null,"homepage":"https://troglobit.com","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/troglobit.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}},"created_at":"2023-12-22T13:53:09.000Z","updated_at":"2024-01-28T01:16:17.000Z","dependencies_parsed_at":"2023-12-30T08:27:57.823Z","dependency_job_id":"4ceaf946-3202-4531-95e5-ee3eaaf68d79","html_url":"https://github.com/troglobit/temp","commit_stats":{"total_commits":37,"total_committers":1,"mean_commits":37.0,"dds":0.0,"last_synced_commit":"c3a786c994e5b4407940f82cdaed286664e9bbaa"},"previous_names":["troglobit/temp"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troglobit%2Ftemp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troglobit%2Ftemp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troglobit%2Ftemp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/troglobit%2Ftemp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/troglobit","download_url":"https://codeload.github.com/troglobit/temp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247595378,"owners_count":20963943,"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":["c","hwmon","libite","libuev","linux","temperature","template"],"created_at":"2024-10-10T02:46:03.233Z","updated_at":"2026-05-04T07:40:47.979Z","avatar_url":"https://github.com/troglobit.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Template Project\n================\n\nThis project can be used as a template for your next little C project.\nIt comes with lots of \"frog DNA\" from [libite (-lite)][1], that holds\nutility functions missing from the standard C library, and an `epoll()`\nbased event loop from [libuEv][1] -- all you need for that made-easy\nprogramming experience!\n\nThe project is built using GNU autotools, in a special stripped-down\nsetup that even the most die-hard CMake or Meson champion will find\nuser friendly.\n\n\nTake Care!  \n /Joachim \u003c3\n\n\nExample\n-------\n\nThe included source is an example of how to periodically poll the Linux\nhwmon temperature sensors and save data to a JSON file for consumption\nby some other tool.\n\nSince the program has external dependencies, you need to install them\nfirst.  On a Debian/Ubuntu based system:\n\n    sudo apt install libuev-dev libite-dev pkg-config\n\nThe latter is used by the build system to find the libraries.\n\n\nBuilding\n--------\n\nThis repo is meant to be used as an example and template, so it does not\ncontain any tarball releases.  These artifacts can be created using the\ncommand `make dist`, when you have configured the project.\n\nTo get the most out of this example you need to know a few things about\nthe [Autotools build system][3] and the key components:\n\n - `configure.ac` and the per-directory `Makefile.am` are source files\n - `configure` and `Makefile.in` are generated from `autogen.sh`\n - `Makefile` are generated by the `configure` script\n\n\u003e I subscribe to the tenet that generated files should not be saved in\n\u003e version control systems.  That is why none of my projects have these\n\u003e files in GIT.  The generated tarballs (above), however, do and that is\n\u003e why they are more suitable for end-user consumption.\n\nTo build the example you must, of course, first clone the repository and\nthen run the `autogen.sh` script.  This requires you to have `automake`\nand `autoconf` installed on your system (we assume you already have the\nC compiler and `make` installed):\n\n    sudo apt install autoconf automake\n\nFinally, clone and build:\n\n    git clone https://github.com/troglobit/template.git\n    cd template/\n    ./autogen.sh\n    ./configure \u0026\u0026 make\n\nIf you are using a different Linux or UNIX distribution, check the\noutput from `./configure --help`, followed by `make all install`.\nFor instance, building on [Alpine Linux](https://alpinelinux.org/):\n\n    PKG_CONFIG_LIBDIR=/usr/local/lib/pkgconfig ./configure \\\n        --prefix=/usr --localstatedir=/var --sysconfdir=/etc\n\nProvided the library dependencies (above) were built and installed in\nthe `/usr/local/` directory.  This `PKG_CONFIG_LIBDIR` trick may be\nneeded on other GNU/Linux, or UNIX, distributions as well.\n\n\n[1]: https://github.com/troglobit/libite\n[2]: https://github.com/troglobit/libuev\n[3]: https://autotools.info\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftroglobit%2Ftemp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftroglobit%2Ftemp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftroglobit%2Ftemp/lists"}