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

home

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

1. Запрос самых свежих данных IoT-модуля c id=5CCF7F1230F4
http://aqualeak.ru/?id=5CCF7F1230F4&json=1
{"id":"5CCF7F1230F4","ch1":"150805","ch2":"23276","ch01":"63920","ch02":"28855","batt":"35","timestamp":"2018-04-19 13:50:52"}
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":"150805","ch2":"23276","ch01":"63920","ch02":"28855","batt":"35","timestamp":"2018-04-19 13:50:52"},{"ch1":"150710","ch2":"23216","ch01":"63825","ch02":"28795","batt":"33","timestamp":"2018-04-18 13:54:52"}]
4. Запрос данных IoT-модуля c id=5CCF7F1230F4 за последние 3 месяца с шагом неделя
http://aqualeak.ru/?id=5CCF7F1230F4&json=1&last=3month&step=week

возможен шаг: day, week, month
[{"ch1":"150805","ch2":"23276","ch01":"63920","ch02":"28855","batt":"35","timestamp":"2018-04-19 13:50:52"},{"ch1":"150105","ch2":"22856","ch01":"63220","ch02":"28435","batt":"32","timestamp":"2018-04-14 11:49:59"},{"ch1":"149100","ch2":"22291","ch01":"62215","ch02":"27870","batt":"35","timestamp":"2018-04-07 04:55:07"},{"ch1":"148120","ch2":"21711","ch01":"61235","ch02":"27290","batt":"35","timestamp":"2018-03-31 04:47:47"},{"ch1":"147455","ch2":"21256","ch01":"60570","ch02":"26835","batt":"33","timestamp":"2018-03-24 22:08:54"},{"ch1":"146310","ch2":"20706","ch01":"59425","ch02":"26285","batt":"33","timestamp":"2018-03-17 22:13:07"},{"ch1":"145470","ch2":"20216","ch01":"58585","ch02":"25795","batt":"37","timestamp":"2018-03-10 22:15:50"},{"ch1":"144410","ch2":"19511","ch01":"57525","ch02":"25090","batt":"35","timestamp":"2018-03-03 17:56:36"},{"ch1":"143365","ch2":"18866","ch01":"56480","ch02":"24445","batt":"37","timestamp":"2018-02-24 16:06:30"},{"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"}]
5. Запрос самых свежих данных по всем потребителям группы c email=aqua@aqualeak.ru
http://aqualeak.ru/?json=1&email=aqua%40aqualeak.ru
{"email":"aqua@aqualeak.ru","date":"2018-04-19 14:16:31","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":"534109","ch2":"219066","ch01":"52495","ch02":"17455","batt":"32","timestamp":"2018-04-19 13:47:39","comment":"Demo3"},{"id":"5CCF7F1230F4","ch1":"150805","ch2":"23276","ch01":"63920","ch02":"28855","batt":"35","timestamp":"2018-04-19 13:50:52","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":"792215","ch2":"246590","ch01":"156290","ch02":"4275","batt":"47","timestamp":"2018-04-18 12:37:45","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