@KristjanESPERANTO
Thank you for all the work and time you have put into the Public Transport Modules.
Would you say that MMM-PublicTransportHub is intended to replace the MMM-PublicTransportHafas in the future?
What would you recommend for a local and regional usecase in Munich, Germany including BRB?
Read the statement by Michael Teeuw here.
Posts
-
RE: MMM-PublicTransportHafas
-
RE: MMM-HomeAssistant
Thank you @sdetweil for notifying me.
I opened an issue and was eventually able to identify the solution.For anyone experiencing the same issue, please refer to the link below:
https://github.com/ambarusa/MMM-HomeAssistant/issues/13#issuecomment-4502382457 -
RE: MMM-HomeAssistant
I just found this awesome module and installed on our all newly installed MagicMirror.
After integrating it to HomeAssistant everything is working just fine. There is one downside:
If I switch the screen off via Home Assistant

it turns ‘off’ but switches back ‘on’ on its own after 3-5sec.I checked the MQTT vie MQTT Explorer but I just see the commands coming from the MachiMirror

any I deal what is wrong?
here is the config I’m using:
{ module: 'MMM-HomeAssistant', config: { mqttServer: 'mqtt://192.168.178.100', mqttPort: 1883, username: 'mqtt-client', password: 'PASSWORD', deviceName: 'MagicMirror', autodiscoveryTopic: 'homeassistant', monitorControl: true, brightnessControl: true, moduleControl: true, /***** for xandr monitorStatusCommand: 'xrandr --query | awk \'/Screen/ {print ($8 > 320) ? "true" : "false"}\'', monitorOnCommand: 'xrandr -d :0 --output HDMI-1 --auto --rotate right', monitorOffCommand: 'xrandr -d :0 --output HDMI-1 --off', */ /***** for Wayland Display Steuerung */ monitorStatusCommand: 'wlr-randr | awk \'/HDMI-A-1/ {found=1} found && /Enabled:/ {print ($2 == "yes") ? "true" : "false"; exit} END {if(!found) print "false"}\'', monitorOnCommand: 'wlr-randr --output HDMI-A-1 --on', monitorOffCommand: 'wlr-randr --output HDMI-A-1 --off', pm2ProcessName: 'mm', refreshBrowser: true, customCommands: [ { name: 'Update MagicMirror', command: 'bash ~/MagicMirror/modules/MMM-HomeAssistant/custom_commands/update_MM.sh' } ] } },any Idea what is wrong?
Thank you -
RE: MMM-PublicTransportHafas from KristjanESPERANTO
@KristjanESPERANTO
thanks again but unfortunately this did not help. It increases the space between the platform number and the right edge but does not move the platform number to the right. Even if I add.mmm-pth-platform-cell { width: 3ch; text-align: right; }it will stay same.
the question marks indeed traced back to the API. they disappeared the next day.
-
RE: MMM-PublicTransportHafas from KristjanESPERANTO
thank you @KristjanESPERANTO for your reply and sorry for my late response due to my business trip.
I just implemented your recommendation into styles.css and it worked great. The only thing that’s now different is how to arrange the track number that it is aligned to the right?

Maybe you also have an idea how to solve why all of a sudden several delay times are displayed as “?”
thank you for your great help
-
RE: MMM-PublicTransportHafas from KristjanESPERANTO
Thank you for this hint… I’ll try it once I’m back from my business trip.
-
MMM-PublicTransportHafas from KristjanESPERANTO
Hi @KristjanESPERANTO
First of all thank your for further developing and maintaining this moduel. I used and older version from @raywo up to now but changed to your updated fork just lately.I got everything perfectly working the only thing I cannot manage is the identical orientation of the line symbols. As you see from the picture I’m using the same module 3 times for displaying the departures of 3 different stops in my neighborhood. Due to my personal design preferences all moduels are the aligned to the right hand side of my mirror. Can you tell me what I have to modify to get a nice left-aligned orientation of all line symbols as well as of the destination names within the particulat columns? I tried to symbolize it with the lines and arros in the picture below.

