Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - peadard

Pages: [1] 2
1
Third Party Device Driver Software Development / Azure IoT
« on: June 02, 2016, 05:30:56 pm »
Hi Guys.
Just wondering if anybody has had a play around with Azure IoT?
I thought it would be interesting if we could get Elve to send data to the IoT Hub and then use something like PowerBi to do some graphing etc.
The SDK documentation seems fairly extensive.
Seeing as the current IoS app is no longer in the app store I was thinking this may be a nice way of displaying data from Elve.

https://azure.microsoft.com/en-us/develop/iot/
https://github.com/Azure/azure-iot-sdks/blob/master/csharp/device/readme.md

2
General Discussion / Elve controlled speaker selection
« on: April 03, 2015, 03:17:47 am »
Hi guys.
My speaker selector at home has just died. It was just a simple one with manual switching that I turned on and off when I needed audio in each room. I need to replace it but I want to integrate the audio with my Elve setup.
Here is a little info regarding my setup:
All my speaker cables come back to the area that my Elve server is running in.
 I am running a raspberry Pi running shareport that allows IDevices to AirPlay their music to my speakers. This Pi runs a 3.5 mm audio to a powered amp that had an audio out to my now dead selector.
I have an Elk M1 Gold in the same area.
I have an iPad on the kitchen wall running Elve mobile.
Does anybody have any (not too expensive) suggestions to automate the speaker selection with Elve?
Feel free to explain your setup for myself and anybody else that may follow this thread.
P.s if anybody is interested in the AirPlay aspect I can post the details here too.
Thanks Guys.

3
General Discussion / Emailing Hyperlink
« on: March 02, 2015, 07:58:51 pm »
Hi Guys.
I am trying to email a Hyperlink in a rule.
Does anybody have any idea how to do this?
So far I have:
Code: [Select]
emailsender2.SendEmail("someperson@someemail", "Subject Here","Some Text Here " + " \r" +" Please follow this link for more detailed instructions:" + " \r" + "http://www.somewebpage" );
I want the web link to be clickable within the email.
Is it even possible?
Thanks Guys.

4
Touch Screen Interfaces / Opening Desktop Application in foreground
« on: September 23, 2014, 08:53:48 pm »
Hi All.
I am trying to create a touchscreen with a button that opens VLC Player using the Desktop driver.
It works ok but the TouchScreen viewer always stays in the foreground and VLC cannot be seen.
I have tried using the ToFront Method but TS Viewer still takes priority.
Seems to work ok if TS Viewer is not in full screen mode but I am hoping to have this screen in Kiosk Mode.
Anybody know any way around this?
Thanks guys.

5
Rules Configuration / Display Motion Detection in XBMC
« on: September 03, 2014, 03:25:43 pm »
Hi guys.
I don't know if I shared this before but one of the things I use Elve for is sending an alert to XBMC whenever motion detection is detected by a PIR connected to an Elk M1.
This is ideal in a house like mine when you have kids that get out of bed upstairs in the evenings.
 A little pop up appears on the tv screen letting you know that motion has been detected.
The first thing to do is add a New Device.  Select a HTTP Device and make sure it is enabled.

Then go to Rules and create a new rule.

Give it whatever name you choose in the Rule Tab.

Under Event you want to Select your Elk M1 as the Device and Zone Status Change as the Event.

Make sure Enabled is ticked or the rule will not fire.

On the Whenever Tab select the Zone on your M1 that will trigger the rule. (PIR in my case)

In the Status selection select Violated (again because I was using a PIR).

Under the Action List Tab add an action to - Control Device- HTTP- Retrieve Web page.

In the Url of the web page to retrieve go to the Custom Value and enter http://YourIPHere:8080/jsonrpc?request=%7B%22jsonrpc%22:%222.0%22,%22method%22:%22GUI.ShowNotification%22,%22params%22:%7B%22title%22:%22Motion%20Detected%22,%22message%22:%22Upstairs%22%7D,%22id%22:1%7D.

That's it click save and you are done.

Please note. For this to work you have to make sure you put in the correct entry for the IP address of your box running XBMC.

I don't know if anybody will use this but I thought I would share it anyways.
P









6
Third Party Device Driver Software Development / LG smart TV
« on: July 26, 2014, 03:44:04 pm »
Hi guys.
Has anybody got a driver or a method to control an LG smart tv? Just want to do basic stuff like turn on and off.

7
Feature Requests / System Status in the ELK M1 Driver
« on: June 29, 2014, 09:01:44 pm »
I would like to add a feature request for System Trouble Status to be added to the current ELK M1 driver.
We can currently send  Raw Command to "06ss0054" to query status but cannot do anything with the response.
Would be handy for users that have Zone expanders or Input expanders.
Not a major issue if it is too hard or time consuming to do.
Thanks guys.


