17.01.2023, 09:15
(This post was last modified: 17.01.2023, 09:16 by P_marienborg.)
Hello.
I have tried the latest version on my spacelynk with vr 2.8.0
I am getting this error in the log:
* arg: 1
* string: request error
* arg: 2
* nil
* arg: 3
* string: Try again
Could someone point me in the right direction?
I think it something here that's not right:
https = require('ssl.https')
json = require('json')
ltn12 = require('ltn12')
args = 'lat=' .. latitude .. '&lon=' .. longitude
url = 'https://api.met.no/weatherapi/locationforecast/2.0/complete?' .. args
mac = 0
io.readfile('/sys/class/net/eth0/address'):gsub('%x%x', function(v)
mac = mac * 256 + tonumber(v, 16)
end)
This is the only changes I have done:
--local latitude = 69.6489 -- 'Tromso'
--local longitude = 18.95508 -- 'Tromso'
local latitude = 69.6489 -- 'Tromso'
local longitude = 18.95508 -- 'Tromso'
I have tried the latest version on my spacelynk with vr 2.8.0
I am getting this error in the log:
* arg: 1
* string: request error
* arg: 2
* nil
* arg: 3
* string: Try again
Could someone point me in the right direction?
I think it something here that's not right:
https = require('ssl.https')
json = require('json')
ltn12 = require('ltn12')
args = 'lat=' .. latitude .. '&lon=' .. longitude
url = 'https://api.met.no/weatherapi/locationforecast/2.0/complete?' .. args
mac = 0
io.readfile('/sys/class/net/eth0/address'):gsub('%x%x', function(v)
mac = mac * 256 + tonumber(v, 16)
end)
This is the only changes I have done:
--local latitude = 69.6489 -- 'Tromso'
--local longitude = 18.95508 -- 'Tromso'
local latitude = 69.6489 -- 'Tromso'
local longitude = 18.95508 -- 'Tromso'