Skip to content

Commit 464bdab

Browse files
committed
updated ZWaveLib; changed pepper1db archive location to local HomeGenie gh-pages site
1 parent 9c21400 commit 464bdab

File tree

5 files changed

+28
-13
lines changed

5 files changed

+28
-13
lines changed

MIG.HomeAutomation/MIG.HomeAutomation.csproj

+7-8
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@
3131
<ConsolePause>false</ConsolePause>
3232
</PropertyGroup>
3333
<ItemGroup>
34-
<Reference Include="Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
35-
<HintPath>..\packages\Newtonsoft.Json.7.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
36-
<Private>True</Private>
37-
</Reference>
3834
<Reference Include="System" />
3935
<Reference Include="System.Xml" />
4036
<Reference Include="LibUsbDotNet">
@@ -44,9 +40,6 @@
4440
<Reference Include="NLog">
4541
<HintPath>..\packages\NLog.4.1.0\lib\net45\NLog.dll</HintPath>
4642
</Reference>
47-
<Reference Include="SerialPortLib">
48-
<HintPath>..\packages\SerialPortLib.1.0.11\lib\SerialPortLib.dll</HintPath>
49-
</Reference>
5043
<Reference Include="XTenLib">
5144
<HintPath>..\packages\XTenLib.1.0.7\lib\XTenLib.dll</HintPath>
5245
</Reference>
@@ -55,8 +48,14 @@
5548
<HintPath>..\packages\SharpZipLib.0.86.0\lib\20\ICSharpCode.SharpZipLib.dll</HintPath>
5649
</Reference>
5750
<Reference Include="System.Net" />
51+
<Reference Include="Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed">
52+
<HintPath>..\packages\Newtonsoft.Json.7.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
53+
</Reference>
54+
<Reference Include="SerialPortLib">
55+
<HintPath>..\packages\SerialPortLib.1.0.12\lib\SerialPortLib.dll</HintPath>
56+
</Reference>
5857
<Reference Include="ZWaveLib">
59-
<HintPath>..\packages\ZWaveLib.1.0.12\lib\ZWaveLib.dll</HintPath>
58+
<HintPath>..\packages\ZWaveLib.1.0.15\lib\ZWaveLib.dll</HintPath>
6059
</Reference>
6160
</ItemGroup>
6261
<ItemGroup>

MIG.HomeAutomation/ModuleEvents.cs

+6
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ public static class ModuleEvents
6262
"Sensor.Luminance";
6363
public static string Sensor_Humidity =
6464
"Sensor.Humidity";
65+
public static string Sensor_WaterFlow =
66+
"Sensor.WaterFlow";
67+
public static string Sensor_WaterPressure =
68+
"Sensor.WaterPressure";
69+
public static string Sensor_Ultraviolet =
70+
"Sensor.Ultraviolet";
6571
public static string Sensor_DoorWindow =
6672
"Sensor.DoorWindow";
6773
public static string Sensor_Key =

MIG.HomeAutomation/ZWave.cs

+12-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ You should have received a copy of the GNU General Public License
4646
using System.Xml.XPath;
4747
using Newtonsoft.Json;
4848
using Newtonsoft.Json.Converters;
49+
using System.Security.Cryptography.X509Certificates;
50+
using System.Net.Security;
4951

5052
namespace MIG.Interfaces.HomeAutomation
5153
{
@@ -976,6 +978,15 @@ private void Controller_NodeUpdated(object sender, NodeUpdatedEventArgs args)
976978
case EventParameter.SensorMotion:
977979
eventPath = ModuleEvents.Sensor_MotionDetect;
978980
break;
981+
case EventParameter.WaterFlow:
982+
eventPath = ModuleEvents.Sensor_WaterFlow;
983+
break;
984+
case EventParameter.WaterPressure:
985+
eventPath = ModuleEvents.Sensor_WaterPressure;
986+
break;
987+
case EventParameter.Ultraviolet:
988+
eventPath = ModuleEvents.Sensor_Ultraviolet;
989+
break;
979990
case EventParameter.AlarmGeneric:
980991
eventPath = ModuleEvents.Sensor_Alarm;
981992
// Translate generic alarm into specific Door Lock event values if node is an entry control type device
@@ -1235,7 +1246,7 @@ public class Pepper1Db
12351246
private const string additionalDbFilename = "p1db_custom.xml";
12361247
private const string archiveFilename = "archive.zip";
12371248
private const string tempFolder = "temp";
1238-
private const string defaultPepper1Url = "http://pepper1.net/zwavedb/device/export/device_archive.zip";
1249+
private const string defaultPepper1Url = "https://genielabs.github.io/HomeGenie/_hg_files/zwave/pepper1_device_archive.zip";
12391250

12401251
public bool DbExists
12411252
{

MIG.HomeAutomation/packages.config

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<package id="LibUsbDotNet" version="2.2.8" targetFramework="net45" />
44
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="net45" />
55
<package id="NLog" version="4.1.0" targetFramework="net45" />
6-
<package id="SerialPortLib" version="1.0.11" targetFramework="net45" />
6+
<package id="SerialPortLib" version="1.0.12" targetFramework="net45" />
77
<package id="SharpZipLib" version="0.86.0" targetFramework="net45" />
88
<package id="XTenLib" version="1.0.7" targetFramework="net45" />
9-
<package id="ZWaveLib" version="1.0.12" targetFramework="net45" />
9+
<package id="ZWaveLib" version="1.0.15" targetFramework="net45" />
1010
</packages>

packages/repositories.config

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<repositories>
3-
<repository path="../MIG.Controllers/packages.config" />
43
<repository path="../MIG.HomeAutomation/packages.config" />
54
<repository path="../MIG/packages.config" />
65
</repositories>

0 commit comments

Comments
 (0)