Thank you
Ben -
MMM-PublicTransportHafas
Hi @raywo , Hi all
I’m using the MMM-PublicTransporthafas (https://github.com/raywo/MMM-PublicTransportHafas) module for more than 2 years now and I’m really happy that it exists. Since several month unfortunately this module is not working for 100% anymore and some of the bus or train stops can not be recognised anymore. After some internet research I found that the hafas-client used in this module was updated several times, see: https://github.com/public-transport/hafas-client
I’m not very familiar with java coding and do not know how I can adapt MMM-PublicTransportHafas to the latest version of hafas-client. Is there anybody who can help to solve this? it would be a shame to loose this nice and universal module just because a simple but necessary update cannot be done.
I really appreciate your help!
Thanks
onkelbobby -
RE: MMM-DarkSkyForecast - Yet ANOTHER weather module
@chris1971
if you just wanna remove the wind in the forecast tile try to add that line in MMM_DarkSkyForecast.css.MMM-DarkSkyForecast .wrapper.tiled .forecast-container .forecast-item .wind-container{ display: none; }of course it makes sense to remove the existing line before
hope this helps -
RE: MMM-DarkSkyForecast - Yet ANOTHER weather module
Minimizing to font size should not be a big thing. If you open the module specific css file you an search for font and play with the values in that section. Note that you need to restart MM after saving the modified css file.
-
RE: MMM-DarkSkyForecast - Yet ANOTHER weather module
I implemented this fantastic Modus and it integrates almost seamlessly into our existing mirror layout. To make it perfect I need to reduce the gap between the time and the icon as wells between the day and the icon (yellow arrows). and also between the individual block’s (arrows in red)

I know that I have to modify the .css file can someone give me a hint what would be the correct values to be changed?
Thanks -
RE: Do you use a PIR sensor? How do you hide it?
@htilburgs
mine is connected to an Arduino micro 3.3V version and this one is controlling a simple relais switching the monitor inside the mirror. But as @MadScientist already mentioned you can also hook it up to the Raspberry Pi since It works perfectly with MMM-PIR-Sensor. -
RE: Do you use a PIR sensor? How do you hide it?
I did not use PIR sensor because it needs to “see” through the frame. After a little research I found an microwave based motion sensor called
RWCL-0516. This tiny PCB works super reliable even though ma 20mm thick wooden frame. -
RE: MMM-PublicTransportHafas – Public transport information for all stations known to Deutsche Bahn
One more css question popped up while I reconfigured the appearance of the module
There is a train called Meridian stopping at our station. If I do not add any css style for this train it appears as the 5 digit train-number only that changes depending on the time of day.

I want the module to show only the name “Meridian” for all of the trains. So is there a possibility to rename all train numbers to “Meridian” only without showing the train number?
Below please find the css code I’m currently using:
/* Meridian */ .m79600:before { content: "Meridian"; } .m79500:before { content: "Meridian"; } // ... and so on for every train numberthank you for yuour help…
-
RE: MMM-PublicTransportHafas – Public transport information for all stations known to Deutsche Bahn
…finally the module is working like a charm since more than 4 weeks. I think this was an issue with the data provided.
-
RE: Black screen after some hours
I updated our mirror to 2.4.1 about 2 weeks ago… since the new software is running we don’t see black screen anymore…
-
RE: MMM-PublicTransportHafas – Public transport information for all stations known to Deutsche Bahn
Now, one week later I can confirm that the module is working perfectly on sundays only…
The busses from this station are definitely running all week long.
Any idea what can be the reason for this? -
RE: Black screen after some hours
@rak
I’ll give it a try and remove the update module. But it will take some more days since I’m traveling over the weekend… -
RE: MMM-PublicTransportHafas – Public transport information for all stations known to Deutsche Bahn
Strange and confusing news:
yesterday (Sunday June 24th) the Module worked perfectly. It also showed all departures from “Adunistrasse”. This morning unfortunately the old behavior was back again: no reachable departures as described above.Any Ideas?