GithubHelp home page GithubHelp logo

afer92 / domotiz-plugin-climacellv4 Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 86 KB

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

License: MIT License

Python 100.00%

domotiz-plugin-climacellv4's Introduction

ClimacellV4 - Domoticz Python Plugin

Features

  • 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

Prerequisites

Installation

  1. Clone repository into your domoticz plugins folder
cd domoticz/plugins
git clone https://github.com/afer92/domotiz-plugin-climacellV4.git ClimacellV4
  1. Restart domoticz
  2. Make sure that "Accept new Hardware Devices" is enabled in Domoticz settings
  3. Go to "Hardware" page and add new item with type "Climacell (Weather Lookup) v4"

Plugin update

cd domoticz/plugins/ClimacellV4
git pull

Testing without Domoticz

  1. Clone repository
cd scripts/tests
git clone https://github.com/afer92/domotiz-plugin-climacellV4.git ClimacellV4
  1. Edit TestCode.py
API_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' # Your api key from Climacell
LATITUDE = '47.111111' # Your location
LONGITUDE = '2.222222
  1. Run test
python3 plugin.py

pycodestyle

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.