{"id":238,"date":"2018-11-06T18:41:12","date_gmt":"2018-11-06T18:41:12","guid":{"rendered":"http:\/\/potinpot.industriales.upm.es\/?page_id=238"},"modified":"2018-11-22T13:28:10","modified_gmt":"2018-11-22T13:28:10","slug":"para-saber-mas","status":"publish","type":"page","link":"http:\/\/potinpot.industriales.upm.es\/index.php\/para-saber-mas\/","title":{"rendered":"Para saber m\u00e1s"},"content":{"rendered":"<p><script>\nfunction calcula(){\n    var operando1 = document.calc.operando1.value\n    var operando2 = document.calc.operando2.value \n    var result = eval(2.994+0.006523*operando1 + 0.4819*operando2-0.00009345*operando1*operando1+0.006213*operando1*operando2-0.00145*operando2*operando2)\n    document.calc2.resultado.value = result.toFixed(2)\n    var result2 = eval(operando1 +'*'+ operando2)\n    document.calc2.resultado2.value = result2\n}\n<\/script><\/p>\n<p><script>\nfunction showhide() {\n       \tcalc2.style.display = 'block';\n     }\n<\/script><\/p>\n<p>En esta p\u00e1gina tienes una calculadora para estimar el enfriamiento producido dentro del recipiente pot-in-pot.<\/p>\n<p>Como gu\u00eda te mostramos los datos actuales de la temperatura y humedad relativa proporcionados por la AEMET para la estaci\u00f3n de Madrid-Retiro:<\/p>\n<p>[insert_php]<br \/>\n$request = wp_remote_get(&#8216;https:\/\/opendata.aemet.es\/opendata\/api\/observacion\/convencional\/datos\/estacion\/3195?api_key=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJpc21hZG1AZ21haWwuY29tIiwianRpIjoiMTAwZjk1NTYtYjZkMi00YjFhLTg5YTQtNjEyMGQyMGQzMzZkIiwiaXNzIjoiQUVNRVQiLCJpYXQiOjE1NDE1ODEyMjUsInVzZXJJZCI6IjEwMGY5NTU2LWI2ZDItNGIxYS04OWE0LTYxMjBkMjBkMzM2ZCIsInJvbGUiOiIifQ.NhKWSTAURgqV8Xsy5Ri7ZXqToapn9GFmd4htmY7-y6U&#8217;);<br \/>\n$body = wp_remote_retrieve_body( $request );<br \/>\n$data = json_decode( $body , true);<br \/>\n\/\/echo gettype($data);<br \/>\n\/\/echo $data[datos];<br \/>\n$request2 = wp_remote_get($data[datos]);<br \/>\n$body2 = wp_remote_retrieve_body( $request2 );<br \/>\n$data2 = json_decode( $body2 , true);<br \/>\n$humrel=$data2[22][hr];<br \/>\n$temp=$data2[22][ta];<br \/>\necho \u00abHUMEDAD RELATIVA ACTUAL: <b>\u00ab.$humrel.\u00bb%<\/b><br \/>\n\u00ab;<br \/>\necho \u00abTEMPERATURA ACTUAL: <b>\u00ab.$temp.\u00bb \u00baC<\/b><br \/>\n\u00ab;<br \/>\n[\/insert_php]<\/p>\n<form name=\"calc\">Humedad relativa (%)<br \/>\n<input name=\"operando1\" size=\"12\" type=\"Text\" value=\"[insert_php]echo $humrel; [\/insert_php]\" \/><br \/>\nTemperatura<br \/>\n<input name=\"operando2\" size=\"12\" type=\"Text\" value=\"[insert_php]echo $temp; [\/insert_php]\" \/><br \/>\n<input name=\"\" type=\"Button\" value=\" Calcular\" onclick = \"showhide();calcula();\" \/><br \/>\n <br \/>\n<\/form>\n<form style=\"display: none;\" name=\"calc2\"><b>Resultado<\/b>:<br \/>Temperatura interior (\u00baC)<br \/>\n<input name=\"resultado\" size=\"12\" type=\"Text\" value=\"0\" \/><br \/>\n<!--Temperatura pared(\u00baC)\n<input name=\"resultado2\" size=\"12\" type=\"Text\" value=\"0\" \/>\n<\/form>\n\n--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>En esta p\u00e1gina tienes una calculadora para estimar el enfriamiento producido dentro del recipiente pot-in-pot. Como gu\u00eda te mostramos los datos actuales de la temperatura y humedad relativa proporcionados por la AEMET para la estaci\u00f3n de Madrid-Retiro: [insert_php] $request = wp_remote_get(&#8216;https:\/\/opendata.aemet.es\/opendata\/api\/observacion\/convencional\/datos\/estacion\/3195?api_key=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJpc21hZG1AZ21haWwuY29tIiwianRpIjoiMTAwZjk1NTYtYjZkMi00YjFhLTg5YTQtNjEyMGQyMGQzMzZkIiwiaXNzIjoiQUVNRVQiLCJpYXQiOjE1NDE1ODEyMjUsInVzZXJJZCI6IjEwMGY5NTU2LWI2ZDItNGIxYS04OWE0LTYxMjBkMjBkMzM2ZCIsInJvbGUiOiIifQ.NhKWSTAURgqV8Xsy5Ri7ZXqToapn9GFmd4htmY7-y6U&#8217;); $body = wp_remote_retrieve_body( $request ); $data = json_decode( $body , true); \/\/echo gettype($data); \/\/echo &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/potinpot.industriales.upm.es\/index.php\/para-saber-mas\/\" class=\"more-link\">Continuar leyendo<span class=\"screen-reader-text\"> \u00abPara saber m\u00e1s\u00bb<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-238","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/potinpot.industriales.upm.es\/index.php\/wp-json\/wp\/v2\/pages\/238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/potinpot.industriales.upm.es\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/potinpot.industriales.upm.es\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/potinpot.industriales.upm.es\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/potinpot.industriales.upm.es\/index.php\/wp-json\/wp\/v2\/comments?post=238"}],"version-history":[{"count":234,"href":"http:\/\/potinpot.industriales.upm.es\/index.php\/wp-json\/wp\/v2\/pages\/238\/revisions"}],"predecessor-version":[{"id":484,"href":"http:\/\/potinpot.industriales.upm.es\/index.php\/wp-json\/wp\/v2\/pages\/238\/revisions\/484"}],"wp:attachment":[{"href":"http:\/\/potinpot.industriales.upm.es\/index.php\/wp-json\/wp\/v2\/media?parent=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}