- Create the devices Meteo: Temp, THB, Rain, UV index, Visibility, Wind, Cloud cover,Precipitation type, Solar radiation
- Create the devices Air Quality: pm10, pm25, o3, no2,co, so2, status
- Create the devices Envt Risk: Road, Fire index Get the meteo, air quality and environmental risks in realtime and update the device status in Domoticz
- Make sure that your Domoticz supports Python plugins (https://www.domoticz.com/wiki/Using_Python_plugins)
- Module Python pytz
sudo pip3 install pytz
- Get an API KEY from Climacell
- Clone repository into your domoticz plugins folder
cd domoticz/plugins
git clone https://github.com/afer92/domotiz-plugin-climacellV4.git ClimacellV4
- Restart domoticz
- Make sure that "Accept new Hardware Devices" is enabled in Domoticz settings
- Go to "Hardware" page and add new item with type "Climacell (Weather Lookup) v4"
cd domoticz/plugins/ClimacellV4
git pull
- Clone repository
cd scripts/tests
git clone https://github.com/afer92/domotiz-plugin-climacellV4.git ClimacellV4
- Edit TestCode.py
API_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' # Your api key from Climacell
LATITUDE = '47.111111' # Your location
LONGITUDE = '2.222222
- Run test
python3 plugin.py
Climacell_plugin.py:5:1: E265 block comment should start with '# '
Climacell_plugin.py:7:161: E501 line too long (202 > 160 characters)
Climacell_plugin.py:41:1: E402 module level import not at top of file
Climacell_plugin.py:42:1: E402 module level import not at top of file
Climacell_plugin.py:43:1: E402 module level import not at top of file
Climacell_plugin.py:44:1: E402 module level import not at top of file
Climacell_plugin.py:45:1: E402 module level import not at top of file
Climacell_plugin.py:46:1: E402 module level import not at top of file
Climacell_plugin.py:47:1: E402 module level import not at top of file
Climacell_plugin.py:50:1: E402 module level import not at top of file
Climacell_plugin.py:52:1: E402 module level import not at top of file
Climacell_plugin.py:53:1: E402 module level import not at top of file
Climacell_plugin.py:677:17: E722 do not use bare 'except'