Skip to content

Commit

Permalink
Version 0.1. Windows installer released.
Browse files Browse the repository at this point in the history
  • Loading branch information
riclolsen committed Oct 7, 2020
1 parent 95b353f commit f2af94d
Show file tree
Hide file tree
Showing 9 changed files with 88 additions and 95 deletions.
136 changes: 57 additions & 79 deletions platform-windows/json-scada.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -134,30 +134,25 @@ SetRegView 64
var /GLOBAL NAVVISTAB
var /GLOBAL NAVVISANO
var /GLOBAL NAVVISTEL
var /GLOBAL NAVVISTRE
var /GLOBAL NAVVISOVW
var /GLOBAL NAVVISDOC
var /GLOBAL NAVVISLOG
var /GLOBAL NAVGRAFAN
var /GLOBAL HTTPSRV

StrCpy $HTTPSRV "http://127.0.0.1:80"
# PROTOCOL://IP:PORT
StrCpy $HTTPSRV "http://127.0.0.1"
#StrCpy $HTTPSRV "https://127.0.0.1"
StrCpy $NAVWINCMD "platform-windows\browser-runtime\chrome.exe"
StrCpy $NAVDATDIR "--user-data-dir=$INSTDIR\browser-data"
StrCpy $NAVPREOPT "--process-per-site --no-sandbox"
StrCpy $NAVPOSOPT "--disable-popup-blocking --no-proxy-server --bwsi --disable-extensions --disable-sync --no-first-run"
StrCpy $NAVDATDIR "--user-data-dir=$INSTDIR\platform-windows\browser-data"
#StrCpy $NAVPREOPT "--process-per-site --no-sandbox"
StrCpy $NAVPREOPT "--process-per-site"
#StrCpy $NAVPOSOPT "--disable-popup-blocking --no-proxy-server --bwsi --disable-extensions --disable-sync --no-first-run"
StrCpy $NAVPOSOPT "--disable-popup-blocking --no-proxy-server --bwsi"
StrCpy $NAVINDEX "/"
StrCpy $NAVVISABO "/htdocs/about.html"
StrCpy $NAVVISEVE "/htdocs/events.html"
StrCpy $NAVVISHEV "/htdocs/events.html?MODO=4"
StrCpy $NAVVISTAB "/htdocs/tabular.html"
StrCpy $NAVVISANO "/htdocs/tabular.html?SELMODULO=TODOS_ANORMAIS"
StrCpy $NAVVISTEL "/htdocs/display.html"
StrCpy $NAVVISTRE "/htdocs/trend.html"
StrCpy $NAVVISOVW "/htdocs/overview.html"
StrCpy $NAVVISDOC "/htdocs/listdocs.php"
StrCpy $NAVVISLOG "/htdocs/listlogs.php"
StrCpy $NAVVISABO "/about.html"
StrCpy $NAVVISEVE "/events.html"
StrCpy $NAVVISHEV "/events.html?MODO=4"
StrCpy $NAVVISTAB "/tabular.html"
StrCpy $NAVVISANO "/tabular.html?SELMODULO=ALARMS_VIEWER"
StrCpy $NAVVISTEL "/display.html"
StrCpy $NAVGRAFAN "/grafana"

; write reg info
Expand All @@ -181,7 +176,6 @@ SetRegView 64
CreateDirectory "$INSTDIR\bin"
CreateDirectory "$INSTDIR\conf"
CreateDirectory "$INSTDIR\docs"
CreateDirectory "$INSTDIR\grafana-dashboards"
CreateDirectory "$INSTDIR\log"
CreateDirectory "$INSTDIR\mongo_seed"
; CreateDirectory "$INSTDIR\sql"
Expand Down Expand Up @@ -222,9 +216,6 @@ SetRegView 64
SetOutPath $INSTDIR\docs
File /a /r "..\docs\*.*"

SetOutPath $INSTDIR\grafana-dashboards
File /a /r "..\grafana-dashboards\*.*"

SetOutPath $INSTDIR\platform-windows\grafana-runtime
File /a /r "..\platform-windows\grafana-runtime\*.*"

Expand Down Expand Up @@ -328,44 +319,33 @@ SetRegView 64
; Visual C redist: necessario para executar o timescaledb
nsExec::Exec '"$INSTDIR\platform-windows\vc_redist.x64.exe" /q'

