I writing a script to check electical prices from Nord Pool that uses this URL:
Code: Select all
https://dataportal-api.nordpoolgroup.com/api/DayAheadPrices?date=2024-10-19&market=DayAhead&deliveryArea=SE3¤cy=SEK
Moderator: leecollings
Code: Select all
https://dataportal-api.nordpoolgroup.com/api/DayAheadPrices?date=2024-10-19&market=DayAhead&deliveryArea=SE3¤cy=SEK
Code: Select all
local handler1 = io.popen('curl -s -o /dev/null -w "%{http_code}" "URL_to_check" ')
local response1 = handler1:read('*a')
if (response1 == "200") then -- if OK
end
Users browsing this forum: habahabahaba and 0 guests