Back to APIs list

Weather API examples & templates

Use these vals as a playground to view and fork Weather API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
yawnxyz avatar
nighthawks
@yawnxyz
Script
This is nighthawks an experimental NPC character generator that remembers details about conversations. Import this into other workflows for now; a UI is coming soon!
xuybin avatar
openAIStreaming
@xuybin
HTTP (deprecated)
Forked from maxm/openAIStreaming
maxm avatar
openAIStreaming
@maxm
HTTP (deprecated)
OpenAI Streaming - Assistant and Threads An example of using OpenAI to stream back a chat with an assistant. This example sends two messages to the assistant and streams back the responses when they come in. Example response: user > What should I build today? ................ assistant > Here are a few fun Val ideas you could build on Val Town: 1. **Random Joke Generator:** Fetch a random joke from an API and display it. 2. **Daily Weather Update:** Pull weather data for your location using an API and create a daily summary. 3. **Mini Todo List:** Create a simple to-do list app with add, edit, and delete functionalities. 4. **Chuck Norris Facts:** Display a random Chuck Norris fact sourced from an API. 5. **Motivational Quote of the Day:** Fetch and display a random motivational quote each day. Which one sounds interesting to you? user > Cool idea, can you make it even cooler? ................... assistant > Sure, let's add some extra flair to make it even cooler! How about creating a **Motivational Quote of the Day** app with these features: 1. **Random Color Theme:** Each day, the background color/theme changes randomly. 2. **Quote Sharing:** Add an option to share the quote on social media. 3. **Daily Notifications:** Send a daily notification with the quote of the day. 4. **User Preferences:** Allow users to choose categories (e.g., success, happiness, perseverance) for the quotes they receive. Would you like some code snippets or guidance on implementing any of these features?
kisen avatar
untitled_moccasinAmphibian
@kisen
Script
An interactive, runnable TypeScript val by kisen
mxderouet avatar
untitled7953808
@mxderouet
Script
An interactive, runnable TypeScript val by mxderouet
sdan avatar
untitled_coralChimpanzee
@sdan
Script
An interactive, runnable TypeScript val by sdan
neoneffect avatar
untitled_pinkSkunk
@neoneffect
Script
An interactive, runnable TypeScript val by neoneffect
9
Next