-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lang.js file - decode name of keys to texts
- Loading branch information
Showing
9 changed files
with
229 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Indoor WebConfig tool | ||
===================== | ||
|
||
RASPBERRY Pi 2 Model B: | ||
- NodeJs | ||
- ExpressJs | ||
- AngularJs | ||
- Bootstrap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
|
||
var langstr = { | ||
// services: | ||
'in': 'Incomming calls' | ||
, 'out': 'Outgoing calls' | ||
, 'noansw': 'No answered calls' | ||
, 'noresp': 'No responded calls' | ||
|
||
// config: | ||
, 'screen_saver': 'Screen saver [min]' | ||
, 'back_light': 'Turn display off [0/1]' | ||
, 'watches': 'Use analog/digital watches' | ||
, 'brightness': 'Brightness [20..255]' | ||
, 'dnd_mode': 'Do not disturb mode [True/False]' | ||
, 'sip_mode': 'SIP mode [server/peer-to-peer]' | ||
, 'sip_username': 'SIP user name' | ||
, 'sip_server_addr': 'SIP server address' | ||
, 'sip_p4ssw0rd': 'Password for SIP autentification' | ||
, 'sip_port': 'SIP port' | ||
, 'sip_authentication_name': 'SIP authentication name' | ||
, 'ringtone': 'Ringing tone [tone1.wav/tone2.wav/oldphone.wav]' | ||
, 'volume': 'Speaker volume [20-100]' | ||
, 'micvolume': 'Microphone volume [20-100]' | ||
, 'screen_mode': 'Number of screens [1/2/4]' | ||
, 'screen_orientation': 'Screen orientation [0/90/180/270]' | ||
, 'server_ip_address_1': 'Outdoor device address 1' | ||
, 'server_ip_address_2': 'Outdoor device address 2' | ||
, 'server_ip_address_3': 'Outdoor device address 3' | ||
, 'server_ip_address_4': 'Outdoor device address 4' | ||
, 'server_stream_1': 'Video stream URL address 1' | ||
, 'server_stream_2': 'Video stream URL address 2' | ||
, 'server_stream_3': 'Video stream URL address 3' | ||
, 'server_stream_4': 'Video stream URL address 4' | ||
, 'sip_call1': 'SIP call IP/number 1' | ||
, 'sip_call2': 'SIP call IP/number 2' | ||
, 'sip_call3': 'SIP call IP/number 3' | ||
, 'sip_call4': 'SIP call IP/number 4' | ||
, 'picture_1': 'Picture format 1 [fill/4:3/16:9]' | ||
, 'picture_2': 'Picture format 2 [fill/4:3/16:9]' | ||
, 'picture_3': 'Picture format 3 [fill/4:3/16:9]' | ||
, 'picture_4': 'Picture format 4 [fill/4:3/16:9]' | ||
, 'broadcast': 'Broadcast address' | ||
, 'netmask': 'Network mask' | ||
, 'network': 'Network address' | ||
, 'dns': 'DNS server address' | ||
, 'ipaddress': 'Device IP address' | ||
, 'gateway': 'Gateway address' | ||
, 'inet': 'IP address type [dhcp/static]' | ||
, 'serial': 'RPi board serial number' | ||
, 'app_name': 'Application name' | ||
, 'app_ver': 'Version' | ||
, 'uptime': 'PRi operaton uptime' | ||
, 'licencekey': 'Licence key string' | ||
, 'regaddress': 'Licence key email address' | ||
, 'masterpwd': 'Master password' | ||
, '': '' | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,56 @@ | ||
<div class="container-fluid"> | ||
<div class="row content"> | ||
<h3>Services</h3> | ||
</div> | ||
</div> | ||
|
||
<div class="row content"> | ||
<div class="col-sm-8 col-sm-offset-2 text-left"> | ||
<button class="btn btn-md" type="button" ng-click="restartApp()"> Restart RPi GUI application </button> | ||
</div> | ||
</div> | ||
|
||
<div class="col-sm-12 text-left" ng-show="logs.length > 0"> | ||
<div class="row content"> | ||
<div class="col-sm-2 text-right"> | ||
<p><button class="btn btn-md" type="button" title="Display application log" ng-click="getAppLog()"> | ||
App log | ||
</button></p> | ||
<p><button class="btn btn-md" type="button" title="Display call counters" ng-click="getCallCntrs()"> | ||
Call counters | ||
</button></p> | ||
<p><button class="btn btn-md" type="button" title="Display call log" ng-click="getCallLog()"> | ||
Call log | ||
</button><p/> | ||
<p><button class="btn btn-md" type="button" title="Display SIP log" ng-click="getSipLog()"> | ||
SIP log | ||
</button></p> | ||
<p><button class="btn btn-md" type="button" title="Restart RPi GUI application" ng-click="restartApp()"> | ||
Restart GUI app | ||
</button></p> | ||
</div> | ||
|
||
<div class="col-sm-4 col-sm-offset-4 text-center" ng-show="logs.length == 0">No Services found</div> | ||
</div> | ||
<div class="col-sm-offset-2 text-left"> | ||
<div ng-show="msg != ''"> {{ msg }} </div> | ||
|
||
<div class="col-sm-offset-10" ng-show="logs.length > 0"> | ||
<button id="btnSelec" class="btn btn-md" type="button" title="Select content for Copy & Paste"> Select </button> | ||
</div> | ||
<div ng-show="logs.length > 0" id="logcontent"> | ||
<div ng-repeat="v in logs"> {{ v }} </div> | ||
</div> | ||
|
||
<div ng-show="keys.length > 0"> | ||
<div ng-repeat="(k,v) in cntrs"> | ||
<span class="col-sm-3 text-right">{{langtxt(k)}}</span>: {{ v }} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<script> | ||
$(function() { | ||
highlightMenuItem(); | ||
|
||
$('#logcontent').css({'height':'450px', 'overflow':'auto', 'margin-top':'16px', 'border':'1px solid black'}); | ||
|
||
$('#btnSelec').click(function(){ | ||
// console.log(this); | ||
selectText('logcontent'); | ||
}); | ||
|
||
}); | ||
</script> |
Oops, something went wrong.