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

home

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

1. Запрос самых свежих данных IoT-модуля c id=5CCF7F1230F4
http://aqualeak.ru/?id=5CCF7F1230F4&json=1
{"id":"5CCF7F1230F4","ch1":"212770","ch2":"53440","ch01":"377340","ch02":"352150","batt":"63","timestamp":"2019-08-22 06:53: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":"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":"212770","ch2":"53440","ch01":"377340","ch02":"352150","batt":"63","timestamp":"2019-08-22 06:53:09"},{"ch1":"212685","ch2":"53400","ch01":"377255","ch02":"352110","batt":"61","timestamp":"2019-08-21 06:51:57"}]
4. Запрос данных IoT-модуля c id=5CCF7F1230F4 за последние 3 месяца с шагом неделя
http://aqualeak.ru/?id=5CCF7F1230F4&json=1&last=3month&step=week

возможен шаг: day, week, month
[{"ch1":"212770","ch2":"53440","ch01":"377340","ch02":"352150","batt":"63","timestamp":"2019-08-22 06:53:09"},{"ch1":"212030","ch2":"53135","ch01":"376600","ch02":"351845","batt":"63","timestamp":"2019-08-17 06:52:15"},{"ch1":"211040","ch2":"52675","ch01":"375610","ch02":"351385","batt":"63","timestamp":"2019-08-10 06:49:55"},{"ch1":"210010","ch2":"52215","ch01":"374580","ch02":"350925","batt":"62","timestamp":"2019-08-03 06:48:43"},{"ch1":"209075","ch2":"51785","ch01":"373645","ch02":"350495","batt":"65","timestamp":"2019-07-27 07:05:35"},{"ch1":"208020","ch2":"51415","ch01":"372590","ch02":"350125","batt":"65","timestamp":"2019-07-20 07:02:00"},{"ch1":"207215","ch2":"51045","ch01":"371785","ch02":"349755","batt":"65","timestamp":"2019-07-13 06:59:23"},{"ch1":"206185","ch2":"50660","ch01":"370755","ch02":"349370","batt":"63","timestamp":"2019-07-06 06:59:09"},{"ch1":"205280","ch2":"50290","ch01":"369850","ch02":"349000","batt":"63","timestamp":"2019-06-29 00:22:16"},{"ch1":"204035","ch2":"50240","ch01":"368605","ch02":"348950","batt":"63","timestamp":"2019-06-22 00:08:19"},{"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"}]
5. Запрос самых свежих данных по всем потребителям группы c email=aqua@aqualeak.ru
http://aqualeak.ru/?json=1&email=aqua%40aqualeak.ru
{"email":"aqua@aqualeak.ru","date":"2019-08-23 05:49:43","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":"84120059","ch2":"84121170","ch01":"83615585","ch02":"83911245","batt":"73","timestamp":"2019-08-20 19:44:51","comment":"Demo3"},{"id":"5CCF7F1230F4","ch1":"212770","ch2":"53440","ch01":"377340","ch02":"352150","batt":"63","timestamp":"2019-08-22 06:53: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":"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