{"id":177,"date":"2021-01-13T02:31:02","date_gmt":"2021-01-13T02:31:02","guid":{"rendered":"https:\/\/www.larry4u.com\/co2diy.com\/?page_id=177"},"modified":"2021-01-23T18:47:25","modified_gmt":"2021-01-23T18:47:25","slug":"steps-to-read-data-from-scd30","status":"publish","type":"page","link":"https:\/\/www.larry4u.com\/co2diy.com\/diy-make-big-screen-monitor\/contents\/steps-to-read-data-from-scd30\/","title":{"rendered":"Steps to read data from SCD30"},"content":{"rendered":"<h3>Steps to read data from SCD30<\/h3>\n<ul>\n<li>run the following command on the xterm widow :\n<ul>\n<li>python3 -m pip install scd30_i2c<\/li>\n<\/ul>\n<\/li>\n<li>To test if the pi sees the sensor works, run the example.py file you copy to \/home\/pi directory.<\/li>\n<li>In your SSH terminal at the pi home directory, type:<\/li>\n<li>Python3 example.py<\/li>\n<li><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-82\" src=\"https:\/\/www.larry4u.com\/co2diy.com\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-09-171653-300x77.jpg\" sizes=\"(max-width: 300px) 100vw, 300px\" srcset=\"https:\/\/www.larry4u.com\/co2diy.com\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-09-171653-300x77.jpg 300w, https:\/\/www.larry4u.com\/co2diy.com\/wp-content\/uploads\/2021\/01\/Screenshot-2021-01-09-171653.jpg 490w\" alt=\"\" width=\"300\" height=\"77\" \/><\/li>\n<\/ul>\n<ul>\n<li>If you see this, the wiring is right.<\/li>\n<li>do a ctr-c to stop.<br \/>\n<!--nextpage--><\/li>\n<\/ul>\n<h3>Display data to the monitor.<\/h3>\n<ul>\n<li>Create a folder \u201cdata_folder\u201d with the following command:\n<ul>\n<li>\n<ul>\n<li>In the SSH terminal, type at the pi home directory:\n<ul>\n<li>mkdir data_folder<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li>Run the script scd30.py that you put in the pi directory.\n<ul>\n<li>from SSH type \u201cpython3 scd30.py\u201d<\/li>\n<\/ul>\n<\/li>\n<li><\/li>\n<li>This script reads the SCD30 data and updates the current.txt file that the Magic Mirror post to the screen. It also writes the data to a daily file in the data_folder.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.larry4u.com\/co2diy.com\/diy-make-big-screen-monitor\/contents\/create-a-crontab-job\/\">NEXT<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Steps to read data from SCD30 run the following command on the xterm widow : python3 -m pip install scd30_i2c To test if the pi sees the sensor works, run the example.py file you copy to \/home\/pi directory. In your <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/www.larry4u.com\/co2diy.com\/diy-make-big-screen-monitor\/contents\/steps-to-read-data-from-scd30\/\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":133,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":""},"_links":{"self":[{"href":"https:\/\/www.larry4u.com\/co2diy.com\/wp-json\/wp\/v2\/pages\/177"}],"collection":[{"href":"https:\/\/www.larry4u.com\/co2diy.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.larry4u.com\/co2diy.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.larry4u.com\/co2diy.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.larry4u.com\/co2diy.com\/wp-json\/wp\/v2\/comments?post=177"}],"version-history":[{"count":9,"href":"https:\/\/www.larry4u.com\/co2diy.com\/wp-json\/wp\/v2\/pages\/177\/revisions"}],"predecessor-version":[{"id":355,"href":"https:\/\/www.larry4u.com\/co2diy.com\/wp-json\/wp\/v2\/pages\/177\/revisions\/355"}],"up":[{"embeddable":true,"href":"https:\/\/www.larry4u.com\/co2diy.com\/wp-json\/wp\/v2\/pages\/133"}],"wp:attachment":[{"href":"https:\/\/www.larry4u.com\/co2diy.com\/wp-json\/wp\/v2\/media?parent=177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}