Cloud API documentation?
-
@Costas-Costas Yes, after much trial and error I got the PHP code to work now
Thanks though for the online converter, it might come handy in the future.I had use Blynk with Arduino but not that much, only a few tests and did something else. Will take a look at it again.
Thanks!
-
@Manuel-Godinez I have used Blynk with Arduino's but I have found it works better with MCU's that have inbuilt WiFi.
The setup details provided by Omega for Blynk are at https://wiki.onion.io/Tutorials/blynk-library
It needs an update for the Omega +2 pinout but the developers at Blynk have it in their roadmap. Meanwhile you can just use pins that were common to the original Omega and the new 2's. You need a 2+ or a 2 with USB Stick to run Blynk.You can see a screenshot of Omega 2+ with Blynk in this thread http://community.onion.io/topic/1115/the-onion-thermostat/7
-
@Costas-Costas Sorry for my ignrance but what do you mean that I need an Omega2+ or Omega2 with a USB flash drive???
-
@Manuel-Godinez it will run on an Omega2+ as it is but not enough space on a regular 2.
It needs around 11MB and a stock Onion is about 1 to 2MB short. Might be you could remove some stuff if you didn't want to run from a USB stick on a regular 2.
-
I am trying to use IFTTT to send a web request to my Omega 2+ to switch on GPIO 0. However, I can't seem to get the right format for IFTTT. The data shown in the attached screenshot generates an error in IFTTT about the use of {{
Any idea what I am doing wrong?
-
Solved it! You need to add a space in between the last two curly brackets.
-
Before using the above method to turn on a GPIO using IFTTT, I should also point out that you need to set the relevant GPIO pin as an output first. You can do this with a separate IFTTT Applet. I haven't been able to concatenate two GPIO command strings in one IFTTT Applet (i.e. send {"command":"set-direction", "params":{"gpio":"0", "value":"output"} } then send {"command":"set","params":{"gpio":"0","value":"1"} } ).
Anybody know if this is possible?
-
https://sdk.onion.io/reference/onion-cloud-APIs/device-api.html
Yeah! Documentation!
-
This post is deleted!
-
@Steve-Smythe I was able to use launch-process to run a quick script. You could write a script to set direction of the gpio pin and then to execute high or low. I got it to work in the ifttt channel.
-
@Steve-Smythe and others.
Does the following syntax still work for you with IFTTT?
https://api.onion.io/v1/devices/<device-id>/i2c_exp/oled-exp?key=<API-key>
The Maker Webhooks channel doesnt seem to work with this URL and any JSON I use in the body. I believe it's returning "Missing Authentication Token".
I've followed the steps outlined here, but they may be stale?