Giter VIP home page Giter VIP logo

Comments (10)

editwentyone avatar editwentyone commented on June 12, 2024 1

ok @Qrome, reflashed and brought to the main network (no guest network anymore) and bam, its working. shame on me.
but something is blocking and you were right. thanks for your time

from marquee-scroller.

Qrome avatar Qrome commented on June 12, 2024

Connect to the Arduino IDE and use the port monitor to view the error. It should tell you what is happening. Baud 115200.

from marquee-scroller.

editwentyone avatar editwentyone commented on June 12, 2024
10:46:00.620 -> 
10:46:00.620 -> Getting Weather Data
10:46:00.620 -> GET /data/2.5/group?id=MYCITY&units=metric&cnt=1&APPID=MYAPI HTTP/1.1
10:47:00.707 -> Waiting for data
10:47:05.703 -> Response Header: 
10:47:05.703 -> Unexpected response: 
10:47:09.867 -> Updating Time...
10:47:09.867 -> essful!
10:47:09.867 -> Getting Time Data for ,
10:47:09.867 -> GET /v2.1/get-time-zone?key=MYAPI&format=json&by=position&lat=&lng= HTTP/1.1
10:47:25.063 -> Waiting for data
10:47:25.063 -> 
10:47:25.063 -> 
10:47:25.063 -> firstEpoch is: 20
10:47:25.063 -> Getting News Data for reuters
10:47:25.063 -> Please provide an API key for the News.
10:47:25.063 -> Version: 3.03
10:47:25.063 -> 
11:02:25.124 -> 
11:02:25.124 -> Getting Weather Data
11:02:25.124 -> GET /data/2.5/group?id=MYCITY&units=metric&cnt=1&APPID=MYAPI HTTP/1.1
11:03:25.109 -> Waiting for data
11:03:30.104 -> Response Header: 
11:03:30.104 -> Unexpected response: 
11:03:34.266 -> Updating Time...
11:03:34.266 -> essful!
11:03:34.266 -> Getting Time Data for ,
11:03:34.266 -> GET /v2.1/get-time-zone?key= MYAPI&format=json&by=position&lat=&lng= HTTP/1.1
11:03:49.359 -> Waiting for data
11:03:49.359 -> 
11:03:49.359 -> 
11:03:49.359 -> Time update unsuccessful!
11:03:49.359 -> Getting News Data for reuters

from marquee-scroller.

Qrome avatar Qrome commented on June 12, 2024

Honestly, it looks like a connectivity issue. My guess is that it timed out waiting 1 minute from making the request. Make sure that on the network that your device is on it can actually reach full URL and is not being blocking the weather service. I have seen this before.

from marquee-scroller.

editwentyone avatar editwentyone commented on June 12, 2024

tested this on my desktop: https://api.openweathermap.org/data/2.5/group?id=MYCITY&units=metric&cnt=1&APPID=MYAPI

and got an answer inside a browser, so it shouldn't be the pihole on my network (checked the logs there too)

from marquee-scroller.

editwentyone avatar editwentyone commented on June 12, 2024

same goes for http://api.timezonedb.com/v2.1/get-time-zone?key=MYCITY&format=json&by=position&lat=MYLAT&lng=MYLONG its working fine in my browser

from marquee-scroller.

Qrome avatar Qrome commented on June 12, 2024

I know you are testing on your browser, however the device runs in the 2.4Ghz network and make sure that your browser / computer is on the exact same IP range and subnet as the scrolling clock device. Again, this isn't a coding issue, but probably a network issue, and I have seen this before where the different networks have blocking lists etc.

from marquee-scroller.

Qrome avatar Qrome commented on June 12, 2024

10:46:00.620 -> GET /data/2.5/group?id=MYCITY&units=metric&cnt=1&APPID=MYAPI HTTP/1.1
10:47:00.707 -> Waiting for data
10:47:05.703 -> Response Header:

This is what tells me you are being blocked. Timed out and no response -- there is a 60 second delay there.

from marquee-scroller.

editwentyone avatar editwentyone commented on June 12, 2024

will test with different wifi (not guest anymore), will report back

from marquee-scroller.

Qrome avatar Qrome commented on June 12, 2024

Hey, thanks for the update. I hope this can help others.

from marquee-scroller.

Related Issues (20)

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.