Will the cloud communication get any simpler?

Just received my cores. The whole package look awesome and the core are of beautiful quality.

I have been working with the Arduino for a few years and really enjoyed the easy step-in-and-directly-built-something level of it. With only minor knowledge of programming and electronics I was able to create some really fancy devices. On the programming side, the core appears to be comparable, but on the cloud side it remains to be a big mystery, even after 3 nights of trying and reading posts on the internet.

I cant wait to start connecting the core to my greenhouse, but I feel I need to do a crash course in web development first. Will the whole communication with the core over the internet, reading values and initiation functions, become more simple in a later stage. Perhaps a REST API for dummies might be good :smiley:

Regards, Ruud

Welcome to the world of :spark: @Wildfire!

There are lots of super simple ways to get started with the Core! You do not need to be an expert in web programming. We are really proud of the fact that this community comes from vastly different areas! Some people are professional web developers but don’t know anything about electronics; other people like yourself are pretty familiar with Arduino, but are a bit intimidated by the whole REST API thing. Luckily, we all work together to help each other out!

First, you can use our mobile apps to tinker with your Cores—the app makes the REST API calls so you don’t have to worry about it!

Next, when you write your own Arduino code, some folks here have contributed simple web interfaces for checking variables and calling functions. Check out this thread:

When you’re ready to write a little code yourself, just start with the simple one liners from our Cloud API documentation. They use a program called “curl” that might even be already installed on your machine.

And of course, as you start making that greenhouse project, you can always ask for help here in the :spark: community. Lots of people here very willing to help troubleshoot your web-facing code.

Again‚ welcome!

To be honest it’s not as bad as it first seems. Most of the heavy lifting has already been done the web/arduino specialists in the forums and put together in some pretty easy to use libraries. The only major issue left is sharing that code and making it easier for developers to consume it. This is something I think the Spark team is working on. In the mean time you’ll get pretty fast responses from the community.

I do think there is a need for us to perhaps better introduce the tools that are available for easily playing with the API. For now, a few great ones can be found on our resources site (scroll down to “External resources”):

https://www.spark.io/resources

Thanks for your reply guys. Got my first hello world over the internet tonight :). Learning curve is a bit steeper than I anticipated; took me a while to realize that curl is not a command but a program that needs to be installed first. I’m planning to get all of this explained to me by a friend. Also, it wasn’t clear to me that you need to have the tinker firmware running on the core before you can control it via the app on my phone.

One question, I got the “Control LEDs over the ‘net” working but when I replace D1 (or D0) with D7, I am not able to get the onboard LED to turn on. It does work when I replace D0 with D7 in “Blink an LED”. Any idea what might be causing this?

What response comes back from the API when you try D7?

I do agree with you @zach that the web part could be smoothed out a bit. Maybe have examples that showcase on how to call a function and fetch a variable in the main web languages and frameworks.

Just on the top of my head Im thinking

jquery
php
javascript
ruby
node.js