#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright © 2019 Kudlaty 01 <kudlok@mail.ru>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
=
"""init with optionally config"""
= or
= %
""" parse the instance environment variable """
=
=
return None
return
return None
"""parse the instance-specific config file or a default one"""
= or
= or +
= + %
=
return
global
return
"""get the measurements for the place"""
= or
=
=
return
"""get only the current measurement"""
= or
return
"""get only the current CAQUI measurement"""
= or
=
return
"""get the air quality index value from given CAQI measurement
it's current measuement by default"""
= or
=
return
"""get color for given air quality indes"""
= or
return
"""display the measurement result"""
=
=
=