madshall / node-blink-security

This is an npm module for communicating with Blink Home Security System
MIT License
86 stars 33 forks source link

No cameras listed #48

Open FelixGaebler opened 4 years ago

FelixGaebler commented 4 years ago

I just setup my two Blink Minis, but they dont show up in the object dump from the example snipped, but my network does. Am I using it wrong?

Blink {
  _username: 'xxx@xxx.xx',
  _password: 'xxxxxxxxxxxxxxxxx',
  _token: 'xxxxxxxxxxxxxxxxxxxxxx',
  _auth_header:
   { Host: 'e002.immedia-semi.com',
     TOKEN_AUTH: 'xxxxxxxxxxxxxxxxxxxx' },
  _networks:
   [ { id: xxxxxx,
       created_at: '2020-05-23T16:01:40+00:00',
       updated_at: '2020-05-23T16:22:40+00:00',
       name: 'xxxxxxx',
       network_key: 'xxxxxxxxxxxx',
       description: '',
       network_origin: 'normal',
       locale: '',
       time_zone: 'Europe/Berlin',
       dst: true,
       ping_interval: 60,
       encryption_key: null,
       armed: true,
       autoarm_geo_enable: false,
       autoarm_time_enable: false,
       lv_mode: 'relay',
       lfr_channel: 0,
       video_destination: 'server',
       storage_used: 0,
       storage_total: 0,
       video_count: 0,
       video_history_count: 4000,
       arm_string: 'Armed',
       busy: false,
       camera_error: false,
       sync_module_error: false,
       feature_plan_id: null,
       account_id: xxxxx} ],
  _account_id: xxxxxx,
  _region: 'Europe',
  _region_id: 'e002',
  _host: 'e002.immedia-semi.com',
  _events: [],
  _cameras: {},
  _idlookup: {},
  _device_id: 'xxxxxx',
  auth_2FA: false,
  verification_timeout: 60000,
  device_name: 'node-blink-security',
  urls:
   BlinkURLHandler {
     base_url: 'https://rest.e002.immedia-semi.com',
     event_url: 'https://rest.e002.immedia-semi.com/events/network/',
     network_url: 'https://rest.e002.immedia-semi.com/network/',
     networks_url: 'https://rest.e002.immedia-semi.com/networks',
     video_url:
      'https://rest.e002.immedia-semi.com/api/v1/accounts/26943/media/changed',
     home_url: 'https://rest.e002.immedia-semi.com/homescreen' } }
FelixGaebler commented 4 years ago

Also the getsummery method returns no devices

{ '30657':
   { account: { notifications: 1 },
     network:
      { name: 'HomeSEC',
        wifi_strength: 1,
        status: 'no_sm',
        armed: true,
        notifications: 1,
        warning: 0,
        enable_temp_alerts: false,
        error_msg: '' },
     devices: [] } }

my app displays the two cams without any problem.