From 163b359382764ce4ac25d6f56b513fc5a2c57c3b Mon Sep 17 00:00:00 2001 From: Ths2-9Y-LqJt6 Date: Thu, 23 Mar 2017 00:09:37 -0700 Subject: [PATCH 1/4] 0.2 with basic html, csv reading --- README.md | 2 +- data/2017-03-22 | 62 ++++++++++++++++++++++++++++++++++++++++++++++ data/2017-03-23 | 6 +++++ get_data.php | 36 +++++++++++++++++++++++++++ index.php | 27 ++++++++++++++++++++ parse_and_save.php | 4 +-- styles.css | 8 ++++++ 7 files changed, 142 insertions(+), 3 deletions(-) create mode 100644 data/2017-03-23 create mode 100644 get_data.php create mode 100644 index.php create mode 100644 styles.css diff --git a/README.md b/README.md index 0092b7a..c60813e 100644 --- a/README.md +++ b/README.md @@ -81,5 +81,5 @@ DATE,ID,TEMP,HUMIDITY ``` ## Version History - +0.1 - Mar 23, 2017 - reading CSV, super basic HTML output 0.1 - Mar 22, 2017 - parsing data, writing to CSV, crude readme, no html output \ No newline at end of file diff --git a/data/2017-03-22 b/data/2017-03-22 index f4e8aff..8a9e8a3 100644 --- a/data/2017-03-22 +++ b/data/2017-03-22 @@ -34,3 +34,65 @@ 2017-03-22 23:26:22,109,57.92,25 2017-03-22 23:26:55,211,72.5,34 2017-03-22 23:27:10,109,57.92,25 +2017-03-22 23:35:43,211,72.5,34 +2017-03-22 23:35:58,109,57.74,25 +2017-03-22 23:36:31,211,72.5,34 +2017-03-22 23:36:46,109,57.56,25 +2017-03-22 23:37:19,211,72.5,34 +2017-03-22 23:37:34,109,57.74,26 +2017-03-22 23:38:07,211,72.5,34 +2017-03-22 23:38:22,109,57.56,25 +2017-03-22 23:38:55,211,72.5,34 +2017-03-22 23:39:10,109,57.56,25 +2017-03-22 23:39:43,211,72.5,34 +2017-03-22 23:39:58,109,57.56,26 +2017-03-22 23:40:31,211,72.5,34 +2017-03-22 23:40:46,109,57.56,25 +2017-03-22 23:41:19,211,72.5,34 +2017-03-22 23:41:34,109,57.56,26 +2017-03-22 23:42:07,211,72.5,34 +2017-03-22 23:42:22,109,57.56,26 +2017-03-22 23:42:55,211,72.5,34 +2017-03-22 23:43:10,109,57.56,26 +2017-03-22 23:43:43,211,72.5,34 +2017-03-22 23:43:58,109,57.56,26 +2017-03-22 23:44:31,211,72.5,34 +2017-03-22 23:44:46,109,57.56,26 +2017-03-22 23:45:19,211,72.5,34 +2017-03-22 23:45:34,109,57.38,26 +2017-03-22 23:46:07,211,72.5,34 +2017-03-22 23:46:22,109,57.38,26 +2017-03-22 23:46:55,211,72.5,34 +2017-03-22 23:47:09,109,57.38,26 +2017-03-22 23:47:43,211,72.5,34 +2017-03-22 23:47:58,109,57.38,26 +2017-03-22 23:48:31,211,72.5,34 +2017-03-22 23:48:46,109,57.38,26 +2017-03-22 23:49:19,211,72.5,34 +2017-03-22 23:49:34,109,57.38,26 +2017-03-22 23:50:07,211,72.5,34 +2017-03-22 23:50:22,109,57.38,26 +2017-03-22 23:50:55,211,72.5,34 +2017-03-22 23:51:10,109,57.38,26 +2017-03-22 23:51:43,211,72.5,34 +2017-03-22 23:51:58,109,57.38,26 +2017-03-22 23:52:31,211,72.5,34 +2017-03-22 23:52:46,109,57.2,26 +2017-03-22 23:53:19,211,72.5,34 +2017-03-22 23:53:34,109,57.2,26 +2017-03-22 23:54:07,211,72.5,34 +2017-03-22 23:54:21,109,57.2,27 +2017-03-22 23:54:55,211,72.5,34 +2017-03-22 23:55:10,109,57.2,26 +2017-03-22 23:55:43,211,72.5,34 +2017-03-22 23:55:58,109,57.2,26 +2017-03-22 23:56:31,211,72.5,34 +2017-03-22 23:56:46,109,57.2,26 +2017-03-22 23:57:19,211,72.5,34 +2017-03-22 23:57:34,109,57.02,26 +2017-03-22 23:58:07,211,72.5,34 +2017-03-22 23:58:22,109,57.02,26 +2017-03-22 23:58:55,211,72.5,34 +2017-03-22 23:59:10,109,57.02,26 +2017-03-22 23:59:43,211,72.5,34 +2017-03-22 23:59:57,109,57.02,26 diff --git a/data/2017-03-23 b/data/2017-03-23 new file mode 100644 index 0000000..881ea94 --- /dev/null +++ b/data/2017-03-23 @@ -0,0 +1,6 @@ +2017-03-23 00:06:55,211,72.32,38 +2017-03-23 00:07:09,109,56.84,27 +2017-03-23 00:07:43,211,72.32,38 +2017-03-23 00:07:58,109,56.84,27 +2017-03-23 00:08:31,211,72.32,38 +2017-03-23 00:08:46,109,56.84,27 diff --git a/get_data.php b/get_data.php new file mode 100644 index 0000000..104ad74 --- /dev/null +++ b/get_data.php @@ -0,0 +1,36 @@ + Array( + * [2017-03-22 23:08:31] => Array( + * [0] => 2017-03-22 23:08:31 + * [1] => 211 + * [2] => 72.5 + * [3] => 34 + * ) + * + * @param string $file where CSV data is + * @return array of formatted CSV data + */ + +function getData($file){ + if (is_file($file) && is_readable($file)){ + $data = file($file); + $goodData = array(); + foreach ($data as $line){ + $lineArray = explode(",", $line); + $goodData[$lineArray[1]][$lineArray[0]] = $lineArray; + } + foreach (array_keys($goodData) as $id){ + asort($goodData[$id]); + } + + return $goodData; + } else { + return array(); + } +} \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..07fe66e --- /dev/null +++ b/index.php @@ -0,0 +1,27 @@ + 'Inside', + '109' => 'Outside', +); + +$currentTempHtml = ''; +foreach (array_keys($allData) as $key){ + $temp = array_pop($allData[$key])[2]; + $label = $labels[$key]; + $currentTempHtml .= "{$temp}° $label
\n"; +} + +?> + + + +

+

+

+ diff --git a/parse_and_save.php b/parse_and_save.php index 808f561..15363f4 100755 --- a/parse_and_save.php +++ b/parse_and_save.php @@ -40,11 +40,11 @@ function cleanseData($data) */ function saveArrayToCsv($path, $file, $array) { - if (is_dir($path) && is_writable($path . '/' . $file) && is_array($array) && sizeof($array) > 0) { + if (is_dir($path) && is_array($array) && sizeof($array) > 0) { echo 'It\'s ' . $array[2] . ' at ID ' . $array[1] . " - data written to " . $path . '/' . $file ."\n"; file_put_contents($path . '/' . $file, implode(',' , $array) . "\n",FILE_APPEND); } else { - echo "failed to write to $path - not a dir, not writable or invalid/empty array passed :("; + echo "failed to write to {$path}/{$file} - not a dir, not writable or invalid/empty array passed :("; } } diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..56bf276 --- /dev/null +++ b/styles.css @@ -0,0 +1,8 @@ +body { + margin: 10px; + padding: 10px; + background-color: black; + color: white; + font-size: 20pt; + font-family: sans-serif; +} \ No newline at end of file From 018908e5d088aec22398e8ace30e4c3d26dfddb1 Mon Sep 17 00:00:00 2001 From: Ths2-9Y-LqJt6 Date: Thu, 23 Mar 2017 00:13:23 -0700 Subject: [PATCH 2/4] add screenshot --- README.md | 6 +++++- data/2017-03-23 | 10 ++++++++++ screenshot.png | Bin 0 -> 18145 bytes 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 screenshot.png diff --git a/README.md b/README.md index c60813e..3164c93 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # YANPIWS -Yet Another Pi Weather Station (YANPIWS)- My explorations in getting a Rasberry Pi showing local time and weather +Yet Another Pi Weather Station (YANPIWS) - My explorations in getting a Rasberry Pi showing local time and weather ## Background @@ -19,6 +19,10 @@ Goals for this project are: * Show weather forecast from some provider * Show show current weather from some provider +## Screenshot + +![](./screenshot.png) + ## Hardware * SDR USB dongle: http://amzn.to/2nc5MhX diff --git a/data/2017-03-23 b/data/2017-03-23 index 881ea94..3483468 100644 --- a/data/2017-03-23 +++ b/data/2017-03-23 @@ -4,3 +4,13 @@ 2017-03-23 00:07:58,109,56.84,27 2017-03-23 00:08:31,211,72.32,38 2017-03-23 00:08:46,109,56.84,27 +2017-03-23 00:09:19,211,72.32,38 +2017-03-23 00:09:34,109,56.84,27 +2017-03-23 00:10:07,211,72.32,38 +2017-03-23 00:10:22,109,56.84,27 +2017-03-23 00:10:55,211,72.32,38 +2017-03-23 00:11:10,109,56.66,27 +2017-03-23 00:11:43,211,72.32,38 +2017-03-23 00:11:58,109,56.84,28 +2017-03-23 00:12:31,211,72.32,38 +2017-03-23 00:12:46,109,56.84,28 diff --git a/screenshot.png b/screenshot.png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m z>O)EWd|AU}WU~CHl=EK>=h{2F73ni7unDFfyZ7^lgAp=2Ta#{yWpKeKA3jn#BB1P1 ze(dc?R9rhrWTiDg@>si&Cr&r{CbZ#PoyGV8&+70gFwOCk2j2&PE}kdrxu2=T04Z+S z!Jus-V%CwHDZd2{Dcg8X`-() zyekPB6NMq{6ymXeyGo0rYyy4geN7jehMtzBdU$BESqLdve-c%)?)S)@`LqO=sIUpD z6sm-{k6t3g3OCH~rC$kR9M0Xaz4@JiAKECK%H13pr2 zS!Mo%PwGdSy* z{bZD8Qw*&KQ8ffs{zU?Xj~y>$#H~>@i)J@mDJlu@kzo-D55wBC@c#Lq5qlu$qM6c| zkj3gr(W12bf|cODI{U%5X5da6KvYh+O2B1&7u~=NU8n2 z8Uz<;ve-RdmOyMqReA=o3^~Sd*sI0H!kl}{){jRHx|p3xjD z6JpHa*I}GZnQC>z z2*n~I=`s`8W?k*XqZp*Xm_}LNFgUoq1Ue@L-ao+yn7=1fVN*qO2CO=E=SAvVb5;xN zObTUCN(`WlUVk;-U2p^SL9S#deEej=2ryfg{)upG)RPYxZ6$q#)~+Sm+Q~~Q@>(XI z9_R7@7CuwtfH!T(?{{SJkv&1;hy2eAIIxsb1_3{>R9*{@1`2?zg8-Wq@az8?r;K~Y zbn9=1hB*#=r}dxz`dOf{`D9AT_kvd!6PPDvL`+j@RDM-tHoJ#y{`>yr4j)B8ON1x6 zcnXwFe;qXQtlHv}e-}?zpZc)*Vn&3JYh!RIaCI>cTfE%48|HWSE`Sb@q!?9y*m8s5 j*vF^>Du+P9uK)ZF!ih`rD!%}G+6)Yyu6{1-oD!M<*I9(% literal 0 HcmV?d00001 From 91ffdd33be8ba0cbb373ae229928e864baba785f Mon Sep 17 00:00:00 2001 From: Ths2-9Y-LqJt6 Date: Thu, 23 Mar 2017 00:14:15 -0700 Subject: [PATCH 3/4] move screenshot to top --- README.md | 6 ++---- data/2017-03-23 | 3 +++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3164c93..be43f82 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # YANPIWS Yet Another Pi Weather Station (YANPIWS) - My explorations in getting a Rasberry Pi showing local time and weather +![](./screenshot.png) + ## Background With a daily workflow that involves checking out a repo, making @@ -19,10 +21,6 @@ Goals for this project are: * Show weather forecast from some provider * Show show current weather from some provider -## Screenshot - -![](./screenshot.png) - ## Hardware * SDR USB dongle: http://amzn.to/2nc5MhX diff --git a/data/2017-03-23 b/data/2017-03-23 index 3483468..4f82976 100644 --- a/data/2017-03-23 +++ b/data/2017-03-23 @@ -14,3 +14,6 @@ 2017-03-23 00:11:58,109,56.84,28 2017-03-23 00:12:31,211,72.32,38 2017-03-23 00:12:46,109,56.84,28 +2017-03-23 00:13:19,211,72.32,38 +2017-03-23 00:13:34,109,56.66,27 +2017-03-23 00:14:07,211,72.32,38 From 200d4b42c0a399c24a840e39cd1e3c7b9e37ca4d Mon Sep 17 00:00:00 2001 From: Ths2-9Y-LqJt6 Date: Thu, 23 Mar 2017 00:14:55 -0700 Subject: [PATCH 4/4] fix version formatting --- README.md | 4 ++-- data/2017-03-23 | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index be43f82..72f29c5 100644 --- a/README.md +++ b/README.md @@ -83,5 +83,5 @@ DATE,ID,TEMP,HUMIDITY ``` ## Version History -0.1 - Mar 23, 2017 - reading CSV, super basic HTML output -0.1 - Mar 22, 2017 - parsing data, writing to CSV, crude readme, no html output \ No newline at end of file +* 0.2 - Mar 23, 2017 - reading CSV, super basic HTML output +* 0.1 - Mar 22, 2017 - parsing data, writing to CSV, crude readme, no html output \ No newline at end of file diff --git a/data/2017-03-23 b/data/2017-03-23 index 4f82976..6f66a22 100644 --- a/data/2017-03-23 +++ b/data/2017-03-23 @@ -17,3 +17,4 @@ 2017-03-23 00:13:19,211,72.32,38 2017-03-23 00:13:34,109,56.66,27 2017-03-23 00:14:07,211,72.32,38 +2017-03-23 00:14:22,109,56.84,28