-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a file with examples. Fixed the boolean -l option for wc_getTre…
…nd. Implemented a -u and -p option for parsing username and password to the WebCTRL server. If -p is not specified one will be prompted in the command line to enter the password.
- Loading branch information
Showing
6 changed files
with
223 additions
and
48 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,83 @@ | ||
Example(s) for each of the webctrl command line tools | ||
--------------------------------------------------- | ||
|
||
### wc_query - Query the children of a node | ||
|
||
$ ./wc_query -u wsdl -n /trees/geographic | ||
No password specified via -p. Please enter your WebCTRL login password: | ||
Children of "/trees/geographic": | ||
[#verbrauchszaehlung, #geb_a, #geb_b, #geb_c, #geb_d, #geb_e, #geb_f, #geb_g, #geb_k, #geb_l, #geb_m, #geb_pnq, ...] | ||
|
||
$ ./wc_query -u wsdl -n /trees/geographic/#geb_e/#kaltw_erzeuger_fel/#km_speicher_fel | ||
No password specified via -p. Please enter your WebCTRL login password: | ||
Children of "/trees/geographic/#geb_e/#kaltw_erzeuger_fel/#km_speicher_fel": | ||
[m032, m007, m008, m034, m033, m001, m005, m004, m003, m002, m006, ...] | ||
|
||
|
||
### wc_getValue - get the present value (the present_value attribute) of a m??? controller | ||
|
||
$ ./wc_getValue -u wsdl -n /trees/geographic/#geb_e/#kaltw_erzeuger_fel/#km_speicher_fel/m001 | ||
No password specified via -p. Please enter your WebCTRL login password: | ||
Present value of /trees/geographic/#geb_e/#kaltw_erzeuger_fel/#km_speicher_fel/m001 is: 15.600924 | ||
|
||
|
||
### wc_getReport - get a report for a node (one level lower than m???) | ||
|
||
$ ./wc_getReport -u wsdl -n /trees/geographic/#geb_e/#kaltw_erzeuger_fel/#km_speicher_fel/m001 | ||
No password specified via -p. Please enter your WebCTRL login password: | ||
| Standort | | ||
|--------------------------------------------------------------- | ||
| Fr die aktuellen Optionen wurden keine Ergebnisse gefunden.x | | ||
|
||
$ ./wc_getReport -u wsdl -n /trees/geographic/#geb_e/#kaltw_erzeuger_fel/#km_speicher_fel | ||
No password specified via -p. Please enter your WebCTRL login password: | ||
| Standort | Regelungsprogramm | Name | Wert | Typ | Objekt-ID | Gerte-ID | Objektname | Offset/Polaritt | Pfad | | ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
| /Fritz-Haber-Institut/Bauteil E/Kaltwassererzeuger | Kaltwassererzeuger | FEL Kaltwasser Durchflussmenge Verteiler | 6.5 m3/Std. | BMAI | AI:315818 | DEV:34157 | m032_5 | | #km_speicher_fel/m032 | | ||
| /Fritz-Haber-Institut/Bauteil E/Kaltwassererzeuger | Kaltwassererzeuger | FEL Kaltwasser Kltemaschine Rcklauftemperatur x | 9.724116 C | BMAI | AI:2796280 | DEV:34157 | m007_5 | | #km_speicher_fel/m007 | | ||
| /Fritz-Haber-Institut/Bauteil E/Kaltwassererzeuger | Kaltwassererzeuger | FEL Kaltwasser Kltemaschine Vorlauftemperatur | 8.348758 C | BMAI | AI:2796279 | DEV:34157 | m008_5 | | #km_speicher_fel/m008 | | ||
| ... | ||
|
||
|
||
### wc_getTrend - get timestamps and data values of a specific controller for a specific time period | ||
|
||
### If no time period and number of values to retrieve are specified you'll get the last ten values | ||
$ python wc_getTrend.py -u wsdl -n /trees/geographic/#geb_g/#g_luft/#primzuluft_1_2_stm/#g_primzuluft_trend/m006 | ||
No password specified via -p. Please enter your WebCTRL login password: | ||
Start time is undefined. Use -s to define date and time. | ||
End time is undefined. Use -e to define date and time. | ||
05/30/2017 02:19:00 PM 63.292435 | ||
05/30/2017 02:20:00 PM 63.292435 | ||
05/30/2017 02:21:00 PM 63.292435 | ||
05/30/2017 02:22:00 PM 63.292435 | ||
05/30/2017 02:23:00 PM 63.292435 | ||
05/30/2017 02:24:00 PM 63.292435 | ||
05/30/2017 02:25:00 PM 63.292435 | ||
05/30/2017 02:26:00 PM 63.292435 | ||
05/30/2017 02:27:00 PM 63.292435 | ||
05/30/2017 02:28:00 PM 63.292435 | ||
|
||
### Specify the amount of values you want to retrieve starting from the time of retrieval | ||
$ python wc_getTrend.py -u wsdl -n /trees/geographic/#geb_g/#g_luft/#primzuluft_1_2_stm/#g_primzuluft_trend/m006 -m 5 | ||
No password specified via -p. Please enter your WebCTRL login password: | ||
Start time is undefined. Use -s to define date and time. | ||
End time is undefined. Use -e to define date and time. | ||
05/30/2017 04:25:00 PM 63.783897 | ||
05/30/2017 04:26:00 PM 63.783897 | ||
05/30/2017 04:27:00 PM 63.783897 | ||
05/30/2017 04:28:00 PM 63.783897 | ||
05/30/2017 04:29:00 PM 63.783897 | ||
|
||
### Specify the amount of values you want to retrieve starting from the beginning of recording the specified controller | ||
$ python wc_getTrend.py -u wsdl -n /trees/geographic/#geb_g/#g_luft/#primzuluft_1_2_stm/#g_primzuluft_trend/m006 -m 5 -l | ||
No password specified via -p. Please enter your WebCTRL login password: | ||
Start time is undefined. Use -s to define date and time. | ||
End time is undefined. Use -e to define date and time. | ||
03/15/2017 04:10:48 PM 0.0 | ||
03/15/2017 04:10:48 PM 0.0 | ||
03/15/2017 04:12:21 PM 33.726974 | ||
05/30/2017 04:27:00 PM 63.783897 | ||
05/30/2017 04:28:00 PM 63.783897 | ||
|
||
|
||
|
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
Oops, something went wrong.