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

home

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

1. Запрос самых свежих данных IoT-модуля c id=5CCF7F1230F4
http://aqualeak.ru/?id=5CCF7F1230F4&json=1
{"id":"5CCF7F1230F4","ch1":"181615","ch2":"37595","ch01":"346185","ch02":"336305","batt":"90","timestamp":"2018-12-14 17:03:34"}
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":"181615","ch2":"37595","ch01":"346185","ch02":"336305","batt":"90","timestamp":"2018-12-14 17:03:34"},{"ch1":"181515","ch2":"37535","ch01":"346085","ch02":"336245","batt":"90","timestamp":"2018-12-13 17:02:53"}]
4. Запрос данных IoT-модуля c id=5CCF7F1230F4 за последние 3 месяца с шагом неделя
http://aqualeak.ru/?id=5CCF7F1230F4&json=1&last=3month&step=week

возможен шаг: day, week, month
[{"ch1":"181615","ch2":"37595","ch01":"346185","ch02":"336305","batt":"90","timestamp":"2018-12-14 17:03:34"},{"ch1":"180755","ch2":"37115","ch01":"345325","ch02":"335825","batt":"91","timestamp":"2018-12-08 17:05:06"},{"ch1":"179690","ch2":"36550","ch01":"344260","ch02":"335260","batt":"91","timestamp":"2018-12-01 10:30:22"},{"ch1":"178790","ch2":"36045","ch01":"343360","ch02":"334755","batt":"91","timestamp":"2018-11-24 10:34:53"},{"ch1":"177670","ch2":"35515","ch01":"342240","ch02":"334225","batt":"92","timestamp":"2018-11-17 08:35:08"},{"ch1":"176610","ch2":"35025","ch01":"341180","ch02":"333735","batt":"92","timestamp":"2018-11-10 08:33:43"},{"ch1":"175825","ch2":"34595","ch01":"340395","ch02":"333305","batt":"93","timestamp":"2018-11-03 02:27:04"},{"ch1":"174695","ch2":"33950","ch01":"339265","ch02":"332660","batt":"93","timestamp":"2018-10-27 02:22:22"},{"ch1":"173855","ch2":"33470","ch01":"338425","ch02":"332180","batt":"97","timestamp":"2018-10-20 02:38:45"},{"ch1":"172885","ch2":"32980","ch01":"337455","ch02":"331690","batt":"96","timestamp":"2018-10-12 20:19:38"},{"ch1":"172155","ch2":"32635","ch01":"336725","ch02":"331345","batt":"97","timestamp":"2018-10-06 20:18:42"},{"ch1":"171115","ch2":"32125","ch01":"335685","ch02":"330835","batt":"97","timestamp":"2018-09-29 20:20:47"},{"ch1":"169875","ch2":"31645","ch01":"334445","ch02":"330355","batt":"100","timestamp":"2018-09-21 14:16:16"},{"ch1":"169245","ch2":"31430","ch01":"333815","ch02":"330140","batt":"100","timestamp":"2018-09-15 14:21:21"}]
5. Запрос самых свежих данных по всем потребителям группы c email=aqua@aqualeak.ru
http://aqualeak.ru/?json=1&email=aqua%40aqualeak.ru
{"email":"aqua@aqualeak.ru","date":"2018-12-15 05:43:27","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":"583604","ch2":"239265","ch01":"79130","ch02":"29340","batt":"0","timestamp":"2018-12-15 03:55:51","comment":"Demo3"},{"id":"5CCF7F1230F4","ch1":"181615","ch2":"37595","ch01":"346185","ch02":"336305","batt":"90","timestamp":"2018-12-14 17:03:34","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