Schlagwort: api

  • 14 awesome Arduino Cloud features you never knew existed

    14 awesome Arduino Cloud features you never knew existed

    Reading Time: 7 minutes
    Arduino Cloud Free

    There are dozens, if not hundreds of amazing Arduino Cloud features. So it’s perfectly understandable if you’ve missed some of them.

    So we’ve put together a list of our favorite Arduino Cloud features that you might not know existed.

    1) Auto-Generate Sketches

    We’ve talked elsewhere about getting an understanding of what cloud computing really is, and how it’s not just the domain of experts. The cloud is how total beginners can get started much more easily. There’s no better demonstration of that than our first top Arduino Cloud feature; auto-generated sketches.

    When you create a new “Thing” in your Arduino Cloud, you add various bits of info to it. Wi-Fi connection credentials, and any variables you want to control or monitor. The Cloud automatically generates a starting sketch from this info. That sketch can then be sent to your boards, so all your initial configuration is taken care of, without a single line of code.


    2) Device-to-Device Communication

    There’s simply no easier way to make two microcontroller boards talk to each other than Arduino Cloud. We’ve covered in detail how easy it is to wirelessly connect your boards.

    This isn’t just for Arduino devices either. If you want any combination of Arduino, ESP32 and ESP8266 devices to work together, this is how you do it.


    3) Over-the-Air Updates

    Working through your Arduino Cloud means you don’t have to disconnect any Arduino boards when updating them. If you want to edit or add a new sketch, it can all be done wirelessly, over-the-air.

    Anyone who’s had to dismantle a project or device to get to a board’s USB socket will appreciate the simple, vital value of this feature. It’s one of those things that you’ll wonder how you ever lived without.

    Arduino cloud features over-the-air updates

    4) Support for ESP Boards

    There’s a reason we call it the Arduino IoT Cloud. This is an all-encompassing platform for Internet of things, home automation, and electronics project control and management. So first we added support for ESP8266 devices. More recently, experimental support for ESP32 boards became available.

    So even if your project doesn’t actually have any Arduino products in there, the Cloud is just as useful. Secure, private, and accessible to all kinds of IoT and maker devices.

    Arduino Cloud also supports ESP8266 and ESP32

    5) Trigger Actions on Cloud Events

    Arduino Cloud makes it super easy to do things that you might normally need the IDE for. But it’s also got lots of exclusive features that you only get in the Cloud.

    For example, there are actions that can be triggered based on your board’s interactions with your Arduino Cloud. You can include actions within your sketches when a Cloud connection is successful, and when the Cloud has synced with a device. Or perhaps most useful of all, trigger an action if Cloud connectivity is lost. Getting an indication that a project has disconnected could be incredibly useful!

    Here’s an example of using these actions within a sketch.


    6) Sharing Your Dashboards

    Dashboards are control panels within your Arduino Cloud. It’s one of the most powerful Arduino Cloud features, and essential to making full use of Cloud control. But what’s often overlooked is that you can share dashboards with anyone you want.

    For example, let’s say you’re using Arduino Cloud to control your home automation. You can set up a dashboard for a tablet in the living room that the whole family can use, but doesn’t have sensitive admin controls in there. And then another for people to use on their phones. 

    All Cloud plans include unlimited dashboards. And anyone can have a free Cloud account. So you can create as many dashboards as you like, and share them with literally anyone, anywhere.

    Share dashboards with anyone you want from Arduino Cloud

    7) Alexa Integration

    Natural language voice control is genuine Star Trek stuff. So it’s no wonder people love the functionality of Alexa. Did you know it’s incredibly easy to connect your Arduino Cloud to Alexa? And once you have, it effectively adds voice control to every board, and every project. Nothing else needed.

    There’s literally no easier way to make an Alexa-controlled device or project than with your Arduino Cloud. You’ll never look back, and you’ll always have someone to talk to.

    [youtube https://www.youtube.com/watch?v=Yt0OrmzBmMk?feature=oembed&w=500&h=375]


    8) Full API Integration

    For the engineers, coders, developers and those among you who’ve been using Arduino for a long time, API integration is the powerhouse secret feature you’ve been looking for.

    The API can be called with any HTTP client, or with languages like Javascript, Python, Golang and more. It’s what you need to incorporate the power of Arduino Cloud features into your systems, platforms and projects.


    9) Use IFTT, Zapier and More with Webhooks

    There are lots of reasons you might want to include control platforms outside of your Arduino Cloud. Like sending an email or a Tweet when you press a button on a Nano, or a device disconnects from the Cloud (see above).

    That’s what webhooks are for, and they give you a universal way to send commands out of Arduino Cloud, and into… well, anything!

    IFTTT and Zapier are great examples of services that can do almost anything from a webhook. Get to know this feature, and connected projects suddenly have easy access to the whole web.


    10) Easy Firmware Updates

    When you connect a new Arduino board, your Arduino Cloud automatically checks its firmware version. If there’s an update available, it offers you the option of applying that update.

    Very easy, and you don’t have to worry about finding the correct/latest firmware version yourself. This simple, background function makes sure your boards and projects always have the latest features, security updates and bug fixes.

    For people who use a lot of Arduino devices, it’s worth adding them to the Cloud for this feature alone.


    11) Full Dashboard Customization

    We’ve already talked about unlimited dashboards in your Arduino Cloud. Creating them is easy, but did you know you can customize them too?

    Anyone who’s dipped their toe in the home automation waters knows how essential dashboard editing is. Some platforms work great, but offer very little when it comes to controlling your dashboard layout. For many people, that’s a deal breaker.

    Your Arduino Cloud widgets can easily be added, edited, removed, repositioned and resized in any configuration you want. It’s as simple as drawing and resizing boxes, but the result makes your Cloud projects infinitely more useable.


    12) Watchdog Timer

    The Arduino Cloud automatically runs a watchdog timer that will reset your board, hardware or project if it crashes. This is a small feature, but a powerful one that can keep your projects running while unattended. 

    It means you never have to manually reset it when you eventually realize it’s not been running all day. You can have devices running remotely (very remotely, with SIM or LoRa connectivity) and be sure they’re robust enough to keep on ticking.

    It’s included and running automatically, but can easily be disabled if you don’t need it.

    [youtube https://www.youtube.com/watch?v=t2F1rFmyQmY?feature=oembed&w=500&h=375]


    13) Node-RED Integration

    Arduino provides a super easy way to use Node-RED for IoT automations. This is a powerful, but very easy-to-use visual programming platform specifically designed for IoT projects.

    Complex automations using advanced triggers like sunrise or sunset, presence detection, combined actions or sensor readings and so much more. The possibilities are endless, and learning Node-Red is incredibly easy. Get to grips with this feature, and you’ll be creating IoT automations that would otherwise need an experienced coder.


    13A) Fully Functional Free Account

    One of the best kept secrets of the Arduino Cloud is that if you’re registered on the Arduino website or forum, you already have a free Cloud waiting for you. Simply head on over to the Cloud site and get started with unlimited dashboards and unlimited sketches. The free tier of Arduino Cloud is fully functional, and it’s ready and waiting for you to give it a try.

    In fact, it’s the perfect option especially if you haven’t used Arduino before! Give it a shot and let us know what you think. No credit card required; just your creativity and a passion for connected projects.

    Website: LINK

  • Introducing a new docs experience

    Introducing a new docs experience

    Reading Time: 2 minutes

    We’ve refreshed the developer documentation and API reference experience to help you find the guides and materials needed to rapidly deliver apps to your users and the Twitch community. This release is an early step toward delivering a developer experience that inspires and delights you to create with our products.

    Rather than myself talking about it, check it out at dev.twitch.tv/docs.

    We strive to create a docs experience that responds to customer feedback and incorporates idioms common to best-in-class documentation apps. Here are some highlights from this release:

    • Search: Yes! You can search across all of our documentation, and we’ll match by title, content, or API references.
    • Sticky navigation: As you browse content, you’ll know exactly where you are in the document with a helpful indicator. Having the navigation accessible at all times should make it easier to hop back and forth, and get what you need.
    • Three-column reference browsing: We’ve pulled out sample request and and response returns for every API method (including V5), making it easy to try our capabilities as you build iteratively for your users. Here’s an example which documents the method to GET users.
    • Mobile-friendly: Open docs on an iPad, phone, or other device in case you need a quick reference in a smaller viewport.

    In future releases, we hope to make it easier to get to “Hello, World!” and success with our products. Be on the lookout for more in the coming months.

    We’re happy to hear any feedback on our docs, website, or products in general. Start a discussion on our forums or mention us on Twitter.

    Website: LINK

  • e-paper pocket money tracker using Monzo pots

    e-paper pocket money tracker using Monzo pots

    Reading Time: 3 minutes

    Jason Barnett used the pots feature of the Monzo banking API to create a simple e-paper display so that his kids can keep track of their pocket money.

    Monzo ePaper Pot Jason Barnett Raspberry Pi

    Monzo

    For those outside the UK: Monzo is a smartphone-based bank that allows costumers to manage their money and payment cards via an app, removing the bank clerk middleman.

    In the Monzo banking app, users can set up pots, which allow them to organise their money into various, you guessed it, pots. You want to put aside holiday funds, budget your food shopping, or, like Jason, manage your kids’ pocket money? Using pots is an easy way to do it.

    Jason’s Monzo Pot ePaper tracker

    After failed attempts at keeping track of his sons’ pocket money via a scrap of paper stuck to the fridge, Jason decided to try a new approach.

    He started his build by installing Stretch Lite to the SD card of his Raspberry Pi Zero W. “The Pi will be running headless (without screen, mouse or keyboard)”, he explains on his blog, “so there is no need for a full-fat Raspbian image.” While Stretch Lite was downloading, he set up the Waveshare ePaper HAT on his Zero W. He notes that Pimoroni’s “Inky pHAT would be easiest,” but his tutorial is specific to the Waveshare device.

    Monzo ePaper Pot Jason Barnett Raspberry Pi

    Before ejecting the SD card, Jason updated the boot partition to allow him to access the Pi via SSH. He talks makers through that process here.

    Among the libraries he installed for the project is pyMonzo, a Python wrapper for the Monzo API created by Paweł Adamczak. Monzo is still in its infancy, and the API is partly under construction. Until it’s completed, Paweł’s wrapper offers a more stable way to use it.

    After installing the software, it was time to set up the e-paper screen for the tracker. Jason adjusted the code for the API so that the screen reloads information every 15 minutes, displaying the up-to-date amount of pocket money in both kids’ pots.

    Here is how Jason describes going to the supermarket with his sons, now that he has completed the tracker:

    “Daddy, I want (insert first thing picked up here), I’ve always wanted one of these my whole life!” […] Even though you have never seen that (insert thing here) before, I can quickly open my Monzo app, flick to Account, and say “You have £3.50 in your money box”. If my boy wants it, a 2-second withdrawal is made whilst queueing, and done — he walks away with a new (again, insert whatever he wanted his whole life here) and is happy!

    Jason’s blog offers a full breakdown of his project, including all necessary code and the specs for the physical build. Be sure to head over and check it out.

    Have you used an API in your projects? What would you build with one?

    Website: LINK

  • New Webhook and Clips API Endpoints available today

    New Webhook and Clips API Endpoints available today

    Reading Time: 2 minutes

    Stream Up/Down Webhook

    When we launched webhooks in October, we told developers that was only the start. Today, we’re excited to move forward once again and bring you a webhook for streams data.

    The Stream Up/Down webhook immediately notifies you when a streamer goes online, offline, or starts a Vodcast. Now your integrations no longer have to rely on polling to see when a streamer comes online, and your applications can react to streamers coming online in near real time!

    Get Clip & Create Clip Endpoints

    We’re also launching two new endpoints for Clips: Get Clip and Create Clip. When we talked to you at TwitchCon, this was an API that many of you were excited for, and now, we’re excited to announce they’re here.

    Get Clip allows you to get information on Clips by their ID, such as who created it, which creator was streaming, or what game they were playing.

    Create Clip allows you to programmatically make Clips on streams with a simple API call. For instance, when a streamer gets a new sub, or someone cheers them with Bits, you can call the Create Clip API and automatically generate a clip of that amazing moment for a streamer. Or you can use this with our Streams Metadata API to capture clips of people playing your favorite Overwatch hero. We’re excited to see what other ideas you have!

    Both Create Clip and Get Clip endpoints are launching in Preview, which means the features and functionality are a bit limited for now. We have a stricter rate limit on the Create Clip endpoint (so you might see more 429s than you expect), and the Get Clip endpoint doesn’t currently support bulk calling as our other endpoints do. We’re working on these updates right now, but in the meantime, get familiar with what we’ve developed so far so you can hit the ground running when these features fully launch.

    Top Games

    We’ve also added a way for you to see the top games currently on Twitch! Just like in v5, you’re now able to quickly query the Get Top Games endpoint and see what’s popular.

    Let’s Talk Rate Limits

    We’ve had a lot of questions about how to increase rate limits. Please send an email to APIratelimitrequest@twitch.tv if you’d like to request a rate limit increase for Webhooks and/or the new Twitch API, and we can start that discussion with you.

    Keep sharing your feedback about what you’d like to see and use. We’re listening in the forums and TwitchDev chat.

    Website: LINK

  • Webhooks, Games API, and Video Retrieval API

    Webhooks, Games API, and Video Retrieval API

    Reading Time: 2 minutes

    Webhooks Are Here

    The wait is over! We’re officially launching Webhooks, in Preview*. Gone are the days of constantly polling Twitch APIs for data updates. Now you can simply subscribe to a topic and get notified immediately when updates happen. And as a bonus, there’s no need to worry about rate limiting when waiting for updates.

    We’re launching with a webhook notification for our current User Follows data. Get notified immediately when you receive new followers or when your favorite streamer finds someone new to follow.

    This is the just the start of Webhooks at Twitch. Keep an eye on the roadmap for what’s coming next.

    Have questions? We recommend you start with reading the W3 Spec for WebSub. We did our very best to adhere closely to this spec in order to give our developers a clear and consistent webhooks experience. Hopefully it gives you a great place to start. And of course, if you have more questions, the forums and TwitchDev chat are always open.

    Games API and Videos Retrieval API

    In addition to Webhooks, we’re releasing the Games API, which allows you to retrieve information for specific games, and the Videos Retrieval API, which allows you to retrieve information for specific videos.

    When we released our first endpoints under Users and Streams, we told you the new Twitch API was the start of a big initiative to make an API we’d be excited to share and you’d be excited to use. This is just the beginning and we’re continuing to listen to your feedback.

    We can’t wait to see what you build!

    *Our definition of release stages can be found here.

    Website: LINK