Read the statement by Michael Teeuw here.
MMM-Events : nothing to display on my Magic Mirror
-
by changing the city “Caen” (I live in Caen in Normandy) for “Paris”, it works, it is therefore my city which is not recognized.
Any idea to solve the problem ?
-
@RIKKO14 said in MMM-Events : nothing to display on my Magic Mirror:
Any idea to solve the problem ?
If the api does not recognize your city then you will have to choose a city as close to you as possible that does work. This is not something that can be fixed by the module, sorry.
-
however when I go to the website: https://eventful.com/caen/events
I did have some results (I tried eventful Movies but nothing found even in Paris …).
Maybe it’s a city precision problem? if MMM-Events could specify “city, country” (Caen, France), that might work, right? -
In theory, yes, but it does not seem to accept Caen, France.
From the api documentation:
location string
A location name to use in filtering the search results. Locations in the form “San Diego”, “San Diego, TX”, “London, United Kingdom”, and “Calgary, Alberta, Canada” are accepted, as are postal codes (“92122”) and venue IDs (“V0-001-000268633-5”). Common geocoordinate formats (“32.746682, -117.162741”) are also accepted, but the “within” parameter is required in order to set a search radius. (optional) -
@Mykle1
and how to put the «within» parameter with the Common geocoordinate formats (“32.746682, -117.162741”) ? it’s more easier with this.
(optional) = it’s a eventful option ? I’m not a developper so I can’t modify the module. -
I will take a look at it when I have the time.
-
Ok, I’ve updated the module and tested it for your area. Run
git pull
in the MMM-Events directory. Things to mention:- Use the new config entry. I used the coordinates for Caen, France.
- There are not many ‘hits’ for your area. Try using different
eventType
’s in the config. - Increase the radius for possibly more events. I set it to 100km.
- There is a placeholder image for when the api does not provide an image for the event.
-
Regarding item #4 in my previous post. If you would rather use a placeholder image of your own (for when the api does not provide an image) you can make or find one and name it ‘go.jpg’. Put that in the modules ‘icons’ folder. However, I caution you to make the replacement image the same dimensions as the default image. Otherwise, the formatting of the module may get screwed up.
-
I 've made a mistacke but I don’t know where :
As you said I rungit pull
pi@raspberrypi:~/MagicMirror/modules/MMM-GoogleAssistant $ cd ~/MagicMirror/modules/MMM-Events pi@raspberrypi:~/MagicMirror/modules/MMM-Events $ git pull Mise à jour 2522a1a..384b255 Fast-forward MMM-Events.js | 85 +++++++++++++++++++++++++++++++---------------------------- README.md | 52 ++++++++++++++++++------------------ 2 files changed, 71 insertions(+), 66 deletions(-) pi@raspberrypi:~/MagicMirror/modules/MMM-Events $ pm restart mm bash: pm : commande introuvable pi@raspberrypi:~/MagicMirror/modules/MMM-Events $ pm2 restart mm
I change in my
config.js
:
city:"49.1811, -0.375565",
but I have this : it is not events for Caen :
[url=https://zupimages.net/viewer.php?id=20/37/65ps.png][img]https://zupimages.net/up/20/37/65ps.png[/img][/url]if i change
config.js
:
city:"Caen, France",
: it’s doesn’t workand how to Increase the radius ?
-
Using your
city:"49.1811, -0.375565",
I get this:
If the api has no data (events) for Caen, that can not be helped.
When I use
city:"Caen, France",
I get this:
So, the module is working. I added the ability to use coordinates for you. If the api does not give back events for those coordinates it means the api does not have data in the free api for that location. I suggested you increase the radius and you asked, ‘and how to Increase the radius ?’ My answer to that is, Look at the new config in the readme. I mentioned that 2 posts above.
I 've made a mistacke but I don’t know where :
No, you haven’t. You showed me that the module is working. You’re just not seeing the results you expected