Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Added utime (#5910)
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
  • Loading branch information
cweitkamp authored and kaikreuzer committed Dec 8, 2019
1 parent 5ece819 commit 597863e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -55,6 +55,7 @@ String fboxName "FBox Model [%s]" {fritzboxtr064="modelNam
String fboxManufacturer "FBox Manufacturer [%s]" {fritzboxtr064="manufacturerName"}
String fboxSerial "FBox Serial [%s]" {fritzboxtr064="serialNumber"}
String fboxVersion "FBox Version [%s]" {fritzboxtr064="softwareVersion"}
Number fboxUptime "FBox Uptime [%d s]" {fritzboxtr064="upTime"}
// get wan ip if FritzBox establishes the internet connection (e. g. via DSL)
String fboxWanIP "FBox WAN IP [%s]" {fritzboxtr064="wanip"}
// get wan ip if FritzBox uses internet connection of external router
Expand Down
Expand Up @@ -687,8 +687,9 @@ protected String parseValueFromSoapFault(ItemConfiguration itemConfiguration, SO
}).build();
addItemMap(imMacOnline);

addItemMap(new MultiItemMap(Arrays.asList("modelName", "manufacturerName", "softwareVersion", "serialNumber"),
"GetInfo", "urn:DeviceInfo-com:serviceId:DeviceInfo1", name -> "New" + WordUtils.capitalize(name)));
addItemMap(new MultiItemMap(
Arrays.asList("modelName", "manufacturerName", "softwareVersion", "serialNumber", "upTime"), "GetInfo",
"urn:DeviceInfo-com:serviceId:DeviceInfo1", name -> "New" + WordUtils.capitalize(name)));
addItemMap(SingleItemMap.builder().itemCommand("wanip")
.serviceId("urn:WANPPPConnection-com:serviceId:WANPPPConnection1")
.itemArgumentName("NewExternalIPAddress").readServiceCommand("GetExternalIPAddress").build());
Expand Down

0 comments on commit 597863e

Please sign in to comment.