Giter VIP home page Giter VIP logo

Comments (10)

cowboysdude avatar cowboysdude commented on August 10, 2024

Pull request sent, should fix this problem.

from mmm-bmw-cc.

mykle1 avatar mykle1 commented on August 10, 2024

Yo CBD!

Thanks for taking the initiative and contributing. Lots of people want stuff done but very few actually volunteer to help. In your case, you just sent me the PR with the work already done. I really appreciate that. It's hard to keep up as you well know.

Peace!

from mmm-bmw-cc.

Dresch360 avatar Dresch360 commented on August 10, 2024

I'm having the same issue as MichaelMausbach "TypeError: result.slice is not a function" - I've done a clean install, but still get the same error message. Any help would be greatly appreciated.

[2021-01-14 15:26:11.909] [LOG] Whoops! There was an uncaught exception...
[2021-01-14 15:26:11.910] [ERROR] TypeError: result.slice is not a function
at Request._callback (/home/pi/MagicMirror/modules/MMM-BMW-CC/node_helper.js:44:33)
at Request.self.callback (/home/pi/MagicMirror/modules/node_modules/request/request.js:185:22)
at Request.emit (events.js:200:13)
at Request. (/home/pi/MagicMirror/modules/node_modules/request/request.js:1161:10)
at Request.emit (events.js:200:13)
at IncomingMessage. (/home/pi/MagicMirror/modules/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:288:20)
at IncomingMessage.emit (events.js:205:15)
at endReadableNT (_stream_readable.js:1154:12)
at processTicksAndRejections (internal/process/task_queues.js:84:9)

{
disabled: false,
module: "MMM-BMW-CC",
position: "top_bar", // designed for bottom_bar(best) thirds should be good too
config: {
apiKey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",//Get at https://www.climacell.co/weather-api/pricing/
ownTitle: "Current Conditions",
tempUnits: "us", // us = F or si = C
lat: '30', // Your latitude
lon: '-100', // Your longitude
css: "2", // 1-6
playSounds: "no",
useHeader: false, // true if you want a header
header: "Your header",
maxWidth: "100%",
updateInterval: 5 * 60 * 1000,
}
},

from mmm-bmw-cc.

mykle1 avatar mykle1 commented on August 10, 2024

Not really sure what's going on here. I just downloaded a fresh install and it fires right up for me. I can better assist you on the MagicMirror forum if you create a new topic in the Troubleshooting category.

Hmmm. I just used your config entry with my API key and it fired right up. Make absolutely sure your api key is entered correctly.
Have you modified any of this modules files?
Last, if you don't mind, I can try your api key and see if it's working. Don't post it here because this is not private. You can send it to me on the MagicMirror forum in a chat and I will test it for you

from mmm-bmw-cc.

Dresch360 avatar Dresch360 commented on August 10, 2024

Thank you very much for your response and I really appreciate it. Also, my apologies for the additional issues posts. Yeah, if you try to use a recent NEW API key, it doesn't work and you get the "TypeError: result.slice is not a function" error. Would be great to send you my API keys. No modifications were made to the module.

from mmm-bmw-cc.

mykle1 avatar mykle1 commented on August 10, 2024

Ok, so. I now know what the problem is. First let me apologize. My API key is still working so I thought there must be some user error. I was wrong. Climacell is no longer issuing v3 api keys (which the module uses). The new keys are for the v4 api.

What does this mean? It means I will have to make some time to modify the module to use with the new v4 api, if not a complete rewrite of the module. This also means it will be some time before I have a chance to do so.

Again, I apologize for not realizing the issue sooner

from mmm-bmw-cc.

mykle1 avatar mykle1 commented on August 10, 2024

In the meantime, if you so choose, my MMM-BMW-OW module has the identical display format and uses the free openweather api key. Anyway . . .

from mmm-bmw-cc.

Dresch360 avatar Dresch360 commented on August 10, 2024

No problem at all and thank you again for getting back to me and for letting me know. I'll check out the MMM-BMW-OW module.

from mmm-bmw-cc.

mykle1 avatar mykle1 commented on August 10, 2024

Ok, so, the updated module now works with the new api keys. Sorry about the delay. I was using an older v3 api key. It still works but will be closed soon. The new api keys work with the new version 4 of the api itself. This module has been updated to make use of the new v4 api.

My apologies

from mmm-bmw-cc.

Dresch360 avatar Dresch360 commented on August 10, 2024

Thank you so much for taking the time to resolve this! I really appreciate all of the work and dedication you've put into this, as well as your other modules.

from mmm-bmw-cc.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.