Coder Social home page Coder Social logo

financenotifier's Introduction

Finance Notifier

Periodically send webhook with stock or other finance feed summary.

This can do what Chart-Img can do, and it's free.

Getting Started

Config your setting in config.yml

pip install -r requirements.txt
playwright install

python app.py
# or
flask run
docker compose up --build

Todo

Note

Resources

Trouble Shooting

pyppeteer (deprecated)

OSError: [WinError 14001] The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail

Scheduler API 404

$ flask routes
 * Ignoring a call to 'app.run()' that would block the current 'flask' CLI command.
   Only call 'app.run()' in an 'if __name__ == "__main__"' guard.
Endpoint                        Methods  Rule
------------------------------  -------  --------------------------------------
add_job                         POST     /scheduler/jobs
delete_job                      DELETE   /scheduler/jobs/<job_id>
discord_webhook                 GET      /discord_webhook
get_job                         GET      /scheduler/jobs/<job_id>
get_jobs                        GET      /scheduler/jobs
get_scheduler_info              GET      /scheduler
home                            GET      /
pause_job                       POST     /scheduler/jobs/<job_id>/pause
resume_job                      POST     /scheduler/jobs/<job_id>/resume
run_job                         POST     /scheduler/jobs/<job_id>/run
screenshot                      GET      /screenshot/<chart>
static                          GET      /static/<path:filename>
tradingview_advanced_chart      GET      /widget/tradingview_advanced_chart
tradingview_technical_analysis  GET      /widget/tradingview_technical_analysis
update_job                      PATCH    /scheduler/jobs/<job_id>

Seems if host is 0.0.0.0 will have some issue

Just because I am running an old one...

playwright dependencies in docker

 playwright._impl._api_types.Error:
 ╔══════════════════════════════════════════════════════╗
 ║ Host system is missing dependencies to run browsers. ║
 ║ Missing libraries:                                   ║
 ║     libgobject-2.0.so.0                              ║
 ║     libglib-2.0.so.0                                 ║
 ║     libnss3.so                                       ║
 ║     libnssutil3.so                                   ║
 ║     libsmime3.so                                     ║
 ║     libnspr4.so                                      ║
 ║     libatk-1.0.so.0                                  ║
 ║     libatk-bridge-2.0.so.0                           ║
 ║     libcups.so.2                                     ║
 ║     libgio-2.0.so.0                                  ║
 ║     libdrm.so.2                                      ║
 ║     libdbus-1.so.3                                   ║
 ║     libxcb.so.1                                      ║
 ║     libxkbcommon.so.0                                ║
 ║     libatspi.so.0                                    ║
 ║     libX11.so.6                                      ║
 ║     libXcomposite.so.1                               ║
 ║     libXdamage.so.1                                  ║
 ║     libXext.so.6                                     ║
 ║     libXfixes.so.3                                   ║
 ║     libXrandr.so.2                                   ║
 ║     libgbm.so.1                                      ║
 ║     libpango-1.0.so.0                                ║
 ║     libcairo.so.2                                    ║
 ║     libasound.so.2                                   ║
 ╚══════════════════════════════════════════════════════╝
playwright._impl._api_types.Error: Executable doesn't exist at /ms-playwright/chromium-1071/chrome-linux/chrome
╔═══════════════════════════════════════════════════════════════╗
║ Looks like Playwright was just updated to 1.36.0.             ║
║ Please update docker image as well.                           ║
║ -  current: mcr.microsoft.com/playwright/python:v1.35.0-jammy ║
║ - required: mcr.microsoft.com/playwright/python:v1.36.0-jammy ║
║                                                               ║
║ <3 Playwright Team                                            ║
╚═══════════════════════════════════════════════════════════════╝

RuntimeError: The scheduler seems to be running under uWSGI, but threads have been disabled. You must run uWSGI with the --enable-threads option for the scheduler to work.

financenotifier's People

Contributors

daviddwlee84 avatar

Watchers

 avatar

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.