Open ubagas65 opened 4 months ago
You need to run the analytics() function after setting enable_analytics to true. Currenty you are creating a twitch miner without analytics being enabled (line 1), then trying to activate analytics server (line 2) and then setting analytics to true in a different miner object (line 14).
This is how your code should be,
twitch_miner = TwitchChannelPointsMiner(
...
enable_analytics=True,
...
)
twitch_miner.analytics(host="0.0.0.0", port=5000, refresh=5, days_ago=7) # Analytics web-server
twitch_miner.mine(followers=True, blacklist=["user1", "user2"])
Yea
nvm got it to finaly work on but now I get an error:
https://gist.github.com/ubagas65/accbea267a0fc93d3d453474db60b8b1
I've already delected the cookies & restarted the miner got the promt to login & put the activate code in but still get that error
nvm got it to finaly work on but now I get an error:
https://gist.github.com/ubagas65/accbea267a0fc93d3d453474db60b8b1
I've already delected the cookies & restarted the miner got the promt to login & put the activate code in but still get that error
Double check your account credentials in the run.py file
so I had the account credentuals in the run.py, removed the password & deleted the cookies tried again but still no luck same error
removed the password
What do you mean? Why would you remove the password?
You MUST have a correct username and a correct password in your run.py file. For the same account that you would open in the browser to activate the TV login method.
Yes, I've done that that username & password is correct. & activated it on tv login method
Yes, I've done that that username & password is correct. & activated it on tv login method
Same account?
Yup
No bug, you are doing something wrong. You were able to login before enabling analytics. Try to start from the beginning, recreate the container. Write your actions step-by-step.
nvm got it to finaly work on but now I get an error:
How exactly did you get it to work? What was changed? Provide the full log and the changed run.py file.
https://gist.github.com/ubagas65/410cf0c29eef57308af10756f10d526b - run.py I have copied the example and redone it but still get the error
https://gist.github.com/ubagas65/832728b4113ae310da419e5801e20225 - logs
https://gist.github.com/ubagas65/410cf0c29eef57308af10756f10d526b - run.py I have copied the example and redone it but still get the error
https://gist.github.com/ubagas65/832728b4113ae310da419e5801e20225 - logs
There is no ERR_BADAUTH error now, everything looks fine. Analytics running on http://127.0.0.1:5000/
Is it mining now? Is Analytics opening?
And why did you delete https://gist.github.com/ubagas65/accbea267a0fc93d3d453474db60b8b1 ?
https://gist.github.com/ubagas65/410cf0c29eef57308af10756f10d526b - run.py I have copied the example and redone it but still get the error https://gist.github.com/ubagas65/832728b4113ae310da419e5801e20225 - logs
There is no ERR_BADAUTH error now, everything looks fine. Analytics running on http://127.0.0.1:5000/
Is it mining now? Is Analytics opening?
Analytics is working now, since I have it on my raspberry PI & running docker with portainer I use 0.0.0.0:5000 it just works for me, but I still get the ERR_BADAUTH error, it dosen't show any watch claims but the miner still places bets tho.
https://gist.github.com/ubagas65/410cf0c29eef57308af10756f10d526b - run.py I have copied the example and redone it but still get the error https://gist.github.com/ubagas65/832728b4113ae310da419e5801e20225 - logs
There is no ERR_BADAUTH error now, everything looks fine. Analytics running on http://127.0.0.1:5000/
Is it mining now? Is Analytics opening?
Analytics is working now, since I have it on my raspberry PI & running docker with portainer I use 0.0.0.0:5000 it just works for me, but I still get the ERR_BADAUTH error, it dosen't show any watch claims but the miner still places bets tho.
There is no such error in your logs.
It's very odd, I have tried even turning off analytics, and running the miner seeing if any thing cahgnes but the miner only places bets but is not claiming for watch time or any of that stuff
It's very odd, I have tried even turning off analytics, and running the miner seeing if any thing cahgnes but the miner only places bets but is not claiming for watch time or any of that stuff
Impossible to figure out what's what without the logs.
Maybe try a fresh start: delete everything completely. Everything: containers, folders, etc.
And document your actions step-by-step.
right so deleted everything, readded everything now got it to work, but if you could edit the example under the 'How to use" & mirror it to the example.py in the files with would help since I think it's missing a few things
right so deleted everything, readded everything now got it to work, but if you could edit the example under the 'How to use" & mirror it to the example.py in the files with would help since I think it's missing a few things
What things exactly?
On the page under the "How to use" it's missing: https://gist.github.com/ubagas65/1cdd4920af16aad218bd32a0231c1ded
Describe the bug
when starting Run.py I get an error that I can't start analytics, I have enabled on the run.py & added but still get this other then that the miner runs just fine.
Steps to reproduce
Start the run.py & you get this error
Expected behavior
Pretty much to know how to enable twtich analytics on docker
Operating system
raspberry pi OS
Python version
3.12.3
Miner version
v2-1.9.5
Other relevant software versions
Docker & portainer
Logs
(https://gist.github.com/ubagas65/e9422c2306ad68aa40de09f5dea76ead) - the error
https://gist.github.com/ubagas65/7a879b42a60711820bb2e17b53d8dcb6 - run.py
Additional context
I have tried https://github.com/rdavydov/Twitch-Channel-Points-Miner-v2/issues/60 changing ip to 127.0.0.1 & 0.0.0.0 but still no luck