Hi! I get an error on the last rows of the file saying: invalid operands of types 'double' and 'long int' to binary 'operator%' It is highlighting this row: long epoch = round(curEpoch + 3600 * utcOffset + 86400L) % 86400L; Any idea what that means?
HELLO I HAVE PREPARED THE PROJECT BUT WHEN IT COMES TO PUTTING THE ID OF THE RUclips CHANNEL IT IS NOT CONFIGURED WHICH CAN BE ? EVERYTHING COMES OUT ZERO, And y put the api and youtube channel and nothing all is zero
Hello, I recreated your counter and I used it for a long time. Now it doesn't work anymore, the time is displayed correctly but the values from RUclips are always 0. I haven't changed anything either, does anyone have an idea?
you are really great man. i did successfully this project as per your help and code. time not correct i am belongs to india please tell me Indian long utcOffset = ? ; // for India,Kerala
Hi. That is good news. I believe the offset for India in 5:30 so try that but it may not like the : so also try 5.5 and see what happens on the screen if it is close to your local time.
Scotty D, I have been struggling with this code for days now. I can compile and upload it to my ESP8266. The serial monitor says it has connected to WiFi but it always fails to connect to RUclips. I have created the RUclipsAPI key as you described but no dice. On the Google Cloud Services dashboard I am not getting any data on the traffic or error charts. The max7219 display won't show the time, and all other fields are showing zero. Any help you could offer would be greatly appreciated. BTW, I am using Json V6.0 and I have edited the code accordingly. It wouldn't work with Json V5.0 either. Regards, Mark Presling
@@ScottyDIY I am thinking it is something to do with the settings in Google's API environment. I noticed that in your video there is evidence of traffic in your dashboard charts but I am getting nothing. No matter what credentials I try the serial monitor always shows that I am not able to connect to RUclips. I did originally try the Json5 versions but the code would not compile. I found a video that showed how to rewrite the code for V6 and it did compile and upload. I am getting desperate enough to go back to the original code and try version 5 again. Regards, Mark
Hi I have a problem with this code: void updateTime() { long curEpoch = localEpoc + ((millis() - localMillisAtUpdate) / 1000); long epoch = round(curEpoch + 3600 * utcOffset + 86400L) % 86400L; h = ((epoch % 86400L) / 3600) % 24; m = (epoch % 3600) / 60; s = epoch % 60; } I get this error: invalid operands of types 'double' and 'long int' to binary 'operator%'
Thanks, yes still working at of 17-Mar-2021 only thing is, it displays abbreviated subscriber count still. now I have not found out yet if API data has changed since the last update a week ago,(showing live sub count in analytics) I need to see if live data is available yet.
Im having trouble with this code. It doesn't work for me. I have rolled back to json 5 so its compatible (otherwise you need to update the code so json v6 works) but still no data. I have RUclips API enabled and i have the v3 api code included. The time is also incorrect. for example its 21:16 but displays 21:00 and just resets back to 21:00 each time i upload the code?
I'm a complete beginner with this stuff and keep getting errors. "max7219 no file or directory" This video is good, but I feel some key information is left out of the actual "compiling and uploading to the board" section for us people who have never touched Arduino. And I don't have the time or intelligence to figure this out. Oh well. I only spent 20 bucks.
Hey, sorry your right I have not really gone into the basics of compiling and uploading code to boards, I would assume other videos out there do explain the basics but if I can I will try do a basics video on this stuff or add more detail/steps in future videos explaining this. thanks for the feedback. As for the error, when compiling the code it is going through until it gets to the part #include "max7219.h" it can not find the file in the library. In the description of this video their is a link to the code which also contains the file but I would suggest if you watch my other video ruclips.net/video/QvL79mF-BCY/видео.html it has a step by step on how to add the max7219 file and also links as well.
hi, firstly thanks for the video. However, I done everything, The script runs fine, it uploads.... but I have a blank screen. I have an LCD screen, the lights are lit but nothing is written. Can you help? Cheers
Hey, sorry not sure what you mean by resetting. How do you know it’s resetting? It it something that you can see on the coms port.(potentially not connection to wifi) Or the led flashing like it’s not enough power. (Power supply issue)
why am i getting this message? # Arduino: 1.8.12 (Windows Store 1.8.33.0) (Windows 10), Board: "LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Enabled, All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, SSL, All Flash Contents, 921600" \\IKRYLOV\Web\RUclips\TEMPLATES\ESP_LEDMatrix_YT_subs_apiv3_cleaned\ESP_LEDMatrix_YT_subs_apiv3_cleaned.ino: In function 'void updateTime()': ESP_LEDMatrix_YT_subs_apiv3_cleaned:341:62: error: invalid operands of types 'double' and 'long int' to binary 'operator%' long epoch = round(curEpoch + 3600 * utcOffset + 86400L) % 86400L; ^ exit status 1 invalid operands of types 'double' and 'long int' to binary 'operator%' This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.
@@ScottyDIY I had issues finding code that worked in Arduino. thanks for the offer but I eventually found another script that I was able to fine tune and get it to work.
Sorry I don't understand the question, the clock is part of the code already and cycles through, you can change the offset to allow for your time zone though
Hi bro, with your all support & sujection i have completed this project.
My YT Studio live scrolling display working perfect...
Thanks a lot.
Hi! I get an error on the last rows of the file saying: invalid operands of types 'double' and 'long int' to binary 'operator%' It is highlighting this row: long epoch = round(curEpoch + 3600 * utcOffset + 86400L) % 86400L;
Any idea what that means?
You need to cast the variable type, like so:
long epoch = (long)(round(curEpoch + 3600 * utcOffset + 86400L)) % 86400L;
you are my hero, your code works perfectly, I just changed rotate value to 270 !!!!! and it still works fine at nowadays !!!!!
haha thanks. good to see people are using the video to build their own
I am getting an error Digits5X7 was not declared in this scope any help
HELLO I HAVE PREPARED THE PROJECT BUT WHEN IT COMES TO PUTTING THE ID OF THE RUclips CHANNEL IT IS NOT CONFIGURED WHICH CAN BE ? EVERYTHING COMES OUT ZERO, And y put the api and youtube channel and nothing all is zero
Hello,
I recreated your counter and I used it for a long time. Now it doesn't work anymore, the time is displayed correctly but the values from RUclips are always 0. I haven't changed anything either, does anyone have an idea?
you are really great man. i did successfully this project as per your help and code.
time not correct
i am belongs to india
please tell me Indian long utcOffset = ? ; // for India,Kerala
Hi. That is good news. I believe the offset for India in 5:30 so try that but it may not like the : so also try 5.5 and see what happens on the screen if it is close to your local time.
Hello, I come from VietNam .Thanks for your value information that RUclipsr need more..
Hi, thank you. let me know if you have any questions
@@ScottyDIY Thanks Sir, note your information.
Scotty D, I have been struggling with this code for days now. I can compile and upload it to my ESP8266. The serial monitor says it has connected to WiFi but it always fails to connect to RUclips. I have created the RUclipsAPI key as you described but no dice. On the Google Cloud Services dashboard I am not getting any data on the traffic or error charts. The max7219 display won't show the time, and all other fields are showing zero. Any help you could offer would be greatly appreciated. BTW, I am using Json V6.0 and I have edited the code accordingly. It wouldn't work with Json V5.0 either.
Regards,
Mark Presling
Hey sorry to hear. Just checked and I’m using json 5.2.0 not sure if it will make a difference I did try with newer version and it failed
@@ScottyDIY I am thinking it is something to do with the settings in Google's API environment. I noticed that in your video there is evidence of traffic in your dashboard charts but I am getting nothing. No matter what credentials I try the serial monitor always shows that I am not able to connect to RUclips. I did originally try the Json5 versions but the code would not compile. I found a video that showed how to rewrite the code for V6 and it did compile and upload. I am getting desperate enough to go back to the original code and try version 5 again.
Regards,
Mark
@@Preso58 did you get to the bottom of this?
Hi I have a problem with this code:
void updateTime()
{
long curEpoch = localEpoc + ((millis() - localMillisAtUpdate) / 1000);
long epoch = round(curEpoch + 3600 * utcOffset + 86400L) % 86400L;
h = ((epoch % 86400L) / 3600) % 24;
m = (epoch % 3600) / 60;
s = epoch % 60;
}
I get this error:
invalid operands of types 'double' and 'long int' to binary 'operator%'
Hi excellent video. question is the code still working since youtube changed its api policy?
Thanks, yes still working at of 17-Mar-2021 only thing is, it displays abbreviated subscriber count still. now I have not found out yet if API data has changed since the last update a week ago,(showing live sub count in analytics) I need to see if live data is available yet.
Im having trouble with this code. It doesn't work for me. I have rolled back to json 5 so its compatible (otherwise you need to update the code so json v6 works) but still no data.
I have RUclips API enabled and i have the v3 api code included. The time is also incorrect. for example its 21:16 but displays 21:00 and just resets back to 21:00 each time i upload the code?
I'm a complete beginner with this stuff and keep getting errors. "max7219 no file or directory" This video is good, but I feel some key information is left out of the actual "compiling and uploading to the board" section for us people who have never touched Arduino. And I don't have the time or intelligence to figure this out.
Oh well. I only spent 20 bucks.
Hey, sorry your right I have not really gone into the basics of compiling and uploading code to boards, I would assume other videos out there do explain the basics but if I can I will try do a basics video on this stuff or add more detail/steps in future videos explaining this. thanks for the feedback.
As for the error, when compiling the code it is going through until it gets to the part #include "max7219.h" it can not find the file in the library. In the description of this video their is a link to the code which also contains the file but I would suggest if you watch my other video ruclips.net/video/QvL79mF-BCY/видео.html it has a step by step on how to add the max7219 file and also links as well.
hi, firstly thanks for the video. However, I done everything, The script runs fine, it uploads.... but I have a blank screen. I have an LCD screen, the lights are lit but nothing is written. Can you help? Cheers
Its took me about 2 hours to realise that it was the brightness on the back!!!! FML!
Very informative
Hey! Just uploaded the sketch .But my esp8266 just keeps resetting. What can i do?
Hey, sorry not sure what you mean by resetting. How do you know it’s resetting? It it something that you can see on the coms port.(potentially not connection to wifi) Or the led flashing like it’s not enough power. (Power supply issue)
@@ScottyDIY yea !the led keeps flashing .
Hai bro,
30 minutes faster than india clock.
How to correct it?
what what you tried in your offset so far if it it 30 minutes faster?
why am i getting this message?
# Arduino: 1.8.12 (Windows Store 1.8.33.0) (Windows 10), Board: "LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Enabled, All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, SSL, All Flash Contents, 921600"
\\IKRYLOV\Web\RUclips\TEMPLATES\ESP_LEDMatrix_YT_subs_apiv3_cleaned\ESP_LEDMatrix_YT_subs_apiv3_cleaned.ino: In function 'void updateTime()':
ESP_LEDMatrix_YT_subs_apiv3_cleaned:341:62: error: invalid operands of types 'double' and 'long int' to binary 'operator%'
long epoch = round(curEpoch + 3600 * utcOffset + 86400L) % 86400L;
^
exit status 1
invalid operands of types 'double' and 'long int' to binary 'operator%'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Hi I too have the same problem, you managed to solve it?
really wanted this to work but cant get it to do so.. bummer.
If you detail out the issue I can try and tell you what what be wrong
@@ScottyDIY I had issues finding code that worked in Arduino. thanks for the offer but I eventually found another script that I was able to fine tune and get it to work.
all good, glad you sorted it out. Does your Arduino have Wi-Fi or is it serial connected for the data?
@@ScottyDIY Wifi. picked up one of these from amazon: ESP8266 NodeMCU CP2102 ESP-12E
Hey i do it how u do it but sub count is 0 and the the others to, i generated also apikey3 but nopeeee
Hello, is it still working for you ? I can’t get to work even though no error during compilation. I guess it is because of the latest change from YT.
Funny you say that i just noticed mine is playing up today as well, not sure yet what it is, will try have a look into it tomorrow
Just Did a Recompile and upload and it fixed the problem
Did you change something in the code ?
No, just opened the file checked the COM port was correct, then hit upload
어머 이건 꼭 만들어야 돼
What code do I have to add if I want the time to cycle as well. Thanks
Sorry I don't understand the question, the clock is part of the code already and cycles through, you can change the offset to allow for your time zone though
hallo sobat youtuber salam kenal dari saya serta salam ailaturrahmi
The number of subscribers says zero views. why is that?
sometimes it refreshes and goes to 0 for everything for a few minutes then comes back not sure why, is that what you are referring too?
@@ScottyDIY always showing zero. [ Subscribers, Wiews ]
@@MustafaAkn SAME LIKE ME TOO
I have the same problem
Cancelled
Not sure what you mean. What is cancelled?