; chaves para o windows
; WriteINIStr "$INSTDIR\conf\hmi.ini" "RUN" "EVENTS_VIEWER" '"$INSTDIR\$NAVWINCMD $NAVDATDIR --bopt --app=$HTTPSRV$NAVVISEVE"'
; WriteINIStr "$INSTDIR\conf\hmi.ini" "RUN" "TABULAR_VIEWER" '"$INSTDIR\$NAVWINCMD $NAVDATDIR --bopt --app=$HTTPSRV$NAVVISTAB"'
; WriteINIStr "$INSTDIR\conf\hmi.ini" "RUN" "SCREEN_VIEWER" '"$INSTDIR\$NAVWINCMD $NAVDATDIR --bopt --app=$HTTPSRV$NAVVISTEL"'
; WriteINIStr "$INSTDIR\conf\hmi.ini" "RUN" "TREND_VIEWER" '"$INSTDIR\$NAVWINCMD $NAVDATDIR --bopt --app=$HTTPSRV$NAVVISTRE"'
; WriteINIStr "$INSTDIR\conf\hmi.ini" "RUN" "DOCS_VIEWER" '"$INSTDIR\$NAVWINCMD $NAVDATDIR --bopt --app=$HTTPSRV$NAVVISDOC"'
; WriteINIStr "$INSTDIR\conf\hmi.ini" "RUN" "LOGS_VIEWER" '"$INSTDIR\$NAVWINCMD $NAVDATDIR --bopt --app=$HTTPSRV$NAVVISLOG"'

; Aqui ficam todos os atalhos no Desktop, apagando os antigos
Delete "$DESKTOP\JSON-SCADA\*.*"
CreateDirectory "$DESKTOP\JSON-SCADA"

; Cria atalhos para os aplicativos
CreateShortCut "$DESKTOP\JSON-SCADA\_Start_Services.lnk" "$INSTDIR\platform-windows\start_services.bat"
CreateShortCut "$DESKTOP\JSON-SCADA\_Stop_Services.lnk" "$INSTDIR\platform-windows\stop_services.bat"
CreateShortCut "$DESKTOP\JSON-SCADA\Windows Services.lnk" "services.msc"
CreateShortCut "$DESKTOP\JSON-SCADA\_JSON SCADA WEB.lnk" "$INSTDIR\$NAVWINCMD" " $NAVDATDIR $NAVPREOPT --app=$HTTPSRV$NAVINDEX $NAVPOSOPT" "$INSTDIR\src\htdocs\images\j-s-256.ico"

; CreateShortCut "$DESKTOP\JSON-SCADA\Clean Browser Cache.lnk" "$INSTDIR\platform-windows\cache_clean.bat"

CreateShortCut "$DESKTOP\JSON-SCADA\Chromium Browser.lnk" "$INSTDIR\$NAVWINCMD" " $NAVDATDIR $NAVPREOPT $NAVPOSOPT"

CreateShortCut "$DESKTOP\JSON-SCADA\JSON SCADA WEB.lnk" "$INSTDIR\$NAVWINCMD" " $NAVDATDIR $NAVPREOPT --app=$HTTPSRV$NAVINDEX $NAVPOSOPT" "$INSTDIR\htdocs\images\j-s-256.ico"

