-
Notifications
You must be signed in to change notification settings - Fork 680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show analytics of your points mining #96
Conversation
…We can't pickle Lock()
…s (zoomable-timeseries). We need Flask for serve the .json history
…ple series in only one chart because we had problems with annotations
Could you add variables for the server port and listening address? |
Of course, I'll do :) |
Thanks!! |
This doesn't work on Windows.
Googling that error, it doesn't seem that uncommon. I don't know much about multithreading and Python, but from what I understood the problem comes from the fact that you build the Making that change seemed to make it work for Windows too, but I don't really know what does it imply/changes: Index: TwitchChannelPointsMiner/classes/AnalyticsServer.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/TwitchChannelPointsMiner/classes/AnalyticsServer.py b/TwitchChannelPointsMiner/classes/AnalyticsServer.py
--- a/TwitchChannelPointsMiner/classes/AnalyticsServer.py (revision acb9267c02e675f3df592d11f79882b3cf7a784e)
+++ b/TwitchChannelPointsMiner/classes/AnalyticsServer.py (date 1614434499050)
@@ -1,5 +1,6 @@
import logging
import os
+import threading
from multiprocessing import Process
from pathlib import Path
@@ -34,7 +35,7 @@
return render_template("charts.html", streamers=",".join(streamers_available()))
-class AnalyticsServer(Process):
+class AnalyticsServer(threading.Thread):
def __init__(self, host="127.0.0.1", port=5000):
super(AnalyticsServer, self).__init__() |
Before acb9267 , works? Or not? |
For the texts, yeah looks goo like that, it's readable. For the apexcharts issue, seems like the solution offered here is to add xaxis: {
type: "datetime",
labels: {
datetimeUTC: false
}
}, They gave an example with https://codepen.io/drpuur/pen/ExaQWGx . Here the first timestamp is I guess that this field |
https://apexcharts.com/docs/options/xaxis/
The best solution for us, It's to use |
do i need to setup a apache web server or something like this? I cant get to the webpanel "ERR_CONNECTION_REFUSED" Can someone give me a short tip how to set this up? |
Any other webserver is not required because this project uses flask. |
Seems to be stable. |
I was using it for more than 4 days non-stop, no issues have been found |
you used the bot for 24 hours straight during 4 days or with intervals? |
For 24 hours straight. What's the issue? |
No issue at all, i just thought twitch would have some limits where it would maybe idk block your account or something. |
How do you enable this on a Linux VPS? |
https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2#analytics |
Yea figured it out, thanks, any way on restricting port 5000? seems a bit tricky because this is without using Apache so I can't create an htaccess file, since my VPS is public and my IP is exposed, anyone who hits my IP with port 5000 can access it. |
When i add this code it just gets stuck here, can you tell me where i need to put this code, this is frustrating because I HAVE no one to talk to nor i am knowledgeable enough to google this. This is driving me crazy.. What does " |
@Glass47 Please create a new issue instead of trying to revive a long merged PR. |
@invahak you already use the TwitchChannelPointsMiner method below the code you added. |
I can`t find how to enable the analysis panel, I have added all the code and configured everything but the log still gives me this outuput: I don't know where to enable the flag, please help |
@tmaarcxs I guess this is about my fork https://github.com/rdavydov/Twitch-Channel-Points-Miner-v2/ See the README regarding Analytics: https://github.com/rdavydov/Twitch-Channel-Points-Miner-v2/#analytics You should set You can use |
Thanks for your response @rdavydov, thanks to what you have told me, now it notifies that the web has been opened in the configuration that I have set, localhost:5000. I attach the dockerfile and the file run.py Thanks in advance. |
Add release tag on docker image
😣😭😭😭😭😭 25/09/23 21:06:45 - ERROR - [error]: error from callback <function WebSocketsPool.on_message at 0x7f9f8c68b0>: Error while trying to listen for a topic: {'type': 'RESPONSE', 'error': 'ERR_BADAUTH', 'nonce': 'rBaN0W0NMupQXUhf1dMoXRYzeoFe2G'} 25/09/23 21:06:45 - ERROR - [on_error]: #0 - WebSocket error: Error while trying to listen for a topic: {'type': 'RESPONSE', 'error': 'ERR_BADAUTH', 'nonce': 'rBaN0W0NMupQXUhf1dMoXRYzeoFe2G'} 25/09/23 21:06:45 - ERROR - [error]: error from callback <function WebSocketsPool.on_message at 0x7f9f8c68b0>: Error while trying to listen for a topic: {'type': 'RESPONSE', 'error': 'ERR_BADAUTH', 'nonce': '9AzIQQBHyUGvyFJzJndWCNB0Zt30hq'} 25/09/23 21:06:45 - ERROR - [on_error]: #0 - WebSocket error: Error while trying to listen for a topic: {'type': 'RESPONSE', 'error': 'ERR_BADAUTH', 'nonce': '9AzIQQBHyUGvyFJzJndWCNB0Zt30hq'} |
can somebody make a video on this for windows setup please and thanks |
Description
You can navigate to localhost:5000 and see a chart with your points history.
We collect every update like watch, claim, prediction, etc.
The following screenshot are just an example.
Type of change
Checklist: