Created At

Dec 01, 2017

Last Update

Dec 15, 2017

Platforms

HC 2, HC Lite

Views

15163

Download

798

FUNCTIONS

  • Virtual Device can be used to reboot or create backup. I am using it for create backup once every week based on block scenes.

INSTALLATION

  • import Maintenance.vfib to your HC
  • in Advanced Tab menu of Virtual Device change IP address to your local IP number of HC and TCP Port to 80.
  • in Create Backup button in Host parameter type in your local IP of HC so it should look like that:
    Host: 192.168.1.1.
  • in Create Backup button in Authorization parameter type in your authorization data (login:password) converted to basic64. It should look like that:
    Authorization: Basic YWRtaW46YWRtaW4=
  • in Reboot HC button in Authorization parameter type in your authorization data (login:password) converted to basic64. It should look like that:
    Authorization: Basic YWRtaW46YWRtaW4=

ADDITIONAL DEVICES

  • Not required

RIGHTS

  • I allow code to be reuse or change. Also labels can be translated and adjust.

19 Comments,  Want to add comment please login
E707855671e3960acaee6c03f1128c98

does not work in 4.520 - tried several times with using " " around the base64 code and without no influence at all. Useless

C6793a93a10502a0ea3a77ea2eee5127

Problem with new HV - exactly this VD was working fine on 4.180 :(((

C6793a93a10502a0ea3a77ea2eee5127

Not work with 4.520 ...

776424ad6a7cec7af34721efad3c029a

The Virtual device it's ok but fo reboot you must change the string like this: GET /api/service/reboot HTTP/1.1 Host: 192.xx.xx.xx Authorization: Basic YWRtaW46YWRtaW4= 0x0D0x0A0x0D0x0A in host put ip address of HC

Bf5de6de4bb47ec611718afcfb795390

For some reason both, the backup and the reboot doesn't work for me. I'm not sure what I'm doing wrong. Username:Password ([email protected]:Password) was converted to Base64. Here my string: Backup: POST /api/service/backups HTTP/1.1 Host: 192.168.0.3 Connection: keep-alive Content-Length: 50 Authorization: Basic XXXXXXXXXXXX {"action":"create","params":{"name":"AutoUpdate"}} Reboot: GET /api/service/reboot HTTP/1.1 Host: 127.0.0.1 Authorization: Basic XXXXXXXXXXXX

© 2024. Nice-Polska Sp. z o.o.Privacy policyTerms & ConditionsFeedback