<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to AdvisorProxy</title><link>https://sourceforge.net/p/me3gas/wiki/AdvisorProxy/</link><description>Recent changes to AdvisorProxy</description><atom:link href="https://sourceforge.net/p/me3gas/wiki/AdvisorProxy/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 13 Feb 2014 14:55:44 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/me3gas/wiki/AdvisorProxy/feed" rel="self" type="application/rss+xml"/><item><title>AdvisorProxy modified by Olov Stahl</title><link>https://sourceforge.net/p/me3gas/wiki/AdvisorProxy/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v12
+++ v13
@@ -38,7 +38,7 @@

      HydraEventManagerUrl = http://127.0.0.1:8124/Service/Meta?wsdl 

-&lt;br /&gt;The properties file also need to specify a list of datasource parameters. A datasource in Advisor is an entity which reports consumption data, and each source is identified by a name. When the proxy sends reports to Advisor is thus needs to provide the appropriate datasource names in order for Advisor to know which sources the report corresponds to. However, in the middleware, sources of energy consumption will typically not have the same name as in Advisor. That is, a source will (for practical reasons) typically have one name in the middleware, and another name in Advisor. The config file must thus provide information allowing the proxy to map from the middleware name to the Advisor name. This is done by adding settings parameters of the form below, one for each datasource:
+&lt;br /&gt;The properties file also need to specify a list of datasource parameters. A datasource in Advisor is an entity which reports consumption data, and each source is identified by a name. When the proxy sends reports to Advisor is thus needs to provide the appropriate datasource names in order for Advisor to know which sources the report concerns. However, in the middleware, sources of energy consumption will typically not have the same name as in Advisor. That is, a source will (for practical reasons) typically have one name in the middleware, and another name in Advisor. The config file must thus provide information allowing the proxy to map from the middleware name to the Advisor name. This is done by adding settings parameters of the form below, one for each datasource:

      datasource0.AdvisorId = 
      datasource0.HydraId = 
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olov Stahl</dc:creator><pubDate>Thu, 13 Feb 2014 14:55:44 -0000</pubDate><guid>https://sourceforge.netae0d373e797cf6adbeafda87becf1537cf3d8c72</guid></item><item><title>AdvisorProxy modified by Olov Stahl</title><link>https://sourceforge.net/p/me3gas/wiki/AdvisorProxy/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v11
+++ v12
@@ -52,4 +52,4 @@
 ---------
 From within Eclipse the proxy can be run simply by pressing the *Run* button while the project is selected in the *Package Explorer*. It is also possible to create a runnable jar, which can then be used to start the proxy from the command line. In Eclipse, select *Export...* in the *File* menu and then *Runnable JAR file* under *Java*.

-When the proxy is started it creates a log file called (by default) *AdvisorProxy_DATE.txt*, where *DATE* is in the format *YYYY-MM-DD_HH-MM-SS*, for instance 2013-09-28-14.23.18. Log files are created in a directory called *logs* (by default). Note that this directory needs to be created by hand, if it doesn't exists no logs will be generated.
+When the proxy is started it creates a log file called (by default) *AdvisorProxy_DATE.txt*, where *DATE* is in the format *YYYY-MM-DD_HH-MM-SS*, for instance AdvisorProxy_2013-09-28_14-23-18.txt. Log files are created in a directory called *logs* (by default). Note that this directory needs to be created by hand, if it doesn't exists no logs will be generated.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olov Stahl</dc:creator><pubDate>Thu, 06 Feb 2014 09:29:35 -0000</pubDate><guid>https://sourceforge.nete5a7ab6f4d24b7d974d9c2e788818fb7314e13c0</guid></item><item><title>AdvisorProxy modified by Olov Stahl</title><link>https://sourceforge.net/p/me3gas/wiki/AdvisorProxy/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v10
+++ v11
@@ -1,13 +1,13 @@
 The ME3Gas Advisor Proxy
 ========================

