Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cockpit. added ui & api #12

Merged
merged 25 commits into from Jun 10, 2019
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0a8598b
Cockpit scaffolded
andre8244 May 27, 2019
7dbc975
rpm. Fixed build
andre8244 May 28, 2019
569815b
api. Added read, update, validate
andre8244 May 28, 2019
f1a182d
ui. Added settings and app views
andre8244 May 28, 2019
60e8649
ui & api. Improved read api and completed settings view
andre8244 Jun 3, 2019
98dd587
ui. Completed settings and logs pages
andre8244 Jun 4, 2019
f6ebea7
ui. Completed about page
andre8244 Jun 4, 2019
ae7008f
api. Added action status to read
andre8244 Jun 5, 2019
01e6c5c
manifest. Changed app name
andre8244 Jun 5, 2019
2b36efa
ui. Completed dashboard, settings and logs view
andre8244 Jun 5, 2019
2ec2fa7
ui. Removed useless menu index
andre8244 Jun 5, 2019
5c18401
travis. Fixed build
andre8244 Jun 5, 2019
e8d68ca
ui. Added logo
andre8244 Jun 5, 2019
48e89c0
api. Fixed validate, refactored read and update
andre8244 Jun 6, 2019
8e2e94f
ui. Enhanced dashboard and settings views
andre8244 Jun 6, 2019
788ba66
api. Removed mock for ups@nethservice.nethesis.it
andre8244 Jun 6, 2019
63d4994
ui. Dashboard: fix for connected clients
andre8244 Jun 6, 2019
a8bc1df
api. Fixed timeout of bash commands, added copyright headers, removed…
andre8244 Jun 6, 2019
3e306fe
ui. Fixed configuration for nut-server/status; removed axios dependen…
andre8244 Jun 6, 2019
798e222
ui. Fixed labels for device combobox
andre8244 Jun 7, 2019
c1e73b7
api. Fixed master validation
andre8244 Jun 7, 2019
126ca75
api. Changed dashboard read api
andre8244 Jun 7, 2019
96f8d11
ui. Improved UI
andre8244 Jun 7, 2019
2bcf5f3
ui. Minor improvements
andre8244 Jun 7, 2019
1ed5e84
ui. Improved donut charts in dashboard
andre8244 Jun 10, 2019
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

api. Removed mock for ups@nethservice.nethesis.it

  • Loading branch information...
andre8244 committed Jun 6, 2019
commit 788ba662d3f097f2a210a53959198d60b3382080
@@ -16,17 +16,16 @@ def read_clients():
nut_monitor_config = read_config('nut-monitor')
master = nut_monitor_config['props']['Master']

# if master: # todo aaa uncomment
# return []
if master:
return []

nut_server_config = read_config('nut-server')
ups_name = nut_server_config['props']['Ups']

if not ups_name:
ups_name = 'UPS'

# bash_command = "timeout 0.4 /usr/bin/upsc -c %s" % ups_name # todo aaa uncomment
bash_command = "timeout 0.4 /usr/bin/upsc -c %s@nethservice.nethesis.it" % ups_name # todo aaa remove
bash_command = "timeout 0.4 /usr/bin/upsc -c %s" % ups_name
process = subprocess.Popen(bash_command.split(), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
output, error = process.communicate()
if error:
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.