@Yves911 But this plugin is for an ip-camera stream specifically - not the generic embedded iframe.
-
[implemented] Device that shows a iframe with an external webpage
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@mwittig yes and no this plugin should be able to deal with any ip camera that provide mjpeg stream
also it can be a good base to display other images than a one coming from a webcam (the plugin extend the mobile frontend and is able to display an image).
But you are right it won’t offer the possibility to display another page embedded (but can give us idea on how to do it maybe)pimatic rocks!
-
Started an plugin for that. I’m happy for contributions… the first time loading seems still a little bit buggy.
https://www.npmjs.com/package/pimatic-iframe -
@Oitzu said:
Started an plugin for that. I’m happy for contributions… the first time loading seems still a little bit buggy.
https://www.npmjs.com/package/pimatic-iframeLittle typo in the readme. there should be a comma
"class": "iframeDevice"
"class": "iframeDevice",
I like it, only thing I see is with every reboot/restart the coffee scripts get compiled.
01:13:45.962 [pimatic] info: Loading plugin: "pimatic-iframe" (0.0.1) coffee-cache: compiling coffee-script file "iframe.coffee"...Done coffee-cache: compiling coffee-script file "iframe-config-schema.coffee"...Done
Follow my domotica project on http://maredana.nl
-
@Oitzu I removed the pimatic-iframe dir and let is re-install now the compiling is gone.
Glitch in the matrix.Follow my domotica project on http://maredana.nl
-
@Oitzu looks good is it possible to define a refresh interval?
pimatic rocks!
-
@Yves911 said:
@Oitzu looks good is it possible to define a refresh interval?
Don’t know how to implement that atm… mostly because i would need to use an javascript to refresh the iframe and i have no clue on how to use the data-binding on a js-function.
But i released 0.0.2 with the posibillity to configure border and scrolling.
-
@Oitzu It’ll be great if it is possible to optionally scale the iframe content. To investigate this I have fiddled a proof of concept. Frontend Developers, pls let me know if there is a fancier solution. If anticipated, I am happy to implement the feature.
http://jsfiddle.net/WittigMarcus/27y874vy/
EDIT: Added PR - https://github.com/Oitzu/pimatic-iframe/pull/1
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@Oitzu said:
But i released 0.0.2 with the posibillity to configure border and scrolling.
That works ! thanks
pimatic rocks!
-
@mwittig looks good.
Thanks for adding a PR.
Thanks for also fixing the typo i’ve done.Published it (0.0.3) on npm.
-
I have also implemented the “refresh interval”. I have added a property “reload” which takes the number of seconds for the interval, 0 = no reload.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@mwittig thanks again!
0.0.4 with reload function released.