{"id":338,"date":"2017-12-13T11:28:52","date_gmt":"2017-12-13T11:28:52","guid":{"rendered":"https:\/\/pandorafms.com\/library\/?p=338"},"modified":"2017-12-13T11:33:41","modified_gmt":"2017-12-13T11:33:41","slug":"stock-monitoring","status":"publish","type":"post","link":"https:\/\/pandorafms.com\/library\/stock-monitoring\/","title":{"rendered":"Stock monitoring"},"content":{"rendered":"<p>This is a sample on how monitoring Stock values from public websites and put values in Pandora, ready to warn you by SMS or put data inside to make fancy graphs.<\/p>\n<h2>Module data<\/h2>\n<pre>module_begin\u00a0\r\nmodule_name Google_Stock\u00a0\r\nmodule_type generic_data\u00a0\r\nmodule_description Stock value of Google (GOOG) in Nasdac\u00a0\r\nmodule_exec echo -e \"GET http:\/\/download.finance.yahoo.com\/d\/quotes.csv?s=GOOG&amp;f=sl1d1t1c1ohgv&amp;e=.csv HTTP\/1.0\\n\\n\" | nc -w 10 download.finance.yahoo.com 80 | tail -1 | cut -f 2 -d \",\"\u00a0\r\nmodule_end<\/pre>\n<p>\u00a0<\/p>\n<pre>module_begin\u00a0\r\nmodule_name Intel_Stock\u00a0\r\nmodule_type generic_data\u00a0\r\nmodule_description Stock value of Intel (INTC) in Nasdac\u00a0\r\nmodule_exec echo -e \"GET http:\/\/download.finance.yahoo.com\/d\/quotes.csv?s=INTC&amp;f=sl1d1t1c1ohgv&amp;e=.csv HTTP\/1.0\\n\\n\" | nc -w 10 download.finance.yahoo.com 80 | tail -1 | cut -f 2 -d \",\"\u00a0\r\nmodule_end\u00a0<\/pre>\n<pre>module_begin\u00a0\r\nmodule_name Oracle_Stock\u00a0\r\nmodule_type generic_data\u00a0\r\nmodule_description Stock value of Oracle (ORCL) in Nasdac\u00a0\r\nmodule_exec echo -e \"GET http:\/\/download.finance.yahoo.com\/d\/quotes.csv?s=ORCL&amp;f=sl1d1t1c1ohgv&amp;e=.csv HTTP\/1.0\\n\\n\" | nc -w 10 download.finance.yahoo.com 80 | tail -1 | cut -f 2 -d \",\"\u00a0\r\nmodule_end\u00a0<\/pre>\n<pre>module_begin\u00a0\r\nmodule_name Dell_Stock\u00a0\r\nmodule_type generic_data\u00a0\r\nmodule_description Stock value of DELL (DELL) in Nasdac\u00a0\r\nmodule_exec echo -e \"GET http:\/\/download.finance.yahoo.com\/d\/quotes.csv?s=DELL&amp;f=sl1d1t1c1ohgv&amp;e=.csv HTTP\/1.0\\n\\n\" | nc -w 10 download.finance.yahoo.com 80 | tail -1 | cut -f 2 -d \",\"\u00a0\r\nmodule_end\u00a0<\/pre>\n<pre>module_begin\u00a0\r\nmodule_name Microsoft_Stock\u00a0\r\nmodule_type generic_data\u00a0\r\nmodule_description Stock value of Microsoft (MSFT) in Nasdac\u00a0\r\nmodule_exec echo -e \"GET http:\/\/download.finance.yahoo.com\/d\/quotes.csv?s=MSFT&amp;f=sl1d1t1c1ohgv&amp;e=.csv HTTP\/1.0\\n\\n\" | nc -w 10 download.finance.yahoo.com 80 | tail -1 | cut -f 2 -d \",\"\u00a0\r\nmodule_end\u00a0<\/pre>\n<pre>module_begin\u00a0\r\nmodule_name AMD_Stock\u00a0\r\nmodule_type generic_data\u00a0\r\nmodule_description Stock value of AMD (AMD) in Nasdac\u00a0\r\nmodule_exec echo -e \"GET http:\/\/download.finance.yahoo.com\/d\/quotes.csv?s=AMD&amp;f=sl1d1t1c1ohgv&amp;e=.csv HTTP\/1.0\\n\\n\" | nc -w 10 download.finance.yahoo.com 80 | tail -1 | cut -f 2 -d \",\"\u00a0\r\nmodule_end\u00a0<\/pre>\n<pre>module_begin\u00a0\r\nmodule_name Inditex_Ibex35\u00a0\r\nmodule_type generic_data\u00a0\r\nmodule_description Stock value of Inditex in Ibex35\u00a0\r\nmodule_exec echo -e \"GET http:\/\/abc.hoyinversion.com\/cotizaciones\/Inditex-M HTTP\/1.0\\n\\n\" | nc -w 10 abc.hoyinversion.com 80 | grep '&lt;!-- &lt;td&gt;&lt;div class=\"sube\"&gt;[0-9]*\\.[0-9]*(' | grep -o \"[0-9]*\\.[0-9]*\" | head -1\u00a0\r\nmodule_end\u00a0<\/pre>\n<pre>module_begin\u00a0\r\nmodule_name Indra-A_Ibex35\u00a0\r\nmodule_type generic_data\u00a0\r\nmodule_description Stock value of Indra-A in Ibex35\u00a0\r\nmodule_exec echo -e \"GET http:\/\/abc.hoyinversion.com\/cotizaciones\/Indra-a-NE HTTP\/1.0\\n\\n\" | nc -w 10 abc.hoyinversion.com 80 | grep '&lt;!-- &lt;td&gt;&lt;div class=\"sube\"&gt;[0-9]*\\.[0-9]*(' | grep -o \"[0-9]*\\.[0-9]*\" | head -1\u00a0\r\nmodule_end<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This is a sample on how monitoring Stock values from public websites and put values in Pandora, ready to warn you by SMS or put data inside to make fancy graphs. Module data module_begin\u00a0 module_name Google_Stock\u00a0 module_type generic_data\u00a0 module_description Stock value of Google (GOOG) in Nasdac\u00a0 module_exec echo -e &#8220;GET http:\/\/download.finance.yahoo.com\/d\/quotes.csv?s=GOOG&amp;f=sl1d1t1c1ohgv&amp;e=.csv HTTP\/1.0\\n\\n&#8221; | nc -w [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[4],"tags":[69],"_links":{"self":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/338"}],"collection":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/comments?post=338"}],"version-history":[{"count":0,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/posts\/338\/revisions"}],"wp:attachment":[{"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/media?parent=338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/categories?post=338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandorafms.com\/library\/wp-json\/wp\/v2\/tags?post=338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}