Periodically send webhook with stock or other finance feed summary.
This can do what Chart-Img can do, and it's free.
Config your setting in config.yml
pip install -r requirements.txt
playwright install
python app.py
# or
flask run
docker compose up --build
- Able to host TradingView widget
- Able to take screenshot
- Discord webhook
- Able to pass HTTP GET parameter to create chart
- Periodically trigger
- Docker
-
Load config intoperiodic/server.py
's docker - Try add indicators, strategies, studies on the TradingView Advanced Chart
- What if "click" the save image button on the TradingView Advanced Chart?
- Timezone alignment
- Server time
- Scheduler time
- TradingView chart time
- Timezones | Advanced Charts Documentation
- UI for changing
config.yml
- Pop error message for invalid config
- Invalid scheduler config
- Invalid YAML syntax
- Pop error message for invalid config
- Make notification time configurable
- Error handling for scheduler job loading
- TradingView Screener
-
Deploy to Heroku Heroku Buttons | Heroku, Creating a 'Deploy to Heroku' Button | Heroku Dev CenterSince November 28, 2022, Heroku no longer offers its users a free tier or free Dynos / Netlify can only serve static website / PythonAnywhere's WSGI doesn't enable threads, which we are not able to use scheduler
- gitattributes - How can I make git ignore future revisions to a file? - Stack Overflow
git update-index --skip-worktree config.yml
- Discord Webhook
- Information
- Period Run
- schedule — schedule 1.2.0 documentation
- python - How can I run an async function using the schedule library? - Stack Overflow
- sched — Event scheduler — Python 3.11.4 documentation
- threading — Thread-based parallelism — Python 3.11.4 documentation
- Advanced Python Scheduler — APScheduler 3.9.1.post1 documentation
- Flask APScheduler
- Data Source
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
- Crash on running the example screenshot script from the documentation in VSCode Windows 10 · Issue #248 · pyppeteer/pyppeteer
- If anyone is having this issue; what fixed it for me was to uninstall the python version downloaded from the windows store and install python directly from their webpage. After doing so, I was able to launch Chromium using Pyppeteer.
- Can't run pyppeteer in local, or on web-based machine such as Replit · Issue #425 · pyppeteer/pyppeteer
- longer updated. Check README.md for more info. You can use Playright instead.
$ 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._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 ║
╚═══════════════════════════════════════════════════════════════╝