NetIO Controller iOS App

IOS App

NetIO Project: Arduino Yun Status

Zeigt den Status der sieben Leuchtdioden
auf dem Arduino Yun Board an.
Steuerung Intern mittels Seite 'WIFI' oder
Extern mittels Seite 'WAN'.
Zusätzlich kann die Leuchtdiode 'L13' über
eine Toggle-Taste An-/Ausgeschaltet werden.

Siehe zugehöriger Arduino Yun Webserver

JSON -Code zu dargestellter Anwendung:

{
	"type": "NetIOConfiguration",
	"version": 1.3,
	"connections": [
		{
			"name": "WIFI",
			"host": "192.168.178.10",
			"port": 80,
			"protocol": "http"
		},
		{
			"name": "WAN",
			"host": "gries.spdns.de",
			"port": 80,
			"protocol": "http"
		}
	],
	"pages": [
		{
			"name": "Auduino Yun Intern",
			"label": "Yun (WIFI)",
			"connection": "WIFI",
			"items": [
				{
					"top": 60,
					"left": 20,
					"width": 100,
					"height": 50,
					"type": "button",
					"label": "newButton",
					"shape": "rounded",
					"icon": "lamp_off"
				},
				{
					"top": 60,
					"left": 140,
					"width": 160,
					"height": 50,
					"type": "label",
					"text": "RX",
					"fontsize": 24,
					"textalign": "left"
				},
				{
					"top": 120,
					"left": 20,
					"width": 100,
					"height": 50,
					"type": "button",
					"label": "newButton",
					"shape": "rounded",
					"icon": "lamp_off"
				},
				{
					"top": 180,
					"left": 20,
					"width": 100,
					"height": 50,
					"type": "button",
					"shape": "rounded",
					"icon": "lamp_off",
					"comment": "Using REST API",
					"reads": "/arduino/digital/13",
					"parseResponse": ".*$",
					"formatResponse": "icon_{0}.png",
					"interval": 1000
				},
				{
					"top": 240,
					"left": 20,
					"width": 100,
					"height": 50,
					"type": "button",
					"label": "newButton",
					"shape": "rounded",
					"icon": "lamp_off"
				},
				{
					"top": 300,
					"left": 20,
					"width": 100,
					"height": 50,
					"type": "button",
					"label": "On",
					"shape": "rounded",
					"icon": "lamp_off",
					"reads": "/arduino/alive/0",
					"formatResponse": "icon_{0}.png",
					"comment": "Number required (any)",
					"parseResponse": ".*$",
					"interval": 2000
				},
				{
					"top": 360,
					"left": 20,
					"width": 100,
					"height": 50,
					"type": "button",
					"label": "newButton",
					"shape": "rounded",
					"icon": "lamp_off"
				},
				{
					"top": 420,
					"left": 20,
					"width": 100,
					"height": 50,
					"type": "button",
					"label": "newButton",
					"shape": "rounded",
					"icon": "lamp_off"
				},
				{
					"top": 120,
					"left": 140,
					"width": 160,
					"height": 50,
					"type": "label",
					"text": "TX",
					"fontsize": 24,
					"textalign": "left"
				},
				{
					"top": 180,
					"left": 140,
					"width": 60,
					"height": 50,
					"type": "label",
					"text": "L13",
					"fontsize": 24,
					"textalign": "left"
				},
				{
					"top": 10,
					"left": 20,
					"width": 280,
					"height": 40,
					"type": "label",
					"text": "Current Board Status",
					"fontsize": 28,
					"textalign": "center"
				},
				{
					"top": 240,
					"left": 140,
					"width": 160,
					"height": 50,
					"type": "label",
					"text": "WAN",
					"fontsize": 24,
					"textalign": "left"
				},
				{
					"top": 300,
					"left": 140,
					"width": 160,
					"height": 50,
					"type": "label",
					"text": "ON",
					"fontsize": 24,
					"textalign": "left"
				},
				{
					"top": 360,
					"left": 140,
					"width": 160,
					"height": 50,
					"type": "label",
					"text": "WLAN",
					"fontsize": 24,
					"textalign": "left"
				},
				{
					"top": 420,
					"left": 140,
					"width": 60,
					"height": 50,
					"type": "label",
					"text": "USB",
					"fontsize": 24,
					"textalign": "left"
				},
				{
					"top": 180,
					"left": 220,
					"width": 80,
					"height": 50,
					"type": "button",
					"shape": "rounded",
					"icon": "next",
					"comment": "Using REST API",
					"sends": [
						"/arduino/toggle/13"
					]
				},
				{
					"top": 460,
					"left": 210,
					"width": 90,
					"height": 10,
					"type": "label",
					"text": "(c) 2013 M. Gries",
					"textalign": "right",
					"fontsize": 11,
					"textcolor": "128,128,128"
				}
			],
			"width": 320,
			"height": 480,
			"sounds": "active",
			"fitToScreen": true
		},
		{
			"name": "Auduino Yun Extern",
			"label": "Yun (WAN)",
			"connection": "WAN",
			"items": [
				{
					"top": 60,
					"left": 20,
					"width": 100,
					"height": 50,
					"type": "button",
					"label": "newButton",
					"shape": "rounded",
					"icon": "lamp_off"
				},
				{
					"top": 60,
					"left": 140,
					"width": 160,
					"height": 50,
					"type": "label",
					"text": "RX",
					"fontsize": 24,
					"textalign": "left"
				},
				{
					"top": 120,
					"left": 20,
					"width": 100,
					"height": 50,
					"type": "button",
					"label": "newButton",
					"shape": "rounded",
					"icon": "lamp_off"
				},
				{
					"top": 180,
					"left": 20,
					"width": 100,
					"height": 50,
					"type": "button",
					"shape": "rounded",
					"icon": "lamp_off",
					"comment": "Using REST API",
					"reads": "/arduino/digital/13",
					"parseResponse": ".*$",
					"formatResponse": "icon_{0}.png",
					"connection": "WAN"
				},
				{
					"top": 240,
					"left": 20,
					"width": 100,
					"height": 50,
					"type": "button",
					"label": "newButton",
					"shape": "rounded",
					"icon": "lamp_off"
				},
				{
					"top": 300,
					"left": 20,
					"width": 100,
					"height": 50,
					"type": "button",
					"label": "On",
					"shape": "rounded",
					"icon": "lamp_off",
					"reads": "/arduino/alive/0",
					"formatResponse": "icon_{0}.png",
					"comment": "Number required (any)",
					"parseResponse": ".*$"
				},
				{
					"top": 360,
					"left": 20,
					"width": 100,
					"height": 50,
					"type": "button",
					"label": "newButton",
					"shape": "rounded",
					"icon": "lamp_off"
				},
				{
					"top": 420,
					"left": 20,
					"width": 100,
					"height": 50,
					"type": "button",
					"label": "newButton",
					"shape": "rounded",
					"icon": "lamp_off"
				},
				{
					"top": 120,
					"left": 140,
					"width": 160,
					"height": 50,
					"type": "label",
					"text": "TX",
					"fontsize": 24,
					"textalign": "left"
				},
				{
					"top": 180,
					"left": 140,
					"width": 60,
					"height": 50,
					"type": "label",
					"text": "L13",
					"fontsize": 24,
					"textalign": "left"
				},
				{
					"top": 10,
					"left": 20,
					"width": 280,
					"height": 40,
					"type": "label",
					"text": "Current Board Status",
					"fontsize": 28
				},
				{
					"top": 240,
					"left": 140,
					"width": 160,
					"height": 50,
					"type": "label",
					"text": "WAN",
					"fontsize": 24,
					"textalign": "left"
				},
				{
					"top": 300,
					"left": 140,
					"width": 160,
					"height": 50,
					"type": "label",
					"text": "ON",
					"fontsize": 24,
					"textalign": "left"
				},
				{
					"top": 360,
					"left": 140,
					"width": 160,
					"height": 50,
					"type": "label",
					"text": "WLAN",
					"fontsize": 24,
					"textalign": "left"
				},
				{
					"top": 420,
					"left": 140,
					"width": 60,
					"height": 50,
					"type": "label",
					"text": "USB",
					"fontsize": 24,
					"textalign": "left"
				},
				{
					"top": 180,
					"left": 220,
					"width": 80,
					"height": 50,
					"type": "button",
					"shape": "rounded",
					"icon": "next",
					"comment": "Using REST API",
					"sends": [
						"/arduino/toggle/13"
					]
				},
				{
					"top": 460,
					"left": 210,
					"width": 90,
					"height": 10,
					"type": "label",
					"text": "(c) 2013 M. Gries",
					"textalign": "right",
					"fontsize": 11,
					"textcolor": "128,128,128"
				}
			],
			"width": 320,
			"height": 480,
			"sounds": "active",
			"fitToScreen": true
		}
	],
	"device": "iPhone 5",
	"orientation": "portrait",
	"name": "Arduino Yun Ext",
	"description": "Board Status ",
	"navigation": "fix",
	"pagebuttonwidth": "dynamic"
}