Интеграция в ЖКХ

home

Как было заявлено, информация с территориально распределенных модулей IoT-AQUA поступает на сервер aqualeak.ru, где аккумулируется в единой базе данных. Эту информацию можно легко использовать для построения пользовательских (дилерских) информационно-аналитических систем и/или использовать в информационно-расчетных системах ЖКХ. Для извлечения данных нужно отправить HTTP-запрос. Сервер формирует ответ в формате JSON:

1. Запрос самых свежих данных IoT-модуля c id=5CCF7F1230F4
http://aqualeak.ru/?id=5CCF7F1230F4&json=1
{"id":"5CCF7F1230F4","ch1":"134535","ch2":"14086","ch01":"47650","ch02":"19665","batt":"43","timestamp":"2017-12-16 13:02:19"}
2. Запрос данных IoT-модуля c id=5CCF7F1230F4 по состоянию на 2017-08-01 00:00:00
http://aqualeak.ru/?id=5CCF7F1230F4&json=1&date=2017-08-01
{"id":"5CCF7F1230F4","ch1":"108970","ch2":"4276","ch01":"22085","ch02":"9855","batt":"76","timestamp":"2017-07-31 22:03:36"}
3. Запрос всех данных IoT-модуля c id=5CCF7F1230F4 за последние 2 дня
http://aqualeak.ru/?id=5CCF7F1230F4&json=1&last=2days
[{"ch1":"134535","ch2":"14086","ch01":"47650","ch02":"19665","batt":"43","timestamp":"2017-12-16 13:02:19"},{"ch1":"134505","ch2":"14076","ch01":"47620","ch02":"19655","batt":"43","timestamp":"2017-12-16 11:02:12"},{"ch1":"134475","ch2":"14056","ch01":"47590","ch02":"19635","batt":"43","timestamp":"2017-12-16 09:01:58"},{"ch1":"134475","ch2":"14056","ch01":"47590","ch02":"19635","batt":"43","timestamp":"2017-12-16 07:01:52"},{"ch1":"134465","ch2":"14056","ch01":"47580","ch02":"19635","batt":"43","timestamp":"2017-12-16 05:01:37"},{"ch1":"134465","ch2":"14056","ch01":"47580","ch02":"19635","batt":"43","timestamp":"2017-12-16 03:01:38"},{"ch1":"134465","ch2":"14056","ch01":"47580","ch02":"19635","batt":"43","timestamp":"2017-12-16 01:01:57"},{"ch1":"134435","ch2":"14046","ch01":"47550","ch02":"19625","batt":"43","timestamp":"2017-12-15 23:02:15"},{"ch1":"134435","ch2":"14046","ch01":"47550","ch02":"19625","batt":"43","timestamp":"2017-12-15 21:02:04"},{"ch1":"134435","ch2":"14046","ch01":"47550","ch02":"19625","batt":"43","timestamp":"2017-12-15 19:01:51"},{"ch1":"134435","ch2":"14046","ch01":"47550","ch02":"19625","batt":"43","timestamp":"2017-12-15 17:01:46"},{"ch1":"134435","ch2":"14046","ch01":"47550","ch02":"19625","batt":"41","timestamp":"2017-12-15 15:01:51"},{"ch1":"134435","ch2":"14046","ch01":"47550","ch02":"19625","batt":"43","timestamp":"2017-12-15 13:01:49"},{"ch1":"134435","ch2":"14046","ch01":"47550","ch02":"19625","batt":"43","timestamp":"2017-12-15 11:02:00"},{"ch1":"134435","ch2":"14046","ch01":"47550","ch02":"19625","batt":"41","timestamp":"2017-12-15 09:02:34"},{"ch1":"134420","ch2":"14036","ch01":"47535","ch02":"19615","batt":"43","timestamp":"2017-12-15 07:02:06"},{"ch1":"134395","ch2":"14016","ch01":"47510","ch02":"19595","batt":"43","timestamp":"2017-12-15 05:02:01"}]
4. Запрос данных IoT-модуля c id=5CCF7F1230F4 за последние 3 месяца с шагом неделя
http://aqualeak.ru/?id=5CCF7F1230F4&json=1&last=3month&step=week

