Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialization Skipped #27

Closed
BigTomFPV opened this issue May 25, 2019 · 1 comment
Closed

Initialization Skipped #27

BigTomFPV opened this issue May 25, 2019 · 1 comment

Comments

@BigTomFPV
Copy link

Hi guys,

Getting this error while booting up
[2019-5-25 10:01:23] [homebridge-eWeLink.eWeLink] Initialization skipped. Missing configuration data. Setup Payload: X-HM://0023NJY59N94F

I ran the code sudo npm -g install homebridge-ewelink-max then changed my config file to whats below, any ideas? Might look a mess on here but jsonlint verifies it as valid.

{
  "bridge": {
    "name": "Toms Homebridge",
    "username": "CC:22:3D:E3:CE:30",
    "port": 51826,
    "pin": "111-22-333"
  },
  
  "description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",
  "ports": {
    "start": 52100,
    "end": 52500,
    "comment": "This section is used to control the range of ports that separate accessory (like camera or television) should be bind to."
  },

  "platforms": [
    {
	"platform": "Camera-ffmpeg",
	"cameras": [{
		"name": "Drive Camera",
		"videoConfig": {
			"source": "-rtsp_transport tcp -re -i rtsp://192.168.1.240:554/user=admin&password=&channel=1&stream=0.sdp?",
			"maxStreams": 2,
			"maxWidth": 1280,
			"maxHeight": 720,
			"maxFPS": 20
		}
              },
                {
                    "name": "Garage Camera",
                    "videoConfig": {
                        "source": "-rtsp_transport tcp -re -i rtsp://192.168.1.240:554/user=admin&password=&channel=3&stream=0.sdp?",
                        "maxStreams": 2,
                        "maxWidth": 1280,
                        "maxHeight": 720,
                        "maxFPS": 20
		}
              },
            {            
            "platform" : "eWeLink",
            "name" : "eWeLink",
            "email" : "HIDDENEMAIL",
            "password" : "HIDDENPW",
            "imei" : "136E1790-E312-466D-AAD1-50F861F94F6E"
               }
	]
}
  ]
} 
@howanghk
Copy link
Owner

Hi @BigTomFPV, you mistakenly put the eWeLink platform into the cameras array of the Camera-ffmpeg platform. It won't work that way. Instead, you should put the eWeLink platform configuration in the platforms array. Like this:

{
  "bridge": {
    "name": "Toms Homebridge",
    "username": "CC:22:3D:E3:CE:30",
    "port": 51826,
    "pin": "111-22-333"
  },
  
  "description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",
  "ports": {
    "start": 52100,
    "end": 52500,
    "comment": "This section is used to control the range of ports that separate accessory (like camera or television) should be bind to."
  },
  
  "platforms": [
    {
      "platform": "Camera-ffmpeg",
      "cameras": [
        {
          "name": "Drive Camera",
          "videoConfig": {
            "source": "-rtsp_transport tcp -re -i rtsp://192.168.1.240:554/user=admin&password=&channel=1&stream=0.sdp?",
            "maxStreams": 2,
            "maxWidth": 1280,
            "maxHeight": 720,
            "maxFPS": 20
          }
        },
        {
          "name": "Garage Camera",
          "videoConfig": {
            "source": "-rtsp_transport tcp -re -i rtsp://192.168.1.240:554/user=admin&password=&channel=3&stream=0.sdp?",
            "maxStreams": 2,
            "maxWidth": 1280,
            "maxHeight": 720,
            "maxFPS": 20
          }
        }
      ]
    },
    {            
      "platform" : "eWeLink",
      "name" : "eWeLink",
      "email" : "HIDDENEMAIL",
      "password" : "HIDDENPW",
      "imei" : "136E1790-E312-466D-AAD1-50F861F94F6E"
    }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants