# IoT Open-Source Architecture for the Maintenance of Building Facilities
## 5 Results  
The proposed framework was tested on the fan coil in the room with connected sensors. The FC sensors were linked to the set-up speed and each time the speed was adjusted. The final result of the dashboard with the acquired data at speed 1 is shown in Figure 12a--the motor power consumption values are as follows: V1 = 244.1, I1 = 0.1 A, RP1 = 32.3 and PF = 0.899. Fan coil data at speed 2 on the dashboard are shown in Figure 12b--the motor power consumption values are V1 = 241.5, I1 = 0.2 A, RP1 = 38.1 and PF1 = 0.924. Finally speed 3 on the dashboard is shown in Figure 12c--the motor power was measured as V1 = 244, I1 = 0.2 A, RP1 = 47.8 and PF1 = 0.944. The average temperature of the FC motor was RTD = 23.43 \({}^{\circ}\)C and average outlet temperature was indicating as T2 = 29.45 \({}^{\circ}\)C because the fan coil was heating the room. Rooms' dashboards with physical parameters acquired from sensors are visualized in Figure 12d. The Rpi3B server board memory was not sufficient for the big data storage To avoid overloading the local server memory, only daily maximum and minimum values were sent from the sensor board to the cloud and BIM server. The fault detection methodology described in the previous section was applied to the system. If the values supplied by sensors exceed the predictable ranges, the system sends alarm signals or real-time notifications to the facility managers and operators using Telegram or SMS. On the Forge platform, IoT data are integrated into the BIM using the Forge reference application ([[https://github.com/Autodesk-Forge/forge-dataviz-iot-reference-app](https://github.com/Autodesk-Forge/forge-dataviz-iot-reference-app)]([https://github.com/Autodesk-Forge/forge-dataviz-iot-reference-app](https://github.com/Autodesk-Forge/forge-dataviz-iot-reference-app)), accessed on 6 April 2021) and two NPM modules (React UI components and Client-Server Data-Module-Components): NPM is the packet manager for Node.js and it is an open-source project helping to support JavaScript developers. Installation and running of the Forge reference application started by cloning the application from GitHub repository (git clone [[https://github.com/Autodesk-Forge/forge-dataviz-iot-reference-app.git](https://github.com/Autodesk-Forge/forge-dataviz-iot-reference-app.git)]([https://github.com/Autodesk-Forge/forge-dataviz-iot-reference-app.git](https://github.com/Autodesk-Forge/forge-dataviz-iot-reference-app.git)), accessed on 6 April 2021) to the VScode using lines in the console of the editor. The project folder is composed of client-side codes, a guide on how to upload the Revit model, router configuration, and client-server configuration files that speed up work for developers on their custom applications. The structure of the folders and files of the reference application is shown in Figure 13.  
In the reference application an.env file is created and added to Forge CLIENT_ID, CLIENT_SECRET, and Forge_BUCKET; in this way the custom 3D building model is added to the project (Figure 14). By running the project, the custom 3D model is then uploaded in a static browser (http://localhost:9000/upload, accessed on 6 April 2021). \begin{table}
\begin{tabular}{c c} \hline \hline
**Measured Parameters** & **Formulas with Measuring Units** \\ \hline Real Power (RP) & RP (W) \\ Apparent Power (AP) & AP = Irms \(\times\) Vrms (W) \\ Vrms & Rms Voltage (V) \\ Irms & Rms current (mA) \\ Estimated Power (EP) & EP = Irms \(\times\) Vest (W) \\ Power Factor (PF) & PF = RP/AP (no units) \\ Temperature & Temperature (\({}^{\circ}\)C) \\ Frequency & Frequency (Hz) \\ RTD Temperature & Temperature (\({}^{\circ}\)C) \\ \hline \hline \end{tabular}
\end{table} 
Table 4: FC Measured physical parameters. Figure 12: Node-Red dashboard results: (**a**) FC at speed 1; (**b**) FC at speed 2; (**c**) FC at speed 3; and (**d**) room dashboard values coming from the ESP8266 sensor node. Figure 13: Reference application directory structure. To interact with uploaded model objects on the Forge Viewer, Dblds are required.