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

home

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

1. Запрос самых свежих данных IoT-модуля c id=5CCF7F1230F4
http://aqualeak.ru/?id=5CCF7F1230F4&json=1
{"id":"5CCF7F1230F4","ch1":"142900","ch2":"18591","ch01":"56015","ch02":"24170","batt":"37","timestamp":"2018-02-20 16:08:21"}
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":"142900","ch2":"18591","ch01":"56015","ch02":"24170","batt":"37","timestamp":"2018-02-20 16:08:21"},{"ch1":"142690","ch2":"18541","ch01":"55805","ch02":"24120","batt":"38","timestamp":"2018-02-19 16:11:49"}]
4. Запрос данных IoT-модуля c id=5CCF7F1230F4 за последние 3 месяца с шагом неделя
http://aqualeak.ru/?id=5CCF7F1230F4&json=1&last=3month&step=week

возможен шаг: day, week, month
[{"ch1":"142900","ch2":"18591","ch01":"56015","ch02":"24170","batt":"37","timestamp":"2018-02-20 16:08:21"},{"ch1":"142280","ch2":"18271","ch01":"55395","ch02":"23850","batt":"38","timestamp":"2018-02-17 16:08:41"},{"ch1":"141170","ch2":"17686","ch01":"54285","ch02":"23265","batt":"38","timestamp":"2018-02-10 16:11:58"},{"ch1":"140230","ch2":"17176","ch01":"53345","ch02":"22755","batt":"40","timestamp":"2018-02-03 16:15:05"},{"ch1":"139370","ch2":"16701","ch01":"52485","ch02":"22280","batt":"40","timestamp":"2018-01-27 16:21:17"},{"ch1":"138400","ch2":"16156","ch01":"51515","ch02":"21735","batt":"40","timestamp":"2018-01-20 09:34:38"},{"ch1":"137410","ch2":"15636","ch01":"50525","ch02":"21215","batt":"40","timestamp":"2018-01-13 09:32:51"},{"ch1":"136510","ch2":"15106","ch01":"49625","ch02":"20685","batt":"43","timestamp":"2017-12-29 21:42:27"},{"ch1":"135655","ch2":"14631","ch01":"48770","ch02":"20210","batt":"43","timestamp":"2017-12-23 19:44:25"},{"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"}]
5. Запрос самых свежих данных по всем потребителям группы c email=aqua@aqualeak.ru
http://aqualeak.ru/?json=1&email=aqua%40aqualeak.ru
{"email":"aqua@aqualeak.ru","date":"2018-02-21 02:11:00","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":"514726","ch2":"213649","ch01":"37355","ch02":"13475","batt":"45","timestamp":"2018-02-03 09:42:42","comment":"Demo3"},{"id":"5CCF7F1230F4","ch1":"142900","ch2":"18591","ch01":"56015","ch02":"24170","batt":"37","timestamp":"2018-02-20 16:08:21","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":"766815","ch2":"246590","ch01":"130890","ch02":"4275","batt":"51","timestamp":"2018-02-20 01:52:29","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