6939 stories
·
166 followers

Tutorial: Use your Matrix Portal and RGB Matrix with WLED and make an LED Stained Glass Window

1 Comment

RGB Matrix kaleidoscope image

Check out the newest tutorial from Erin St Blaine: Get WLED running on your MatrixPortal board and control an LED matrix with no coding. This is a really cool project — we’ve been wanting to see WLED’s amazing 2d animation effects on a high resolution matrix display for ages. As an extra bonus, we’ve gotten it working with the MoonModules fork of WLED which also includes a whole array of new 2d animations from Animartrix. The kaleidoscope animations are blowing our minds!

This project was inspired by Living Stained Glass as seen at the Autumn Lights Festival in Oakland, CA.

From the guide:

Make a glowing stained glass window with over 2000 LEDs that animate and glow in hundreds of different patterns and colors, all without writing a line of code. The magic lies with WLED, a free, open-source LED animation program that runs over WiFi. Control your LED matrix with your smart phone or web browser, and watch your creation dance.

This guide uses the MoonModules v 14.5.0 beta (“Small Step”) fork of WLED, which works on the MatrixPortal S3. As a bonus, it also contains the Animartrix library of effects — a large pool of brand-new 2d animations that turn your LED matrix into a whirling kaleidoscope of color.

Use a laser cutter or a Cricut vinyl cutter to create a “resist” layer out of opaque material, and a black LED acrylic layer for diffusion, to make a beautiful stained glass window style art piece that shifts and moves with colored lights.

Full tutorial here: https://learn.adafruit.com/matrix-portal-stained-glass-with-wled/

Read the whole story
jepler
40 minutes ago
reply
and another one from Erin
Earth, Sol system, Western spiral arm
Share this story
Delete

Tutorial: Star Illusion: Laser Cut Audio-Reactive Light with WLED

1 Comment

laser cut light box illusion

Check out the latest tutorial from Erin St Blaine: build a sound reactive music visualizer light for your wall or living room that pulses and animates with your favorite color palettes when your music is playing. Place it on top of your home stereo speaker for a fantastic living room light show that you made yourself.

This guide will show you how to choose your favorite shape and set it up in LightBurn for laser cutting, with size and rotation variations so that the cutout appears to “move” when animated lights move across the edge of the acrylic layers. Connect your lights to the Mini Sparkle Motion controller and your shape will appear to grow and pulse to the beat.

This is one of the best looking sound-reactive projects we’ve seen to date, and it uses the free, open-source WLED software which is easy to install and use with no coding required. Tweak the audio settings to pulse beautifully in time with your favorite style of music.

From the guide:

Turn your living room into a mini light show with this audio reactive laser-cut Star Illusion. This layered acrylic sculpture comes alive with WLED and the Adafruit Mini Sparkle Motion board, easily creating sound-reactive animations that pulse, spin, and shimmer to your favorite music. The stacked layers, each slightly rotated and resized, create a hypnotic illusion of motion as NeoPixel LED light races along the edges. The result is a psychedelic, audio-responsive art piece that feels like it’s pulsing along with the beat.

This is a fairly easy project that requires a little bit of soldering but no coding at all. WLED can be installed with a few clicks, and animations and color palettes are controlled with your smart phone or web browser. It’s also easy to sync up multiple instances of WLED: Make a few with different shapes or put one on top of each of your speakers for a delightful music visualization experience.

Full tutorial: https://learn.adafruit.com/star-illusion-laser-cut-audio-reactive-light-with-wled/overview

Read the whole story
jepler
1 hour ago
reply
I was just wondering what Erin was up to. This looks amazing.
Earth, Sol system, Western spiral arm
Share this story
Delete

How to choose your SSH agent with Wayland and systemd

1 Comment

If you read the above title, you might wonder how the switch to wayland (yes, the graphical stack replacing the venerable X11) can possibly relate to SSH agents. The answer is easy.

