{"id":19108275,"url":"https://github.com/balena-io-experimental/sense-hat-base-application","last_synced_at":"2025-04-30T19:05:43.232Z","repository":{"id":47024672,"uuid":"107525106","full_name":"balena-io-experimental/sense-hat-base-application","owner":"balena-io-experimental","description":"A balena application showing the basics of sense-hat development using javascript","archived":false,"fork":false,"pushed_at":"2021-09-16T19:20:37.000Z","size":24,"stargazers_count":10,"open_issues_count":2,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T08:10:36.279Z","etag":null,"topics":["balena","docker","raspberrypi","sense-hat"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/balena-io-experimental.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-19T09:19:25.000Z","updated_at":"2024-10-06T10:00:00.000Z","dependencies_parsed_at":"2022-08-26T09:41:17.319Z","dependency_job_id":null,"html_url":"https://github.com/balena-io-experimental/sense-hat-base-application","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balena-io-experimental%2Fsense-hat-base-application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balena-io-experimental%2Fsense-hat-base-application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balena-io-experimental%2Fsense-hat-base-application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balena-io-experimental%2Fsense-hat-base-application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/balena-io-experimental","download_url":"https://codeload.github.com/balena-io-experimental/sense-hat-base-application/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251767210,"owners_count":21640467,"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":["balena","docker","raspberrypi","sense-hat"],"created_at":"2024-11-09T04:15:41.166Z","updated_at":"2025-04-30T19:05:43.182Z","avatar_url":"https://github.com/balena-io-experimental.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Using the Sense HAT with balena\n===============================\n\nStart by downloading [Etcher](https://balena.io/etcher).  You will use Etcher to write balenaOS to an SD card to boot your Raspberry Pi.\n\nYou will follow the [getting started guide](https://balena.io/docs/learn/getting-started/raspberrypi3/nodejs/) for the beginning of this project up through the \"Deploying code\" section.  Specifically,\n- [create a Fleet](https://balena.io/docs/learn/getting-started/raspberrypi3/nodejs/#create-a-fleet)\n- [Add your first device](https://balena.io/docs/learn/getting-started/raspberrypi3/nodejs/#add-your-first-device) (download balenaOS)\n- using Etcher, [create a bootable SD card](https://www.balena.io/docs/learn/getting-started/raspberrypi3/nodejs/#provision-device)\n- [Install the balena CLI](https://www.balena.io/docs/learn/getting-started/raspberrypi3/nodejs/#install-the-balena-cli)\n\nIf you haven't cloned this git repository (i.e. you're reading these instructions on GitHub), do that now by typing this into a terminal:\n\n```\ngit clone https://github.com/balena-io-projects/sense-hat-base-application\n```\n\nOnce the repo is cloned, you’ll change directory into the newly created *sense-hat-base-application* directory:\n\n```\ncd sense-hat-base-application\n```\n\nNext we'll do a `balena push` to take the contents of the directory that you have cloned locally, and put them onto your device.  This consists of sending your contents up to balenaCloud to be built, and then balenaCloud will send the resulting built container down to your device. From inside that *sense-hat-base-application* directory run:\n\n`balena push YourFleetNameYouCreatedAbove`\n\nThe build will start running, and look something like this:\n\n```\n[main]     Successfully built d5f1de77fad3\n[Info]     Uploading images\n[Success]  Successfully uploaded images\n[Success]  Release successfully created!\n[Info]     Release: f4e3925bf7d32226365225e1b7201b90 (id: 89693)\n[Info]     ┌─────────┬────────────┬────────────┐\n[Info]     │ Service │ Image Size │ Build Time │\n[Info]     ├─────────┼────────────┼────────────┤\n[Info]     │ main    │ 205.13 MB  │ 1 second   │\n[Info]     └─────────┴────────────┴────────────┘\n[Info]     Build finished in 7 seconds\n                \\\n                 \\\n                  \\\\\n                   \\\\\n                    \u003e\\/7\n                _.-(6'  \\\n               (=___._/` \\\n                    )  \\ |\n                   /   / |\n                  /    \u003e /\n                 j    \u003c _\\\n             _.-' :      ``.\n             \\ r=._\\        `.\n            \u003c`\\\\_  \\         .`-.\n             \\ r-7  `-. ._  ' .  `\\\n              \\`,      `-.`7  7)   )\n               \\/         \\|  \\'  / `-._\n                          ||    .'\n                           \\\\  (\n                            \u003e\\  \u003e\n                        ,.-' \u003e.'\n                       \u003c.'_.''\n                         \u003c'\n```\n\nThis means your code is safely built and stored on our image registry.\n\nYour container will now be downloaded and run by the device you have provisioned in your fleet. This may take a few minutes, and you can watch the status of the download on the device page of the dashboard. It should look a bit like this:\n![balena dashboard](https://www.balena.io/docs/img/common/device/download-progress.png)\n\nYou’ll know the code is deployed when the device changes from \"Downloading\" to \"Online\" in the dashboard, and you’ll know it’s running on the device when one of the LEDs on the Sense HAT lights up. You'll be able to move the light with the Sense HAT joystick.\n\n### Ready to go beyond a single lit LED?\nThe Sense HAT measures temperature, humidity, pressure, and orientation, which you can show on the LED matrix. You can find more ideas of what to do with the HAT in [this library](https://github.com/balena-io-playground/node-sense-hat).\n\nYou can also use the Sense HAT in other languages, such as [Python](http://pythonhosted.org/sense-hat/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalena-io-experimental%2Fsense-hat-base-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbalena-io-experimental%2Fsense-hat-base-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalena-io-experimental%2Fsense-hat-base-application/lists"}