Hi, I would appreciate a function that allow to autoexport as image a block. Image could be saved somewhere in the site, or otherwise I could schedule something like a wget in order to call an URL that produce and sends to me the image.
Thanks for evaluation the idea
Giordolo
Blocks - export as image
-
chrisecurtis
- Newbie

- Posts: 7
- Joined: Sun Jan 28, 2018 8:27 pm
- Station model: Davis Vantage Vue
- Software: Weather Display
Re: Blocks - export as image
Most blocks can be exported as an image by clicking on the image icon in the block.
This calls a javascript function:
exportBlockImage('nameOfBlock')
I've not looked at which script that function is in, but it should be possible to create a "hidden" webpage on your site which calls that script and function to return an image of the block you want.
This calls a javascript function:
exportBlockImage('nameOfBlock')
I've not looked at which script that function is in, but it should be possible to create a "hidden" webpage on your site which calls that script and function to return an image of the block you want.
-
giordolo
- Observer

- Posts: 41
- Joined: Thu Oct 19, 2017 7:59 am
- Station model: WH3081
- Software: Weather Display
Re: Blocks - export as image
Ya thanks, I have noted that trying to have a look in the code, but I'm not so skilled 
- Dehatter
- Professional

- Posts: 350
- Joined: Sun Jan 07, 2018 5:11 am
- Location: Matthews, NC, USA
- Station model: Ecowitt WH80
- Software: Ecowitt GW1000
- Contact:
Re: Blocks - export as image
You want an image of the entire site? Along the lines of a screenshot?
Every block can be saved as an image, but not the the entire site.
I would suggest installing the diary plug in instead of what you are asking for. You can go back to any date in the database and see the conditions at that time.
Also you can go to tab "Weather Station" tab and select "Interactive Table" and see the conditions at ANY given time (or range) in the database.
Tom
Every block can be saved as an image, but not the the entire site.
I would suggest installing the diary plug in instead of what you are asking for. You can go back to any date in the database and see the conditions at that time.
Also you can go to tab "Weather Station" tab and select "Interactive Table" and see the conditions at ANY given time (or range) in the database.
Tom
- Jachym
- Site Admin

- Posts: 1686
- Joined: Fri Aug 18, 2017 10:12 pm
- Location: Brno, Czech Republic
- Station model: WH1080
- Software: Meteobridge
- Contact:
Re: Blocks - export as image
To make a screenshot of the entire homepage you would need some browser plugin, but even those often struggle, for example if you have the sticky menu activated it would be copied over several times as the plugin scans the page.
- georg
- Observer

- Posts: 42
- Joined: Sun Aug 20, 2017 8:59 pm
- Location: Denmark
- Station model: Davis Pro 2+
- Software: Weather Display
- Contact:
Re: Blocks - export as image
Yes it is possible, but as the site is updating, (for mine every 4 sec) it is hard to select the right moment hit capture.


-
giordolo
- Observer

- Posts: 41
- Joined: Thu Oct 19, 2017 7:59 am
- Station model: WH3081
- Software: Weather Display
Re: Blocks - export as image
Thank you all but I don't need the entire site screenshot; I simply would to schedule the already provided function "export as image" that is in every block. How it could be possibile? (calling the function, of course; I'm not able to do that
)
- Jachym
- Site Admin

- Posts: 1686
- Joined: Fri Aug 18, 2017 10:12 pm
- Location: Brno, Czech Republic
- Station model: WH1080
- Software: Meteobridge
- Contact:
Re: Blocks - export as image
the export image function is not called by PHP, but by Javascript. Javascript is a client-side language, which means it is triggered by a user and click. This cannot be achieved by a CRON job, I never looked at this possiblity using server-side language such as PHP, but the way this script works in Meteotemplate will not do this