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

Posts

Recent Best Controversial
  • RE: How to Change MMM-DWD-WarnWeather Module for Switzerland

    ok so you should start with this request:

    var url = 'http://my.wetteralarm.ch/v6/alarms/meteo/with-regions.json'
    
    
    	request({
    		url: url,
    		method: 'GET'
    	}, function (error, response, body) {
    		console.log(body);
    		var result = JSON.parse(body);
    		console.log(result);
    	});
    

    now you can explore the data that you will get with this request. you will see that the json file you get differs from the one you get from the ‘Deutscher Wetterdienst’-site. If you just change the request the module tries to handle the data as if it was structured like the one from DWD. So you have to write your own logic to extract the information your interested in from the json file.
    if you’ve done that you can think about how you will display this data.

    posted in Development
    L
    LukeCodewalker
    Jan 6, 2017, 10:29 AM
  • RE: save some information from a xml or json to a txt file

    @Squirrel
    So first of all i would suggest you to open a new topic in the development area of this forum.
    Second, it looks like you have not much experience http-requests and data-structures =D but that’s no problem =) it’s a good point to start for you now =)
    To help you i need the request which you have monitored with mitmproxy.
    To do that, open the request in mitmproxy and press E to export it. Then choose curl command as output-format and choose a file where you save this command.
    With this command i can explain you how to go on. So please post the content of this file in the new topic which you will create now =)

    posted in Requests
    L
    LukeCodewalker
    Jan 6, 2017, 8:51 AM
  • RE: save some information from a xml or json to a txt file

    @Squirrel
    I use mitmproxy for viewing the http-requests of the apps.

    posted in Requests
    L
    LukeCodewalker
    Jan 4, 2017, 7:48 PM
  • RE: save some information from a xml or json to a txt file

    @Squirrel
    I can’t download this app in germany, so I can’t have a look at the data it uses.

    posted in Requests
    L
    LukeCodewalker
    Jan 4, 2017, 3:04 PM
  • RE: MMM-DWD-WarnWeather - Wetterwarnungen

    @pugsly
    Sure. You have to find an API that gives you the data and you have to modify the module that it works with this data.

    posted in Utilities
    L
    LukeCodewalker
    Jan 4, 2017, 3:02 PM
  • RE: MMM-SoccerLiveScore

    So i finally implemented tables showing between scores.
    Heres a small preview how the tables look like:
    alt text
    The tables will be shown only if the league has a table.

    To get the feature just update the module with git pull.
    If you want to disable tables just add

    showTables: false
    

    to the module-config.

    Hope you’ll enjoy it!

    posted in Sport
    L
    LukeCodewalker
    Jan 4, 2017, 12:42 PM
  • RE: save some information from a xml or json to a txt file

    @Squirrel
    maybe this link helps you:
    https://s3-eu-central-1.amazonaws.com/app-prod-static-fra.meteoswiss-app.ch/v1/warnings_with_outlook_with_naturalhazards_de.json

    posted in Requests
    L
    LukeCodewalker
    Jan 4, 2017, 8:45 AM
  • RE: save some information from a xml or json to a txt file

    @Squirrel
    i did some reverse engineering of the dwd-website and found this json file.
    i had a short look at your link and did not found something similar there. do you know if theres an app for ios where the data is shown? maybe i can help you then.

    posted in Requests
    L
    LukeCodewalker
    Jan 4, 2017, 8:01 AM
  • RE: MMM-DWD-WarnWeather - Wetterwarnungen

    @lolobyte
    for increasing the text size you have to edit MMM-DWD-Warnweather.css (description class).
    to format the date you have to edit lines 84 and 85:

    var start = moment(this.warnings[i]['start']).format("dd. HH") + ' Uhr';
    var end = moment(this.warnings[i]['end']).format("dd. HH") + ' Uhr';
    
    posted in Utilities
    L
    LukeCodewalker
    Jan 4, 2017, 7:55 AM
  • RE: MMM-SoccerLiveScore

    @nem1 thanks for the feedback =)
    implementing the tables will be no problem, but i don’t think i will find time before christmas. but i think the holidays will be perfect to do it =)

    posted in Sport
    L
    LukeCodewalker
    Dec 17, 2016, 8:25 AM
  • 1 / 1
Enjoying MagicMirror? Please consider a donation!
MagicMirror created by Michael Teeuw.
Forum managed by Sam, technical setup by Karsten.
This forum is using NodeBB as its core | Contributors
Contact | Privacy Policy