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

home

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

1. Запрос самых свежих данных IoT-модуля c id=5CCF7F1230F4
http://aqualeak.ru/?id=5CCF7F1230F4&json=1
{"id":"5CCF7F1230F4","ch1":"174070","ch2":"33620","ch01":"338640","ch02":"332330","batt":"96","timestamp":"2018-10-21 02:36:45"}
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":"273540","ch02":"302986","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":"174070","ch2":"33620","ch01":"338640","ch02":"332330","batt":"96","timestamp":"2018-10-21 02:36:45"},{"ch1":"173855","ch2":"33470","ch01":"338425","ch02":"332180","batt":"97","timestamp":"2018-10-20 02:38:45"}]
4. Запрос данных IoT-модуля c id=5CCF7F1230F4 за последние 3 месяца с шагом неделя
http://aqualeak.ru/?id=5CCF7F1230F4&json=1&last=3month&step=week

возможен шаг: day, week, month
[{"ch1":"174070","ch2":"33620","ch01":"338640","ch02":"332330","batt":"96","timestamp":"2018-10-21 02:36:45"},{"ch1":"173855","ch2":"33470","ch01":"338425","ch02":"332180","batt":"97","timestamp":"2018-10-20 02:38:45"},{"ch1":"172885","ch2":"32980","ch01":"337455","ch02":"331690","batt":"96","timestamp":"2018-10-12 20:19:38"},{"ch1":"172155","ch2":"32635","ch01":"336725","ch02":"331345","batt":"97","timestamp":"2018-10-06 20:18:42"},{"ch1":"171115","ch2":"32125","ch01":"335685","ch02":"330835","batt":"97","timestamp":"2018-09-29 20:20:47"},{"ch1":"169875","ch2":"31645","ch01":"334445","ch02":"330355","batt":"100","timestamp":"2018-09-21 14:16:16"},{"ch1":"169245","ch2":"31430","ch01":"333815","ch02":"330140","batt":"100","timestamp":"2018-09-15 14:21:21"},{"ch1":"168175","ch2":"31045","ch01":"332745","ch02":"329755","batt":"100","timestamp":"2018-09-08 14:30:19"},{"ch1":"167345","ch2":"30665","ch01":"331915","ch02":"329375","batt":"100","timestamp":"2018-09-01 14:34:05"},{"ch1":"162835","ch2":"28861","ch01":"327405","ch02":"327571","batt":"12","timestamp":"2018-07-30 22:31:09"},{"ch1":"162410","ch2":"28726","ch01":"326980","ch02":"327436","batt":"13","timestamp":"2018-07-28 22:37:02"},{"ch1":"161550","ch2":"28411","ch01":"326120","ch02":"327121","batt":"16","timestamp":"2018-07-21 22:38:57"}]
5. Запрос самых свежих данных по всем потребителям группы c email=aqua@aqualeak.ru
http://aqualeak.ru/?json=1&email=aqua%40aqualeak.ru
{"email":"aqua@aqualeak.ru","date":"2018-10-21 11:26:42","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":"550069","ch2":"222816","ch01":"68455","ch02":"21205","batt":"25","timestamp":"2018-06-28 17:39:05","comment":"Demo3"},{"id":"5CCF7F1230F4","ch1":"174070","ch2":"33620","ch01":"338640","ch02":"332330","batt":"96","timestamp":"2018-10-21 02:36:45","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":"797810","ch2":"246590","ch01":"161885","ch02":"4275","batt":"47","timestamp":"2018-04-30 11:45:01","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":"273540","ch02":"302986","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