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

home

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

1. Запрос самых свежих данных IoT-модуля c id=5CCF7F1230F4
http://aqualeak.ru/?id=5CCF7F1230F4&json=1
{"id":"5CCF7F1230F4","ch1":"220660","ch2":"56765","ch01":"385230","ch02":"355475","batt":"61","timestamp":"2019-10-18 06:20: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":"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":"220660","ch2":"56765","ch01":"385230","ch02":"355475","batt":"61","timestamp":"2019-10-18 06:20:21"},{"ch1":"220575","ch2":"56725","ch01":"385145","ch02":"355435","batt":"60","timestamp":"2019-10-17 06:13:14"}]
4. Запрос данных IoT-модуля c id=5CCF7F1230F4 за последние 3 месяца с шагом неделя
http://aqualeak.ru/?id=5CCF7F1230F4&json=1&last=3month&step=week

возможен шаг: day, week, month
[{"ch1":"220660","ch2":"56765","ch01":"385230","ch02":"355475","batt":"61","timestamp":"2019-10-18 06:20:21"},{"ch1":"219890","ch2":"56395","ch01":"384460","ch02":"355105","batt":"60","timestamp":"2019-10-12 06:13:17"},{"ch1":"218840","ch2":"55925","ch01":"383410","ch02":"354635","batt":"61","timestamp":"2019-10-05 06:29:20"},{"ch1":"217800","ch2":"55515","ch01":"382370","ch02":"354225","batt":"61","timestamp":"2019-09-28 06:24:39"},{"ch1":"217055","ch2":"55155","ch01":"381625","ch02":"353865","batt":"60","timestamp":"2019-09-21 06:23:49"},{"ch1":"216115","ch2":"54775","ch01":"380685","ch02":"353485","batt":"62","timestamp":"2019-09-14 06:37:01"},{"ch1":"215235","ch2":"54415","ch01":"379805","ch02":"353125","batt":"62","timestamp":"2019-09-07 06:39:10"},{"ch1":"214270","ch2":"54045","ch01":"378840","ch02":"352755","batt":"62","timestamp":"2019-08-31 06:41:56"},{"ch1":"213055","ch2":"53560","ch01":"377625","ch02":"352270","batt":"63","timestamp":"2019-08-24 06:51:20"},{"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"}]
5. Запрос самых свежих данных по всем потребителям группы c email=aqua@aqualeak.ru
http://aqualeak.ru/?json=1&email=aqua%40aqualeak.ru
{"email":"aqua@aqualeak.ru","date":"2019-10-18 22:26:40","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":"655762","ch2":"272342","ch01":"83623675","ch02":"83914845","batt":"70","timestamp":"2019-10-18 19:34:03","comment":"Demo3"},{"id":"5CCF7F1230F4","ch1":"220660","ch2":"56765","ch01":"385230","ch02":"355475","batt":"61","timestamp":"2019-10-18 06:20: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":"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