After extensive googling, it seems this isn’t possible (any longer). Damnit.
Read the statement by Michael Teeuw here.
Posts
-
RE: Trying to make a "Incoming call" module for iphone
-
Trying to make a "Incoming call" module for iphone
Hi everyone,
I’m trying to set up real-time iPhone call notifications on my MagicMirror² display. I’ve set up a basic “PhoneCalls” module, that acts as an endpoint that can receive call information.
What I already have working:
- Module “listening”
- Server endpoint running on port 8282
- CSS styling for call display
- Module configured to show caller name and duration
- Backend ready to receive POST requests to
/phone-call
with this structure:
{
“deviceId”: “iphone1”,
“status”: “started” or “ended”,
“caller”: “Phone Number or Contact Name”
}
What I’m missing:
A way to get my iPhone to send these call status updates to the endpoint. Has anyone successfully implemented this? I’m particularly interested in:- Current methods for capturing iPhone call events
- Solutions for sending this data to the MagicMirror’s local endpoint
- Alternative modules or approaches if this isn’t the best way
My setup:
- MagicMirror²
- iPhone (latest iOS)
- Local network access between phone and mirror
Any guidance would be greatly appreciated!
-
RE: Question about translations/the translation system
@sdetweil Thnx, and figures. I guess its a fringe case anyway, having one global language and doing another for this (its a birthday message module Im working on). Ill just settle for using the global settings for now.
/C
-
Question about translations/the translation system
Im trying to make a module that displays a message. I’ve made translated language files, eg en.json, sv.json, uk.json etc. They work properly and is set by the global setting in config.js.
However I would like the language setting in the modules own config.js section to override global. Eg I want to be able to have global setting=sv and module setting =en (as example).
When I do that, console reports that it is using the module setting, but the display always gives me the global setting. Eg, the language of the message the module displays always shows in the langauge set in global setting.
Is there any way to change this?
-
RE: New module: Weather effects
And I just want to add here that I’m running it on a Raspberry Pi with a 7-inch screen, so there’s not much screen space to work with. I don’t have room for the weather module with the ‘current’ option as well. However, after testing, it seems to work perfectly fine to keep the module ‘hidden’ by simply omitting a location in the config.js file
I’m considering making the rain direction controlled by the wind direction from the Weather module. If it’s possible, it would look pretty neat.
-
RE: New module: Weather effects
I dont think PM2 shows module-specific broadcasts unless explicitly logged, but Im no expert. Maybe @sdetweil knows?
To test it I just bascially found locations with rain or snow, and set that in config.js.
-
RE: "Invalid Date" appears in Weather module. MM v2.29.0
@reilley I just realized I experienced something similar, but I was preoccupied with other tasks and didn’t take the time to investigate.
Here’s a screenshot for reference:
https://github.com/cgillinger/MMM-WeatherEffects/blob/main/screenshots/rich.pngBased on my screenshots (as mentioned, I was focused on tweaking the module and only noticed it afterward), it seems to be intermittent.
I’m using api-free providers, eg SMHI.
-
New module: Weather effects
Earlier, I shared a module that makes it snow on MagicMirror — as soon as you start it, snowflakes begin to fall. When I first created it, I thought it would be cool if it only showed snow when it was actually snowing.
@sdetweil gave me the idea that MagicMirror’s default weather module broadcasts notifications, so you can let the module pick up its notification using the following code:
if (this.weatherProvider.currentWeather()) { this.sendNotification("CURRENTWEATHER_TYPE", { type: this.weatherProvider.currentWeather().weatherType.replace("-", "_") }); }
So, I experimented a bit and got it to work! While I was at it, I also added rain. That is, if the weather module reports rain, raindrops will fall on the MagicMirror screen as well.
I should mention that so far, I’ve only tested this with the Swedish weather provider SMHI, but it should work with the others too.
I’ve tried to ensure that the annotations in the script and CSS make it reasonably easy to follow and understand if someone wants to tweak it themselves.
Screenshot:
Rich snow
Light snow (for Raspberry Pies etc)
Rain
Also, for obvious reasons this module requires the standard weather module to be active issuing “CurrentWeather” statuses.
-
RE: Let it snow now Magic Mirror
And here are the precipitation words used by the different providers:
openMeteo showers, Rain, Snow, Showers, sleet, drizzle, precipitation, hail, rain, Precipitation, snow
overrideWrapper
pirateWeather rain, sleet, snow
smhi showers, Rain, Snow, sleet, Drizzle, precipitation, rain, drizzle, snow
ukMetOffice showers, sleet, hail, rain, snow
ukMetOfficeDataHub showers, sleet, hail, rain, Precipitation, snow
weatherBit rain, sleet, snow
weatherFlow snow
weatherGov showers, Snow, Rain, Showers, Drizzle, precipitation, rain, snow
yr rain, sleet, precipitation, snowI did notice a lot of just plain “precipitation” and one future fix might be combining a broadcast of “precipitation” and negative degrees centigrades, as that would also indicate snow.
Also thinking of adding rain functionality, after testing the module more.
-
RE: Let it snow now Magic Mirror
@sdetweil I think I actually managed to implement it—so now snow falls whenever “Current conditions” report any of the various “snow” messages.
I renamed the module and uploaded it as a standalone: “MMM-DynamicSnow”
👉 https://github.com/cgillinger/MMM-DynamicSnow
It should work with all weather providers. I created a separate dictionary for it, but so far, I’ve only had time to test it with Swedish SMHI. Also not easy to test during this mild winter, but I did finally manage to find a place where it snowed up north here in Sweden.