Term *-12 jan 2017
Deadline - 15 jan 2017
Localisation by file or db. Base lang Eng.
Local server linux raspberri pi 3 v.B 16gb micro-sd lcd-5" touch screen
Global server linux dedicated cloud server for logs and settings.
1. ESP 8266 scketch for arduino IDE.
1. 1st Light switch. NO contact
2. 2nd Light switch. NO contact
4. HC-SR501 or HC-SR505
7. Smoke sensor MQ-2
8. Window or door magnet sensor. NC contact.
9. 1Relay module.
10. 1Relay module.
11. Magnet water tap (actuator). NC contact.
12. Magnet Gas tap (actuator). NC contact.
This is Base (maximum) functional config. Every esp8266 should configuring in the Control Panel and have any others connections. But if we need to connect dht22, it allways must be connect to gpio3 and if we want to connect smoke sensor, it allways will be connect to gpio 7. When esp starting it will be check every gpio and compare it with settings in DB,, if somesing went wrong or didnt compare with config, that put error in log and show error in the GUI.
ESP must updates by wifi
Logs. Max level debug. Text files at global server. If there isnt an internet beetwen local andglobal servers the logs saving at the local server while not connected. If internet not work a long time, log files rotate (every day or week), but after 1 month oldest logs must be erase.
Start esp8266 - put esp-id, date and time, gpio survey (get from db esp gpio config and compare with survey result, then put ok or error with numbet gpio and wich type of device must be at this gpio).
Start local server - check every esp, get from esp-s info about gpio, put it to DB.
table Buildings and floors
table Unit (in the room) (1unit=1esp)
Constructor (admin panel) have a full functional from viewer, and setup functions.
Left frame -list of Buildings and flors.
Tabs = Rooms, Content - plan (which upload from jpg files), elements (buttons, lamps, heaters, sensors, displays (you can get a list from blynk settings). Admin can put any element to any place on map (plan)
Left - list of Buildings and flors.
Tabs - Rooms, Content - plan with our elements. Every element must show his status or or value.
Onmouse (touch) on element open dropdown menu. 1 item - calendar for config this element by calendar (timer), 2item - event. Can config some action by event. Like as push button on gpio #* - connect gpio relay#1* (switch on lamp).
It can be independent system. Isnt a blynk, ibm, iot, cayenne clouds.
Use a c, python, mysql, mosquito, php, java.
It must be secure system. Special attention for secure andpermission.
Periferial devices (esp8266) must work independently. Any unit must work without wifi and ethernet/internet. When connections is recovered every unit must synchronized, periferial devices ask a config changes at raspberry and put here log and gpio info, raspberry connect to global server, ask for condig changes config and put logs.
Raspberry start and open GUI on hdmi LCD 5" touchscreen display atop.
How can I verify the results
You give me scketch for esp, i try it for 3-5 esp8266-12e
You give me all documentation and installation manual.
The code must contain comments
I'm going to clone the image and install it on another Raspberry pi 3 B.
I'm going to clone the image of global server vps.
Complete project is:
Raspbian clonable image with fuul ready system
All configs (mysql, mqtt, apache/nginx etc)
Comments in the code. Sources.
Admin manual. Installation step-by-step guide.