{"id":19820164,"url":"https://github.com/nerves-project/nerves_motd","last_synced_at":"2025-05-01T11:33:23.356Z","repository":{"id":38193424,"uuid":"402452734","full_name":"nerves-project/nerves_motd","owner":"nerves-project","description":"Message of the Day for Nerves devices","archived":false,"fork":false,"pushed_at":"2025-04-17T17:03:45.000Z","size":200,"stargazers_count":8,"open_issues_count":6,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-18T07:46:36.812Z","etag":null,"topics":["elixir","motd","nerves"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nerves-project.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSES/Apache-2.0.txt","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":"2021-09-02T14:33:11.000Z","updated_at":"2025-04-17T17:03:48.000Z","dependencies_parsed_at":"2023-12-29T17:26:01.722Z","dependency_job_id":"96fb93d7-0fe0-4f23-99d3-608967f0bdb6","html_url":"https://github.com/nerves-project/nerves_motd","commit_stats":{"total_commits":143,"total_committers":6,"mean_commits":"23.833333333333332","dds":0.5174825174825175,"last_synced_commit":"d55fa914a8eb044dd71c4c921a52a487be7e1498"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerves-project%2Fnerves_motd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerves-project%2Fnerves_motd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerves-project%2Fnerves_motd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerves-project%2Fnerves_motd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nerves-project","download_url":"https://codeload.github.com/nerves-project/nerves_motd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251869030,"owners_count":21657182,"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":["elixir","motd","nerves"],"created_at":"2024-11-12T10:21:53.688Z","updated_at":"2025-05-01T11:33:23.349Z","avatar_url":"https://github.com/nerves-project.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nerves_motd\n\n[![Hex version](https://img.shields.io/hexpm/v/nerves_motd.svg \"Hex version\")](https://hex.pm/packages/nerves_motd)\n[![API docs](https://img.shields.io/hexpm/v/nerves_motd.svg?label=hexdocs \"API docs\")](https://hexdocs.pm/nerves_motd/NervesMOTD.html)\n[![CircleCI](https://dl.circleci.com/status-badge/img/gh/nerves-project/nerves_motd/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/nerves-project/nerves_motd/tree/main)\n[![REUSE status](https://api.reuse.software/badge/github.com/nerves-project/nerves_motd)](https://api.reuse.software/info/github.com/nerves-project/nerves_motd)\n\n`nerves_motd` prints a [\"message of the\nday\"](https://en.wikipedia.org/wiki/Motd_(Unix)) on Nerves devices.\n\n![](https://user-images.githubusercontent.com/7563926/202566900-942f3963-ff0e-48c2-9e13-03f96dd9a0d0.png)\n\n## Usage\n\nThe primary function is `NervesMOTD.print()` which prints the base layout based\non the template below:\n\n```\n\u003cLOGO\u003e\n\u003cAPP_NAME\u003e \u003cAPP_VERSION\u003e (\u003cFW_UUID\u003e) \u003cPLATFORM\u003e \u003cTARGET\u003e\n  Serial       : \u003cSERIAL_NUMBER\u003e\n  Uptime       : 18.296 seconds\n  Clock        : 2023-05-18 00:05:20 JST \u003csynchronization state\u003e\n\n  Firmware     : \u003cVALIDITY\u003e (\u003cA|B\u003e)      Applications : \u003cN\u003e started (\u003cnot started applications\u003e)\n  Memory usage : 74 MB (15%)             Part usage   : 210 MB (14%)\n  Hostname     : \u003cHOSTNAME\u003e              Load average : 0.05 0.14 0.15\n\n  \u003cIFNAME\u003e     : \u003cIPV6\u003e, \u003cIPV4\u003e\n  \u003cEXTRA_ROWS\u003e\n```\n\nTo have `NervesMOTD` print automatically when first accessing a device, add\n`NervesMOTD.print()` to your `iex.exs` file (typically in\n`rootfs_overlay/etc/iex.exs`)\n\n### Customization\n\n`NervesMOTD.print/1` supports a few options for customizing the base layout:\n\n* `:logo` - Change the logo displayed. Defaults to the Nerves logo. Set to `\"\"`\n  to prevent any logo from being displayed\n* `:extra_rows` - a list of custom rows or a callback for returning rows to be\n  appended to the end of the layout. The callback can be a 0-arity function\n  reference or MFArgs tuple.\n\nFor convenience, `NervesMOTD.print/1` options may be stored in the application\nenvironment in your `config.exs` to be used whenever `NervesMOTD.print/0` is\ncalled:\n\n```elixir\nconfig :nerves_motd,\n  logo: \"\"\"\n  Custom logo\n  \"\"\",\n  extra_rows: [\n    [{\"Label\", \"value\"}, {\"Label2\", \"value2\"}],\n    [{\"Long label\", \"Lots of text\"}]\n  ]\n```\n\n## Installation\n\nInstall by adding `:nerves_motd` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:nerves_motd, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\nFor details, see [API reference](https://hexdocs.pm/nerves_motd/api-reference.html).\n\n## License\n\nAll original source code in this project is licensed under Apache-2.0.\n\nAdditionally, this project follows the [REUSE recommendations](https://reuse.software)\nand labels so that licensing and copyright are clear at the file level.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerves-project%2Fnerves_motd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnerves-project%2Fnerves_motd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerves-project%2Fnerves_motd/lists"}