Share your repls and programming experiences

← Back to all posts
SortaWeather API!
tussiez

SortaWeather API

A JavaScript library that makes using the weather.gov API easier.

I developed this to use in my clock widget.

Features

  • Easy to use
  • Takes care of errors
  • Handles geolocation
  • Handles requests
  • Generates 24-hour and 7-day forecasts

Example Code

This logs the temperature in your area:

script.js:

Enjoy!

Run

Note

If you get "Error", the request may have failed, or you need to enable location services.

Voters
SqueezyS
Baconman321
MarcusWeinberger
MikeW3
personmandude
Yoplayer1py
nbash
MrVoo
HarperframeInc
Coder100
Comments
hotnewtop
Coder100

now i know teh weather

tussiez
CyberHacker101

in an unrelated topic can u tell me how internet filters work hehe lol heh... @tussiez

tussiez

@CyberHacker101 Heh.. hmm..
hmm..
Computer --> proxy --> The Internet
When computer loads a webpage, proxy: proxy checks web address
If it's a blocked address, stop connection at proxy and return proxy blocked webpage
If not, pass data through (and log sometimes)

CyberHacker101

ah oke ima ask more question later but thx @tussiez

CyberHacker101

is there a way that we could take control of proxy? @tussiez

CyberHacker101

if the client requests proxy for a website proxy either gives or does not give

what if we FORCE proxy to do what we need them to do? @tussiez

CyberHacker101

what if we just skip proxy entirely? @tussiez

CyberHacker101

is there another way to get in other then using proxy @tussiez

CyberHacker101

am i gonna get banned for askin such questions xD @tussiez

CyberHacker101

How many pings does it take to lag u? @tussiez

CyberHacker101

Why am i asking this you ask?
here's a quick answer:
school block replit --> Me angry--> get in a another way
WHAT HAS REPLIT DONE TO GET BLOCKED ACTUALLY THERES A BUNCH OF REASONS BUT STILL
@tussiez

tussiez

@CyberHacker101 Turning off proxy is typically blocked on Chromebooks, go to settings and check

CyberHacker101
CyberHacker101

yep it blocked @tussiez

Yoplayer1py

@CyberHacker101 Chromebooks? Hmm it literally says school chromebooks so you can't sign out ? n if u have admin perms u can remove it frm the school LAN

tussiez

@Yoplayer1py We are talking about school Chromebooks, why would we have admin??

CyberHacker101

nah dont got ad perms @Yoplayer1py

CyberHacker101

lol same @tussiez

CyberHacker101

Ayo dude this is ma first time making a button wit HTML (not exactly but I was on break for 2 years n I forgot most of coding sigh) : https://AwesomeChat-Trailer.cyberhacker101.repl.co @tussiez

tussiez

@CyberHacker101 Wow! Two years! Time flies

Yoplayer1py

@tussiez idk I have never seen a Chromebook before but in our school we had Windows and I had overheard the password frm the teacher so now I can unblock Replit simple?

tussiez

@Yoplayer1py I've had Windows laptops in school before - they are very easy to "hack". I ran a web server on one, in third grade! Chromebooks can only run Chrome, and every aspect is controlled by the administrator. You don't even know the WiFi password.

CyberHacker101

you can say dat again @tussiez

Yoplayer1py

@tussiez wait you ran a web server on it? I just try to download malware or games. How did u run a webserver on it?

tussiez

@Yoplayer1py Download nginx, write “Yay its the last day of school!!” in index.html, run ipconfig (?)to get addr, write on Post-It, pass around

CyberHacker101

I def understood what you said you don't have to lower down the smarty-ness so I could understand

Thats how amazingly smart I am @tussiez

tussiez

@CyberHacker101 bigger brains

CyberHacker101

ello i see uve made a new amazing project that code I do not understand of thank you of making such things xD @tussiez

tussiez

@CyberHacker101 You are welcome :)

nbash

This is pretty cool ig... I think you should update the background and things like that...

tussiez

@nbash Thanks! It’s just a library.
I will release a clock using it later :)

nbash
MrVoo

Not affiliated with the United States Government.

I wonder how often people get in trouble for not including something like this...?

tussiez

@MrVoo I mean..

  • Serif font
  • Strange warning in red
  • Uses government data
MrVoo

@tussiez True true... it works tho :>

tussiez

@MrVoo Yes, ye

tussiez

@MrVoo I guess it isn't a government website anymore..
Very well

MrVoo

@tussiez Also, I spammed the button and nothing happened, I want my money back

tussiez

@MrVoo Check console, you may have gotten a 500, the government denies you

MrVoo
Bunnytoes

cool but I won't let you know my location

tussiez

@Bunnytoes That's OK

tussiez

@Bunnytoes You can still try the Boston one - doesn't require navigator.geolocation