Changes between Version 3 and Version 4 of WikiStart
- Timestamp:
- 2013-08-26 10:47:10 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v3 v4 1 1 [[Image(nano.jpg, align=right, 300px)]] 2 2 = Arduino Sensor Plugin = 3 The Arduino sensor plugin allows you to build your own cheap wireless sensors (<$10) and hook them up wireless to your Vera.3 The Arduino sensor plugin allows you to build your own cheap wireless sensors (<$10) and communicate with them. The plugin automatically creates Vera devices it finds. The Arduino wireless network uses Nordic Semiconductors chip rf2401. See separate pages for how to hook up it to your Arduino. 4 4 5 5 … … 38 38 ==== From downloaded source ==== 39 39 40 1. Download '''D_Dune.json, D_Dune.xml, I_Dune.xml, S_Dune.xml, xmlSimple.lua''' found under "Browse Source">trunk above. 41 i. Go to: Apps -> Develop Apps -> Luup files in Vera UI 42 i. Add the five files using "Browse"-button. Click "Restart Luup after upload" checkbox and press Go. 43 i. Go to: Apps -> Develop Apps -> Create Device 44 i. Set "Upnp Device Filename" to "D_Dune.xml" 45 i. Set "Upnp Implementation Filename" to "I_Dune.xml" 46 i. Click "Create Device" 47 i. Reload 48 i. Go to device settings and update the default ip of your Dune box. 49 i. Reload 50 i. 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'' 40 41 === Arduino Receiver Sketch === 42 43 This sketch should be downloaded to a Arduino Nano which is connected to your Vera using the serial usb cable. 44 Connect the the radio module to your Nano board. 45 46 All communication from/to your sensors is transmitted through this device. 47 48 It is important to use a Nano board because it uses serial usb chipset recognized directly by Vera (the Uno does not!). 49 50 51 52 === Sensor sketches === 53 54 ==== Tempearure sensor ==== 55 56 51 57 52 58 53 59 === Configuration === 54 || '''Parameter''' || '''Description''' ||55 || ip || Ip number for your Dune box ||56 || !PollIntervalOnline || Poll interval for fetching player state (in seconds) when dune player is online ||57 || !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. ||58 60 59 61 === Notifications === 60 62 61 The following notification triggers can be used in your scenes.62 63 || '''!PlayerState''' || '''Description''' ||64 63 65 64 === Actions === 66 65 67 Only action "Play" and "Pause" is implemented at the moment.68 66 69 67 === Example === 70 To fetch the playback state in luup code use the following:71 68 72 69 {{{ … … 76 73 77 74 === API Description === 78 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.79 https://code.google.com/p/dune-api-codepack/wiki/ApiReference