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

home

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

1. Запрос самых свежих данных IoT-модуля c id=5CCF7F1230F4
http://aqualeak.ru/?id=5CCF7F1230F4&json=1
{"id":"5CCF7F1230F4","ch1":"196545","ch2":"46550","ch01":"361115","ch02":"345260","batt":"66","timestamp":"2019-04-24 18:24:36"}
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":"196545","ch2":"46550","ch01":"361115","ch02":"345260","batt":"66","timestamp":"2019-04-24 18:24:36"},{"ch1":"196365","ch2":"46505","ch01":"360935","ch02":"345215","batt":"66","timestamp":"2019-04-23 18:25:16"}]
4. Запрос данных IoT-модуля c id=5CCF7F1230F4 за последние 3 месяца с шагом неделя
http://aqualeak.ru/?id=5CCF7F1230F4&json=1&last=3month&step=week

возможен шаг: day, week, month
[{"ch1":"196545","ch2":"46550","ch01":"361115","ch02":"345260","batt":"66","timestamp":"2019-04-24 18:24:36"},{"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"},{"ch1":"190835","ch2":"43185","ch01":"355405","ch02":"341895","batt":"68","timestamp":"2019-03-09 18:32:28"},{"ch1":"189765","ch2":"42540","ch01":"354335","ch02":"341250","batt":"68","timestamp":"2019-03-02 18:34:06"},{"ch1":"189005","ch2":"42035","ch01":"353575","ch02":"340745","batt":"68","timestamp":"2019-02-23 18:34:34"},{"ch1":"188255","ch2":"41495","ch01":"352825","ch02":"340205","batt":"70","timestamp":"2019-02-16 18:42:04"},{"ch1":"187375","ch2":"40930","ch01":"351945","ch02":"339640","batt":"70","timestamp":"2019-02-09 18:44:18"},{"ch1":"186585","ch2":"40430","ch01":"351155","ch02":"339140","batt":"70","timestamp":"2019-02-02 12:12:49"},{"ch1":"185555","ch2":"39875","ch01":"350125","ch02":"338585","batt":"70","timestamp":"2019-01-26 12:13:14"}]
5. Запрос самых свежих данных по всем потребителям группы c email=aqua@aqualeak.ru
http://aqualeak.ru/?json=1&email=aqua%40aqualeak.ru
{"email":"aqua@aqualeak.ru","date":"2019-04-24 23:19:36","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":"84093844","ch2":"84111780","ch01":"83589370","ch02":"83901855","batt":"91","timestamp":"2019-04-24 22:27:19","comment":"Demo3"},{"id":"5CCF7F1230F4","ch1":"196545","ch2":"46550","ch01":"361115","ch02":"345260","batt":"66","timestamp":"2019-04-24 18:24:36","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