User Tools

Site Tools


record_temperature_from_lexibook_asm30_sensor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
record_temperature_from_lexibook_asm30_sensor [2016/04/02 12:12]
sgripon [Assembly]
record_temperature_from_lexibook_asm30_sensor [2016/04/04 13:24] (current)
sgripon [The arduino sketch]
Line 46: Line 46:
 The following sketch reads the temperature and outputs to the serial line in JSON format. In this sketch, I use RFControl library as is, so it is not very optimized for my needs. However, for now it works and it is enough! The following sketch reads the temperature and outputs to the serial line in JSON format. In this sketch, I use RFControl library as is, so it is not very optimized for my needs. However, for now it works and it is enough!
  
-<code c++>+<file c++ SmartHomeBox_sgripon.ino>
 #include <​RFControl.h>​ #include <​RFControl.h>​
  
Line 69: Line 69:
     Serial.print(",​ \"​channel\":​ ");     Serial.print(",​ \"​channel\":​ ");
     Serial.print(channel);​     Serial.print(channel);​
-    Serial.print("​ }\r\n");+    Serial.print("​ }\n");
 } }
  
Line 130: Line 130:
   printData(); ​   printData(); ​
 } }
-</code>+</file>
 ===== Next Step ===== ===== Next Step =====
  
-Next step is to be able to get the temperature using a raspberry ​pi connected to the arduino and display it in domoticz.+  * [[add_temperature_sensor_in_domoticz|Add ​temperature ​sensor in Domoticz]] ​using a respberry ​pi.
  
 ===== References ===== ===== References =====
record_temperature_from_lexibook_asm30_sensor.1459591939.txt.gz ยท Last modified: 2016/04/02 12:12 by sgripon