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

home

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

1. Запрос самых свежих данных IoT-модуля c id=5CCF7F1230F4
http://aqualeak.ru/?id=5CCF7F1230F4&json=1
{"id":"5CCF7F1230F4","ch1":"162835","ch2":"28861","ch01":"75950","ch02":"34440","batt":"12","timestamp":"2018-07-30 22:31:09"}
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
null
4. Запрос данных IoT-модуля c id=5CCF7F1230F4 за последние 3 месяца с шагом неделя
http://aqualeak.ru/?id=5CCF7F1230F4&json=1&last=3month&step=week

возможен шаг: day, week, month
[{"ch1":"162835","ch2":"28861","ch01":"75950","ch02":"34440","batt":"12","timestamp":"2018-07-30 22:31:09"},{"ch1":"162410","ch2":"28726","ch01":"75525","ch02":"34305","batt":"13","timestamp":"2018-07-28 22:37:02"},{"ch1":"161550","ch2":"28411","ch01":"74665","ch02":"33990","batt":"16","timestamp":"2018-07-21 22:38:57"},{"ch1":"160700","ch2":"28066","ch01":"73815","ch02":"33645","batt":"16","timestamp":"2018-07-14 22:35:14"},{"ch1":"159890","ch2":"27716","ch01":"73005","ch02":"33295","batt":"18","timestamp":"2018-07-07 22:35:04"},{"ch1":"158965","ch2":"27356","ch01":"72080","ch02":"32935","batt":"18","timestamp":"2018-06-30 21:49:22"},{"ch1":"158745","ch2":"27341","ch01":"71860","ch02":"32920","batt":"22","timestamp":"2018-06-15 14:56:53"},{"ch1":"157775","ch2":"26966","ch01":"70890","ch02":"32545","batt":"27","timestamp":"2018-06-09 13:19:29"},{"ch1":"156685","ch2":"26436","ch01":"69800","ch02":"32015","batt":"30","timestamp":"2018-06-02 13:26:26"},{"ch1":"155470","ch2":"25906","ch01":"68585","ch02":"31485","batt":"32","timestamp":"2018-05-26 13:34:53"}]
5. Запрос самых свежих данных по всем потребителям группы c email=aqua@aqualeak.ru
http://aqualeak.ru/?json=1&email=aqua%40aqualeak.ru
{"email":"aqua@aqualeak.ru","date":"2018-08-21 01:56:10","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":"162835","ch2":"28861","ch01":"75950","ch02":"34440","batt":"12","timestamp":"2018-07-30 22:31:09","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":"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