@rudibarani no it was a big fix. Can you send me your config? I likely broke something along the way.
Read the statement by Michael Teeuw here.
Posts made by j.e.f.f
-
RE: My display so far...
-
RE: MMM-MyCommute
@rudibarani Ok give it a shot now. I add a config option called
nextTransitVehicleDepartureFormat
.Here’s an example:
{ module: 'MMM-MyCommute', position: 'top_left', classes: 'default everyone', header: 'Commute', config: { apikey: 'SECRET', origin: 'SECRET', ... nextTransitVehicleDepartureFormat: "[Next:] HH:mm", destinations: [ ... ] } },
-
RE: MMM-MyCommute
@rudibarani Ah I forgot about that part! Yeah that should be doable… The time in 12 hour format is provided by Google as-is, but I should be able to convert it. I can make this entire string a time format string. That way it can be translated in whatever context and order you need.
something like
nextTransitVehicleSummaryFormat: "[next at] HH:mm"
.That way you could translate it any way you like or change it any way you like.
-
RE: MMM-MyCommute
@rudibarani This module doesn’t print out many literal strings, except for error messages in the console, and the two words “Error” (easily localized) and “min.” (e.g. 33 min). Everyting else is either configured text or data from the API response. Are you looking to translate the route summary? eg: The grey text below the title in the image below:
If so, this is provided by Google in the response from the directions API. It is supposed to localize automatically based on where it determines your location to be, but I’m not sure if that’s just for returning otherwise ambiguous directions or if it’s supposed to give you the route in the localized language. That said, it request accepts an explicit
region
parameter. I could expose that and you could set it to see if that addresses this.As for the time format, the module is not presenting any time in 12 hour AM/PM format. It is calculating the total number of minutes to get to the destination and presenting it in a built string –
calculatedTimeInMinutes + " min"
. This will ALWAYS be a sum of minutes (e.g.:90 min
, not1 hr 30 min
– this is to save space). I could expose a string format parameter that has a placeholder for the number of minutes, so you could specify something liketimePredictionFormat: "%MINUTES% m"
(module would replace%MINUTES%
withcalculatedTimeInMinutes
, and would render as33 m
, for example). Would this work for what you’re trying to do? -
RE: My display so far...
@rudibarani It turns out there was an undocumented parameter to hide the current conditions display. I pushed an update to also add a similar one for the forecast table.
You can configure it like follows:
{ module: 'MMM-MyWeather', position: 'top_right', config: { ... //other config options omitted for clarity currentweather: 1, // 0 to hide forecasttable: 1, // 0 to hide } },
-
RE: MMM-MyCalendar
@Sean That extra icon beside “Kinetic Social Pay” is an emoji in the calendar entry itself. It has nothing to do with this module. In any case, you’re seeing a screenshot from my laptop. It doesn’t render on the mirror running Raspberry Pi. I just see a box.
Does anyone know how to incorporate emojis on the Pi?
-
RE: MMM-MyCalendar
@rudibarani I just use a holiday calendar to add national holidays into the list. Like the ones you can find here:
https://www.calendarlabs.com/ical-calendar-holidays.phpIf you download the ics file, you can insert the name into the url like this:
http://www.calendarlabs.com/templates/ical/Canada-Holidays.ics
renders like this:
As for bringing back the alternative icon, it would break the design. The number in the calendar is the only place where the day of the month is indicated. If there were were a custom icon, I would have to put the full date into the description line, which I was trying to keep as minimal as possible. My thought is that my family would look at this for 30 seconds max on the way out the door. So I’m trying to keep the mental processing down.
Maybe the original calendar beter suits your needs?
-
RE: My Full-Length Mirror with a "Smart" Top Half
@Chiumanfu yeah it works well. Once I figured out that I had the sensitivity and timeout options flipped, that is!!
As you would imagine, the sensor is very directional – you need to be standing in front of the mirror for it be triggered, but it will pick up motion across its path well across the room.
If the screen is fully off, the PIR sensor picks up motion early enough that the TV has a chance to come fully on by the time you walk up to the mirror.
-
My Full-Length Mirror with a "Smart" Top Half
Built with a 32" TV positioned in the top half of the mirror, finished with a barn-board frame.
I made use of Xscreesaver to make this a piece of digital art on the wall when it’s not being used!Full build here:
http://jeffsnerdyprojects.blogspot.ca/2017/06/building-mirror.html -
RE: MMM-MyCommute
@rudibarani sure. You can add a rule in your custom css file like this:
.MMM-MyCommute .travel-time.status-good { color: #FFFFFF; }