Power Meter Data App

Amanda Kiannejad
June 23,2021

What will be discussed:

  • Why this App?

  • Code

  • Using the Interface

Why build this Application?

The SignalFox Power meter produces wireless, time-stamped data received remotely from the gateway at the data source; then, it is transmitted to a sensor up to 5 miles away. The data can be viewed in active/receive mode or in historical mode. This presentation is for the historical mode.

Slide With Code

One of the most important calculations in the app is that of rolling average. It is a time series calculation in how the power changes over time

library(tidyverse)
library(zoo)
data <-read.csv("C:/Users/amand/OneDrive/Desktop/Shiny/PowerMeterData-1.csv")
head(data)
          time     dBm
1 07:40:38.538 -30.044
2 07:40:36.415 -31.216
3 07:40:34.242 -24.923
4 07:40:32.057 -22.441
5 07:40:29.841 -20.821
6 07:40:27.648 -18.718
data <-data%>%
  mutate(rollingaverage=rollmean(dBm,5, fill=NA ))
head(data)
          time     dBm rollingaverage
1 07:40:38.538 -30.044             NA
2 07:40:36.415 -31.216             NA
3 07:40:34.242 -24.923       -25.8890
4 07:40:32.057 -22.441       -23.6238
5 07:40:29.841 -20.821       -20.7182
6 07:40:27.648 -18.718       -18.5668

Using the Interface

plot of chunk unnamed-chunk-2

  • Arrow #1 : This is the README file for the App in contains all the documentation explaining what the app does and how to use it.

  • Arrow #2 &3 : This is the clickbox that activates the Rolling average This activates the density plot for the histogram, respectively

Interface Part2:

plot of chunk unnamed-chunk-3

-Arrow #4 and #5: These allow the user to download their own data and choose with the dropdown menu, there is data pre-loaded for use.

-Arrow # 6: This is choose between Cumulative and Complimentary Cumulative Distribution Functions.

-Arrow #7: The Quit function

Thank You

My app is located at Shiny plot of chunk unnamed-chunk-4