ronny3050 / phone-notification-mirror

Displays and alerts mirror users on new phone notifications
61 stars 15 forks source link

Error in "ident:" #29

Open ScootScooter opened 4 years ago

ScootScooter commented 4 years ago

I have installed this module, but it looks like it doesn't work correctly. I have copied the code and changed the parts i needed to change. But when I start the mirror it gives an error code. it's saying that "--header" is incorrect. But I have checked a few websites and all of them are saying i need it. What's wrong with my code?

{ module: 'phone_notification', position: 'bottom_left', header: 'Phone Notifications', config: { accessToken: 'o.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', numberOfNotifications: 5, displayNotificationIcon: true, displayMessage: true, displayCount: false, alert: false, fade: true, maxCharacters: 50, useEncryption: false, key: { password: "SuperSecretPassword123", ident: curl --header 'Access-Token: o.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \ https://api.pushbullet.com/v2/users/me, } } },

Ryancru2309 commented 3 years ago

Hello, you will need to run the "curl --header 'Access-Token: o.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \ https://api.pushbullet.com/v2/users/me" in the terminal for and it will give you an ident code. This is what is used in the .js file. Hope this helps :)