Welcome to The Coding Zone

Stardew Valley TV Widget

A while ago, I created a Stardew Valley TV simulator, and it got a lot of positive feedback. So, I made it into a widget that you can put on your site! Just like Stardew Valley's in-game TV, this will pull (live!) weather data and calculate your daily luck. If you'd like to add this widget to your site, it's recommended to get your own API key, but you can use this one for testing/until you get your own: 52d92b2d07f89229f6d1aa3df33f017a

How to get your own API key

  1. Go to https://home.openweathermap.org/users/sign_up and create a free account.
  2. Go to https://home.openweathermap.org/api_keys to find your API key. It should be a long alphanumeric string. Note: API Keys sometimes take a few HOURS to activate. Make your account, verify your email, and wait a bit.
  3. Enter your API Key and location. Most city names should work, like "London" or "Philadelphia"
  4. Paste the generated iframe code on your site! If the weather report doesn't work, your API key might need longer to activate or your location might not be recognized. Make sure there are no spaces before/after your key!

Widget Generator




Novelty Date Widget

I recently trawled through Wikipedia and collected a bunch of random national holidays, birthdays, and historical events for every day of the year and used javascript to make a silly novelty calendar. Here it is in action: A few people told me they'd be interested if I packaged it into a widget, so here it is! Linking back to me is appreciated but not necessary.

A few disclaimers (click me)

One Liner Script


Just copy/paste this into the <body> of your page and the widget will appear!
<script src="https://caminus.neocities.org/codezone/nationalday.js"></script>
This creates <div id="natday"></div> where you put the script.
You can style #natday however you'd like.

Pros:

  • You literally just copy and paste one line and you're done
  • I can make changes and corrections

Cons:

  • No special date customizations
  • You rely on my site and bandwidth (it's only like a 20KB file so it should be fine?)
  • I can make changes you might not like

How to customize (optional)

Alternatively, you can host the widget on your own site and customize it to your heart's content. You can add your birthday, an important holiday I forgot, or anything else you want!

  1. Download the script here (Right-click, Save As...)
  2. Upload it to your site.
  3. Make whatever changes you want!
  4. You can make it say whatever you want on any given day by changing the code. For example, Squeaky's birthday is on May 17, so by changing the code to
    "05-17": "it's Squeaky's Birthday!",
    on May 17 the widget will read something like:
  5. Add the following line to your <body> where you'd like the widget:
    <script src="nationalday.js"></script>