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

    Posts

    Recent Best Controversial
    • RE: save some information from a xml or json to a txt file

      @LukeCodewalker

      Here some more information:

      I use this link to use the api (It the same website which is use for the default Weather modul)

      http://api.openweathermap.org/data/2.5/weather?id=2934486&lang=de&units=metric&mode=xml&appid=

      (I only cut out my api key at he end)

      This link create a xml file (You can change into json, simply erase xml in the link and put json there)

      This xml looks like this:

      DE

      And, I only like that your python script read out the line till and if it possible the line <temperature, too. And the save this in a txt file.

      That will be great.

      And if I can a have little bit more of your time it will be possible the txt file can use the following "Today it is and .

      It would be perfekt. But that I can took later by learning myself. If your python script can read out the xml file and save in a txt file it will be great.

      Greets gismo

      posted in Requests
      G
      gismo2006
    • RE: save some information from a xml or json to a txt file

      @LukeCodewalker Hi, YEAH! THANK YOU! Python will be OK for me. I have tested a python script, that I found at the www. Lat days. But it didn’t work. Late today if I have some time I will post some more information OK?

      Greets gismo

      posted in Requests
      G
      gismo2006
    • RE: save some information from a xml or json to a txt file

      oh sorry i forgett, to describe. I have several bash scripts. For a example an bash script which display time an other one which display date. Now I have create a module for myself using the Hotword module by alexya. It works perfect. When i say “aktuellesDatum” (in englich actuellDate) my mirror says In german “Today is the 20. October 2016” for example. The same at the timescript.
      Then I have (I thing you as a good coder like to kill mke :-D ) a php script on my own webserver who runs at start up (I use cronjob) to read out the rss feed of the german website “Tageschschau” (A news site") and write the header in a txt file. Then the txst file is automaticly copied in in my own modulefolder. Then I write a module for myself again, using hotword detection again. If I now say “Aktuelle Nachrichten” (Actually News) My mirror reads out loudly the TXT file. (before it will read out my mirror create an acutell txt file ,whit the newest news)

      So I haven’t to look at the mirror, maybe durring take a shower in the morning. (Every day the same, I haven’t enough time in the morning :-D ) or something else i will inform about actually news, time or edate. I have tested several tts but the best for me was pico2wav. And a feature i added at this way too, was to read out loud the ip adress of the mirror. So I can simple control the pi if my monitor didn’t work. (save shut down for example).

      AND NOW. the thing i need this txt file I asked for. I like to do the same whit a little weather sentences about the actuall weather. In the json or xml file which I have was written Wolkig (cloudly) and in an other tag the temp. If I have finisched this I like to say “AktuellesWetter” (actuaklly weather) and my mirror says “10 °C, wolkig” So I will know very fast what clothes I need and (for example) I need a umbrella.

      Now you like to say maybe, “you write you read out the feeds of the Tagesschau feed. Why do you not use this for the txt you like too?” I will answer I have test it but it didn’t work.

      greets gismo

      posted in Requests
      G
      gismo2006
    • save some information from a xml or json to a txt file

      Hi, at all!!

      @strawberry-3-141 I know you haven’t time because of your work. So if anybody other can help me feel free to say.

      I like to have a module, or better not an module only a little code. It should work a little bit like the new module MMM-DWD-WarnWeather - Wetterwarnungen. I have a api link from a weather source which service a xml or json file. That not the problem. Now i like to read out some information and then it should automaticly save this in a txt file. Thats the diffrent to the module. This shows the information but I only like to run a script (JS/PHP/BASH or whatever) which automaticly read the information and write to a txt file.

      Ok now you say “use google!!!” And I answer you "Oh I have google the last two days, and try every code I found. I try Javascript/PHP and Python scripts but it didn’t work. And there are a big Problem too. My coding experince is very simple. So I can google, copy, test, try but no big chances at a code.

      Maybe someone can help me. :-)

      Greets gismo

      posted in Requests
      G
      gismo2006
    • RE: MMM-voice

      Hi,

      Some time ago @tyho help me a lot to to use voice commands in the module “Simple music Player” So I can use Start Stop Forward and back. I know in my case snoword hotword Detection was use but maybe it can help. If it was ok for @tyho I can post the code.

      Maybe it will be an option for the first time, till @strawberry-3-141 have more time. :-)

      Greets gismo

      posted in Utilities
      G
      gismo2006
    • Load,format,display a json file

      Hi,

      I only like to say:

      Ok Pi you have won! I lay down my weapons… :-D

      But maybe, i am not sure, Maybe some one can help me.

      I have a "simple " Problem. On every webpage was written its easy but it didn’t work.

      My Problem is i have a local json File created by a website. And I only try to display this data in a list on my magic Mirror. I have searched and try yesterday all the day everything I found. But nothing. (My wife like to kill me now, because I spent all the day yesterday :-) ) I have searched in this forum to an found some topics but I am to stupid to use them. I think I have to create a *.js file which will load the json file, formating it, and display it. That’s all. I will not use/need the data for other scripts. Only load, put in a list and display.

      Maybe someone can help a noob. :-)

      Greets gismo

      posted in Development
      G
      gismo2006
    • RE: Hello World modul

      Oh OK sorry I I haven’t understand you right. It was my mistake. I will try your post tonight. Thank you again

      Greets gismo

      posted in Development
      G
      gismo2006
    • RE: Hello World modul

      OK, thank you. Dud I understand right? I have to create in my module folder a file called main.css? And there I have to put your code? Is this right? Will it load them alone or have I to put some code in my *.js file to? Sorry, but I never worked whit css :-)

      Greets gismo

      posted in Development
      G
      gismo2006
    • Hello World modul

      Hi, a little questions. If I use the config option text: “Hello World” in the Hello World module fpr example. I have the problem the text Hello World will display to big. My question how can i config the hight of this Words? I have try the html parameter but they produce only misstakes. I found out then I write
      between the Word they will past the second word in a new line. Because of that i think maybe html code will work. But no.

      greets gismo

      posted in Development
      G
      gismo2006
    • RE: MMM-TrafficCal - Dynamically display commutes based on calendar entries

      Hi, some days ago I try to use your module. I installed everything like you write at your readme file. I create a new calender. But It didn’t work. After some try, I read that it use a new function in the calender module. So I try to change to the develop tree. But after that my magic mirror didn’t start again. So I copy a previous version I have saved and the mirror started normally.

      Greets gismo

      posted in Utilities
      G
      gismo2006
    • RE: Blu tooth on Pi 3

      Sorry I didn’t use Bluetooth. But there is an other module which displayed information about new calls, email, SMS, Facebook, what’s app. … I used it too. It works great. Maybe it will something for you. The module use phuchbellet. Look for “phone notification”

      Greets gismo

      posted in Requests
      G
      gismo2006
    • RE: [Remote-Control] Shutdown, Configure and Update your MagicMirror

      @Jopyth Don’t worry, no more questions. ;-) I like only to say thank you :-)

      posted in System
      G
      gismo2006
    • RE: My first module

      Thank you I have looked in the notification Node_helper.js code which was posted in the Voicecontrol post from @tyho. And it works now fine. Now I can learning something new. To grow up my modul and finding a really reason for my module :-D

      But I like to say Thank you. You helped me a lot. :-)

      greets gismo

      posted in Development
      G
      gismo2006
    • RE: My first module

      Ok, Thank you for your help. I will try myself to go this next step…

      posted in Development
      G
      gismo2006
    • RE: My first module

      Ok I will do what you say.

      Ok I have done

      I have found the Problem. the dev consoles says

      Sounds.js:15 Uncaught ReferenceError: exec is not defined.

      Can i delete the word exec? But I think I have to use it to run the script, right?

      greets gismo

      posted in Development
      G
      gismo2006
    • RE: My first module

      @strawberry-3-141 Thank you for your help. but it didn’t change anything. The problem is the same. Everythink started fine but they didn’t play the Sounds.sh…

      posted in Development
      G
      gismo2006
    • My first module

      Hi guys,

      I like to write my first modul. Its a fun modul and didn’t have a reason for anyone. I like to learn to write a module. So I can leaerning a lot I think.

      I have create a folder in modules. Called Sounds I have put it into the config file andy the Mirror stats correctly Juhuuuu! :-) First step reached. :-D But now the Problem… Th module didn’t work. For a first test the only think the modul should do is react on a Message which is send by the Voicecontrolmodul by @alexyak. I have creste for this test a new Hotword calles test. I copy the pmdl file and paste the rigt things into my config file. So far, so good. I think the Problem was the Sounds.js file in my own modul folder Sounds. OHH, before I forget. The Sounds.sh skript is only a shell script and worked fine too. I habe write chmod +x Sounds.sh to create a runable file.

      Here the code, maybe someone can look a this and whre my misstake is :-)

      /* global Module */

      /* Magic Mirror

      • Module: HelloWorld
      • By Michael Teeuw http://michaelteeuw.nl
      • MIT Licensed.
        */

      Module.register(“Sounds”,{

      notificationReceived: function(notification, payload, sender) {
          if (notification === "test"){ 
              exec("sudo /home/pi/MagicMirror/modules/Sounds/Sounds.sh")
      }; 
      
      // Override dom generator.
      getDom: function() {
      	var wrapper = document.createElement("div");
      	wrapper.innerHTML = this.config.text;
      	return wrapper;
      }
      

      });

      greets gismo

      posted in Development
      G
      gismo2006
    • New Modul should react by more than one Hotword message (modul Voicecontrol/Hotword detection)

      Hi,

      I have a little question.

      If you use @alexyak Voice modul whit using snowboy Hotword detection, you have to put a message which will send tot other modules, if a Hotword will detected. Like Play, Stop or whatever.

      In the readme file is written:

                          keyword: "playMusic",   // keyword 
                          description: "Say 'Play Music' to start playing",
                          file: "playMusic.pmdl", // trained model file name
                          message: "PLAY_MUSIC"   // notification message that's broadcast in the MagicMirror app
      

      Now I like to code my first module for learning, just a fun modul. And for my Idea it is recommend that my module hear of the message from any hotword. Now my Problem how I write this in module code? For one hotword message I can for example write (copied from the Voicecontrol post by @tyho ):

      if (notification === ‘go_to_sleep’){
      exec(“sudo /home/pi/aus.sh”, null);

      But for more than one? Have I to use “,” or “&&” or only a space between the Messages?

      Maybe someone can help me

      greets gismo

      posted in Development
      G
      gismo2006
    • RE: Th old Magic Mirror project

      @strawberry-3-141

      Thank you. i looked today on MichMichs Github page but I can’t found it… :-D

      greets gismo

      posted in General Discussion
      G
      gismo2006
    • Th old Magic Mirror project

      Hi,

      i didn’t know where I have to post this, so I post here. I like to ask, is anywhere a webpage or a githubpage or something else about the first Magic Mirror project?

      greets gismo

      posted in General Discussion
      G
      gismo2006
    • 1 / 1