CreateShortCut "$DESKTOP\JSON-SCADA\About.lnk" "$INSTDIR\$NAVWINCMD" " $NAVDATDIR $NAVPREOPT --app=$HTTPSRV$NAVVISABO $NAVPOSOPT" "$INSTDIR\htdocs\images\j-s-256.ico"
CreateShortCut "$DESKTOP\JSON-SCADA\Display Viewer.lnk" "$INSTDIR\$NAVWINCMD" " $NAVDATDIR $NAVPREOPT --app=$HTTPSRV$NAVVISTEL $NAVPOSOPT" "$INSTDIR\htdocs\images\tela.ico"
CreateShortCut "$DESKTOP\JSON-SCADA\Events Viewer.lnk" "$INSTDIR\$NAVWINCMD" " $NAVDATDIR $NAVPREOPT --app=$HTTPSRV$NAVVISEVE $NAVPOSOPT" "$INSTDIR\htdocs\images\chrono.ico"
CreateShortCut "$DESKTOP\JSON-SCADA\Historical Events.lnk" "$INSTDIR\$NAVWINCMD" " $NAVDATDIR $NAVPREOPT --app=$HTTPSRV$NAVVISHEV $NAVPOSOPT" "$INSTDIR\htdocs\images\calendar.ico"
CreateShortCut "$DESKTOP\JSON-SCADA\Tabular Viewer.lnk" "$INSTDIR\$NAVWINCMD" " $NAVDATDIR $NAVPREOPT --app=$HTTPSRV$NAVVISTAB $NAVPOSOPT" "$INSTDIR\htdocs\images\tabular.ico"
CreateShortCut "$DESKTOP\JSON-SCADA\Alarms Viewer.lnk" "$INSTDIR\$NAVWINCMD" " $NAVDATDIR $NAVPREOPT --app=$HTTPSRV$NAVVISANO $NAVPOSOPT" "$INSTDIR\htdocs\images\firstaid.ico"
CreateShortCut "$DESKTOP\JSON-SCADA\Grafana.lnk" "$INSTDIR\$NAVWINCMD" " $NAVDATDIR $NAVPREOPT --app=$HTTPSRV$NAVGRAFAN $NAVPOSOPT" "$INSTDIR\htdocs\images\grafana.ico"
; CreateShortCut "$DESKTOP\JSON-SCADA\About.lnk" "$INSTDIR\$NAVWINCMD" " $NAVDATDIR $NAVPREOPT --app=$HTTPSRV$NAVVISABO $NAVPOSOPT" "$INSTDIR\src\htdocs\images\j-s-256.ico"

CreateShortCut "$DESKTOP\JSON-SCADA\Viewer - Display.lnk" "$INSTDIR\$NAVWINCMD" " $NAVDATDIR $NAVPREOPT --app=$HTTPSRV$NAVVISTEL $NAVPOSOPT" "$INSTDIR\src\htdocs\images\tela.ico"
CreateShortCut "$DESKTOP\JSON-SCADA\Viewer - Events.lnk" "$INSTDIR\$NAVWINCMD" " $NAVDATDIR $NAVPREOPT --app=$HTTPSRV$NAVVISEVE $NAVPOSOPT" "$INSTDIR\src\htdocs\images\chrono.ico"
CreateShortCut "$DESKTOP\JSON-SCADA\Viewer - Historical.lnk" "$INSTDIR\$NAVWINCMD" " $NAVDATDIR $NAVPREOPT --app=$HTTPSRV$NAVVISHEV $NAVPOSOPT" "$INSTDIR\src\htdocs\images\calendar.ico"
CreateShortCut "$DESKTOP\JSON-SCADA\Viewer - Tabular.lnk" "$INSTDIR\$NAVWINCMD" " $NAVDATDIR $NAVPREOPT --app=$HTTPSRV$NAVVISTAB $NAVPOSOPT" "$INSTDIR\src\htdocs\images\tabular.ico"
CreateShortCut "$DESKTOP\JSON-SCADA\Viewer - Alarms.lnk" "$INSTDIR\$NAVWINCMD" " $NAVDATDIR $NAVPREOPT --app=$HTTPSRV$NAVVISANO $NAVPOSOPT" "$INSTDIR\src\htdocs\images\firstaid.ico"
CreateShortCut "$DESKTOP\JSON-SCADA\Viewer - Grafana.lnk" "$INSTDIR\$NAVWINCMD" " $NAVDATDIR $NAVPREOPT --app=$HTTPSRV$NAVGRAFAN $NAVPOSOPT" "$INSTDIR\src\htdocs\images\grafana.ico"

; CreateShortCut "$DESKTOP\JSON-SCADA\Operation Manual.lnk" "$INSTDIR\bin\operation_manual.bat"
; CreateShortCut "$DESKTOP\JSON-SCADA\Configuration Manual.lnk" "$INSTDIR\bin\configuration_manual.bat"

CreateShortCut "$DESKTOP\JSON-SCADA\Compass (Mongodb GUI Client).lnk" "$INSTDIR\platform-windows\mongodb-compass-runtime\MongoDBCompass.exe"

CreateShortCut "$DESKTOP\JSON-SCADA\Inkscape SAGE (SVG Editor).lnk" "$INSTDIR\platform-windows\inkscape-runtime\inkscape.exe"
CreateShortCut "$DESKTOP\JSON-SCADA\Nginx and PHP Start.lnk" "$INSTDIR\nginx_php-runtime\start_nginx_php.bat"

CreateShortCut "$DESKTOP\JSON-SCADA\Uninstall.lnk" "$INSTDIR\bt-uninst.exe"


Expand Down Expand Up @@ -397,10 +377,10 @@ SetRegView 64
; SimpleFC::AddApplication "OSHMI ICCP" "$INSTDIR\bin\iccp_client.exe" 0 2 "" 1
; Pop $0 ; return error(1)/success(0)
;
; SimpleFC::AddApplication "OSHMI NGINX" "$INSTDIR\nginx_php\nginx.exe" 0 2 "" 1
; SimpleFC::AddApplication "OSHMI NGINX" "$INSTDIR\platform-windows\nginx_php-runtime\nginx.exe" 0 2 "" 1
; Pop $0 ; return error(1)/success(0)
;
; SimpleFC::AddApplication "OSHMI PHP-CGI" "$INSTDIR\nginx_php\php\php-cgi.exe" 0 2 "" 1
; SimpleFC::AddApplication "OSHMI PHP-CGI" "$INSTDIR\platform-windows\nginx_php-runtime\php\php-cgi.exe" 0 2 "" 1
; Pop $0 ; return error(1)/success(0)

; SimpleFC::AddPort 65280 "OSHMI Webserver" 256 0 2 "" 1
Expand Down Expand Up @@ -501,7 +481,7 @@ IfFileExists "$INSTDIR\postgresql-data\base" pgDatabaseExists 0

pgDatabaseExists:

MessageBox MB_OK "JSON-SCADA Installed! To quickly run the system after installed: Open the JSON-SCADA desktop folder and execute the '_Start JSON-SCADA' shortcut."
MessageBox MB_OK "Installation finished! To run the system: Open the JSON-SCADA desktop folder, execute the '_Start_Services' shortcut and then open '_JSON SCADA WEB'."

SectionEnd

Expand All @@ -512,52 +492,47 @@ UninstallIcon "${NSISDIR}\Contrib\Graphics\Icons\nsis1-uninstall.ico"

Section "Uninstall"

; Fecha processos

; SetOutPath $INSTDIR\bin
ExecWait '"$0" /C "$INSTDIR\platform-windows\mongodb-stop.bat"'
ExecWait '"$0" /C "$INSTDIR\platform-windows\postgresql-stop.bat"'
ExecWait '"$0" /C "$INSTDIR\platform-windows\stop_services.bat"'
Sleep 3000
ExecWait '"$0" /C "$INSTDIR\platform-windows\remove_services.bat"'
nsExec::Exec `wmic PROCESS WHERE "COMMANDLINE LIKE '%c:\\json-scada\\bin\\%'" CALL TERMINATE`
nsExec::Exec `wmic PROCESS WHERE "COMMANDLINE LIKE '%c:\\json-scada\\platform-windows\\browser-runtime\\%'" CALL TERMINATE`
nsExec::Exec `wmic PROCESS WHERE "COMMANDLINE LIKE '%c:\\json-scada\\platform-windows\\nginx_php\\%'" CALL TERMINATE`
nsExec::Exec `wmic PROCESS WHERE "COMMANDLINE LIKE '%c:\\json-scada\\platform-windows\\platform-windows\inkscape-runtime\\%'" CALL TERMINATE`
nsExec::Exec `wmic PROCESS WHERE "COMMANDLINE LIKE '%c:\\json-scada\\platform-windows\\postgresql-runtime\\%'" CALL TERMINATE`
nsExec::Exec `wmic PROCESS WHERE "COMMANDLINE LIKE '%c:\\json-scada\\platform-windows\\grafana-runtime\\%'" CALL TERMINATE`
nsExec::Exec `wmic PROCESS WHERE "COMMANDLINE LIKE '%c:\\json-scada\\sql\\%'" CALL TERMINATE`

; Remove an application from the firewall exception list
; SimpleFC::RemoveApplication "$INSTDIR\webserver.exe"
; SimpleFC::RemoveApplication "$INSTDIR\bin\hmishell.exe"
; Pop $0 ; return error(1)/success(0)
; SimpleFC::RemoveApplication "$INSTDIR\hmishell.exe"
; SimpleFC::RemoveApplication "$INSTDIR\bin\mon_proc.exe"
; Pop $0 ; return error(1)/success(0)
; SimpleFC::RemoveApplication "$INSTDIR\mon_proc.exe"
; SimpleFC::RemoveApplication "$INSTDIR\bin\QTester104.exe"
; Pop $0 ; return error(1)/success(0)
; SimpleFC::RemoveApplication "$INSTDIR\QTester104.exe"
; SimpleFC::RemoveApplication "$INSTDIR\bin\dnp3.exe"
; Pop $0 ; return error(1)/success(0)
; SimpleFC::RemoveApplication "$INSTDIR\dnp3.exe"
; SimpleFC::RemoveApplication "$INSTDIR\bin\modbus.exe"
; Pop $0 ; return error(1)/success(0)
; SimpleFC::RemoveApplication "$INSTDIR\modbus.exe"
; SimpleFC::RemoveApplication "$INSTDIR\bin\iccp_client.exe"
; Pop $0 ; return error(1)/success(0)
; SimpleFC::RemoveApplication "$INSTDIR\iccp_client.exe"
; SimpleFC::RemoveApplication "$INSTDIR\platform-windows\nginx_php-runtime\nginx.exe"
; Pop $0 ; return error(1)/success(0)
; SimpleFC::RemoveApplication "$INSTDIR\nginx_php\nginx.exe"
; SimpleFC::RemoveApplication "$INSTDIR\platform-windows\nginx_php-runtime\php\php-cgi.exe"
; Pop $0 ; return error(1)/success(0)
; SimpleFC::RemoveApplication "$INSTDIR\nginx_php\php\php-cgi.exe"
; SimpleFC::RemoveApplication "$INSTDIR\bin\opc_client.exe"
; Pop $0 ; return error(1)/success(0)
; SimpleFC::RemoveApplication "$INSTDIR\opc_client.exe"
; Pop $0 ; return error(1)/success(0)
; SimpleFC::RemoveApplication "$INSTDIR\s7client.exe"
; SimpleFC::RemoveApplication "$INSTDIR\bin\s7client.exe"
; Pop $0 ; return error(1)/success(0)

DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\JSON_SCADA"
DeleteRegKey HKLM "SOFTWARE\JSON_SCADA"
;WriteRegStr HKCU "Software\Microsoft\Windows NT\CurrentVersion\Winlogon" "Shell" "explorer.exe"
;WriteRegDword HKCU "Software\Microsoft\Windows\CurrentVersion\Policies\System" "DisableTaskMgr" 0x00
; WriteRegStr HKCU "Software\Microsoft\Windows NT\CurrentVersion\Winlogon" "Shell" "explorer.exe"
; WriteRegDword HKCU "Software\Microsoft\Windows\CurrentVersion\Policies\System" "DisableTaskMgr" 0x00

nsExec::Exec '$INSTDIR\etc\remove_services.bat'
; Fecha processos

ExecWait '"$0" /C "$INSTDIR\platform-windows\mongodb-stop.bat"'
ExecWait '"$0" /C "$INSTDIR\platform-windows\postgresql-stop.bat"'
ExecWait '"$0" /C "$INSTDIR\platform-windows\stop_services.bat"'
Sleep 5000
ExecWait '"$0" /C "$INSTDIR\platform-windows\remove_services.bat"'
Sleep 1000
nsExec::Exec `wmic PROCESS WHERE "COMMANDLINE LIKE '%c:\\json-scada\\sql\\%'" CALL TERMINATE`
Sleep 1000
nsExec::Exec `wmic PROCESS WHERE "COMMANDLINE LIKE '%c:\\json-scada\\platform-windows\\browser-runtime\\%'" CALL TERMINATE`
nsExec::Exec `wmic PROCESS WHERE "COMMANDLINE LIKE '%c:\\json-scada\\platform-windows\\mongodb-runtime\\%'" CALL TERMINATE`
nsExec::Exec `wmic PROCESS WHERE "COMMANDLINE LIKE '%c:\\json-scada\\platform-windows\\inkscape-runtime\\%'" CALL TERMINATE`
nsExec::Exec `wmic PROCESS WHERE "COMMANDLINE LIKE '%c:\\json-scada\\platform-windows\\%'" CALL TERMINATE`
nsExec::Exec `wmic PROCESS WHERE "COMMANDLINE LIKE '%c:\\json-scada\\bin\\%'" CALL TERMINATE`
Sleep 1000

RMDir /r "$INSTDIR\bin"
RMDir /r "$INSTDIR\platform-windows"
Expand All @@ -566,6 +541,9 @@ Section "Uninstall"
RMDir /r "$INSTDIR"
RMDir /r "$DESKTOP\JSON-SCADA"

DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\JSON_SCADA"
DeleteRegKey HKLM "SOFTWARE\JSON_SCADA"

SectionEnd


5 changes: 2 additions & 3 deletions platform-windows/postgresql-initdb.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
echo THIS WILL ERASE CURRENT CONTENTS OF POSTGRESQL DATABASE!
echo PRESS CTRL+C to STOP or any othe key to proceed!
pause
echo THIS WILL INITIALIZE THE POSTGRESQL DATABASE!

c:\json-scada\platform-windows\postgresql-runtime\bin\initdb.exe -D c:\json-scada\platform-windows\postgresql-data --username=postgres --auth=trust -E UTF8 --locale=en_US.UTF-8
3 changes: 2 additions & 1 deletion platform-windows/release_notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ QUICKSTART:

To quickly run the system after installed, open the JSON-SCADA desktop folder and:

- On the JSON-SCADA desktop folder: execute _Start_JSON_SCADA.
- On the JSON-SCADA desktop folder: execute _Start_Services.
- On the JSON-SCADA desktop folder: execute _JSON SCADA WEB.

The system is preconfigured to connect to a online demo simulation via IEC60870-5-104 protocol with an example point list and screens.
To issue a command, click on a breaker and push the "Command" button then choose
Expand Down
1 change: 1 addition & 0 deletions platform-windows/remove_services.bat
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ nssm remove JSON_SCADA_server_realtime confirm
nssm remove JSON_SCADA_calculations confirm
nssm remove JSON_SCADA_process_rtdata confirm
nssm remove JSON_SCADA_process_hist confirm
nssm remove JSON_SCADA_alarm_beep confirm

nssm remove JSON_SCADA_nginx confirm
nssm remove JSON_SCADA_php confirm
Expand Down
1 change: 1 addition & 0 deletions platform-windows/start_services.bat
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ nssm start JSON_SCADA_server_realtime
nssm start JSON_SCADA_calculations
nssm start JSON_SCADA_process_rtdata
nssm start JSON_SCADA_process_hist
REM nssm start JSON_SCADA_alarm_beep

nssm start JSON_SCADA_php
nssm start JSON_SCADA_nginx
Expand Down
35 changes: 24 additions & 11 deletions platform-windows/stop_services.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,35 @@ rem Stop services

cd \json-scada\platform-windows

net stop JSON_SCADA_postgresql
nssm stop JSON_SCADA_grafana
nssm stop JSON_SCADA_mongodb
nssm stop JSON_SCADA_cs_data_processor
nssm stop JSON_SCADA_server_realtime
nssm stop JSON_SCADA_calculations
nssm stop JSON_SCADA_process_rtdata
nssm stop JSON_SCADA_process_hist

REM FIRST STOP USERS
nssm stop JSON_SCADA_nginx
nssm stop JSON_SCADA_php
nssm stop JSON_SCADA_server_realtime
nssm stop JSON_SCADA_alarm_beep
ping -n 2

nssm stop JSON_SCADA_iec104server
REM STOP PROTOCOL CLIENTS
nssm stop JSON_SCADA_iec104client
nssm stop JSON_SCADA_iec101server
nssm stop JSON_SCADA_iec101client
nssm stop JSON_SCADA_dnp3client
nssm stop JSON_SCADA_i104m
nssm stop JSON_SCADA_plctags
ping -n 3

REM STOP PROTOCOL SERVERS
nssm stop JSON_SCADA_iec104server
nssm stop JSON_SCADA_iec101server
ping -n 2

REM STOP OTHER PROCESSES
nssm stop JSON_SCADA_calculations
nssm stop JSON_SCADA_cs_data_processor
ping -n 2
nssm stop JSON_SCADA_process_rtdata
nssm stop JSON_SCADA_process_hist
ping -n 3

REM STOP GRAFANA AND DATABASE SERVERS
nssm stop JSON_SCADA_grafana
nssm stop JSON_SCADA_mongodb
net stop JSON_SCADA_postgresql
2 changes: 1 addition & 1 deletion src/htdocs/display.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<meta name='mobile-web-app-capable' content='yes' />
<meta name='apple-mobile-web-app-capable' content='yes' />
<meta name='viewport' content='width=2400,initial-scale=1.3' />
<title>Screen Viewer</title>
<title>Display Viewer</title>
<meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1' />
<link rel='apple-touch-icon' href='images/tela.png' />
<link rel="stylesheet" type="text/css" href="lib/radar-chart.css">
Expand Down

0 comments on commit f2af94d

Please sign in to comment.