I'm trying to pull data out of the official Canadian weather service website. There is a script used on the site that returns the values used by the rest of the scripts to format the page as a javascript variable declaration.
var obTemperature = "24";
var obIconCode = "29";
var obCondition = "";
var obWindDir = "SE";
var obWindSpeed = "10";
var obWindGust = "";
var obWindChill = "";
var obHumidex = "28";
What is the best way to turn this into a json object I can more easily use in node red ? I was thinking it could be sent into a function but don't know how to turn such text into javascript that is executed ?
I'm aware of openweathermap, wunderground etc. but I'd like to use this.