8
Device Configuration / Elk M1 System Trouble Status
« on: June 24, 2014, 07:32:10 pm »
Hi guys.

Does anybody know a way to get the Elk M1 System Trouble Status in Elve.

I want to do this to see issues such as Output Expander trouble and Telephone fault Trouble.

I thought I could use the send raw command to get it but cannot figure it out.

Thanks in advance.
P





9
Elve Version 2.0 Beta (Closed) / License Expiry
« on: May 26, 2014, 05:09:09 pm »
Hi all.
My license for Beta 2.0 that I use at home has expired.
Does anybody have a spare one or know how I can get one?
It did expire previously and I just re-installed but I don't want to have to keep doing this.
Thanks guys.


10
General Discussion / Email the results of a script?
« on: February 13, 2014, 03:52:54 pm »
Hi All. I have written a script that returns an array. The script works fine and returns the array.
I have setup the Script to run in a rule at a certain time to let me know what windows are open.
Does anyone know how I could email the results of this script?
Below is the script I am using

 
Code: [Select]

//Loop through devices to get a list of all M1 panels
WindowsOpen = new Array();
devicesContainers = System.GetSecurityDeviceContainers( );
x = WindowsOpen.HighestIndex;
for (i=0; i < devicesContainers.Length; i++)
{
M1 = devicesContainers[i].GetDevice();

// Get the name of the Device

device = M1.DeviceDisplayName;
names = M1.ZoneNames;
status = M1.Zonephysicalstatuses;


for (zoneID=1; zoneID<status.length; zoneID++)
{
// Get the name
name = names[zoneID];
current = status[zoneID];
//temp = new String(current);

hasreed = name.Contains("WR");
if (hasreed == true)
{
if (current == 2)
{
WindowsOpen[zoneID]=name;

}
}
}

}


return WindowsOPen;

Any help would be appreciated.

11
User Showcase / Elve Elk M1 project
« on: January 13, 2014, 03:11:57 pm »
Modified

12
Touch Screen Interfaces / Reload touch Screen after 20 Seconds
« on: September 09, 2013, 05:25:03 pm »
Hi Guys.
I have a touch screen that contains numerous PagedLists. These pagedlists are populated on "Control Loaded" by querying a SQL database.
This works well but was wondering how to refresh the values every 20 seconds.
The way I figured was to reload the touch screen every 20 seconds.
Any ideas how I could do this??
Thanks Guys.

13
Touch Screen Interfaces / Interface bigger than monitor resolution
« on: August 20, 2013, 06:23:35 pm »
Hi all.
I inadvertantly set the size of one of my touch screens to a larger resolution than my desktop screen.
Now whenever I try to edit the interface it pops up a message telling me that the selected interface is larger that the current monitor resolution.....
Does anybody know a way to fix this without using a different monitor?? (i do not have one with a large enough screen)
I looked for the settings of the screen but I could not find the folder containing the touch screens.
Any help appreciated..

14
Hi guys.
I have a number of Elk M1 units (32 to be exact) that monitor temperature (via temperature probes).
If I wish to query one M1 I Use this code:

Code: [Select]
try
{
this.BeginUpdate();

// Set 'device' to the scripting identifier.
device = elkm129;

// Clear the zones list
this.Clear();

// Get the zone names array from the selected M1.
names = device.ZoneNames;
// Get the temperature form the selected M1
temperature = device.ProbeTemperatures;


// Loop over all the zone names and add the ones that aren't blank to the zones list.
for (zoneID=1; zoneID<names.Length; zoneID++)
{
// Get the name
name = names[zoneID];
current = temperature[zoneID];

// If the name is not blank...
if (name.Length > 0)
{
// Add the name to the list, with the zone id as the value.
this.Add( name + " " + current + " °C", zoneID);
}
}
}
finally
{
this.EndUpdate();
}


Now, what i need to do is modify the above code so that it starts at elkm1 (scripting identifier) and cycles through to elkm200 running the code above.
I have tried a few variants but cannot seem to get it working.
Does anybody have any ideas?
Thanks Guys.

15
General Discussion / Getting average Temperature
« on: April 09, 2013, 09:44:15 pm »
Hi Guys.
I have a quick question. i have a number of Elk M1 units with probe temperatures attached i.e { elkm129.ProbeTemperatures[4] }°C
I want to show the average temperature on a home screen of lest say five of these units.
does anybody know a quick way to script this e.g. in the text box =average (elkm129.ProbeTemperatures[1],elkm129.ProbeTemperatures[2],elkm129.ProbeTemperatures[3],elkm129.ProbeTemperatures[4],elkm129.ProbeTemperatures[5])
Cheers.

Pages: [1] 2