Skip to content
Permalink
2a07e0621f
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
124 lines (103 sloc) 6.73 KB
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
### The usage of the date+time options -s and -e are examplified. -l ist not specified, thus, the last ten values are returned:
$ python wc_getTrend.py -u wsdl -n /trees/geographic/#geb_g/#g_luft/#primzuluft_1_2_stm/#g_primzuluft_trend/m006 -s '05/30/2017 03:00:00 AM' -e '05/30/2017 06:00:00 AM'
No password specified via -p. Please enter your WebCTRL login password:
05/30/2017 05:51:00 AM 59.97419
05/30/2017 05:52:00 AM 59.97419
05/30/2017 05:53:00 AM 59.97419
05/30/2017 05:54:00 AM 59.97419
05/30/2017 05:55:00 AM 59.97419
05/30/2017 05:56:00 AM 59.97419
05/30/2017 05:57:00 AM 59.97419
05/30/2017 05:58:00 AM 59.97419
05/30/2017 05:59:00 AM 59.97419
05/30/2017 06:00:00 AM 59.97419
### -l is specified, thus, the first ten values starting from the time given in -s are returned:
$ python wc_getTrend.py -u wsdl -n /trees/geographic/#geb_g/#g_luft/#primzuluft_1_2_stm/#g_primzuluft_trend/m006 -s '05/30/2017 03:00:00 AM' -e '05/30/2017 06:00:00 AM' -l
No password specified via -p. Please enter your WebCTRL login password:
05/30/2017 03:01:00 AM 63.87936
05/30/2017 03:02:00 AM 63.87936
05/30/2017 03:03:00 AM 63.87936
05/30/2017 03:04:00 AM 64.26652
05/30/2017 03:05:00 AM 64.26652
05/30/2017 03:06:00 AM 64.26652
05/30/2017 03:07:00 AM 64.26652
05/30/2017 03:08:00 AM 64.26652
05/30/2017 03:09:00 AM 64.26652
05/30/2017 03:10:00 AM 64.26652
### Get all values (-m 0) between the times given in -s and -e:
$ python wc_getTrend.py -u wsdl -n /trees/geographic/#geb_g/#g_luft/#primzuluft_1_2_stm/#g_primzuluft_trend/m006 -s '05/30/2017 03:00:00 AM' -e '05/30/2017 04:00:00 AM' -l -m 0
No password specified via -p. Please enter your WebCTRL login password:
05/30/2017 03:01:00 AM 63.87936
05/30/2017 03:02:00 AM 63.87936
05/30/2017 03:03:00 AM 63.87936
05/30/2017 03:04:00 AM 64.26652
...
05/30/2017 03:57:00 AM 60.07319
05/30/2017 03:58:00 AM 60.07319
05/30/2017 03:59:00 AM 60.07319
05/30/2017 04:00:00 AM 60.07319