{"id":511,"date":"2021-02-16T15:50:54","date_gmt":"2021-02-16T15:50:54","guid":{"rendered":"https:\/\/www.larry4u.com\/co2diy.com\/?page_id=511"},"modified":"2023-09-28T14:22:30","modified_gmt":"2023-09-28T14:22:30","slug":"display-data-via-web-page","status":"publish","type":"page","link":"https:\/\/www.larry4u.com\/co2diy.com\/display-data-via-web-page\/","title":{"rendered":"Display data via web page"},"content":{"rendered":"<h1>Setting up a Web page<\/h1>\n<p>&nbsp;<\/p>\n<p>change directories and list contents<\/p>\n<ul>\n<li>cd \/var\/www\/html<\/li>\n<li>ls<\/li>\n<\/ul>\n<p>This will show files in the WEB directory.<\/p>\n<p>We will need to more files vand setup some symbolic links.<\/p>\n<ul>\n<li>sudo rm index.php<\/li>\n<li>sudo rm index.html<\/li>\n<li>wget https:\/\/larry4u.com\/data\/index.php<\/li>\n<li>ln -s \/home\/aranet\/current.txt<\/li>\n<li>ln -s \/home\/aranet\/left_current.txt<\/li>\n<li>ln -s \/home\/aranet\/Aranet.png<\/li>\n<\/ul>\n<p>Now do another ls and verify the files are there.<\/p>\n<ul>\n<li>ls -ltra<\/li>\n<\/ul>\n<p>This what you should see:<\/p>\n<pre>aranet@raspberrypi:\/var\/www\/html $ ls -ltra\r\ntotal 12\r\ndrwxr-xr-x 3 root root 4096 Sep 18 16:34 ..\r\n-rw-r--r-- 1 aranet aranet 1511 Sep 20 12:22 index.php\r\nlrwxrwxrwx 1 aranet aranet 20 Sep 20 12:23 current.txt -&gt; \/home\/pi\/current.txt\r\nlrwxrwxrwx 1 aranet aranet 25 Sep 20 12:23 left_current.txt -&gt; \/home\/pi\/left_current.txt\r\ndrwxrwxr-x 2 aranet www-data 4096 Sep 20 12:23 .<\/pre>\n<p>From your browser type your IP address (example 192.168.1.5)<\/p>\n<p>Now your page is up and running:<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-517 size-full\" src=\"https:\/\/www.larry4u.com\/co2diy.com\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-16-101829.jpg\" alt=\"\" width=\"1400\" height=\"602\" srcset=\"https:\/\/www.larry4u.com\/co2diy.com\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-16-101829.jpg 1400w, https:\/\/www.larry4u.com\/co2diy.com\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-16-101829-300x129.jpg 300w, https:\/\/www.larry4u.com\/co2diy.com\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-16-101829-1024x440.jpg 1024w, https:\/\/www.larry4u.com\/co2diy.com\/wp-content\/uploads\/2021\/02\/Screenshot-2021-02-16-101829-768x330.jpg 768w\" sizes=\"(max-width: 1400px) 100vw, 1400px\" \/><\/p>\n<p>To Keep the screen saver on do the following:<\/p>\n<h2>Keeping The Screen On In Console<\/h2>\n<p>When not running Raspbian, it can be a little trickier to keep the screen of your Raspberry Pi on. The different OS settings and versions of Raspberry Pi\u2019s have slightly different ways to handle the screen saver. The most consistent way I could find to disable the screen saver was to edit the consoleblank value.<\/p>\n<p>To see what the current length of time your Raspberry Pi screen is active, you can type\u00a0<strong>cat \/sys\/module\/kernel\/parameters\/consoleblank<\/strong>\u00a0into the console. the value of consoleblank is the number of seconds between inactivity and when the screen will turn off.<\/p>\n<p>To update the consoleblank value, you will need to edit it in the kernel. This can be done by opening the cmdline.txt file with:<\/p>\n<p><strong>sudo nano \/boot\/cmdline.txt<\/strong><\/p>\n<div class=\"g g-1\">\n<div class=\"g-single a-3\">\n<div id=\"360251972\"><\/div>\n<\/div>\n<\/div>\n<p>Next, you will need to set consoleblank to zero, or whatever length of time in seconds that you want the screen to remain on. To set the screen to remain on indefinitely, add\u00a0<strong>consoleblank=0<\/strong>\u00a0to the file.<\/p>\n<p>Now after rebooting your Raspberry Pi, your screen should stay on indefinitely.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setting up a Web page &nbsp; change directories and list contents cd \/var\/www\/html ls This will show files in the WEB directory. We will need to more files vand setup some symbolic links. sudo rm index.php sudo rm index.html wget <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/www.larry4u.com\/co2diy.com\/display-data-via-web-page\/\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","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\/511"}],"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=511"}],"version-history":[{"count":9,"href":"https:\/\/www.larry4u.com\/co2diy.com\/wp-json\/wp\/v2\/pages\/511\/revisions"}],"predecessor-version":[{"id":694,"href":"https:\/\/www.larry4u.com\/co2diy.com\/wp-json\/wp\/v2\/pages\/511\/revisions\/694"}],"wp:attachment":[{"href":"https:\/\/www.larry4u.com\/co2diy.com\/wp-json\/wp\/v2\/media?parent=511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}