| Version 2 (modified by hek, 12 years ago) (diff) | 
|---|
Arduino Sensor Plugin
The Arduino sensor plugin allows you to build your own cheap wireless sensors (<$10) and hook them up wireless to your Vera.
Link Arduino to company page
http://arduino.cc
Relevant forum thread
http://forum.micasaverde.com/index.php/topic,16170.msg123378.html
Author
Henrik Ekblad - henrik.ekblad at gmail.com (hek on forum)
Installing and using the plugin
From apps.mios.com
https://apps.mios.com/plugin.php?id=xxxx
Remember to set the serial usb port used by connected Nano board.
From downloaded source
- Download D_Dune.json, D_Dune.xml, I_Dune.xml, S_Dune.xml, xmlSimple.lua found under "Browse Source">trunk above.
 - Go to: Apps -> Develop Apps -> Luup files in Vera UI
 - Add the five files using "Browse"-button. Click "Restart Luup after upload" checkbox and press Go.
 - Go to: Apps -> Develop Apps -> Create Device
 - Set "Upnp Device Filename" to "D_Dune.xml"
 - Set "Upnp Implementation Filename" to "I_Dune.xml"
 - Click "Create Device"
 - Reload
 - Go to device settings and update the default ip of your Dune box.
 - Reload
 - OPTIONAL: If you want an icon download dune_icon.png and SCP it to your vera box under /www/cmh/skins/default/icons/dune_icon.png
 
Configuration
| Parameter | Description | 
| ip | Ip number for your Dune box | 
| PollIntervalOnline | Poll interval for fetching player state (in seconds) when dune player is online | 
| PollIntervalOffline | Poll interval for trying to fetch player state (in seconds) when offline. This interval will be used when http connection does a timeout when trying to fetch state. | 
Notifications
The following notification triggers can be used in your scenes.
| PlayerState | Description | 
Actions
Only action "Play" and "Pause" is implemented at the moment.
Example
To fetch the playback state in luup code use the following:
API Description
A big thanks to Steven Liekens who has collected all information available on one place regarding IP-command interface for Dune Players. It helped alot when developing this plugin. https://code.google.com/p/dune-api-codepack/wiki/ApiReference
Attachments
- 
    nano.jpg
       (136.2 KB) -
      added by hek 12 years ago.
              
Arduino Nano
 - sdk.png (53.6 KB) - added by hek 12 years ago.
 - serial.png (32.2 KB) - added by hek 12 years ago.
 - gw.jpg (268.9 KB) - added by hek 12 years ago.
 - arch.png (18.4 KB) - added by hek 12 years ago.
 - sensors.jpg (113.1 KB) - added by hek 12 years ago.
 - Arduino48.png (5.0 KB) - added by hek 12 years ago.
 - ProMini-cut.jpg (77.8 KB) - added by hek 12 years ago.
 - ArduinoNode48.png (5.7 KB) - added by hek 12 years ago.
 - RelayNode48.png (3.6 KB) - added by hek 12 years ago.
 - ArduinoVeraArch.png (22.8 KB) - added by hek 12 years ago.
 - Node_0.png (5.4 KB) - added by hek 12 years ago.
 - Node_100.png (5.7 KB) - added by hek 12 years ago.
 - Node.png (5.7 KB) - added by hek 12 years ago.
 - Relay_0.png (5.9 KB) - added by hek 12 years ago.
 - Relay_100.png (5.2 KB) - added by hek 12 years ago.
 - Relay.png (5.2 KB) - added by hek 12 years ago.
 
