Home > other >  Plan, phone raspberries pie control electric light
Plan, phone raspberries pie control electric light

Time:10-05

Hardware:
1, raspberry sent 4 b +, raspbian system, similar to the debian,
2, the router, gateway 192.168.1.1,
3, light control switch, the udp protocol, port 12345, ip192.168.1.2,
Ab01010000ba ab010101ffba to turn off the lights turn on the light code, code, brightness level ab01010100ba to ab010101ffba, back to the above code,
4, part of the android mobile phone, apple mobile phone, a computer,

Themselves, with pycharm python development, HTML, CSS, js with android studio development basic interface, android, ios can learn

Already testing is completed:
1, raspberry pie with python2.7 udp send code to the controller, and successfully light bulbs,
2, the use of dja, ng framework, got a HTML page, a successful call button control,
3, use sqlite code and mongo storage using open to turn off the lights,

Requirements:
1, to be a android and apple's app, using python to do backstage, click on the button on your phone, will call the service the python code,
2, at the same time in the browser
, can also be used, and 3, can get more feedback information from the server and the status of the display,
4, try not to use the django framework

Excuse me:
Any framework or to use tools to complete my support to better the entire mobile client and server, not other programming languages.

Thank you,
N

CodePudding user response:

The complicated


Have a status page (contains several buttons), a control interface (the get method with a), what framework all need not, also do not need database, memory is enough,


Python2.7 BaseHTTPServer, state of an HTML page, put in the code, then replace the status value

CodePudding user response:

reference 1st floor tianfang response:
the complicated


Have a status page (contains several buttons), a control interface (the get method with a), what framework all need not, also do not need database, memory is enough,


Python2.7 BaseHTTPServer, state of an HTML page, put in the code, then replace the status value

Ok, thank you, if I want to as a project to do

CodePudding user response:

Also doing recently I use a cell phone to send and receive data to control raspberries pie, what's your plan ready?