npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

sense-hat-base-application

v0.1.0-refresh-1bac67e781db6964e7c42505dc015af8058fde75

Published

A base application on which to start building your sense-hat project!

Downloads

3

Readme

Using the Sense HAT with balena

Start by downloading Etcher. You will use Etcher to write balenaOS to an SD card to boot your Raspberry Pi.

You will follow the getting started guide for the beginning of this project up through the "Deploying code" section. Specifically,

If 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:

git clone https://github.com/balena-io-projects/sense-hat-base-application

Once the repo is cloned, you’ll change directory into the newly created sense-hat-base-application directory:

cd sense-hat-base-application

Next you'll connect your local copy of the application to balena by running the command shown in the top-right corner of your application page. You can use the clipboard button to copy this line from the balena dashboard page. (Be sure to copy the git remote add line from the top right corner of your application page rather than from here -- it will include your username and application name!) balena dashboard

It looks like this:

git remote add balena <USERNAME>@git.balena-cloud.com:<USERNAME>/<APPNAME>.git

So now you have set up a reference in your local git repository (the one on your development computer) to the balena application remote repository. So when you push new changes to this remote repository it will get compiled and built on the balena servers and deployed to every device in the application fleet.

Now to deploy this code to all device(s) in the application just run the command:

git push balena master

You may see a warning that says

The authenticity of host ‘git.balena-cloud.com (54.165.162.194)’ can’t be established. ECDSA key fingerprint is SHA256:NfwmqnKId5cx1RWpebbEuuM87bCJbdyhzRnqFES9Nnw. Are you sure you want to continue connecting (yes/no)?

Type yes and hit return to accept. Your machine is asking you to verify the SSH host. You should only see this the first time you connect to balena.

It should only take about two minutes to build your code (and subsequent builds will be quicker because of caching). You'll know your code has been successfully compiled and built when our friendly unicorn mascot appears in your terminal:

unicorn

This means your code is safely built and stored on our image registry.

Your application will now be downloaded and executed by the device you have connected in your application fleet. This may take a few minutes, and you can watch the status of the download in your application dashboard. Optionally, you can speed this up for subsequent builds using balena's container deltas if you want!

You’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.

Ready to go beyond a single lit LED?

The 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.

You can also use the Sense HAT in other languages, such as Python.