Create A Discord Webhook With Python For Your Bot

Discord is an IRC-like chat platform that all the young cool kids are hanging out on. Originally intended as a way to communicate during online games, Discord has grown to the point that there are servers out there for nearly any topic imaginable. One of the reasons for this phenomenal growth is how easy it is to create and moderate your own Discord server: just hit the “+” icon on the website or in the mobile application, and away you go.

As a long-time IRC guy, I was initially unimpressed with Discord. It seemed like the same kind of stuff we’ve had for decades, but with an admittedly slick UI. After having used it for a few months now and joining servers dedicated to everything from gaming to rocket science, I can’t say that my initial impression of Discord is inaccurate: it’s definitely just a modern IRC. But I’ve also come to the realization that I’m OK with that.

But this isn’t a review of Discord or an invitation to join the server I’ve setup for my Battlefield platoon. In this article we’re going to look at how easy it is to create a simple “bot” that you can plug into a Discord server and do useful work with. Since anyone can create a persistent Discord server for free, it’s an interesting platform to use for IoT monitoring and logging by simply sending messages into the server.

Continue reading “Create A Discord Webhook With Python For Your Bot”

Friday Hack Chat: Making A Makerspace

How do you make a makerspace? Over the last decade, there have been plenty of talks and tutorials handing out pointers. No day of the week will be good for a meeting, so the meetings are always on Tuesdays. The bike shed will be painted orange, no exceptions. Are you going to be a for-profit, or not-for-profit? Are we a makerspace or a hackerspace? Jerry, stop being clever. Pantone 021 U.

For this week’s Hack chat, we’re going to be talking all about making a makerspace. These are community hubs where people come together and share resources to bring their inventions to life. It’s not as simple as it may seem. You need insurance, you need a building, you need a landlord who’s cool, and there are a thousand and one things that can go wrong. Who best to steer you through the storm of opening a Hackerspace? Who can you solicit advice from?

Our guests for this week’s Hack Chat are Vaibhav Chhabra, a mech E from Boston University. He spent two years working on an eye diagnostic device, is an instructor at MIT REDX health care innovation lab, and is a founder of the incredible Makers Asylum. Eric Michaud is a Hacker, runner, and author, currently working on Rift Recon, Shellcon, and hackerspaces.org. He has written tutorials on Adafruit, and was a founding member of HacDC before he took off to Chicago and started PS:One.

Topics for this week’s Hack Chat include what it takes to open a makerspace, how you can fund it, organizational structure concerning for-profit, not-for-profit, and the thing that the members are most concerned about: what equipment is most crucial for a successful makerspace. You are, of course, encouraged to add your own questions to the Hack Chat; to do that, just leave a comment on the Hack Chat event page.

join-hack-chat

Our Hack Chats are live community events on the Hackaday.io Hack Chat group messaging. This Hack Chat is going down Friday, February 16th at 09:30am Pacific time. This is different than our usual time slot. Want to know what time this is happening in your neck of the woods? Here, look at the neat time zone converter thingy

Click that speech bubble to the right, and you’ll be taken directly to the Hack Chat group on Hackaday.io.

You don’t have to wait until Friday; join whenever you want and you can see what the community is talking about.

Mechanisms: Bearings

They lie at the heart of every fidget spinner and in every motor that runs our lives, from the steppers in a 3D printer to the hundreds in every car engine. They can be as simple as a lubricated bushing or as complicated as the roller bearing in a car axle. Bearings are at work every day for us, directing forces and reducing friction, and understanding them is important to getting stuff done with rotating mechanisms.

Continue reading “Mechanisms: Bearings”

OpenSCAD: Tieing It Together With Hull()

What’s your favorite OpenSCAD command? Perhaps it’s intersection() or difference()? Or are you a polygon() and extrude() modeler? For me, the most useful, and maybe most often overlooked, function is hull(). Hull() does just what it says on the can — creates a convex hull around the objects that are passed to it as children — but that turns out to be invaluable.

Hull() solves a number of newbie problems: making things round and connecting things together. And with a little ingenuity, hull() can provide a nearly complete modelling strategy all on its own. If you use OpenSCAD and your creations end up with hard edges, or you spend too much time figuring out angles, or if you just want to experience another way to get the job done, read on!

Continue reading “OpenSCAD: Tieing It Together With Hull()”

Mary Somerville: The First Scientist

Science, as a concept, is relatively new. Benjamin Franklin wasn’t a scientist probing the mysteries of amber and wool and electricity and ‘air baths’; he was a natural philosopher. Antonie van Leeuwenhoek was simply a man with a proclivity towards creating new and novel instruments. Robert Hooke was a naturalist and polymath, and Newton was simply a ‘man of science’. None of these men were ever called ‘scientists’ in their time; the term hadn’t even been coined yet.

