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

home

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

1. Запрос самых свежих данных IoT-модуля c id=5CCF7F1230F4
http://aqualeak.ru/?id=5CCF7F1230F4&json=1
{"id":"5CCF7F1230F4","ch1":"227625","ch2":"60435","ch01":"392195","ch02":"359145","batt":"61","timestamp":"2019-12-07 19:39: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":"227625","ch2":"60435","ch01":"392195","ch02":"359145","batt":"61","timestamp":"2019-12-07 19:39:35"},{"ch1":"227485","ch2":"60365","ch01":"392055","ch02":"359075","batt":"60","timestamp":"2019-12-06 19:40:45"}]
4. Запрос данных IoT-модуля c id=5CCF7F1230F4 за последние 3 месяца с шагом неделя
http://aqualeak.ru/?id=5CCF7F1230F4&json=1&last=3month&step=week

возможен шаг: day, week, month
[{"ch1":"227625","ch2":"60435","ch01":"392195","ch02":"359145","batt":"61","timestamp":"2019-12-07 19:39:35"},{"ch1":"226415","ch2":"59835","ch01":"390985","ch02":"358545","batt":"60","timestamp":"2019-11-29 12:54:22"},{"ch1":"225675","ch2":"59345","ch01":"390245","ch02":"358055","batt":"60","timestamp":"2019-11-23 12:56:50"},{"ch1":"224565","ch2":"58785","ch01":"389135","ch02":"357495","batt":"58","timestamp":"2019-11-16 12:48:23"},{"ch1":"223650","ch2":"58305","ch01":"388220","ch02":"357015","batt":"61","timestamp":"2019-11-09 12:55:58"},{"ch1":"222875","ch2":"57880","ch01":"387445","ch02":"356590","batt":"60","timestamp":"2019-11-02 12:51:41"},{"ch1":"221875","ch2":"57340","ch01":"386445","ch02":"356050","batt":"61","timestamp":"2019-10-26 13:03:02"},{"ch1":"220755","ch2":"56815","ch01":"385325","ch02":"355525","batt":"60","timestamp":"2019-10-19 06:21:46"},{"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"}]
5. Запрос самых свежих данных по всем потребителям группы c email=aqua@aqualeak.ru
http://aqualeak.ru/?json=1&email=aqua%40aqualeak.ru
{"email":"aqua@aqualeak.ru","date":"2019-12-08 06:16:19","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":"666962","ch2":"278102","ch01":"83634875","ch02":"83920605","batt":"66","timestamp":"2019-12-08 03:12:42","comment":"Demo3"},{"id":"5CCF7F1230F4","ch1":"227625","ch2":"60435","ch01":"392195","ch02":"359145","batt":"61","timestamp":"2019-12-07 19:39: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