Code Monkey home page Code Monkey logo

snapshot's Introduction

Senior Full-Stack Engineer

  • ๐Ÿ”ญ Iโ€™m currently working on 'VMware by Broadcom Carbon Black'
  • ๐ŸŒฑ Iโ€™m currently learning SvelteJS
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on Home Assistant
  • ๐Ÿค” Iโ€™m looking for help with HomeLab!
  • ๐Ÿ’ฌ Ask me about Nothing
  • ๐Ÿ“ซ How to reach me: https://github.com/parvez
  • ๐Ÿ˜„ Pronouns: He / Him / His
  • โšก Fun fact: ๐ŸคŸ Love to watch any Animated Series!

GitHub Views typescript

๐Ÿ“ฌ Get in Touch

๐Ÿ“ˆ My GitHub Stats

Parvez's GitHub Stats

snapshot's People

Contributors

parvez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

snapshot's Issues

Generate pdf without page breaks

With the current implementation PDF could break graphs betweek two pages.
I'm looking how to generate a pdf without page breaks.

I have set to empty the paper size property page.paperSize = {};, but the render make weird things:
captura de pantalla de 2017-01-13 13-47-00

Enhancement: Automated emailing of the report

It would be great if we could automatically email the report to one or more recipients after generation.

I think what's needed is at least:
General
smtp_host:
smtp_user:
smtp_passwd:

per rule
recipients:
subject:
From:

Alternatively what also would be a great solution is to put the report behind a single time valid download URL and email just the link but this link must in that case be available without userid/passwd. and store the files in the tool for a to configurable time just in case the link failed or other people want to have the report too.

Minor issue when data directory does not exist

Minor issue: When the data directory does not exist it throws this ajax error on the font page, untill the first image is rendered ( I did not run in docker just off of the github clone)

screenshot from 2016-08-25 08-42-18

Fantastic app, THANKS!

oh simple fix was to mkdir app/data but be nice i the Javascript on the site did not throw an error or at least handled the error

Cannot Detect Dashboard Provided in Config

Hi @parvez,
Thanks for this tool. I'm trying to use it but it is not working properly.

  • When I try to schedule a new snapshot the dashboard dropdown does not list the dashboard I have provided in the config. And it also says unable to add. My config file looks as follow:
{
  "app_port": 8080,
  "app_dir": "/deploy",
  "os_type": "linux",
  "phantomjs": {
    "wait_seconds": "30"
  },
  "dashboard_url": "http://localhost:5601/app/kibana#/dashboard/",
  "dashboards_list_url": "http://localhost:5601/app/kibana#/dashboard/For-Cyber-Security",
  "basic_auth_users": [
    {"user": "u1", "password": "p1"},
    {"user": "u2", "password": "p2"}
  ]
}

I have the following error in the log:
2016-06-30T07:59:17.071Z - error: (helper_logger.js 102) [/api/dashboards] []error: {"code":"ECONNREFUSED","errno":"ECONNREFUSED","syscall":"connect"}

Do you know how to fix this? Thanks

Error in report with kibana 6.x

2019-04-12T08:31:11.392Z INFO Arguments: ["/opt/snapshot/helper_generate.js","/opt/snapshot/data/","dashboard:ML-Nginx-Remote-IP-URL-Explorer-ecs","pdf","30"]
2019-04-12T08:31:11.392Z INFO zoomFactor: 1
2019-04-12T08:31:11.392Z INFO paperSize: {"format":"A4","orientation":"portrait","margin":"0"}
2019-04-12T08:31:11.392Z INFO dashboard: dashboard:ML-Nginx-Remote-IP-URL-Explorer-ecs
2019-04-12T08:31:11.392Z INFO output: pdf
2019-04-12T08:31:11.392Z INFO waitTime: 30000ms
2019-04-12T08:31:11.392Z INFO URL: http://kibana:5601/app/kibana#/dashboard/dashboard:ML-Nginx-Remote-IP-URL-Explorer-ecs
2019-04-12T08:31:12.472Z INFO success
Invariant Violation: [React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.
See: http://formatjs.io/guides/runtime-environments/

  http://kibana:5601/dlls/vendors.bundle.dll.js:193 in bf
Invariant Violation: [React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.
See: http://formatjs.io/guides/runtime-environments/

  http://kibana:5601/bundles/commons.bundle.js:1 in add
2019-04-12T08:31:42.513Z INFO Successfully rendered URL: http://kibana:5601/app/kibana#/dashboard/dashboard:ML-Nginx-Remote-IP-URL-Explorer-ecs

How to fix it?

20190411174738 - Kibana.pdf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.