This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ntnu.opcua.client.service.impl; | |
import java.util.Dictionary; | |
import java.util.Enumeration; | |
import java.util.HashMap; | |
import java.util.Map; | |
import ntnu.opcua.client.api.OPCUAClientAPI; | |
import org.osgi.framework.BundleContext; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!ENTRY org.apache.felix.fileinstall 4 0 2013-11-05 17:04:41.357 | |
!MESSAGE Failed to install artifact: C:\Prosjekter\ReactiveBlocksMaster\config\org_apache_felix_cm_impl_DynamicBindings.config | |
!STACK 0 | |
java.lang.NullPointerException | |
at org.apache.felix.cm.impl.helper.TargetedPID.<init>(TargetedPID.java:83) | |
at org.apache.felix.cm.impl.ConfigurationBase.<init>(ConfigurationBase.java:59) | |
at org.apache.felix.cm.impl.ConfigurationImpl.<init>(ConfigurationImpl.java:147) | |
at org.apache.felix.cm.impl.ConfigurationManager.getConfiguration(ConfigurationManager.java:598) | |
at org.apache.felix.cm.impl.ConfigurationAdminImpl.getConfiguration(ConfigurationAdminImpl.java:159) | |
at org.apache.felix.fileinstall.internal.ConfigInstaller.getConfiguration(ConfigInstaller.java:337) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
service.pid=ntnu.opcua.hardware.viperwim | |
hardware=viperWIM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fartSensorObjectFolder = new FolderType(fartSensorNodeManager, fartSensorObjectId, "FartSensorObject", Locale.ENGLISH); | |
//FOLDER FOR MY FARTSENSOR | |
fartSensorNodeManager.addNodeAndReference(objectsFolder, fartSensorObjectFolder, Identifiers.Organizes); | |
//FART SENSOR DEVEICE TYPE | |
final NodeId fartSensorTypeId = new NodeId(ns, "FartSensorType"); | |
UaObjectType fartSensorType = new UaObjectTypeNode(fartSensorNodeManager, fartSensorTypeId, "FartSensorType", Locale.ENGLISH); | |
fartSensorNodeManager.addNodeAndReference(baseObjectsType, fartSensorType, Identifiers.HasSubtype); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" name="ModelFartSensorDriver"> | |
<implementation class="model.fartsensor.ModelFartSensor"/> | |
<reference bind="setServerApi" cardinality="1..1" interface="ntnu.opcua.server.api.ServerApi" name="ServerApi" policy="static" unbind="unsetServerApi"/> | |
<reference bind="setFartSensor" cardinality="1..1" interface="hardware.driver.api.HardwareAPI" name="HardwareAPI" policy="static" target="(hardware=fartsensor)" unbind="unsetFartSensor"/> | |
<service> | |
<provide interface="org.osgi.service.event.EventHandler"/> | |
</service> | |
<property name="event.topics" value="ntnu/opcua/server/STARTED"/> | |
<reference bind="setNameSpaceController" cardinality="1..1" interface="ntnu.opcua.namespace.controller.api.NameSpaceControllerAPI" name="NameSpaceControllerAPI" policy="static" unbind="unsetNameSpaceController"/> | |
</scr:component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Web.Mvc; | |
namespace BEKK_Radar.Web.Helpers.CustomFilters | |
{ | |
public class CorsActionFilter : ActionFilterAttribute, IActionFilter | |
{ | |
void IActionFilter.OnActionExecuting(ActionExecutingContext context) | |
{ | |
if (context.HttpContext.Request.RequestType.Equals("POST")) return; | |
context.HttpContext.Response.AddHeader("Access-Control-Allow-Origin","*"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
initTokens: function() { | |
var _this = this; | |
_(this.splitAndTrim(this.$originalInput.val())).each(function(token) { | |
_this.tokens.add(token); | |
}); | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
componentDidMount: function() { | |
console.log(this.getDOMNode()); | |
Highcharts.setOptions({ | |
global: { | |
timezoneOffset: -1*60 | |
} | |
}) | |
var that = this; | |
var name = this.props.name; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var valueUpdated = function(snapshot) { | |
var name = this.props.name; | |
if(chart) { | |
var series = chart.series[0]; | |
var x = Date.now(); | |
series.addPoint([x, snapshot.val().watervalue], true, true) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.createPlot = function(container, data, name) { | |
return chart1 = new Highcharts.Chart({ | |
chart: { | |
renderTo: container, | |
zoomType: 'x' | |
}, | |
title: { | |
text: name.charAt(0).toUpperCase() + name.substring(1)+'´s Moisture levels' | |
}, | |
subtitle: { |
OlderNewer