MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. schris88
    3. Posts
    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 13
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: MMM-Hoymiles-Wifi

      @schris88 Recently worked on it a bit and added a second branch with local mongodb to save and display max power, Im planning to use the db entries to display a history chart

      posted in Development
      S
      schris88
    • RE: MMM-Hoymiles-Wifi

      @evroom That sounds good, but we should loop through the pv_data objects and display each as a graph. In the end, there could be a config setting like detailed: true to activate the display of all pv_data objects as individual graphs. If set to false, we could display a single graph with the total power.

      There are Hoymiles inverters with 6 inputs, and adding 6 × 6 to 8 variables can quickly add up. This might not be an issue for us, but it’s worth considering if the module should be as generic as possible.

      Sorry I´m a IT-Consultant who, sometimes it breaks through :D

      posted in Development
      S
      schris88
    • RE: MMM-Hoymiles-Wifi

      @evroom Hi there, maybe you can confirm, if the inverter has multiple inputs there seems to be an array of pv_data objects in the json (as seen in the test.json you pushed)

      so the meter should combine all pv data power to have the total, right.
      But we dont need to do that by hand because the combined value should be in dtu_power already, you can get rid of all the try except.

      I just didnt change it in the beginning because for inverters with only one input it makes no difference because its pv_data power and dtu_power is always the same value.

      posted in Development
      S
      schris88
    • RE: MMM-Hoymiles-Wifi

      @evroom said in MMM-Hoymiles-Wifi:

      @sdetweil said in MMM-Hoymiles-Wifi:

      i bet the config is already passed to the node helper which execs the python script.

      Actually the python script is being executed via a shell script (in order to make it running using pm2).
      I do not see anything in the node_helper.js file.

      This is mainly due to the fact that the developer of the module used MMM-HTMLSnippet as basis and concentrated more on the data that he wanted to display.

      The challenge is now to have everything running inside the module, without this ‘external’ stuff.
      As all modules tend to do.

      This is true, it´s a hacked proof of concept, nothing to be proud of at the moment :D

      Not sure how much time I have for it till end of year, I can grant write access to anyone who´s willing to help.

      posted in Development
      S
      schris88
    • RE: Dell LCD Display with ESP32

      @sdetweil There is a hole thread about it in the forum, I have not read any of it tho
      https://forum.magicmirror.builders/topic/18194/raspberry-pi-zero-w-for-magic-mirror

      maybe you find some good answers there, it´s not a new idea, I know the zero 2W from many retro consoles and handhelds atm, so it seems to be powerfull enough while light on the battery. Many of the Anbernic devices run it.

      posted in Hardware
      S
      schris88
    • RE: Dell LCD Display with ESP32

      @sdetweil not sure, it just sounds like you can have at least any video output but it is very limited

      ESP32Lib implements VGA output over I²S.
      The highest possible resolution with this library is 800x600. Many common resolutions like 320x240 are preconfigured und can be used without any effort. Two color depths are available. 14Bit R5G5B4 and 3Bit(8 color) R1G1B1 for convenience and memory savings.

      so this wont look good, esp32 is not the ideal hardware to do this, I love them too for WLED stuff etc. but not very good with displays except those little 1" oleds etc.

      Pi zero 2W is like 10 bucks more and you dont need to fiddle with even getting a video out to work.
      Maybe someone else has any idea, I would say wrong hardware for the job.

      posted in Hardware
      S
      schris88
    • RE: Dell LCD Display with ESP32

      @Antony1 Only way I see is running Magicmirror server only and esp32 as client see https://docs.magicmirror.builders/getting-started/installation.html#other-operating-systems (scroll way down) the esp32 will not be able to handle magicmirror itself.

      esp32 can have a vga output (https://github.com/bitluni/ESP32Lib) which is present on most display control boards from ebay etc. that i´ve seen.

      posted in Hardware
      S
      schris88
    • RE: MMM-Hoymiles-Wifi

      @evroom We will make this work, great input, there is so many possibilities what and how to display the data.
      Im thinking about feeding a free tier mongodb or some local docker db for long time charts.

      posted in Development
      S
      schris88
    • MMM-Hoymiles-Wifi

      Hello, as I got into some PV lately I found no module to display the output of my solar panels, the new Hoymiles inverters with integrated wifi are not supported by OpenDTU or Ahoy because they no longer send via 2,4Ghz or Sub-1G.

      This is a quick hacked solution for the issue, it uses the python library hoymiles-wifi to get the inverter data via protobuf from the connected inverter in your home network, then it renders 3 values as gauge and text with plotly

      It´s working and looks okay, not much configuration right now, you have to set your inverter ip in the hoymiles_data.py and add the config to display the html.

      Maybe someone sees this and finds it usefull, if there is any interest in the community I can work on this some more

      https://github.com/schris88/MMM-Hoymiles-Wifi
      moderator edited to expose the full url

      posted in Development
      S
      schris88
    • RE: Issues with MMM-PIR

      @eyesallin yes it´s an “issue” with the pi5 as the os is now using wayland as graphical environment instead of x11 which was used forever, a lot of tools are written for it and now need to be updated to work with wayland. You will find a lot of scenarios where there is no updated tool or alternative for the pi5 atm. The switch was done end of 2023 so it´s very new.

      posted in Troubleshooting
      S
      schris88
    • RE: Issues with MMM-PIR

      your config looks good thus far, if you´re not getting it to run you can try my solution which is currently running like a charm

      I installed it with MMM-Pir-Sensor-light and changed the code to use wayland,
      to toggle the display on Pi5 this is working on a fresh OS install

      WAYLAND_DISPLAY=“wayland-1” wlr-randr --output HDMI-A-1 --off
      WAYLAND_DISPLAY=“wayland-1” wlr-randr --output HDMI-A-1 --on

      possible outputs HDMI-A-1 (the one right next to usb-c), HDMI-A-2

      If you monitor turns back on by itself after ~10 secs add “vc4.force_hotplug=1”(1=hmdi1 / 2=hdmi2 / 3=both) to the end of your /boot/firmware/cmdline.txt without creating a new line

      All I did was change the command in activate and deactivate display function in the node_helper.js and added the cmdline parameter (dont forget to reboot)

      posted in Troubleshooting
      S
      schris88
    • RE: suddenly the screen can't turn on

      I was just trying to get a PIR Sensor running to toggle the display on Pi5 and this was the way to go on a fresh OS install, maybe it´ll help you out too

      WAYLAND_DISPLAY=“wayland-1” wlr-randr --output HDMI-A-1 --off
      WAYLAND_DISPLAY=“wayland-1” wlr-randr --output HDMI-A-1 --on

      If you monitor turns back on by itself after ~10 secs add vc4.force_hotplug=1 (1=hmdi1 / 2=hdmi2 / 3=both) to the end of your /boot/firmware/cmdline.txt

      if you´re running rotated you can add that as --transform 90 (more options see wlr-randr --help)

      vcgencmd, xrandr and xset were not working anymore for me

      posted in Troubleshooting
      S
      schris88
    • RE: MMM-OpenWeatherMapForecast stuck on Loading....

      I just got it working after struggling with it myself for quite a while. Currently, only the 3.0 API is available for onecall, while forecast, etc., still uses version 2.5. That’s why the default weather with forecast is still functioning.

      For the MMM-OpenWeatherMapForecast module, you need to subscribe to the onecall 3.0 API, which is now part of a paid subscription. However, 1000 per month remain free, and you can specify the number of API calls per day allowed in your subscription.

      In the node_helper.js file of the modules, I updated the API endpoint to the specified 3.0 API from the OpenWeather API: “https://api.openweathermap.org/data/3.0/onecall”.

      Hint: The activation of the API may take a few minutes. You can check its status by calling the API in a browser. If you haven’t subscribed yet, the error message will indicate “invalid API key.” While it’s getting activated, it will display “bla bla for onecall 3.0, there is a separate subscription… see prices.”

      posted in Utilities
      S
      schris88
    • 1 / 1