{"id":1146,"date":"2022-01-10T13:40:19","date_gmt":"2022-01-10T12:40:19","guid":{"rendered":"http:\/\/www.vatland.no\/?p=1146"},"modified":"2022-01-17T13:53:45","modified_gmt":"2022-01-17T12:53:45","slug":"list-nordpool-electric-prices-using-powershell","status":"publish","type":"post","link":"https:\/\/www.vatland.no\/index.php\/list-nordpool-electric-prices-using-powershell\/","title":{"rendered":"List NordPool electric prices using powershell."},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This is a small script using nordpoolgroup api to get todays electric prices for Kr.sand &#8211; Norway. This is the same API as their webpage uses. All the urls and parameters can be found using developermode in the browser. This code is only to demonstrate that it can be done. It all started when i first saw the Homeassistant integration on github .<a href=\"https:\/\/github.com\/custom-components\/nordpool\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"https:\/\/github.com\/custom-components\/nordpool\">https:\/\/github.com\/custom-components\/nordpool<\/a><\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\n$today=Get-Date -Format &quot;d-M-yyyy&quot;\n$url=&quot;https:\/\/www.nordpoolgroup.com\/api\/marketdata\/page\/23&quot; #23 = Hourly ,24 = Daily, 25 = Weekly, 26 = Monthly, 27 = Yearly\n\n$url+=&quot;?currency=,NOK,NOK,EUR&amp;endDate=$today&quot;\n$response=Invoke-RestMethod -Uri $url\n$prices=@()\nforeach ($row in $response.data.rows){ \n    $localrow= $row.Columns | Where-Object {($_.name -like &quot;Kr.sand&quot;)} \n if($localrow.IsValid){\n  &#x5B;float]$cost=((($localrow&#x5B;0].value).tostring()).Replace(&#039; &#039;,&#039;&#039;)).replace(&#039;,&#039;,&#039;.&#039;)\n  &#x5B;datetime]$datetime=$row.StartTime\n    Write-Output &quot;$($datetime) - \u00f8re\/kWh ink mva $(&#x5B;math]::round(($cost\/10 * 1.25),2))&quot;\n    $prices+=&#x5B;math]::round(($cost * 1.25),2)\n    }\n}\n\n$prices|Measure-Object -Average -Maximum -Minimum\n\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a small script using nordpoolgroup api to get todays electric prices for Kr.sand &#8211; Norway. This is the same API as their webpage uses. All the urls and parameters can be found using developermode in the browser. This code is only to demonstrate that it can be done. It all started when i &hellip; <a href=\"https:\/\/www.vatland.no\/index.php\/list-nordpool-electric-prices-using-powershell\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">List NordPool electric prices using powershell.<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":false,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[84,59,109],"class_list":["post-1146","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-api","tag-powershell","tag-restmethod"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"This is a small script using nordpoolgroup api to get todays electric prices for Kr.sand - Norway. This is the same API as their webpage uses. All the urls and parameters can be found using developermode in the browser. This code is only to demonstrate that it can be done. It all started when i\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Atle\"\/>\n\t<meta name=\"keywords\" content=\"api,powershell,restmethod\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.vatland.no\/index.php\/list-nordpool-electric-prices-using-powershell\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1.1\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.vatland.no\\\/index.php\\\/list-nordpool-electric-prices-using-powershell\\\/#article\",\"name\":\"List NordPool electric prices using powershell. | Vatland\",\"headline\":\"List NordPool electric prices using powershell.\",\"author\":{\"@id\":\"https:\\\/\\\/www.vatland.no\\\/index.php\\\/author\\\/atle\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.vatland.no\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.vatland.no\\\/index.php\\\/list-nordpool-electric-prices-using-powershell\\\/#articleImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d04521cc752f433f129dc3c1b7a1d1944b9c79d16940acabef94e8ed7a6a1052?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Atle\"},\"datePublished\":\"2022-01-10T13:40:19+01:00\",\"dateModified\":\"2022-01-17T13:53:45+01:00\",\"inLanguage\":\"en-US\",\"commentCount\":2,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.vatland.no\\\/index.php\\\/list-nordpool-electric-prices-using-powershell\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.vatland.no\\\/index.php\\\/list-nordpool-electric-prices-using-powershell\\\/#webpage\"},\"articleSection\":\"Uncategorized, Api, Powershell, RestMethod\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.vatland.no\\\/index.php\\\/list-nordpool-electric-prices-using-powershell\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.vatland.no#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.vatland.no\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.vatland.no\\\/index.php\\\/category\\\/uncategorized\\\/#listItem\",\"name\":\"Uncategorized\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.vatland.no\\\/index.php\\\/category\\\/uncategorized\\\/#listItem\",\"position\":2,\"name\":\"Uncategorized\",\"item\":\"https:\\\/\\\/www.vatland.no\\\/index.php\\\/category\\\/uncategorized\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.vatland.no\\\/index.php\\\/list-nordpool-electric-prices-using-powershell\\\/#listItem\",\"name\":\"List NordPool electric prices using powershell.\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.vatland.no#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.vatland.no\\\/index.php\\\/list-nordpool-electric-prices-using-powershell\\\/#listItem\",\"position\":3,\"name\":\"List NordPool electric prices using powershell.\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.vatland.no\\\/index.php\\\/category\\\/uncategorized\\\/#listItem\",\"name\":\"Uncategorized\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.vatland.no\\\/#person\",\"name\":\"Atle\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.vatland.no\\\/index.php\\\/list-nordpool-electric-prices-using-powershell\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d04521cc752f433f129dc3c1b7a1d1944b9c79d16940acabef94e8ed7a6a1052?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Atle\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.vatland.no\\\/index.php\\\/author\\\/atle\\\/#author\",\"url\":\"https:\\\/\\\/www.vatland.no\\\/index.php\\\/author\\\/atle\\\/\",\"name\":\"Atle\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.vatland.no\\\/index.php\\\/list-nordpool-electric-prices-using-powershell\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d04521cc752f433f129dc3c1b7a1d1944b9c79d16940acabef94e8ed7a6a1052?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Atle\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.vatland.no\\\/index.php\\\/list-nordpool-electric-prices-using-powershell\\\/#webpage\",\"url\":\"https:\\\/\\\/www.vatland.no\\\/index.php\\\/list-nordpool-electric-prices-using-powershell\\\/\",\"name\":\"List NordPool electric prices using powershell. | Vatland\",\"description\":\"This is a small script using nordpoolgroup api to get todays electric prices for Kr.sand - Norway. This is the same API as their webpage uses. All the urls and parameters can be found using developermode in the browser. This code is only to demonstrate that it can be done. It all started when i\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.vatland.no\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.vatland.no\\\/index.php\\\/list-nordpool-electric-prices-using-powershell\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.vatland.no\\\/index.php\\\/author\\\/atle\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.vatland.no\\\/index.php\\\/author\\\/atle\\\/#author\"},\"datePublished\":\"2022-01-10T13:40:19+01:00\",\"dateModified\":\"2022-01-17T13:53:45+01:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.vatland.no\\\/#website\",\"url\":\"https:\\\/\\\/www.vatland.no\\\/\",\"name\":\"Vatland\",\"description\":\"-MS Stuff-\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.vatland.no\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"List NordPool electric prices using powershell. | Vatland","description":"This is a small script using nordpoolgroup api to get todays electric prices for Kr.sand - Norway. This is the same API as their webpage uses. All the urls and parameters can be found using developermode in the browser. This code is only to demonstrate that it can be done. It all started when i","canonical_url":"https:\/\/www.vatland.no\/index.php\/list-nordpool-electric-prices-using-powershell\/","robots":"max-image-preview:large","keywords":"api,powershell,restmethod","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.vatland.no\/index.php\/list-nordpool-electric-prices-using-powershell\/#article","name":"List NordPool electric prices using powershell. | Vatland","headline":"List NordPool electric prices using powershell.","author":{"@id":"https:\/\/www.vatland.no\/index.php\/author\/atle\/#author"},"publisher":{"@id":"https:\/\/www.vatland.no\/#person"},"image":{"@type":"ImageObject","@id":"https:\/\/www.vatland.no\/index.php\/list-nordpool-electric-prices-using-powershell\/#articleImage","url":"https:\/\/secure.gravatar.com\/avatar\/d04521cc752f433f129dc3c1b7a1d1944b9c79d16940acabef94e8ed7a6a1052?s=96&d=mm&r=g","width":96,"height":96,"caption":"Atle"},"datePublished":"2022-01-10T13:40:19+01:00","dateModified":"2022-01-17T13:53:45+01:00","inLanguage":"en-US","commentCount":2,"mainEntityOfPage":{"@id":"https:\/\/www.vatland.no\/index.php\/list-nordpool-electric-prices-using-powershell\/#webpage"},"isPartOf":{"@id":"https:\/\/www.vatland.no\/index.php\/list-nordpool-electric-prices-using-powershell\/#webpage"},"articleSection":"Uncategorized, Api, Powershell, RestMethod"},{"@type":"BreadcrumbList","@id":"https:\/\/www.vatland.no\/index.php\/list-nordpool-electric-prices-using-powershell\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.vatland.no#listItem","position":1,"name":"Home","item":"https:\/\/www.vatland.no","nextItem":{"@type":"ListItem","@id":"https:\/\/www.vatland.no\/index.php\/category\/uncategorized\/#listItem","name":"Uncategorized"}},{"@type":"ListItem","@id":"https:\/\/www.vatland.no\/index.php\/category\/uncategorized\/#listItem","position":2,"name":"Uncategorized","item":"https:\/\/www.vatland.no\/index.php\/category\/uncategorized\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.vatland.no\/index.php\/list-nordpool-electric-prices-using-powershell\/#listItem","name":"List NordPool electric prices using powershell."},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.vatland.no#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.vatland.no\/index.php\/list-nordpool-electric-prices-using-powershell\/#listItem","position":3,"name":"List NordPool electric prices using powershell.","previousItem":{"@type":"ListItem","@id":"https:\/\/www.vatland.no\/index.php\/category\/uncategorized\/#listItem","name":"Uncategorized"}}]},{"@type":"Person","@id":"https:\/\/www.vatland.no\/#person","name":"Atle","image":{"@type":"ImageObject","@id":"https:\/\/www.vatland.no\/index.php\/list-nordpool-electric-prices-using-powershell\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/d04521cc752f433f129dc3c1b7a1d1944b9c79d16940acabef94e8ed7a6a1052?s=96&d=mm&r=g","width":96,"height":96,"caption":"Atle"}},{"@type":"Person","@id":"https:\/\/www.vatland.no\/index.php\/author\/atle\/#author","url":"https:\/\/www.vatland.no\/index.php\/author\/atle\/","name":"Atle","image":{"@type":"ImageObject","@id":"https:\/\/www.vatland.no\/index.php\/list-nordpool-electric-prices-using-powershell\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/d04521cc752f433f129dc3c1b7a1d1944b9c79d16940acabef94e8ed7a6a1052?s=96&d=mm&r=g","width":96,"height":96,"caption":"Atle"}},{"@type":"WebPage","@id":"https:\/\/www.vatland.no\/index.php\/list-nordpool-electric-prices-using-powershell\/#webpage","url":"https:\/\/www.vatland.no\/index.php\/list-nordpool-electric-prices-using-powershell\/","name":"List NordPool electric prices using powershell. | Vatland","description":"This is a small script using nordpoolgroup api to get todays electric prices for Kr.sand - Norway. This is the same API as their webpage uses. All the urls and parameters can be found using developermode in the browser. This code is only to demonstrate that it can be done. It all started when i","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.vatland.no\/#website"},"breadcrumb":{"@id":"https:\/\/www.vatland.no\/index.php\/list-nordpool-electric-prices-using-powershell\/#breadcrumblist"},"author":{"@id":"https:\/\/www.vatland.no\/index.php\/author\/atle\/#author"},"creator":{"@id":"https:\/\/www.vatland.no\/index.php\/author\/atle\/#author"},"datePublished":"2022-01-10T13:40:19+01:00","dateModified":"2022-01-17T13:53:45+01:00"},{"@type":"WebSite","@id":"https:\/\/www.vatland.no\/#website","url":"https:\/\/www.vatland.no\/","name":"Vatland","description":"-MS Stuff-","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.vatland.no\/#person"}}]}},"aioseo_meta_data":{"post_id":"1146","title":null,"description":null,"keywords":[],"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"Article","defaultPostTypeGraph":""},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2022-01-10 12:12:44","updated":"2025-06-04 03:23:13","seo_analyzer_scan_date":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":false,"jetpack-related-posts":[{"id":804,"url":"https:\/\/www.vatland.no\/index.php\/use-powershell-to-get-leakedcredentials-from-azure-using-graph\/","url_meta":{"origin":1146,"position":0},"title":"Use Powershell to get LeakedCredentials from Azure using Graph","author":"Atle","date":"November 1, 2018","format":false,"excerpt":"Leaked credentials listed from Azure using powershell and Microsoft Graph\u00a0We need one Azure AD Premium X license to get this log. Would it be nice to list all leakedcredentials using powershell?(or riskysignins or identiyriskevents). All of this could be achieved using powershell and REST api at Microsoft Graph. I have\u2026","rel":"","context":"In \"Powershell\"","block_context":{"text":"Powershell","link":"https:\/\/www.vatland.no\/index.php\/tag\/powershell\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.vatland.no\/wp-content\/uploads\/2018\/11\/Leaked.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.vatland.no\/wp-content\/uploads\/2018\/11\/Leaked.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.vatland.no\/wp-content\/uploads\/2018\/11\/Leaked.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":1043,"url":"https:\/\/www.vatland.no\/index.php\/list-user-and-license-in-database\/","url_meta":{"origin":1146,"position":1},"title":"List users and licenses in Database","author":"Atle","date":"March 26, 2021","format":false,"excerpt":"Now that we have a database containing user, tenant and license it would be nice to have a function\/command to list this. Took me a while to figure it out but thanks to Bing, I prefer Bing before google. I sync my database on a schedule once a day. This\u2026","rel":"","context":"In &quot;CSP&quot;","block_context":{"text":"CSP","link":"https:\/\/www.vatland.no\/index.php\/category\/csp\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":911,"url":"https:\/\/www.vatland.no\/index.php\/use-powershell-to-get-external-ip-address\/","url_meta":{"origin":1146,"position":2},"title":"Use powershell to get external IP address","author":"Atle","date":"September 23, 2019","format":false,"excerpt":"How can you get your external IP address from powershell? I use a simple script to query an external public web service. The service I'm using is hosted by ipinfo.io . I have created a small function that is placed in my powershell library. All my modules are loaded by\u2026","rel":"","context":"In &quot;Development&quot;","block_context":{"text":"Development","link":"https:\/\/www.vatland.no\/index.php\/category\/development\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":49,"url":"https:\/\/www.vatland.no\/index.php\/how-to-expand-enumerated-lists-in-powershell-ft\/","url_meta":{"origin":1146,"position":3},"title":"How to expand enumerated lists in Powershell FT.","author":"Atle","date":"February 21, 2013","format":false,"excerpt":"Have you ever seen {12,1234,34,124...} in PowerShell, and wondered \"how do I get it to display the rest\"? The builtin variable $FormatEnumerationLimit determines how many fields to display, default value is 4. To change : \u00a0$FormatEnumerationLimit=15 \u00a0","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":968,"url":"https:\/\/www.vatland.no\/index.php\/powershell-2-0-json-to-hash\/","url_meta":{"origin":1146,"position":4},"title":"Powershell 2.0 Json to Hash","author":"Atle","date":"November 11, 2020","format":false,"excerpt":"Resonse from webrequests are normally in Json format and converting back and forth is no problem using convertto\/from-json. Only this time some computers did run Powershell 2.0 and did not have any \"new\" .NET framework installed. So I ran to a halt at this Json converting. Since my data did\u2026","rel":"","context":"In &quot;Development&quot;","block_context":{"text":"Development","link":"https:\/\/www.vatland.no\/index.php\/category\/development\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":957,"url":"https:\/\/www.vatland.no\/index.php\/hash-tables-in-powershell\/","url_meta":{"origin":1146,"position":5},"title":"Hash tables in powershell","author":"Atle","date":"March 23, 2020","format":false,"excerpt":"We all have the need to store data in some kind of arrays. I use hashtables a lot. Preferred use is as a lookup table, I can use 'contains' instead of looping through each item or reference an object by name instead of index number. Lookup table for licenses is\u2026","rel":"","context":"In &quot;CSP&quot;","block_context":{"text":"CSP","link":"https:\/\/www.vatland.no\/index.php\/category\/csp\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/posts\/1146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/comments?post=1146"}],"version-history":[{"count":9,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/posts\/1146\/revisions"}],"predecessor-version":[{"id":1159,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/posts\/1146\/revisions\/1159"}],"wp:attachment":[{"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/media?parent=1146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/categories?post=1146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vatland.no\/index.php\/wp-json\/wp\/v2\/tags?post=1146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}