возможен шаг: day, week, month
[{"ch1":"134535","ch2":"14086","ch01":"47650","ch02":"19665","batt":"43","timestamp":"2017-12-16 13:02:19"},{"ch1":"133410","ch2":"13606","ch01":"46525","ch02":"19185","batt":"45","timestamp":"2017-12-09 23:04:01"},{"ch1":"132095","ch2":"12986","ch01":"45210","ch02":"18565","batt":"46","timestamp":"2017-12-02 23:21:14"},{"ch1":"130910","ch2":"12441","ch01":"44025","ch02":"18020","batt":"47","timestamp":"2017-11-25 23:56:24"},{"ch1":"129615","ch2":"11766","ch01":"42730","ch02":"17345","batt":"48","timestamp":"2017-11-18 22:42:38"},{"ch1":"128320","ch2":"11146","ch01":"41435","ch02":"16725","batt":"51","timestamp":"2017-11-11 23:35:11"},{"ch1":"127140","ch2":"10541","ch01":"40255","ch02":"16120","batt":"51","timestamp":"2017-11-04 22:29:16"},{"ch1":"125755","ch2":"9936","ch01":"38870","ch02":"15515","batt":"53","timestamp":"2017-10-28 21:53:58"},{"ch1":"124535","ch2":"9396","ch01":"37650","ch02":"14975","batt":"57","timestamp":"2017-10-21 23:58:22"},{"ch1":"123445","ch2":"8896","ch01":"36560","ch02":"14475","batt":"58","timestamp":"2017-10-14 22:49:57"},{"ch1":"122160","ch2":"8441","ch01":"35275","ch02":"14020","batt":"61","timestamp":"2017-10-07 23:42:37"},{"ch1":"120900","ch2":"7881","ch01":"34015","ch02":"13460","batt":"61","timestamp":"2017-09-30 23:04:19"},{"ch1":"119695","ch2":"7401","ch01":"32810","ch02":"12980","batt":"65","timestamp":"2017-09-23 22:52:43"}]
5. Запрос самых свежих данных по всем потребителям группы c email=aqua@aqualeak.ru
http://aqualeak.ru/?json=1&email=aqua%40aqualeak.ru
{"email":"aqua@aqualeak.ru","date":"2017-12-17 03:07:50","rows":[{"id":"00000000002","ch1":"0","ch2":"0","ch01":"5","ch02":"25","batt":"2","timestamp":"2017-04-12 11:44:41","comment":"Battery Test(finished): Alkaline Energizer (till 2015) 3V4sh"},{"id":"18FE34CB85A2","ch1":"503346","ch2":"209374","ch01":"25975","ch02":"9200","batt":"53","timestamp":"2017-12-17 01:49:02","comment":"Demo3"},{"id":"5CCF7F1230F4","ch1":"134535","ch2":"14086","ch01":"47650","ch02":"19665","batt":"43","timestamp":"2017-12-16 13:02:19","comment":"Demo2"},{"id":"5CCF7F8F6B0A","ch1":"20","ch2":"0","ch01":"20","ch02":"0","batt":"68","timestamp":"2017-11-27 22:42:33","comment":"Refrigerator Test (-18C)"},{"id":"5CCF7FD61E57","ch1":"740150","ch2":"246590","ch01":"104225","ch02":"4275","batt":"48","timestamp":"2017-12-17 02:55:00","comment":"Demo1"}]}
6. Запрос данных по всем потребителям группы c email=aqua@aqualeak.ru по состоянию на 2017-08-01 00:00:00
http://aqualeak.ru/?json=1&email=aqua%40aqualeak.ru&date=2017-08-01
{"email":"aqua@aqualeak.ru","date":"2017-08-01","rows":[{"id":"00000000002","ch1":"0","ch2":"0","ch01":"5","ch02":"25","batt":"2","timestamp":"2017-04-12 11:44:41","comment":"Battery Test(finished): Alkaline Energizer (till 2015) 3V4sh"},{"id":"18FE34CB85A2","comment":"Demo3"},{"id":"5CCF7F1230F4","ch1":"108970","ch2":"4276","ch01":"22085","ch02":"9855","batt":"76","timestamp":"2017-07-31 22:03:36","comment":"Demo2"},{"id":"5CCF7F8F6B0A","comment":"Refrigerator Test (-18C)"},{"id":"5CCF7FD61E57","ch1":"681300","ch2":"246590","ch01":"45375","ch02":"4275","batt":"82","timestamp":"2017-07-31 22:33:41","comment":"Demo1"}]}

Поля структуры JSON:
"id" - уникальный номер IoT-модуля
"ch1" и "ch2" - показание реальных счетчиков расхода воды (в литрах)
"ch01" и "ch02" - внутренние (программные) счетчики расхода воды (в литрах)
"batt" - уровень заряда батареи (в %)
"timestamp" - момент снятия показаний

Ищем партнеров для продвижения проекта в регионах!!!
email: aqua@aqualeak.ru