For as long as I can remember, as a long time user of gpg-agent as SSH agent (because my SSH key is a GPG sub-key) I relied on /etc/X11/Xsession.d/90gpg-agent that would configure the SSH_AUTH_SOCK environment variable (pointing to gpg-agent’s socket) provided that I added enable-ssh-support in ~/.gnupg/gpg-agent.conf.

Now when I switched to Wayland, that shell script used in the startup sequence of Xorg was no longer used. During a while I cheated a bit by setting SSH_AUTH_SOCK directly in my ~/.bashrc. But that only works for terminals, and not for other applications that are started by the session manager (which is basically systemd --user).

So how is that supposed to work out of the box nowadays? The SSH agents (as packaged in Debian) have all adopted the same trick, their .socket unit have an ExecStartPost setting which runs systemctl --user set-environment SSH_AUTH_SOCK=some-value. This command dynamically modifies the environment of the running systemd daemon and thus influences the environment for the future units started. Putting this in a socket unit ensures an early run, before most of the applications are started so it’s a good choice. They tend to also explicitly ensure this with a directive like Before=graphical-session-pre.target.

However, in a typical installation you end up with multiple SSH agents (right now I have ssh-agent, gpg-agent, and gcr-ssh-agent), which one is the one that the user ends up using? Well, that is not clearly defined, the one that wins is the one that runs last… because each of them overwrites the value in the systemd environment.