The word ‘scientist’ wouldn’t come into vogue until the 1830s. The word itself was created by William Whewell, reviewing The Connexion of the Physical Sciences by Mary Somerville. The term used at the time, ‘a man of science’, didn’t apply to Mrs. Somerville, and, truth be told, the men of science of the day each filled a particular niche; Faraday was interested in electricity, Darwin was a naturalist. Mary Somerville was a woman and an interdisciplinarian, and the word ‘scientist’ was created for her.

Continue reading “Mary Somerville: The First Scientist”

Hands On With The Smallest Game Boy Ever Made

The PocketSprite is the tiniest fully-functional Game Boy Color and Sega Master System emulator. Not only is it small enough to fit in your pocket, it’s small enough to lose in your pocket. It’s now available as a Crowd Supply campaign, and it’s everything you could ever want in a portable, WiFi-enabled, fully hackable video game console. It also plays Witcher 3. And probably Crysis, because of the meme.

This has been a year and a half in the making. The first hardware version of the PocketSprite was revealed at the 2016 Hackaday Superconference by hardware engineer extraordinaire [Sprite_TM]. As [Sprite] has a long list of incredibly impressive hardware hacks like installing Linux on a hard drive and building a Matrix of Tamagotchis, he always has to keep pushing deep into the hardware frontier.

In 2016, [Sprite] showed off the tiniest Game Boy ever, powered by the then brand-spankin’ new ESP32. This was released as Open Source, with the hope that a factory in China would take the files and start pumping out mini Game Boys for everyone to enjoy. Now, a year and a half later, it’s finally happened. In a collaboration with manufacturing wizard [Steve K], [Sprite] is the mastermind behind TeamPocket. The pocket-sized Game Boy-shaped emulator is now real. This is our hands-on review.

Continue reading “Hands On With The Smallest Game Boy Ever Made”

Hackaday Links Column Banner

Hackaday Links: February 11, 2018

Are you a student? Are you part of a hackerspace? We have a contest going on right now where you can win a fancy new Prusa i3 MK3. The Repairs You Can Print contest is a challenge to do something useful with that machine that spits out tugboats. We’re looking for functional repairs of items around your house, office, or garage. Did you repair something with a 3D printer? Then you too can get in on the action! Enter now! Check out the entries!

You may know Flite Test as the group who do everything surrounding remote control flight (mostly fixed wings, a nice counter to the quadification of the hobby over the last few years). Flite Test designs and sells airplanes made out of Dollar Tree foam board, they have yearly, bi-coastal meetups, and they’re all-around awesome dudes. Now, they want to build the Disneyland of RC flight. [Josh Bixler], the face of Flite Test and a guy who has a plane named after him, wants to buy a golf course and turn it into the world’s best RC flying park, with a ~2000 foot grass strip for general aviation. We’re looking at their crowdfunding campaign, and it looks promising it might be funded by the time this goes live.

A while ago, [Peter Jansen], the guy who built a tricorder and a laser-cut CT scanner, made a magnetic camera. This Hall Effect camera is a camera for magnetism instead of light. Now, this camera has been fully built and vastly improved. He’s capturing ‘frames’ of magnetism in a spinning fan at 2000 Hz (or FPS, terminology kind of breaks down here), and it’s beautiful.

Oh thank God we can finally buy GPUs again. Try buying them with Bitcoin.

In the last few years, CITES, the Convention on International Trade in Endangered Species of Wild Fauna and Flora, has expanded. Originally, this was one of the treaties that banned the import or export of rhino horn, but recently this expanded to the export of rosewood thanks to increased demand in China for rosewood furniture. The laws of unintended consequences kicked into effect, and importing anything made out of rosewood is now a mess of permits and inspections at the border, including musical instruments. Travelling orchestras, for example, are at risk of having their string section confiscated because of rosewood tuning pegs. Cooler minds may now be prevailing, and there’s some hope the regulations may be changed during the next meeting of the CITES convention next year.

As noted a few months ago, there was a possibility of Broadcom buying Qualcomm for one… hundred… Billion dollarsThis offer was rejected, with Qualcomm saying the offer wasn’t high enough. Broadcom fired back with an offer of $82 per share, or $121B. This offer was rejected this week.

Need some EMC testing? [Zach]’s got your back. He’s reserved some time in a 10m EMC chamber for testing NeuroBytes this week. If you have an Open Source project that needs a pre-test scan for unintentional radiator, you can get in on the action. This is just a pre-test, you’re not getting certification, and you’re not going to test anything with radios, and you need to ship [Zach] your stuff. But still, free test time. Woo.