Jump to content
IGNORED

TIPI - PIJOKES - Joke of the Day Web applet


Recommended Posts

I've been playing with my TIPI enabled TI and thought it would be fun to have it retrieve jokes from the internet.

 

This BASIC app pulls a single random joke using "https://official-joke-api.appspot.com/random_joke".

 

The data is returned in "json" format.  I cobbled together a primitive json parser to clean up the returned data.

(Also, there is an inadequate line wrap function in the code.)

 

Requires a TIPI and almost any version Extended BASIC to run. 

 

BTW, If you are running @jedimatt42's Force Command then you can change the FC variable to 1 on Line 160 to return to Force Command.

 

This was a fun programming exercise for me.  Let me know if it works for you? 🙂

PIJokesScreen.jpg

PIJOKES

Edited by dgrissom
  • Like 10
Link to comment
Share on other sites

Posted (edited)
41 minutes ago, arcadeshopper said:

line 750 has a trailing ) thats giving an error

getting a syntax error in 760

 

 

Thanks @arcadeshopper

Oops,

I originally set this up in an 80 column F18A version using @senior_falcon 's GEM.   This was a casualty of converting the code back to  "stock" Extended BASIC.   There may be several leftover's in the code from some of my older projects.  (Please, ignore these "artifacts" unless they cause errors (or cause your console to blow up.  😉)

 

This should be the corrected version:

 

PIJOKES

Edited by dgrissom
  • Like 6
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...