Some of them fight to have that place (cf #1079246 for gcr-ssh-agent) by setting explicit After directives. In the above bug I argue that we should let gpg-agent.socket have the priority since that’s the only one that is not enabled by default and that requires the user to opt-in. However, ultimately there will always be cases where you will want to be explicit about the SSH agent that should win.

You could rely on systemd overrides to add/remove ordering directives but that’s pretty fragile. Instead the right way to deal with this is to “mask” the socket units of the SSH agents that you don’t want. Note that disabling (i.e. systemctl --user disable) either will not work[1] or will not be sufficient[2]. In my case, I wanted to keep gpg-agent.socket so I masked gcr-ssh-agent.socket and ssh-agent.socket:

$ systemctl --user mask ssh-agent.socket gcr-ssh-agent.socket
Created symlink '/home/rhertzog/.config/systemd/user/ssh-agent.socket' → '/dev/null'.
Created symlink '/home/rhertzog/.config/systemd/user/gcr-ssh-agent.socket' → '/dev/null'.

Note that if you want that behaviour to apply to all users of your computer, you can use sudo systemctl --global mask ssh-agent.socket gcr-ssh-agent.socket. Now on next login, you will only get a single ssh agent socket unit that runs and the SSH_AUTH_SOCK value will thus be predictable again!

Hopefully you will find that useful as it’s already the second time that I stumble upon this either for me or for a relative. Next time, I will know where to look it up. 🙂

[1]: If you try to run systemctl --user disable gcr-ssh-agent.socket, you will get a message saying that it will not work because the unit is enabled for all users at the “global” level. You can do it with --global instead of --user but it doesn’t help, cf below.

[2]: Disabling an unit basically means stopping to explicitely schedule its startup as part of a desired target. However, the unit can still be started as a dependency of other units and that’s the case here because a socket unit will typically be pulled in by its corresponding service unit.

Read the whole story
jepler
2 days ago
reply
goddamnit give me an xinitrc file and fuck right off with the rest.
Earth, Sol system, Western spiral arm
Share this story
Delete

Visa and Mastercard Near Deal With Merchants That Would Change Rewards Landscape

1 Comment
Visa and Mastercard are nearing a settlement with merchants that aims to end a 20-year-old legal dispute by lowering fees stores pay and giving them more power to reject certain credit cards, WSJ reports, citing people familiar with the matter. From the report: Under terms being discussed, Visa and Mastercard would lower credit-card interchange fees, which are often between 2% and 2.5%, by an average of around 0.1 percentage point over several years, the people said. They would also loosen rules that require merchants that accept one of a network's credit cards to accept all of them.

A deal could be announced soon, the people said, and would require court approval to take effect. If an agreement is finalized, consumers could see big changes at the register. Merchants that accept one kind of Visa credit card wouldn't have to accept all Visa credit cards, for example. Under the current talks, credit-card acceptance would be divided into several categories including rewards credit cards, credit cards with no rewards programs, and commercial cards, the people familiar with the matter said.

Some stores might turn away rewards cards, which charge them higher fees and in recent years have become very popular with consumers. But stores that reject those cards would face the risk of declining sales.

Read the whole story
jepler
2 days ago
reply
whatever happens will probably be anti-consumer. wish I could afford popcorn.
Earth, Sol system, Western spiral arm
Share this story
Delete

Gemini AI To Transform Google Maps Into a More Conversational Experience

1 Comment
An anonymous reader quotes a report from the Associated Press: Google Maps is heading in a new direction with artificial intelligence sitting in the passenger's seat. Fueled by Google's Gemini AI technology, the world's most popular navigation app will become a more conversational companion as part of a redesign announced Wednesday. The hands-free experience is meant to turn Google Maps into something more like an insightful passenger able to direct a driver to a destination while also providing nearby recommendations on places to eat, shop or sightsee, when asked for the advice. "No fumbling required -- now you can just ask," Google promised in a blog post about the app makeover.

The AI features are also supposed to enable Google Maps to be more precise by calling out landmarks to denote the place to make a turn instead of relying on distance notifications. AI chatbots, like Gemini and OpenAI's ChatGPT, have sometimes lapsed into periods of making things up -- known as "hallucinations" in tech speak -- but Google is promising that built-in safeguards will prevent Maps from accidentally sending drivers down the wrong road. All the information that Gemini is drawing upon will be culled from the roughly 250 million places stored in Google Maps' database of reviews accumulated during the past 20 years. Google Maps' new AI capabilities will be rolling out to both Apple's iPhone and Android mobile devices.

Read the whole story
jepler
6 days ago
reply
it's a great time to be transitioning to an openstreetmap based map package like comaps or one of the others.
Earth, Sol system, Western spiral arm
Share this story
Delete

Fruit Jam, Zork and the Z Machine #Gaming #AdafruitLearningSystem @Adafruit

1 Comment

Retro green-on-black text adventure screen showing Zork header, score/moves bar, and descriptive room text about a house and mailbox. Command prompt displays “Open mailbox and read leaflet” – WELCOME TO ZORK!

If you had a home computer in the 1980s, chances are you played the game Zork. Zork is a computer game that first appeared on home computers back then. Unlike arcade inspired games, however, Zork is a text adventure game. With using just a keyboard and text screen, you could type in sentences like “open mailbox and read leaflet”  and the computer would understand and respond to it. Despite the apparent simplicity, stories grew out of the text adventure with puzzles to solve, making Zork a compelling game to play.

Zork sequels and other text adventure games appeared on home computers, thanks to the Z Machine, an interpreter for running text adventure games. With the release of a Z Machine for Adafruit’s Fruit Jam (CPZ Machine), owners can now play these text adventures in their original full text glory!

This guide gives a brief history of Zork and the Z Machine, explaining how 1980s text-adventure games worked and why they remain compelling. It provides instructions for installing and running a Z Machine interpreter on the Fruit Jam so you can play original text-adventure games like Zork on the device.

Needed:

Fruit Jam (CPZ Machine) — the hardware used to run the Z Machine interpreter and play Zork.
– The free Fruit Jam Z Machine interpreter port (software for the Fruit Jam) that enables full-text interactive fiction on the device is available via the Fruit Jam product page.

Read more in the new  Fruit Jam, Zork and the Z Machine guide!

Read the whole story
jepler
12 days ago
reply
nice! It's a zmachine interpreter in Python, running in CircuitPython.
Earth, Sol system, Western spiral arm
Share this story
Delete
Next Page of Stories