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

home

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

1. Запрос самых свежих данных IoT-модуля c id=5CCF7F1230F4
http://aqualeak.ru/?id=5CCF7F1230F4&json=1
{"id":"5CCF7F1230F4","ch1":"203205","ch2":"50025","ch01":"367775","ch02":"348735","batt":"66","timestamp":"2019-06-15 18:10:35"}
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":"203205","ch2":"50025","ch01":"367775","ch02":"348735","batt":"66","timestamp":"2019-06-15 18:10:35"},{"ch1":"203045","ch2":"49945","ch01":"367615","ch02":"348655","batt":"65","timestamp":"2019-06-14 18:11:52"}]
4. Запрос данных IoT-модуля c id=5CCF7F1230F4 за последние 3 месяца с шагом неделя
http://aqualeak.ru/?id=5CCF7F1230F4&json=1&last=3month&step=week

возможен шаг: day, week, month
[{"ch1":"203205","ch2":"50025","ch01":"367775","ch02":"348735","batt":"66","timestamp":"2019-06-15 18:10:35"},{"ch1":"202300","ch2":"49565","ch01":"366870","ch02":"348275","batt":"66","timestamp":"2019-06-08 18:20:36"},{"ch1":"201400","ch2":"49145","ch01":"365970","ch02":"347855","batt":"66","timestamp":"2019-06-01 18:20:42"},{"ch1":"200530","ch2":"48695","ch01":"365100","ch02":"347405","batt":"65","timestamp":"2019-05-25 18:10:42"},{"ch1":"199675","ch2":"48205","ch01":"364245","ch02":"346915","batt":"66","timestamp":"2019-05-18 18:10:58"},{"ch1":"198800","ch2":"47765","ch01":"363370","ch02":"346475","batt":"67","timestamp":"2019-05-11 18:21:22"},{"ch1":"197755","ch2":"47220","ch01":"362325","ch02":"345930","batt":"66","timestamp":"2019-05-04 18:19:14"},{"ch1":"196865","ch2":"46735","ch01":"361435","ch02":"345445","batt":"67","timestamp":"2019-04-27 18:31:33"},{"ch1":"195885","ch2":"46245","ch01":"360455","ch02":"344955","batt":"67","timestamp":"2019-04-20 18:22:15"},{"ch1":"195195","ch2":"45735","ch01":"359765","ch02":"344445","batt":"67","timestamp":"2019-04-13 18:24:25"},{"ch1":"194335","ch2":"45240","ch01":"358905","ch02":"343950","batt":"68","timestamp":"2019-04-06 18:29:32"},{"ch1":"193435","ch2":"44695","ch01":"358005","ch02":"343405","batt":"67","timestamp":"2019-03-30 18:28:19"},{"ch1":"192555","ch2":"44170","ch01":"357125","ch02":"342880","batt":"66","timestamp":"2019-03-23 18:27:10"},{"ch1":"191620","ch2":"43605","ch01":"356190","ch02":"342315","batt":"68","timestamp":"2019-03-16 18:30:30"}]
5. Запрос самых свежих данных по всем потребителям группы c email=aqua@aqualeak.ru
http://aqualeak.ru/?json=1&email=aqua%40aqualeak.ru
{"email":"aqua@aqualeak.ru","date":"2019-06-16 00:13:33","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":"84105469","ch2":"84116280","ch01":"83600995","ch02":"83906355","batt":"85","timestamp":"2019-06-16 00:05:22","comment":"Demo3"},{"id":"5CCF7F1230F4","ch1":"203205","ch2":"50025","ch01":"367775","ch02":"348735","batt":"66","timestamp":"2019-06-15 18:10:35","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