-The Advisor Proxy is a standalone runtime component that subscribes to energy consumption data from the ME3Gas middleware, and continuously feeds this data to the [Advisor](http://www.resourcekraft.com/energy-monitoring-software-advisor/) energy management cost control system from Resourcekraft Ltd (see figure below). This allows for the use of Advisor's advanced data analysis and presentation capabilities, enabling for instance organizations to understand how and where energy is being consumed at any given time, potentially across many sites. Note that the use of Advisor requires collaboration with Resourcekraft.
+The Advisor Proxy is a standalone runtime component that subscribes to energy consumption data from the ME3Gas middleware, and continuously feeds this data to the [Advisor](http://www.resourcekraft.com/energy-monitoring-software-advisor/) energy management cost control system from Resourcekraft Ltd (see figure below). This allows for the use of Advisor's advanced data analysis and presentation capabilities, enabling for instance organizations to understand how and where energy is being consumed at any given time, potentially across many sites. Note that the use of Advisor requires collaboration with [Resourcekraft](http://www.resourcekraft.com).

 [[img src=AdvisorProxy-small.png]]

 Compiling the Advisor Proxy code
 --------------------------------
-The Advisor Proxy is written in Java, and the code resides in the *AdvisorProxy* sub-directory of the ME3Gas svn root directory. After checking out the code, follow the steps below to compile the Advisor proxy. Note that the instructions assume that you are using [Eclipse](http://www.eclipse.org/), if you prefer some other IDE or tool you need to ... 
+The Advisor Proxy is written in Java, and the code resides in the *AdvisorProxy* sub-directory of the ME3Gas svn root directory. After checking out the code, follow the steps below to compile the Advisor proxy. Note that the instructions assume that you are using [Eclipse](http://www.eclipse.org/).

 1. Download and install Eclipse if you haven't done so already
 2. In the *File* menu, choose *Import...* and then *Existing Projects into Workspace* under *General*.
@@ -53,4 +53,3 @@
 From within Eclipse the proxy can be run simply by pressing the *Run* button while the project is selected in the *Package Explorer*. It is also possible to create a runnable jar, which can then be used to start the proxy from the command line. In Eclipse, select *Export...* in the *File* menu and then *Runnable JAR file* under *Java*.

 When the proxy is started it creates a log file called (by default) *AdvisorProxy_DATE.txt*, where *DATE* is in the format *YYYY-MM-DD_HH-MM-SS*, for instance 2013-09-28-14.23.18. Log files are created in a directory called *logs* (by default). Note that this directory needs to be created by hand, if it doesn't exists no logs will be generated.
-
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olov Stahl</dc:creator><pubDate>Wed, 05 Feb 2014 10:14:43 -0000</pubDate><guid>https://sourceforge.net103fdf3547fac7a09292f3ba3ad4dc110581b8e6</guid></item><item><title>AdvisorProxy modified by Olov Stahl</title><link>https://sourceforge.net/p/me3gas/wiki/AdvisorProxy/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v9
+++ v10
@@ -27,7 +27,7 @@

 &lt;br /&gt;The most important settings parameters that must be given for the proxy to be able to run are:

-**AdvisorUrl** - The URL the proxy should use to send data to Advisor. This address is typically provided by Resourcekraft. The URL should include the protocol (e.g., http), for instance:
+**AdvisorUrl** - The URL the proxy should use to send data to Advisor. This address is typically provided by Resourcekraft. The URL should include the protocol (e.g., http). For instance:

      AdvisorUrl=http://a.b.c/d/e

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olov Stahl</dc:creator><pubDate>Thu, 30 Jan 2014 11:42:11 -0000</pubDate><guid>https://sourceforge.net8beb57cbeafe29c4597045b78f8edae8d22d8a39</guid></item><item><title>AdvisorProxy modified by Olov Stahl</title><link>https://sourceforge.net/p/me3gas/wiki/AdvisorProxy/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v8
+++ v9
@@ -52,5 +52,5 @@
 ---------
 From within Eclipse the proxy can be run simply by pressing the *Run* button while the project is selected in the *Package Explorer*. It is also possible to create a runnable jar, which can then be used to start the proxy from the command line. In Eclipse, select *Export...* in the *File* menu and then *Runnable JAR file* under *Java*.

-When the proxy is started it creates a log file called (by default) *AdvisorProxy_DATE.txt*, where *DATE* is in the format *YYYY-MM-DD_HH-MM-SS*, for instance 2013-09-28-14.23.18. Log files are created in a directory called *logs* (by default). This directory needs to be created by hand.
+When the proxy is started it creates a log file called (by default) *AdvisorProxy_DATE.txt*, where *DATE* is in the format *YYYY-MM-DD_HH-MM-SS*, for instance 2013-09-28-14.23.18. Log files are created in a directory called *logs* (by default). Note that this directory needs to be created by hand, if it doesn't exists no logs will be generated.

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olov Stahl</dc:creator><pubDate>Thu, 30 Jan 2014 11:18:38 -0000</pubDate><guid>https://sourceforge.net502ecd2569a6a9718b910290f822c7573d05220e</guid></item><item><title>AdvisorProxy modified by Olov Stahl</title><link>https://sourceforge.net/p/me3gas/wiki/AdvisorProxy/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v7
+++ v8
@@ -18,10 +18,8 @@
 7. Back at the *Properties for AdvisorProxy* window, press the *Order and Export* tab, make sure that the CFX library appears above the *JRE System Library*. If not, move it upwards.
 8. Close the properties window. The errors of the AdvisorProxy project should now have disappeared and you are ready to run the code.

-Running Advisor Proxy
----------------------
-From within Eclipse the proxy can be run simply by pressing the *Run* button while the project is selected in the *Package Explorer*. However, before this can be done we need to provide some settings parameters, e.g., so that the proxy knows how to connect to Advisor, etc.
-
+Configuring Advisor Proxy
+-------------------------
 The proxy uses a configuration file named *proxy.properties* to read values of settings parameters. The file should be located in the same directory from where the proxy is started. In the *AdvisorProxy/trunk* directory there is a sample properties file. The file is structured as a flat list of *param=value* lines, where *param* is a proxy settings parameter name, and *value* is the value to use when running the proxy. Comments are indicated using the *#* symbol. For instance:

     # This is a comment
@@ -49,3 +47,10 @@
      ...

 &lt;br /&gt;The numbering should start on 0 and increase by 1 for each datasource. It doesn't matter in which order datasources are specified, the only thing that matters is the values of *AdvisorId* and *HydraId*,  specifying the datasource name in Advisor and the middleware respectively.
+
+Running Advisor Proxy
+---------
+From within Eclipse the proxy can be run simply by pressing the *Run* button while the project is selected in the *Package Explorer*. It is also possible to create a runnable jar, which can then be used to start the proxy from the command line. In Eclipse, select *Export...* in the *File* menu and then *Runnable JAR file* under *Java*.
+
+When the proxy is started it creates a log file called (by default) *AdvisorProxy_DATE.txt*, where *DATE* is in the format *YYYY-MM-DD_HH-MM-SS*, for instance 2013-09-28-14.23.18. Log files are created in a directory called *logs* (by default). This directory needs to be created by hand.
+
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olov Stahl</dc:creator><pubDate>Thu, 30 Jan 2014 09:53:44 -0000</pubDate><guid>https://sourceforge.netb69581b1c832cd3f5db5e94a56cc0ee419fca09e</guid></item><item><title>AdvisorProxy modified by Olov Stahl</title><link>https://sourceforge.net/p/me3gas/wiki/AdvisorProxy/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -1,7 +1,7 @@
 The ME3Gas Advisor Proxy
 ========================

-The Advisor Proxy is a standalone runtime component that subscribes to energy consumption data from the ME3Gas middleware, and continuously feeds this data to the [Advisor](http://www.resourcekraft.com/energy-monitoring-software-advisor/) energy management cost control system from Resourcekraft Ltd (see figure below). This allows for the use of Advisor's advanced data analysis and presentation capabilities, enabling for instance organizations to understand how and where energy is being consumed at any given time, potentially across many sites. 
+The Advisor Proxy is a standalone runtime component that subscribes to energy consumption data from the ME3Gas middleware, and continuously feeds this data to the [Advisor](http://www.resourcekraft.com/energy-monitoring-software-advisor/) energy management cost control system from Resourcekraft Ltd (see figure below). This allows for the use of Advisor's advanced data analysis and presentation capabilities, enabling for instance organizations to understand how and where energy is being consumed at any given time, potentially across many sites. Note that the use of Advisor requires collaboration with Resourcekraft.

 [[img src=AdvisorProxy-small.png]]

@@ -20,3 +20,32 @@

 Running Advisor Proxy
 ---------------------
+From within Eclipse the proxy can be run simply by pressing the *Run* button while the project is selected in the *Package Explorer*. However, before this can be done we need to provide some settings parameters, e.g., so that the proxy knows how to connect to Advisor, etc.
+
+The proxy uses a configuration file named *proxy.properties* to read values of settings parameters. The file should be located in the same directory from where the proxy is started. In the *AdvisorProxy/trunk* directory there is a sample properties file. The file is structured as a flat list of *param=value* lines, where *param* is a proxy settings parameter name, and *value* is the value to use when running the proxy. Comments are indicated using the *#* symbol. For instance:
+
+    # This is a comment
+    someParam=someValue
+
+&lt;br /&gt;The most important settings parameters that must be given for the proxy to be able to run are:
+
+**AdvisorUrl** - The URL the proxy should use to send data to Advisor. This address is typically provided by Resourcekraft. The URL should include the protocol (e.g., http), for instance:
+
+     AdvisorUrl=http://a.b.c/d/e
+
+
+&lt;br /&gt;**AdvisorDadId** - The Data Acquisition Device (DAD) identifier to use when sending reports to Advisor. The value of this parameter needs to be agreed with Resourcekraft.
+
+**HydraEventManagerUrl** - The web service endpoint on which the middleware Event Manager can be reached. This is used by the proxy to set up subscriptions to energy consumption events generated by the middleware. The default value is http://127.0.0.1:8124/Service/Meta?wsdl, assuming that the proxy and event manager are running on the same host.
+
+     HydraEventManagerUrl = http://127.0.0.1:8124/Service/Meta?wsdl 
+
+&lt;br /&gt;The properties file also need to specify a list of datasource parameters. A datasource in Advisor is an entity which reports consumption data, and each source is identified by a name. When the proxy sends reports to Advisor is thus needs to provide the appropriate datasource names in order for Advisor to know which sources the report corresponds to. However, in the middleware, sources of energy consumption will typically not have the same name as in Advisor. That is, a source will (for practical reasons) typically have one name in the middleware, and another name in Advisor. The config file must thus provide information allowing the proxy to map from the middleware name to the Advisor name. This is done by adding settings parameters of the form below, one for each datasource:
+
+     datasource0.AdvisorId = 
+     datasource0.HydraId = 
+     datasource1.AdvisorId = 
+     datasource1.HydraId = 
+     ...
+
+&lt;br /&gt;The numbering should start on 0 and increase by 1 for each datasource. It doesn't matter in which order datasources are specified, the only thing that matters is the values of *AdvisorId* and *HydraId*,  specifying the datasource name in Advisor and the middleware respectively.
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olov Stahl</dc:creator><pubDate>Thu, 30 Jan 2014 09:40:11 -0000</pubDate><guid>https://sourceforge.net795afcf43409b417d8b10940e4b837cee49a8a9e</guid></item><item><title>AdvisorProxy modified by Olov Stahl</title><link>https://sourceforge.net/p/me3gas/wiki/AdvisorProxy/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -12,7 +12,11 @@
 1. Download and install Eclipse if you haven't done so already
 2. In the *File* menu, choose *Import...* and then *Existing Projects into Workspace* under *General*.
 3. In the window that appears, select the *AdvisorProxy/trunk* sub-directory as the project root directory and press *Finish'. You should now see a *AdvisorProxy* project in the Eclipse's *Package Explorer* (normally on the left in the Eclipse UI). You may notice that the project has some errors.
-4. Right click the *AdvisorProxy* project in the *Package Explorer* and select *Build Path -&gt; Configure Build Path...* in the menu that appears.
+4. In order to compile the source, you need to install a "webservice package". We have used *CXF*. To install a CFX plugin in Eclipse, select the *Help* menu, and then *Install new software...*. In the *Work with: * entry at the top of the appearing window, type http://download.eclipse.org/webtools/milestones/, then select *CFX Web Services* under *Web Tools Platform ...* and press *Finish* at the bottom.
+5. Right click the *AdvisorProxy* project in the *Package Explorer* and select *Build Path -&gt; Configure Build Path...* in the menu that appears.
+6. Select the *Libraries* tab in the *Properties for AdvisorProxy* window, and if there is no CFX library in the list, press the *Add Library...* button. Select *CFX runtime* and the *Apache CFX 2.7.3* (or whatever version is installed). Press *Finish*.
+7. Back at the *Properties for AdvisorProxy* window, press the *Order and Export* tab, make sure that the CFX library appears above the *JRE System Library*. If not, move it upwards.
+8. Close the properties window. The errors of the AdvisorProxy project should now have disappeared and you are ready to run the code.

 Running Advisor Proxy
 ---------------------
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olov Stahl</dc:creator><pubDate>Thu, 30 Jan 2014 08:16:23 -0000</pubDate><guid>https://sourceforge.net4d949f7979ed6fd25d5d1679037b9af3fe8281de</guid></item><item><title>AdvisorProxy modified by Olov Stahl</title><link>https://sourceforge.net/p/me3gas/wiki/AdvisorProxy/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -7,6 +7,12 @@

 Compiling the Advisor Proxy code
 --------------------------------
+The Advisor Proxy is written in Java, and the code resides in the *AdvisorProxy* sub-directory of the ME3Gas svn root directory. After checking out the code, follow the steps below to compile the Advisor proxy. Note that the instructions assume that you are using [Eclipse](http://www.eclipse.org/), if you prefer some other IDE or tool you need to ... 
+
+1. Download and install Eclipse if you haven't done so already
+2. In the *File* menu, choose *Import...* and then *Existing Projects into Workspace* under *General*.
+3. In the window that appears, select the *AdvisorProxy/trunk* sub-directory as the project root directory and press *Finish'. You should now see a *AdvisorProxy* project in the Eclipse's *Package Explorer* (normally on the left in the Eclipse UI). You may notice that the project has some errors.
+4. Right click the *AdvisorProxy* project in the *Package Explorer* and select *Build Path -&gt; Configure Build Path...* in the menu that appears.

 Running Advisor Proxy
 ---------------------
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olov Stahl</dc:creator><pubDate>Thu, 30 Jan 2014 07:47:59 -0000</pubDate><guid>https://sourceforge.net607c156465678180e38589ab615fedeef2cb35ff</guid></item><item><title>AdvisorProxy modified by Olov Stahl</title><link>https://sourceforge.net/p/me3gas/wiki/AdvisorProxy/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -1,6 +1,12 @@
 The ME3Gas Advisor Proxy
 ========================

-The Advisor Proxy is a standalone runtime component that subscribes to energy consumption data from the ME3Gas middleware, and continuously feeds this data to the [Advisor](http://www.resourcekraft.com/energy-monitoring-software-advisor/) energy management cost control system from Resourcekraft Ltd (see figure below).
+The Advisor Proxy is a standalone runtime component that subscribes to energy consumption data from the ME3Gas middleware, and continuously feeds this data to the [Advisor](http://www.resourcekraft.com/energy-monitoring-software-advisor/) energy management cost control system from Resourcekraft Ltd (see figure below). This allows for the use of Advisor's advanced data analysis and presentation capabilities, enabling for instance organizations to understand how and where energy is being consumed at any given time, potentially across many sites. 

 [[img src=AdvisorProxy-small.png]]
+
+Compiling the Advisor Proxy code
+--------------------------------
+
+Running Advisor Proxy
+---------------------
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Olov Stahl</dc:creator><pubDate>Wed, 29 Jan 2014 16:31:29 -0000</pubDate><guid>https://sourceforge.net1a939c7bc9485ffc04ebc6db44157eb7c284d47d</guid></item></channel></rss>