MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. schnep202
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    S
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 9
    • Groups 0

    schnep202

    @schnep202

    4
    Reputation
    533
    Profile views
    9
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    schnep202 Unfollow Follow

    Best posts made by schnep202

    • Its may a problem with node_helper

      I want to built a module wich can show me the actual price of a Bitcoin in €.
      The price should come from the API of blockchain.info via json.

      I used the MMM-Traffic module to see how it works and built my own like you can see in the files below.

      After updating the config file and run the Mirror, nothing happens…
      I dont get any feedback from the node_helper :(

      I would be really thankful if anyone can help me out!

      0_1468526935331_MMM-Bitcoin.js
      0_1468526949170_node-helper.js

      posted in Development
      S
      schnep202
    • RE: Its may a problem with node_helper

      I get them from https://blockchain.info/ticker and read the json line for a selected currency.

      You can define a desired Price. The displayed price is marked green when its reached. In addition i want to display a graph for a week or so, but its not implemented yes…

      posted in Development
      S
      schnep202
    • RE: Its may a problem with node_helper

      Ahoi @Phate

      had this problem a few weeks ago. dont remember how i fixed it :D
      You can try to copy the dependency by your own to …/MMM-Bitcoin/node_modules/request/.
      but i am not sure if this will work…

      a comparison between to prices should not be a big problem ;)

      posted in Development
      S
      schnep202
    • RE: Its may a problem with node_helper

      @Phate

      I still think that there is a problem with request and node_helper.

      Here is a screenshot of v2.0 :D

      alt text

      posted in Development
      S
      schnep202

    Latest posts made by schnep202

    • RE: Its may a problem with node_helper

      @Phate

      I still think that there is a problem with request and node_helper.

      Here is a screenshot of v2.0 :D

      alt text

      posted in Development
      S
      schnep202
    • RE: Its may a problem with node_helper

      while working on the comparison, i found a problem with the request.
      The problem is that the mirror only starts on request.

      In my config i have 3 modules using request: MMM_Traffic, MMM-Bitcoin and the default newsfeed module. if i run only run one of them, they work nicely! if there is more than one, only the first module in the config gets the data. the other only try to load the content.

      working with node.js is new for me, so i dont have any experience with it. i cant solve the problem by my one at this point. i hope anyone here has a solution.

      BTW: Comparison works nicely^^

      posted in Development
      S
      schnep202
    • RE: Its may a problem with node_helper

      Ahoi @Phate

      had this problem a few weeks ago. dont remember how i fixed it :D
      You can try to copy the dependency by your own to …/MMM-Bitcoin/node_modules/request/.
      but i am not sure if this will work…

      a comparison between to prices should not be a big problem ;)

      posted in Development
      S
      schnep202
    • RE: Its may a problem with node_helper

      hey @Phate

      sorry for the late answer. was a bit busy these days :o

      you need to install the dependencies directly in the MMM-Bitcoin folder to run the request.
      hope you will get it run ;)

      my problem at the beginning of writing the module was just a wrong file name of module_helper.js. yes i know, it was a bit stupid…

      i started mining with some usb asic miners. if i remember it right, they had about 300Mhash each :D

      a module to get any type of data would a bit complicated because you need to know what kind of fields you have in you json. a real dynamic module for any json input would be over my horizon i guess. but if i have some time, i would give it i try ;)

      posted in Development
      S
      schnep202
    • RE: Its may a problem with node_helper

      @Phate

      I did some private mining a long time ago but its not worthwhile anymore.

      What do you offer for what kind of module? :D

      Here is a link to github but remember that work is still in process!

      https://www.capsload.it/images/1468613581.png

      posted in Development
      S
      schnep202
    • RE: Its may a problem with node_helper

      I get them from https://blockchain.info/ticker and read the json line for a selected currency.

      You can define a desired Price. The displayed price is marked green when its reached. In addition i want to display a graph for a week or so, but its not implemented yes…

      posted in Development
      S
      schnep202
    • RE: Its may a problem with node_helper

      I used the MMM-Traffic module as base for learning how the hole thing should work.

      Now i am working on some styling stuff and make it a bit more dynamic.

      BTW: Australian dollar is possible ;)

      I think i will upload it tomorrow evening (CET).

      posted in Development
      S
      schnep202
    • RE: Its may a problem with node_helper

      I got it and will upload it to github ASAP ;)

      posted in Development
      S
      schnep202
    • Its may a problem with node_helper

      I want to built a module wich can show me the actual price of a Bitcoin in €.
      The price should come from the API of blockchain.info via json.

      I used the MMM-Traffic module to see how it works and built my own like you can see in the files below.

      After updating the config file and run the Mirror, nothing happens…
      I dont get any feedback from the node_helper :(

      I would be really thankful if anyone can help me out!

      0_1468526935331_MMM-Bitcoin.js
      0_1468526949170_node-helper.js

      posted in Development
      S
      schnep202