This article summarizes the new things and issues encountered in the July project, including the two frameworks (CodeIgniter, AngularJS) and two functional implementations. There are front-end debug display dynamic authentication, also useful PHP implementation function module.
1. Add a Device
Main useAJSInput judgment and form validation when adding devices,HTMLLabel useng-controller= "Adding_ctrl"to indicateAJSThe scope of the code. Elements in the form andAJSVariable binding, in$scopeUsed inNg-modelThe variable name of the property to read the data. Use the form submission handler functionPHPWhen it's written, where it needs to be called, such as informUsed in tagsng-submit= "Name of function"To invoke the function. It's in my writing.Cam_addfunction, the physical address of the camera is scanned and recordedIPAddress, if it exists or does not exist there will be a corresponding prompt, this part of the pop-up warning is written inAJSIn Scan usingNmapCommand, withPHPIn theexecExecutes the system command. At the system level, an additionalPHPScript that automatically scans the current online device for a time period,PingThe state is modified by the general rule. This section mainly carries on the calendar to the database.
2. Real-time video
Real-time video is mainly a dynamic display of VLC streaming media and devices. VLC works perfectly in a pure HTML environment, but the player does not display properly when joining AJS to implement the current database's camera, or the reason for VLC and its sequential loading sequence. The solution is to write the VLC player in AJS and import it as an object into the Web page for normal playback.
3. Problems encountered
The primary presence in the deployment environment and connection database errors. I recorded these errors in Evernote .
4.Next
The next one is NodeJS 's learning mission.