summaryrefslogtreecommitdiffstats
path: root/htdocs
AgeCommit message (Expand)AuthorFilesLines
2017-12-13ucs_binding.c: Add control message transmissionTobias Jahnke1-2/+5
2017-08-18removed volume APITobias Jahnke1-9/+8
2017-08-03adds node-availibility event and subscribe functionTobias Jahnke1-0/+1
2017-08-02cleanup of API i2cwriteTobias Jahnke1-3/+3
2017-08-01adds processing of data to i2c_writeTobias Jahnke1-3/+3
2017-08-01adds experimental i2cwrite commandTobias Jahnke1-0/+9
2017-07-26fixes: volume buttons are using wrong verbTobias Jahnke1-9/+9
2017-07-25Update HTML test page to new template. Added Config file selection from UI.Fulup Ar Foll5-84/+189
2017-07-20added volume properties for channel 3..6Tobias Jahnke1-1/+6
2017-07-13New XML Parser implementation, supports splitter and combinertkummermehr1-1/+1
2017-06-27Change marketing stuffRomain Forlot5-29/+29
2017-06-15Fix template dir and data file dir to match new templating.Sebastien Douheret1-1/+1
2017-05-26Initial CommitFulup Ar Foll5-0/+324
.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
/*
 * Copyright (C) 2018 Konsulko Group
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef WEATHER_H
#define WEATHER_H

#include <QDebug>
#include <QObject>

#include "messageengine.h"

class Weather : public QObject
{
	Q_OBJECT
	Q_PROPERTY(QString temperature READ temperature NOTIFY temperatureChanged)
	Q_PROPERTY(QString condition READ condition NOTIFY conditionChanged)

	public:
		explicit Weather(QUrl &url, QObject * parent = Q_NULLPTR);
		virtual ~Weather();

		QString temperature() { return m_temperature; }
		QString condition() { return m_condition; }

	signals:
		void temperatureChanged(QString temperature);
		void conditionChanged(QString condition);

	private:
		MessageEngine *m_mloop;
		QString m_temperature;
		QString m_condition;

		void onConnected();
		void onDisconnected();
		void onMessageReceived(MessageType, Message*);
};

#endif // WEATHER_H