GithubHelp home page GithubHelp logo

mzsmakr / devicemanagerrdmuic Goto Github PK

View Code? Open in Web Editor NEW

This project forked from racinel200/devicemanagerrdmuic

0.0 1.0 0.0 537 KB

Device Manager

Python 49.99% TypeScript 22.92% HTML 24.40% CSS 1.10% JavaScript 1.59%

devicemanagerrdmuic's Introduction

DeviceManagerRDMUIC

Device Manager

pip install flask pip install flask_socketio pip install requests pip install mysql-connector pip install discord_webhook

May Need pip install mysql-connector-python

Put your Device UUID's and names in the RDM_Devices Folder

Specify your UI Control Folder in the same directory as the script plug in your DB info and backend url info and run python DeviceManagerV6.py in a console. To exit out and stop all devices use control C in the same terminal window

Change the user in the DeviceConfigJson to something specific to you. You will need to log in for the first time on a browser using the username and password you specify in the config

Hit localhost:8887/DeviceManager/GetDeviceStatus to see your options of stuff to do for devices.

For Device Manage UI

CREATE TABLE rdmdb.DeviceManagerDevices (

uuid varchar(255) Primary Key ,
device_id varchar(255) ,
last_seen int(11) unsigned,
instance_name varchar(255),
account_username varchar(255),
fastIV tinyint(1) unsigned Default 0,
enableAccountManager tinyint(1) Default 1,
enabled tinyint(1) Default 0,
workspace_folder varchar(255),
backendURL varchar(255),
deviceStatus varchar(255),
IpaPath varchar(255),
deviceGroup varchar(255) Default '1',
DeviceManagerHost varchar(255)

);

DELIMITER $$

CREATE TRIGGER updateDeviceManagerTable AFTER UPDATE ON device FOR EACH ROW BEGIN UPDATE DeviceManagerDevices SET uuid = NEW.uuid , last_seen = NEW.last_seen , instance_name = NEW.instance_name , account_username = NEW.account_username

WHERE uuid = NEW.uuid;    

END $$

DELIMITER ;

INSERT INTO DeviceManagerDevices ( uuid, account_username, instance_name ) SELECT uuid, account_username, instance_name FROM rdmdb.device

Unzip the DeviceManagerUI folder and edit the username and password in the home-page.compoenents.ts and the device-group.components.ts

run npm install to install dependencies and then run ng serve --open

devicemanagerrdmuic's People

Contributors

racinel200 avatar enzikami avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.