Skip to content

nodejs example uses an API not available in 2022 #28

Description

@johnwalicki

The Node.js app uses the 3day daily forecast API. That particular API is not enabled to the free TWC API key used in 2022. The example doesn't work. Instead of the 3day, the library should call the 10day that is enabled.

options['uri'] = `${apiUtil.HOST}/v1/geocode/${lat}/${lon}/forecast/daily/${d}day.json`

$ node app.js 
401 - "<HTML><HEAD>\n<TITLE>Access Denied</TITLE>\n</HEAD><BODY>\n<H1>Access Denied</H1>
You don't have permission to access \"http&#58;&#47;&#47;api&#46;weather&#46;com&#47;v1&#47;geocode&#47;35&#46;843686&#47;&#45;78&#46;78548&#47;forecast&#47;daily&#47;7day&#46;json&#63;\" on this server.
<P>\nReference&#32;&#35;18&#46;58403617&#46;1663595389&#46;2c7d2441\n</BODY>\n</HTML>\n"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions