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

Some help to put this module working #6

Open
bmaioral opened this issue Jun 24, 2021 · 22 comments
Open

Some help to put this module working #6

bmaioral opened this issue Jun 24, 2021 · 22 comments

Comments

@bmaioral
Copy link

Hi, I came across this module and I was very excited because all my lights at home are inside Smart Life app, so I basically just need that my mirror shows my ON/OFF light statues, however, I cannot manage to get it to work. I have tried everything with all combinations even with :
bizType: "smart_life",
from: "tuya",
showLabel: true,

but without any success, can you please give me a hint on how can I make it work OR if's a lost cause becasue not working anymore?

Thank you so much in advance

@slametps
Copy link
Owner

slametps commented Jun 24, 2021

no smart devices are displayed?
pls post yout config (pls strip your cred).
also check the MM or PM2 log for the errors.

@bmaioral
Copy link
Author

Thanks for your fast response.

Exactly, no smart devices are showed, just the small icon house and word "State" That's all.
Im very new in Magic Mirror so probaly Im doing something wrong...

Here's my config:

/* Magic Mirror Config Sample
*

*/

var config = {
address: "localhost", // Address to listen on, can be:
// - "localhost", "127.0.0.1", "::1" to listen on loopback interface
// - another specific IPv4/6 to listen on a specific interface
// - "0.0.0.0", "::" to listen on any interface
// Default, when address config is left out or empty, is "localhost"
electronOptions: {
webPreferences:{
webviewTag: true
}
},
port: 8080,
basePath: "/", // The URL path where MagicMirror is hosted. If you are using a Reverse proxy
// you must set the sub path here. basePath must end with a /
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
// or add a specific IPv4 of 192.168.1.5 :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
// or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
// ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],

useHttps: false, 		// Support HTTPS or not, default "false" will use HTTP
httpsPrivateKey: "", 	// HTTPS private key path, only require when useHttps is true
httpsCertificate: "", 	// HTTPS Certificate path, only require when useHttps is true

language: "pt",
locale: "pt-PT",
logLevel: ["INFO", "LOG", "WARN", "ERROR"], // Add "DEBUG" for even more logging
timeFormat: 24,
units: "metric",
// serverOnly:  true/false/"local" ,
// local for armv6l processors, default
//   starts serveronly and then starts chrome browser
// false, default for all NON-armv6l devices
// true, force serveronly mode, because you want to.. no UI on this device

modules: [
	{
		module: "alert",
	},
	{
		module: "updatenotification",
		position: "top_bar"
	},
	{
		module: "clock",
		position: "top_left"
	},
	{
		module: "calendar",
		header: "Feriados Regionais",
		position: "top_left",
		config: {

			calendars: [
				{
					symbol: "calendar-check",
					maximumEntries: "5",
					url: "...23holiday%40group.v.calendar.google.com/public/basic.ics"					}
			]
				}
	},
	{
				module: "calendar",
				header: "Calendário CádCasa",
				position: "top_left",
				config: {

			calendars: [
				{
					symbol: "calendar-check",
					maximumEntries: "5",
					url: "...liag%40group.calendar.google.com/public/basic.ics"					}
			]
				}
	},
	{
module: 'MMM-Worldclock',
position: 'top_left', // This can be any of the regions, best in top_left or top_right regions
config: {
// See 'Configuration options' for more information.
	timeFormat: 'hh:mm A', //Global time format, as defined in moment.js format()
	style: 'top', // Which way do you want the flag and description from the clock? choices are 'top', 'left','right','bottom'
	offsetTimezone: null, // Timezone you want to show the difference from. null, "", or omitted from config will be UTC.
	clocks: [
		{
			title: "Home",
		},
		{
			title: "HOLLYWOOD", // Too long of a title could cause bad text align.
			timezone: "America/Los_Angeles", //When omitted, Local time will be displayed. 
			flag: "us", // If you'd like a flag from the standard library 
		},
		{
			timezone: "Asia/Seoul",
		},
		{
			title: "UTC",
			timezone: "UTC",
			timeFormat: "HH:mm MM/DD", // Time format override. 
			altflag: "world.png" // if you'd like a flag from a file on your mirror device. 
		},
	]
},

},

	{ // API -  https://www.icalendar37.net/lunar/app/
            module: 'mmm-redd-moon-phases',
            header: 'Já viste a Lua Hoje?',
            position: 'top_left',     
            config: {
	  size:	"130",
	  lightColor: 'rgb(255,255,230)',
	  shadeColor: "transparent",
	  texturize: true,
	  updaateHour: "6",
	  condensed: false,
	  showType: true,
	  }
	},
	{
		module: "compliments",
		position: "lower_third"
	},
	{
		module: "weather",
		position: "top_right",
		config: {
			weatherProvider: "openweathermap",
			type: "current",
			location: "----",
			locationID: "-----", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
			apiKey: "------"
		}
	},
	{
		module: "weather",
		position: "top_right",
		header: "Previsão Semanal",
		config: {
			weatherProvider: "openweathermap",
			type: "forecast",
			location: "Castelo Branco",
			locationID: "-----", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city
			apiKey: "----"
		}
	},
	{
  module: "MMM-GoogleAssistant",
  position: "top_left",
  configDeepMerge: true,
  config: {
    debug: false,
    assistantConfig: {
      lang: "pt-BR",
      latitude: 39.82219,
      longitude: 7.49087,
      },
	Extented: {
	  useEXT: true,
	  deviceName: "MagicMirror",
	  stopCommand: "stop",		  
    responseConfig: {
	  useFullscreen: false,
	  useResponseOutput: true,
	  responseOutputCSS: "response_output.css",
	  screenOutputTimer: 5000,
	  activateDelay: 250,
	  useAudioOutput: true,
	  useChime: true,
	  confirmationChime: true,
	  useInformations: true
	  },
	youtube: {
	  useYoutube: true,
	  youtubeCommand: "youtube",
	  displayResponse: true,
	  useVLC: true,
	  minVolume: 30,
	  maxVolume: 100
	  },
	links: {
	  useLinks: true,
	  displayDelay: 60 * 1000,
	  scrollActivate: false,
	  scrollStep: 25,
	  scrollInterval: 1000,
	  scrollStart: 5000
	},
	photos: {
	  usePhotos: true,
	  useGooglePhotosAPI: true,
	  displayType: "Mdodule",
	  displayDelay: 10 * 1000,
	  albums: ["Domingo em São Pedro", "2020"],
	  sort: "new",
	  hiResolution: false,
	  timeFormat: "DD/MM/YYYY HH:mm",
	  moduleHeight: 300,
	  moduleWidth: 300,
	  },
	volume: {
	  useVolume: true,
	  volumePreset: "PULSE",
	  myScript: null
	  },
	welcome: {
	  useWelcome: false,
	  welcome: "brief today"
	},
	screen: {
	  useScreen: true,
	  animateBody: true,
	  delay: 5 * 60 * 1000,
	  turnOffDisplay: true,
	  mode: 4,
	  ecoMode: true,
	  delayed: 0,
	  displayCounter: true,
	  displayBar: true,
	  displayStyle: "SemiCircle",
	  detectorSleeping: false,
	  governorSleeping: false,
	  displayLastPresence: true
	  },
	pir: {
	  usePir: false,
	  gpio: 21,
	  },
	governor: {
	  useGovernor: false,
	  useCallback: true,
	  sleeping: "powersave",
	  working: "ondemand"
	  },
	internet: {
	  useInternet: true,
	  displayPing: false,
	  delay: 2* 60 * 1000,
	  scan: "google.pt",
	  command: "pm2 restart 0",
	  showAlert: true,
	  needRestart: false
	  },
	cast: {
	  useCast: true,
	  port: 8569
	  },
	spotify: {
	  useSpotify: true,
	    visual: {
	      updateInterval: 1000,
	      idleInterval: 10000,
	      useBottomBar: true,
	      CLIENT_ID: "----",
	      CLIENT_SECRET: "----",
	    player: {
	      type: "Librespot",
	      email: "----",
	      password: "---",
	      minVolume: 10,
	      maxVolume: 90,
	      usePause: true
	    },
	      },
	  },
	      recipes: ["ExtSpotify.js", "ExtGPhotos.js", "ExtRadio_fr.js", "with-BackgroundStatus.js"],
	  NPMCheck: {
	    useChecker: true,
	    delay: 10 * 60 * 1000,
	    useAlert: true
	    },
    },
  }
},
{
    module: 'MMM-Snowboy',
    configDeepMerge: true,
    config: {
      debug: false,
      autoStart: true,
      micConfig: {
	recorder: "arecord",
	device: "plughw:2",
	audioGain: 2.0,
	applyFrontend: true,
      },
      detectors: [
	{
	  Model: "alexa",
	  Sensitivity: null,
	  onDetected: {
	    notification: "ALEXA_ACTIVATE",
	    parameters: null
	  }
	},
	{
	  Model: "jarvis",
	  Sensitivity: null,
	  onDetected: {
	    notification: "GA_ACTIVATE",
	    parameters: null
	  }
	}
      ]
    }
  },
	{
		module: "newsfeed",
		position: "bottom_bar",
		config: {
			feeds: [
				{
					title: "Público",
					url: "https://feeds.feedburner.com/PublicoRSS.xml"
				}
			],
			showSourceTitle: true,
			showPublishDate: true,
			broadcastNewsFeeds: true,
			broadcastNewsUpdates: true
		}
	},
	{
	module: 'MMM-TuyaSL',
	position: 'top_right',
	header: 'TuyaSL',
	config: {
	  userName: '----',
	  password: '-----',
	  countryCode: 'PT',
	  //bizType: "smart_life",
	  //from: "tuya",
	  //showLabel: true,
	  showOnlyOnline: false,
	  showOnlyOn: false,
	  colour: false,
	  updateInterval: 300 * 1000,
	  timeout: 10 * 1000,
	  }
	},
	{
	module: 'MMM-Tools',
	position: 'bottom_right',
	config: {
	  refresh: 1000 * 5,
	  containerSize: 300,
	  itemSize: null,
	  OS: {
	    displayOs: true,
	    orderOs: 1
	  },
	  CPU: {
	    displayUsage: true,
	    orderUsage: 4,
	    displayTemp: true,
	    orderTemp: 7,
	    displayType: true,
	    orderType: 2
	  },
	  RAM: {
	    displayRam: true,
	    orderRam: 5
	  },
	  STORAGE: {
	    displayStorage: true,
	    orderStorage: 6,
	    partitionExclude : []
	  },
	  NETWORK: {
	    displayNetwork: true,
	    orderNetwork: 3,
	    nativeNetwork: false,
	    displayDefaultNetwork: true
	  },
	  UPTIME: {
	    displayUptime: true,
	    useMagicMirror: true,
	    orderUptime: 8,
	    displayRecord: true,
	    orderRecord: 9
	  },
	  WARNING: {
	    enableWarning: true,
	    interval: 1000 * 60 * 5,
	    check : {
	      CPU_TEMP : 65,
	      CPU_USAGE : 75,
	      STORAGE_USED : 80,
	      MEMORY_USED : 80,
	    }
	  }
	}
	},
	{
	disabled: false,
	module: 'MMM-EventHorizon',
	position: 'upper_third',
	config: {
	    timezone: "n133",                     // See Timezone chart at bottom
	    units: "1",          // 1=no units, 2=units initial only, 3=units abbr singular, 4= units abbr plural, 5= units full name
	    justDays: "",                         //  yes or no // For longer countdowns. Displays ONLY days remaining
	    size: "medium",                        // small, medium or large
	    countUp: "yes",                       // Count up after timer ends
	    date: "2021-07-08",                   // YYYY-MM-DD format ONLY
	    time: "00:00:01",                     // (HH:MM:SS)    Exact time you want timer to end
	    text1: "Férias da Lia",               // 2 lines of text during timer
	    text2: "Começa a brincadeira!",       // 2 lines of text during timer
	    text1Color: "FFFFFF",                 // Hex color codes
	    text2Color: "622262",                 // Hex color codes
	    timerColor: "FFFFFF",                 // Hex color codes
	    endText1: "When timer ends",          // 2 lines of text when timer ends
	    endText2: "Say something here",       // 2 lines of text when timer ends
	    endText1Color: "FFFFFF",              // Hex color codes
	    endText2Color: "622262",              // Hex color codes
	    timerUpColor: "FFFFFF",               // Hex color codes
	    colorpc: "000",                       // color of the background 000 = black, t = transparent
	  }
	},

	{
	  module: 'MMM-trakt',
	  position: 'middle_center', // you may choose any location
	  header: 'Séries de TV', // optional
	  config: {
	    client_id: '-----',
	    client_secret: '------',
	    days: 3, // optional, default: 1. 1 = today's episodes, 2 = today's and tomorrow's, 3 = etc...
	    styling : {
		moduleSize: "small", // optional, possible value: (xsmall, small, medium, large, xlarge), default: small
		daysUntil: true, // optional, shows 'today' and 'tomorrow' insted of date, default: false
		daysUntilFormat: "hh:mm", // optional, default: "hh:mm", time format after 'today'. Leave empty ("") to hide, possible values: https://momentjs.com/docs/#/displaying/format/
		dateFormat: "D.M hh:mm", // optional, default: "D.M hh:mm", possible values: https://momentjs.com/docs/#/displaying/format/
		showEpisodeTitle: false, // optional, default: true
	    },
	    debug: false // optional, default: false
	  }
	},
]

};

