This is a virtual device for the 2smart-cloud platform, it retrieves weather data for entered city from Yahoo Weather API and publishes it to sensors
Create a file with the name "config.json" and paste the next template to it:
{
"userEmail": "",
"token": "",
"productId": "",
"mqttUri": "",
"deviceId": "",
"yahoo": {
"appId": "",
"consumerKey": "",
"consumerSecret": "",
"apiUrl": ""
}
}
Create your Yahoo App following steps by the link: https://developer.yahoo.com/weather/ and write down received "App ID", "Client ID (Consumer Key)" and "Client Secret (Consumer Secret)" for the next steps
Fill each field according to next descriptions:
In the directory where you created the config.json file run the next command:
docker run -d -v "${PWD}:/config" 2smartdev/yahoo-weather:cloud
docker pull 2smartdev/yahoo-weather:cloud