This is a configuration generator app for the FANG cameras. This is an alternative to using some janky Chinese application.
A Pen by Riley Porter on CodePen.
| FROM tiangolo/uwsgi-nginx-flask:python3.7 | |
| RUN pip install requests |
| FROM grafana/grafana | |
| RUN grafana-cli plugins install andig-darksky-datasource |
| FROM nodered/node-red | |
| RUN npm install node-red-contrib-influxdb && npm install node-red-dashboard && npm install node-red-contrib-alexa-remote2 && npm install node-red-contrib-sonos-plus && npm install node-red-contrib-tasmota && npm install node-red-contrib-smartthings && node-red-contrib-syslog-input && npm install node-red-contrib-unifi | |
| def cat(filename, path="/flash"): | |
| try: | |
| f = open(path+'filename','r') | |
| for line in f.readlines(): | |
| print line | |
| catch: | |
| print("Err opening file") |
| import machine | |
| import display | |
| import network | |
| wifi = network.WLAN(network.STA_IF) | |
| wifi.active(True) | |
| [product] | |
| version = "1.0" | |
| machine = "A13-EVB-V1.0" | |
| [target] | |
| boot_clock = 1008 | |
| dcdc2_vol = 1400 | |
| dcdc3_vol = 1200 | |
| ldo2_vol = 3000 | |
| ldo3_vol = 3300 |
| conky.config = { | |
| cpu_avg_samples = 2, | |
| net_avg_samples = 2, | |
| out_to_console = false, | |
| override_utf8_locale = true, | |
| double_buffer = true, | |
| no_buffers = true, | |
| text_buffer_size = 32768, | |
| imlib_cache_size = 0, | |
| own_window = true, |
| """ | |
| Small script to take the output of VB Decompiler Pro's | |
| Procedure listing and set breakpoints on each location | |
| for Ida Pro""" | |
| f = open("C:\\Users\\user\\Desktop\\sample.txt","r") | |
| for line in f.readlines(): | |
| if("Address" in line): | |
| break_address = line.rstrip().split(": ")[-1] |
| var xor_str = function(s,K) | |
| { | |
| c = ''; | |
| for(i=0; i<str.length; i++) { | |
| for(ik=0; ik<K.length; ik++){ | |
| c += String.fromCharCode(str[i].charCodeAt(0).toString(10) ^ key.charCodeAt(0).toString(10)); // XORing with letter 'K' | |
| } | |
| } | |
| return c; | |
| } |
This is a configuration generator app for the FANG cameras. This is an alternative to using some janky Chinese application.
A Pen by Riley Porter on CodePen.