/*************** DO NOT EDIT THE LINE BELOW ***************/
if (typeof module !== "undefined") {module.exports = config;}

@slametps
Copy link
Owner

slametps commented Jun 24, 2021

What I mean with your config is the MMM-TuyaSL config only :)
Are other modules work normally?
Try to change countryCode to EN rather than PT.
I suggest, pls try with MMM-TuyaSL only to help you find out what is wrong.
Have you followed all the installation instruction step by step?
pls attach your pm2 logs, usually located in ~/.pm2/logs/MagicMirror-out.log.

@bmaioral
Copy link
Author

bmaioral commented Jun 24, 2021

Sorry my bad :P

Yes all other modules are working ok (except Librespot sometimes works sometimes not) and I tried your suggestion changing PT to EN but it doesn't seem to make any difference.
I'm new in Magic Mirror can you please tell me specifically how I can find that .pm2/logs folder? I searched everywhere without luck, do I need to introduce any command line to access it?

I do find the .pm2 folder but no logs inside...
image

image

@slametps
Copy link
Owner

you run MM via PM2 or not?
how did you run your MM?

@bmaioral
Copy link
Author

Pretty sure I'm using PM2, at least that is what I use to start/stop my MM.
PM2 start magicmirror - PM2 stop magicmirror
image

@slametps
Copy link
Owner

Then, you should have your PM2 logs in /home/pi/.pm2/logs/.
/home/pi is the base folder if you install MM using user pi.

@bmaioral
Copy link
Author

Finally! I was able to find it :p

Thank you so much for helping with this, your module is one of the main modules on my MM.
I didn't find anything regarding MMM-TuyaSL but I also not sure exactly what should I look for...

I have 5 logs and a TON of errors :D
image

@slametps
Copy link
Owner

Can you post latest content (e.g. last 20 lines) of MagicMirror-error.log?

@bmaioral
Copy link
Author

sure, I noticed a few variations on the log so I sent a few more hopping will help.

ALSA lib pcm.c:8424:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8424:(snd_pcm_recover) underrun occurred
[2021-06-18T02:07:42Z INFO librespot_playback::player] Loading with Spotify URI spotify:track:5jNMpTRbJ2bEBl4LHVUyWN
[2021-06-18T02:07:42Z INFO librespot_playback::player] (339675 ms) loaded
[2021-06-18T02:13:21Z INFO librespot_playback::player] Loading <Silvia - Robotberget Remix> with Spotify URI spotify:track:0fFHjnqpSpV8XuWyCKf6XU
[2021-06-18T02:13:21Z INFO librespot_playback::player] <Silvia - Robotberget Remix> (478133 ms) loaded
[2021-06-18T02:21:19Z INFO librespot_playback::player] Loading with Spotify URI spotify:track:4goWmpceUK3FiZ8nP0u64A
[2021-06-18T02:21:20Z INFO librespot_playback::player] (218786 ms) loaded
[2021-06-18T02:17:28Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-18T02:17:29Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-d-1r03.ap.spotify.com:4070"
[2021-06-18T02:17:29Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-18T22:49:34Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-d-pls1.ap.spotify.com:4070"
[2021-06-18T22:49:35Z INFO librespot_core::session] Authenticated as "bmaioral" !
[2021-06-18T22:49:35Z INFO librespot_playback::audio_backend::alsa] Using Alsa sink with format: S16
[2021-06-18T22:49:35Z INFO librespot_core::session] Country: "PT"
[2021-06-18T22:49:36Z INFO librespot_playback::player] Loading with Spotify URI spotify:track:6smHCdWbjToHVWdcuWRprx
[2021-06-18T22:49:37Z INFO librespot_playback::player] (548560 ms) loaded
[2021-06-19T01:53:51Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-19T01:53:51Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-d-mgn1.ap.spotify.com:4070"
[2021-06-19T01:53:52Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-20T07:50:54Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-20T07:50:54Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-d-gcm1.ap.spotify.com:4070"
[2021-06-20T07:50:55Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-21T00:17:26Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-21T00:17:27Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-d-z47v.ap.spotify.com:4070"
[2021-06-21T00:17:27Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-21T22:55:01Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-21T22:55:02Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-d-5xtm.ap.spotify.com:4070"
[2021-06-21T22:55:02Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-22T00:04:08Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-22T00:04:08Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-wq0c.ap.spotify.com:4070"
[2021-06-22T00:04:08Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-23T22:36:36Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-23T22:36:36Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-cgfd.ap.spotify.com:4070"
[2021-06-23T22:36:37Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-24T01:47:49Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-24T01:47:50Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-k8wx.ap.spotify.com:4070"
[2021-06-24T01:47:50Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-24T15:34:29Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-24T15:34:29Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-n8dl.ap.spotify.com:4070"
[2021-06-24T15:34:30Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-27T01:17:25Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-27T01:17:25Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-l47g.ap.spotify.com:4070"
[2021-06-27T01:17:26Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-27T22:50:43Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-27T22:50:43Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-js23.ap.spotify.com:4070"
[2021-06-27T22:50:44Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-29T00:53:35Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-29T00:53:35Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-sqd4.ap.spotify.com:4070"
[2021-06-29T00:53:37Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-29T17:25:33Z INFO librespot] Gracefully shutting down
[2021-06-29T17:25:58Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-29T17:25:59Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-mjbz.ap.spotify.com:4070"
[2021-06-29T17:25:59Z WARN librespot] Connection failed: Login failed with reason: Bad credentials

@bmaioral
Copy link
Author

Probably nothing to do with MMM-TuyaSL right?

@slametps
Copy link
Owner

slametps commented Jul 2, 2021

I'm not sure. There is only a way to check this. Pls remove all config modules (save it to somehere else first) but MMM-TuyaSL config. Then, restart MM, and observe the log.

@bmaioral
Copy link
Author

bmaioral commented Jul 2, 2021

Thanks for the support.
I did exactly as you said however I have a completely blank page in the MagicMirror-error.log

image

image

@bmaioral
Copy link
Author

bmaioral commented Jul 2, 2021

Here's my config file without any other modules:
image

@bmaioral
Copy link
Author

bmaioral commented Jul 4, 2021

Ok, I did another try on MagicMirror-error.log and this time I had no black page but I still had only the Librespot bad credentials errors and nothing apparently regarding MMM-TuyaSL...

Pretty sure I am doing something wrong but have no idea what :(

Here's my log:

[2021-06-22T00:04:08Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-22T00:04:08Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-wq0c.ap.spotify.com:4070"
[2021-06-22T00:04:08Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-23T22:36:36Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-23T22:36:36Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-cgfd.ap.spotify.com:4070"
[2021-06-23T22:36:37Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-24T01:47:49Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-24T01:47:50Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-k8wx.ap.spotify.com:4070"
[2021-06-24T01:47:50Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-24T15:34:29Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-24T15:34:29Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-n8dl.ap.spotify.com:4070"
[2021-06-24T15:34:30Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-27T01:17:25Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-27T01:17:25Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-l47g.ap.spotify.com:4070"
[2021-06-27T01:17:26Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-27T22:50:43Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-27T22:50:43Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-js23.ap.spotify.com:4070"
[2021-06-27T22:50:44Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-29T00:53:35Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-29T00:53:35Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-sqd4.ap.spotify.com:4070"
[2021-06-29T00:53:37Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-29T17:25:33Z INFO librespot] Gracefully shutting down
[2021-06-29T17:25:58Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-29T17:25:59Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-mjbz.ap.spotify.com:4070"
[2021-06-29T17:25:59Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-29T17:34:47Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-29T17:34:47Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-qhzj.ap.spotify.com:4070"
[2021-06-29T17:34:48Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-29T18:01:11Z INFO librespot] Gracefully shutting down
[2021-06-29T18:01:41Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-29T18:01:41Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-5v30.ap.spotify.com:4070"
[2021-06-29T18:01:42Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-30T01:25:39Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-30T01:25:39Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-lt76.ap.spotify.com:4070"
[2021-06-30T01:25:39Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-07-02T15:17:25Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-07-02T15:17:26Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-1wmt.ap.spotify.com:4070"
[2021-07-02T15:17:27Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-07-02T23:56:03Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-07-02T23:56:03Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-mg4v.ap.spotify.com:4070"
[2021-07-02T23:56:04Z WARN librespot] Connection failed: Login failed with reason: Bad credentials

@slametps
Copy link
Owner

slametps commented Jul 5, 2021

Did you follow all steps described in installation guide ?

@bmaioral
Copy link
Author

bmaioral commented Jul 5, 2021

Yes, step by step 3 times. I'll try it once more and this time i will restart just to check the log once more and i will post results again.
Thanks

@bmaioral
Copy link
Author

bmaioral commented Jul 5, 2021

Ok, I have followed your instructions step by step after uninstall/install the module again, sudo reboot, and the result on logs it seems to be exactly the same. I also stopped Librespot just in case with no luck at all.

I also moved MMM-TuyaSL module to a different position just in case but has made no difference.

I'm pretty sure it's something I'm doing wrong but I have no idea what could it be.

Anyways, thank you so much for your time.

image

image

Here are my logs:

[2021-06-29T00:53:37Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-29T17:25:33Z INFO librespot] Gracefully shutting down
[2021-06-29T17:25:58Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-29T17:25:59Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-mjbz.ap.spotify.com:4070"
[2021-06-29T17:25:59Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-29T17:34:47Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-29T17:34:47Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-qhzj.ap.spotify.com:4070"
[2021-06-29T17:34:48Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-29T18:01:11Z INFO librespot] Gracefully shutting down
[2021-06-29T18:01:41Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-29T18:01:41Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-5v30.ap.spotify.com:4070"
[2021-06-29T18:01:42Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-06-30T01:25:39Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-06-30T01:25:39Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-lt76.ap.spotify.com:4070"
[2021-06-30T01:25:39Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-07-02T15:17:25Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-07-02T15:17:26Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-1wmt.ap.spotify.com:4070"
[2021-07-02T15:17:27Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-07-02T23:56:03Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-07-02T23:56:03Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-mg4v.ap.spotify.com:4070"
[2021-07-02T23:56:04Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-07-05T00:29:25Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-07-05T00:29:25Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-tx71.ap.spotify.com:4070"
[2021-07-05T00:29:25Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-07-05T17:38:29Z INFO librespot] Gracefully shutting down
[2021-07-05T17:38:57Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-07-05T17:38:57Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-vfqn.ap.spotify.com:4070"
[2021-07-05T17:38:58Z WARN librespot] Connection failed: Login failed with reason: Bad credentials
[2021-07-05T17:47:31Z INFO librespot] Gracefully shutting down
[2021-07-05T17:47:58Z INFO librespot] librespot 0.2.0 28dd842 (Built on 2021-05-25, Build ID: KuGFoEB7)
[2021-07-05T17:47:58Z INFO librespot_core::session] Connecting to AP "gew1-accesspoint-a-zkcn.ap.spotify.com:4070"
[2021-07-05T17:47:58Z WARN librespot] Connection failed: Login failed with reason: Bad credentials

@slametps
Copy link
Owner

slametps commented Jul 6, 2021

MMM-TuyaSL-out

Also take a loot at your pm2 output log (MagicMirror-out.log), for something entries as above.
You can also try to uncomment some lines with console.log().

@bmaioral
Copy link
Author

bmaioral commented Jul 9, 2021

Ohh man, these ones were too far for my knowledge, sorry :P

I have no idea why but it's almost impossible to open MagicMirror-out.log in my RP. I tried several times with Geany, Text Editor with no results.
Regarding to console.log() I have no idea what that is or where can I find it. I tried to google it but I clearly miss some background info here so I'm starting to give up. Maybe this has something to do with Tuya side itself with a new update or something, I don't know. I'm just a bit frustrated because all my other modules are working and this one was the Cherry on the top of the cake.

Anyways thank you so much for your help.

image

@arora1mayank
Copy link

module showing no data what should I do?

@arora1mayank
Copy link

[16.09.2021 12:53.24.960] [ERROR] (node:5858) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron. See electron/electron#23506 for more information
[16.09.2021 12:53.28.692] [LOG] MMM-TuyaSL node helper received a socket notification: TUYASL_NETWORK_SEARCH - Payload: [object Object]
[16.09.2021 12:53.28.695] [LOG] Getting device list...
[16.09.2021 12:53.28.707] [LOG] ERROR: Error: ENOENT: no such file or directory, open '/tmp/mmm-tuyasl-token.txt'
at Object.openSync (fs.js:466:3)
at Object.func [as openSync] (electron/js2c/asar_bundle.js:5:1812)
at Object.readFileSync (fs.js:368:35)
at Object.e.readFileSync (electron/js2c/asar_bundle.js:5:8592)
at Class.search (/home/pi/MagicMirror/modules/MMM-TuyaSL/node_helper.js:152:21)
at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-TuyaSL/node_helper.js:246:12)
at Socket. (/home/pi/MagicMirror/js/node_helper.js:109:11)
at Socket.emit (events.js:315:20)
at Socket.emitUntyped (/home/pi/MagicMirror/node_modules/socket.io/dist/typed-events.js:69:22)
at /home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:428:39
at processTicksAndRejections (internal/process/task_queues.js:79:11)
[16.09.2

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

3 participants