Comments (4)
Thanks for the report. Aguilaaj already has a fix. This will go into December integration.
from azure-iot-remote-monitoring.
Is this fix available somewhere? Just to... test it :)
from azure-iot-remote-monitoring.
Hi @dave1981 -
We plan to make a proper fix sometime early December, but go ahead and try this in ActionProcessor.cs:
private async Task ProcessAction(dynamic eventData)
{
if (eventData == null)
{
Trace.TraceWarning("Action event is null");
return;
}
try
{
// NOTE: all column names from ASA come out as lowercase; see
// https://social.msdn.microsoft.com/Forums/office/en-US/c79a662b-5db1-4775-ba1a-23df1310091d/azure-table-storage-account-output-property-names-are-lowercase?forum=AzureStreamAnalytics
string deviceId = eventData.deviceid;
string ruleOutput = eventData.ruleoutput;
if (ruleOutput.Equals("AlarmTemp", StringComparison.OrdinalIgnoreCase))
{
Trace.TraceInformation("ProcessAction: temperature rule triggered!");
double tempReading = ExtractDouble(eventData.reading);
string tempActionId = await _actionMappingLogic.GetActionIdFromRuleOutputAsync(ruleOutput);
if (!string.IsNullOrWhiteSpace(tempActionId))
{
await _actionLogic.ExecuteLogicAppAsync(
tempActionId,
deviceId,
"Temperature",
tempReading);
}
else
{
Trace.TraceError("ActionProcessor: tempActionId value is empty for temperatureRuleOutput '{0}'", ruleOutput);
}
}
if (ruleOutput.Equals("AlarmHumidity", StringComparison.OrdinalIgnoreCase))
{
Trace.TraceInformation("ProcessAction: humidity rule triggered!");
double humidityReading = ExtractDouble(eventData.reading);
string humidityActionId = await _actionMappingLogic.GetActionIdFromRuleOutputAsync(ruleOutput);
if (!string.IsNullOrWhiteSpace(humidityActionId))
{
await _actionLogic.ExecuteLogicAppAsync(
humidityActionId,
deviceId,
"Humidity",
humidityReading);
}
else
{
Trace.TraceError("ActionProcessor: humidityActionId value is empty for humidityRuleOutput '{0}'", ruleOutput);
}
}
}
catch (Exception e)
{
Trace.TraceError("ActionProcessor: exception in ProcessAction:");
Trace.TraceError(e.ToString());
}
}
from azure-iot-remote-monitoring.
It works! :)
from azure-iot-remote-monitoring.
Related Issues (20)
- Sending DeviceInfo message to the IotHub doesnโt create the device in remote monitoring solution HOT 1
- More than 5 telemetry fields are not displayed in the dashboard HOT 1
- Unable to add rules for new telemetry fields added through the DeviceInfo message HOT 1
- Unable to specify nested fields in the Device Info message for the telemetry fields HOT 1
- Issue while deploying seperate Web job sending sensor data instead of Telemetry Data HOT 1
- build local problem HOT 4
- scheduling jobs from webapp treats all parameters as string. HOT 1
- issue 451 follow up local build fail HOT 1
- 'build.cmd local' throws an exception (Cannot validate argument on parameter 'Tenant'.) HOT 3
- Rules using Boolean data aren't triggering HOT 1
- Preconfigured solution isn't honoring status code in device message body HOT 1
- web portal stuck in infinite redirect HOT 1
- Add redirect to v2 in readme doc header HOT 1
- Telemetry shows "no data available" HOT 2
- RMv2 shows "Version 1.0.0" under settings flyout. HOT 1
- about custom rules for iot suite v1 HOT 1
- Stream Analytics Query CosmosDB output not saving
- Incorrect deployment of Remote Monitoring solution HOT 1
- Telemetry shows "no data available" HOT 1
- Stop VM & Apps - Start & Get: Dashboard Configuration is Missing. Verify Contents of Webui-config.js HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-iot-remote-monitoring.