Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. lolo
    L
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    lolo

    @lolo

    3
    Reputation
    14
    Posts
    62
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    lolo Follow

    Best posts made by lolo

    • MMM-HNB-Exchange

      It uses API from HNB (Croatian National Bank) to pull currency exchange rate data for croatian kuna.

      Screenshot

      mode: “carousel” - rotate between currency
      Capture.PNG

      mode: “table”
      Capture2.PNG

      Download
      MMM-HNB-Exchange

      Configuration:

      {
          module: "MMM-HNB'Exchange",
          position: "top_right",
          config: {
              decimal: 2, 
              currency: ['GBP', 'USD', 'EUR', 'BAM', 'AUD', 'CAD'],
              mode: "table", //"carousel"  or  "table"
          }
      },          
      

      Version:
      28.12.2020 - v1.0.0 - Initial Release

      posted in Productivity
      L
      lolo
    • MMM-Fuel-HR fuel prices from various gas station in Croatia

      I am very happy to announce one of the first module. Others are still in the alpha version and this one is in beta.

      Description:
      It is scraping for fuel prices, location and distance of various gas stations in Croatia. The result is returned as the lowest price in the radius of the selected location.
      It is limited to show up to five OPEN stations in range of radius.

      Screenshots:
      Capture.PNG
      Download
      MMM-Fuel-HR

      Version
      23.12.2020 - v1.0.0 - Initial Release Beta

      Any feedback from anyone is more than welcome.

      posted in Transport
      L
      lolo

    Latest posts made by lolo

    • RE: Local .ics file access error

      I have local calendar and is working fine.
      Copy file.ics in modules folder and add to config

      url: "webcal://localhost:8080/modules/file.ics" 
      

      or

      url: "webcal://0.0.0.0:8080/modules/file.ics" 
      
      posted in Troubleshooting
      L
      lolo
    • RE: Local .ics file access error

      Should be like this .

      url: "webcal://0.0.0.0:8080/file.ics"
      
      posted in Troubleshooting
      L
      lolo
    • RE: MMM-NewPIR v3

      Thx. Even one my module have problem with that. For now I will keep it as false.

      posted in System
      L
      lolo
    • RE: MMM-NewPIR v3

      @Bugsounet With new version of MagicMirror I decides to try this module.
      Running rpi4 with HC-SR501 sensor.
      Can you please explain me how exactly ecoMode working. I have some problems with that enabled true. I’m still trying to figure out exactly problem but no luck. I’m using MMM-Globe by Eunanibus and its not reloading (not showing ) after monitor is turn on and sometime even monitor doesn’t wont to turn on. Should I just keep this option false? With ecoMode false at the moment everything is working fine.
      Anyway, great work and thank you for your contribution.

      posted in System
      L
      lolo
    • RE: MMM-HNB-Exchange

      Thank you.

      posted in Productivity
      L
      lolo
    • MMM-HNB-Exchange

      It uses API from HNB (Croatian National Bank) to pull currency exchange rate data for croatian kuna.

      Screenshot

      mode: “carousel” - rotate between currency
      Capture.PNG

      mode: “table”
      Capture2.PNG

      Download
      MMM-HNB-Exchange

      Configuration:

      {
          module: "MMM-HNB'Exchange",
          position: "top_right",
          config: {
              decimal: 2, 
              currency: ['GBP', 'USD', 'EUR', 'BAM', 'AUD', 'CAD'],
              mode: "table", //"carousel"  or  "table"
          }
      },          
      

      Version:
      28.12.2020 - v1.0.0 - Initial Release

      posted in Productivity
      L
      lolo
    • MMM-Fuel-HR fuel prices from various gas station in Croatia

      I am very happy to announce one of the first module. Others are still in the alpha version and this one is in beta.

      Description:
      It is scraping for fuel prices, location and distance of various gas stations in Croatia. The result is returned as the lowest price in the radius of the selected location.
      It is limited to show up to five OPEN stations in range of radius.

      Screenshots:
      Capture.PNG
      Download
      MMM-Fuel-HR

      Version
      23.12.2020 - v1.0.0 - Initial Release Beta

      Any feedback from anyone is more than welcome.

      posted in Transport
      L
      lolo
    • RE: Help with puppeteer ,cheerio and json

      This is output of my module. Any suggestion about styling.
      srdoči.PNG
      šmrika.PNG
      brnelići.PNG
      croatian
      brnelići2.PNG

      I know there are more things to make it better but i have to learn it first.

      posted in Development
      L
      lolo
    • RE: Help with puppeteer ,cheerio and json

      I think i managed to sort it out.

      	const $ = cheerio.load(html);
          
      	var water = [];
              var waterList = [];
              var el = $('#cphContent_cphSadrzaj_upVoda table tbody ');
          
      	if (el) {
                     var elementWater = $('#cphContent_cphSadrzaj_upVoda table tbody  span').filter(function () {
                        return $(this).text() === self.place;
                         }).parent().parent();
                   $(elementWater).each(function (jex, edate) {
      
                  const $edate = $(edate);
                  var startDate = $edate.prev().find('tr[class="datum"]>th>div').text().trim();
                  var street = $edate.find('span[id*="Label2"]').text();
                  var streetNmbr = $edate.find('span[id*="Label7"]').text();
                  var startTime = $edate.find('span[id*="Label8"]').text();
                  var endTime = $edate.find('span[id*="Label9"]').text();
                  var endWork = $edate.find('span[id*="Label10"]').text();
      
                  var water = {
                      startDate,
                      street,
                      streetNmbr,
                      startTime,
                      endTime,
                      endWork
                  };
                  
              
                  waterList.push(water);
                  console.log(water);
              });
      
          };
          if (!el) {
              console.log('No new entries!');
          };
          var waterWork = JSON.parse(JSON.stringify(waterList));
          self.sendSocketNotification('ELECTRIC_POWER_DISCONNECTED', waterWork);
      

      Now i can get all data sorted by config.place

       {
        startDate: '09.12.2020',
        street: 'ISTARSKA, Rijeka',
        streetNmbr: '64',
        startTime: '10:00',
        endTime: '14:00',
        endWork: '09.12.20'
      }
      
      
      posted in Development
      L
      lolo
    • RE: Help with puppeteer ,cheerio and json

      Yes I’m getting date , but this one is endWork (kraj). When the interruption will end, not to start. I know maybe I should use that.

      posted in Development
      L
      lolo