O$ Omnis meets IOT( hue lights)
Mayada Al-Kishtini
malkishtini at gmail.com
Sun Nov 6 12:55:53 EST 2016
Hi,
I agree that the improvement made to OS6 +, re- IOT, will help expanding
Omnis Market.
Just to confirm your thoughts on this topic, last week, I finished a project
that integrated Omnis studio as a view (JS client) with a .Net class as a
controller using JSON.
Mayada
-----Original Message-----
From: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] On Behalf
Of Dan Ridinger
Sent: Saturday, November 05, 2016 2:00 PM
To: OmnisDev List - English
Subject: Re: O$ Omnis meets IOT( hue lights)
Hello Rainer,
The IOT interface become a lot easier with Omnis Studio 6 and the addition
of REST support and Json objects. This was part of my discussion at
Euromnis. This really does provide Omnis leverage into this market.
Dan Ridinger
> On Nov 5, 2016, at 7:51 AM, RGreim <rg4odev at online.de> wrote:
>
> Hi,
>
> when I started with Omnis in 2006, I was searching for a replacement dev
tool which also supports Linux and Mac to bring my old cash-letter-clearing
apps into new markets.
> But nobody was asking for Linux apps and Mac in financial bus in
Germany..... not really ...
>
> So I was using Omnis for non-profit apps ( sport tournament back office,
crm for tkd referees and simple label printing for any kinds ).
> Later I was using it build things for relaease and build management and as
frontend to test and documentate sw running on embedded.
>
> Some years ago I started with home automation, but there are still to many
different interfaces. One idea is, using a arm box with openhab.
>
> But: the apps delivered for my hue ligthning are sufficent and also I dont
want to setup and maintain a linux server.
> But if one could do it with Openhab and other apps, why not using Omnis
for it.
> And even if it is only a "proof of concpet".
> With this posting I hope, someone will take this idea to generate a app, a
extension, or even a business oportunity for new markets.
>
> How would Omnis fit into it :
> 1. As the "master controller"
> 2. As the intelligent data storage with visualisation 3. As a existend
> solution which uses IoT for visualisation "showing a status by setting
lightning"
> 4. There is more....
>
>
> Now back to the idea of controlling the lights with Omnis. Its a example
with hue, because I own one. But for sure u can do it also with other IOT
Systems.
> The magic is, there is now magic only some rest and json.
> Hue is using a little controller which is linked to the local network
> which then controlls devices by air2air interface (see sdk) Its using a
rest api.
>
>
> From the webside :
> http //www developers meethue com/documentation/getting-started
>
> 1st you have to detect your device
> by : https //www meethue com/api/nupnp It will respond with a json
> string
>
> [{"id":"ididididi,"internalipaddress":"1.2.3.4"}]
>
>
> 2nd you can use the testapp
> |http //<bridge ip address>/debug/clip.html
> http //1.2.3.4/debug/clip.html
> |
> 3nd pair your device :
> url: /api
> body :
> {"devicetype":"my_hue_app#Omnis app"}
>
> Youll get an error:
> [
> {
> "error": {
> "type": 101,
> "address": "",
> "description": "link button not pressed"
> }
> }
> ]
> So push the button and repeat the post [
> {
> "success": {
> "username": "username username "
> }
> }
> ]
>
> Now you have an id , so u can talk to the devices Example Url
> :|api/||username username/lights| body : empty method : GET Result :
> again a json string
> {
> "1": {
> "state": {
> "on": false,
> "bri": 88,
> "hue": 55780,
> "sat": 149,
> "effect": "none",
> "xy": [
> 0.4345,
> 0.2766
> ],
> "alert": "none",
> "colormode": "xy",
> "reachable": true
> },
> "type": "Color light",
> "name": "living room ",
> "modelid": "modelid,
> "manufacturername": "manufacto ",
> "uniqueid": "mac/bt adress",
> "swversion": "5.23.1.13452"
> },
>
> See all you have to do is understanding the rest api and to parse json
strings.
> Rest and Josn is now supported by the newest Omnis versions, but u can
also write your own one (http, ...) or use a cmdline, java, .net to do this
part and push the data back to omnis.
>
>
>
> --
> There is more :
> see :
> http //www developers meethue com/application-design-guidance http
> //openhab org http //www.openhab
> org/features/supported-technologies.html
> --
>
> A last tip : start with the build in webinterface. If everthing is running
setup the omnis logic. Examples about sending receiving http rest wrappers :
see the list, the omnis doc, or use the buildin rest features, or a
external.
> A way of testing the communication is using a local proxy, the wlan
> syslog or a tool like whireshark ( there also more more, depending on
> your budget)
>
> Have fun with IOT.
> See also:
> http://www zigbee org/
> http //www developer harman com/site/global/home/p_home.gsp (Open API
> Headphones) https //www yoctoproject org/
>
>
> BR Rainer
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com
More information about the omnisdev-en
mailing list