{"id":3501,"date":"2017-11-26T15:56:06","date_gmt":"2017-11-26T14:56:06","guid":{"rendered":"http:\/\/meteotemplate.com\/blog\/?p=3501"},"modified":"2017-11-26T15:56:06","modified_gmt":"2017-11-26T14:56:06","slug":"qa-nov-26-2017","status":"publish","type":"post","link":"https:\/\/meteotemplate.com\/blog\/?p=3501","title":{"rendered":"Q\/A &#8211; Nov 26, 2017"},"content":{"rendered":"<p>Hi guys,<\/p>\n<p>another set of common questions\/answers and tips.<\/p>\n<ol>\n<li><em><strong>Why is it not possible to update the database directly and I must use the API?<\/strong><\/em><br \/>\nThis is because the API script is quite complex and apart from just saving data to the database, it handles data validation, caching, current conditions file creation, data aggregation etc.<\/li>\n<li><em><strong>Do you prefer people ask on the forum or email you?<\/strong><\/em><br \/>\nThis depends. In general I would prefer the forum because other users can step in if they know the answer before I have time to reply, and another advantage is that other users with similar issue can find the answer there later on and don\u00b4t even have to ask (assuming they look for it :D). However, obviously if your issue is very specific, you need to provide your password, API key etc., then email is better. There is no difference in how soon I will reply. I more or less check them equally frequently.<\/li>\n<li><em><strong>I tried importing data from WU, but it is not working.<\/strong><\/em><br \/>\nCheck your wind direction field. A common mistake is that people provide field number of the wind direction column, which contains the direction as a word, eg. \u201cNorth\u201d. There is, however, another field, which specifies the direction more precisely as a number between 0 and 360. It is crucial that you provide the field number of this one, the wind direction field in the database is numeric and any non-numeric value will result in error.<\/li>\n<li><em><strong>Do you plan to migrate Meteotemplate.com to https?<\/strong><\/em><br \/>\nNot currently<\/li>\n<li><em><strong>Is it possible to use more than one column for the mobile homepage?<\/strong><\/em><br \/>\nYes it is, although I do not recommend it. It is better to use multiple blocks in places where the blocks are small to span the entire width. This way some blocks still can span the entire width and be viewed nicely on a smaller screen.<\/li>\n<\/ol>\n<div style=\"min-height: 30px;display: inline-block;\"><input id=\"3501\" style=\"float: right;max-width: 50px;\" src=\"https:\/\/meteotemplate.com\/blog\/wp-content\/plugins\/wp-advanced-pdf\/asset\/images\/pdf.png\" alt=\"#TB_inline?height=230&amp;width=400&amp;inlineId=examplePopup1\" title=\"Export pdf to your Email\" class=\"thickbox export-pdf\" type=\"image\" value=\"Export to PDF\" \/><\/div>","protected":false},"excerpt":{"rendered":"<p>Hi guys, another set of common questions\/answers and tips. Why is it not possible to update the database directly and I must use the API? This is because the API script is quite complex and apart from just saving data to the database, it handles data validation, caching, current conditions file creation, data aggregation etc. &#8230; <a title=\"Q\/A &#8211; Nov 26, 2017\" class=\"read-more\" href=\"https:\/\/meteotemplate.com\/blog\/?p=3501\">Read more<span class=\"screen-reader-text\">Q\/A &#8211; Nov 26, 2017<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":2590,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[493],"tags":[335,7],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/meteotemplate.com\/blog\/wp-content\/uploads\/2017\/05\/question.png","_links":{"self":[{"href":"https:\/\/meteotemplate.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3501"}],"collection":[{"href":"https:\/\/meteotemplate.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meteotemplate.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meteotemplate.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/meteotemplate.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3501"}],"version-history":[{"count":1,"href":"https:\/\/meteotemplate.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3501\/revisions"}],"predecessor-version":[{"id":3502,"href":"https:\/\/meteotemplate.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3501\/revisions\/3502"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/meteotemplate.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/2590"}],"wp:attachment":[{"href":"https:\/\/meteotemplate.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meteotemplate.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meteotemplate.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}