gpetersen / mmm-backgroundslideshowinfo Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I gave it a quick try under windows, haven't tried on pi yet. I'm sure I've missed something but upon adding this module I am getting error that it is looking for module exif.
This is a new instance of issue #4
The fix implemented in commit 31c2561 works great if you are using the default port number, but the issues reemerges if you have to use a different port number (like when, for example, 8080 is being used by another program)
If I change the port number in node_helper.js lines 27 & 28 to match my port number, everything works fine.
if there is no Model included in EXIF data I'm seeing a lot of these in the console:
Uncaught TypeError: Cannot read property 'Model' of undefined
at Class.extract (MMM-BackgroundSlideshowInfo.js:264)
at Class.updateView (MMM-BackgroundSlideshowInfo.js:189)
at Class.socketNotificationReceived (MMM-BackgroundSlideshowInfo.js:275)
at module.js:246
at r.<anonymous> (socketclient.js:25)
at r.emit (index.js:83)
at r.onevent (index.js:83)
at r.MMSocket.self.socket.onevent (socketclient.js:19)
at r.onpacket (index.js:83)
at r.<anonymous> (index.js:83)
at r.emit (index.js:83)
at r.ondecoded (index.js:83)
at a.<anonymous> (index.js:83)
at a.r.emit (index.js:83)
at a.add (index.js:83)
at r.ondata (index.js:83)
at r.<anonymous> (index.js:83)
at r.emit (index.js:83)
at r.onPacket (index.js:83)
at r.<anonymous> (index.js:83)
at r.emit (index.js:83)
at r.onPacket (index.js:83)
at r.onData (index.js:83)
at WebSocket.ws.onmessage (index.js:83)
I put this on my RPi. The images continue to work fine, however no EXIF data is being pulled. Here is example of consol output. For some reason http://0.0.0.0:8080/
is inserted in the link after MM.
[BACKGROUNDSLIDESHOWINFO] GET_EXIF - url: http://0.0.0.0:8080/modules/MMM-BackgroundSlideshow/exampleImages/BARN%20PARTY%20003.JPG
[BACKGROUNDSLIDESHOWINFO] helper loading EXIF data for /home/pi/MagicMirror/http://0.0.0.0:8080/modules/MMM-BackgroundSlideshow/exampleImages/BARN PARTY 003.JPG
Error: Encountered the following error while trying to read given image: Error: ENOENT: no such file or directory, open '/home/pi/MagicMirror/http://0.0.0.0:8080/modules/MMM-BackgroundSlideshow/exampleImages/BARN PARTY 003.JPG'
I just noticed you had some comments about this in node_helper. If I insert this line 28: var imageUri = imageUri.replace("http://0.0.0.0:8080/","");
it fixes this issue.
Thanks for creating this module. It's a nice addition to MMM-BackgroundSlideshow.
It would be great if there was an option to remove the file extension when displaying the file name.
Hi @gpetersen ,
I don't manage to get GPS data showing in MM...
Would you be so kind and help me?
My config ':
`{
// 29
disabled: false,
module: "MMM-BackgroundSlideshowInfo",
header: "Picture Info",
position: 'lower_third',
config: {
ignoreFolderNames: ['MagicMirror', 'modules', 'MMM-ImageSlideshow', 'SynoPhoto5Stars'],
geonameUser: "myusernamewithoutthepassword",
showGPS: true,
showGPSFields: ['name','countryCode','adminName1'],
showCustom: ['exif.FNumber'],
showFolderNames: true,
showFileName: false,
showModel: false,
}
},`
Also, terminal is showing the following... which means GPS datas from exif are recognized...
[BACKGROUNDSLIDESHOWINFO] Getting Geonames for lat/lng: 49.256195/4.028688333333333
All others datas are showing fine..
Strange, isn't it?
Thanks already,
@rts58 mentioned:
A couple comments so far: Is there a way to insert some type of delimiter in the place names? For now it looks like this: "Veterans Memorial ParkUSNew Hampshire".
@rts58 mentioned:
Also if the picture is followed by an image with no EXIF data the EXIF data remains instead of being cleared.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.