Rewrote news ticker

- Rewrote news ticker based on JSON web API tutorials
- Simplified json files for news ticker as part of rewrite
- Renamed /dialog to /json
This commit is contained in:
Tony Bark 2021-05-30 12:38:41 -04:00
parent b443ee61fe
commit ef6b097ef2
20 changed files with 170 additions and 71 deletions

View file

@ -0,0 +1,6 @@
{
"1": {
"name": "Roll up your sleeves, Mayor!",
"text": "Nice to meet you, Mayor [name]. I'm Cindy, your city planner. I'll be helping you with zoning, land values, and handling connections to and from the city."
}
}

View file

@ -0,0 +1,6 @@
{
"1": {
"name": "Let's get number crunching.",
"text": "Hello, Mayor, I'm Kit Welsh. I'll be your financial advisor. I control the income and expenditures for your city. I'll keep you up-to-date on expenditures and let you know if we may need to lower or rise taxes."
}
}

View file

View file

@ -0,0 +1,11 @@
{
"1": {
"text": "Ut luctus tristique dui ac sagittis. Duis at turpis aliquam felis vestibulum vulputate at nec nisl. Curabitur dolor orci, facilisis eu interdum ac, maximus ut est. Aliquam erat volutpat. Nam mollis interdum nisi, non luctus massa pharetra sed. Maecenas vestibulum dapibus erat, sit amet semper risus. Suspendisse mollis tincidunt tempor. Quisque id porttitor risus, varius dictum odio. Quisque congue, lorem mollis efficitur imperdiet, lorem sem tincidunt turpis, at sodales magna ex sit amet diam. Mauris vehicula diam ante, in accumsan erat imperdiet et."
},
"2": {
"text": "Fusce feugiat, dui sed feugiat feugiat, magna augue fermentum arcu, eget elementum ex dui lobortis mi. Nam tincidunt nunc a neque dapibus sollicitudin. Maecenas pellentesque magna sit amet quam luctus feugiat. Morbi id aliquam odio. Nullam ullamcorper risus nulla, nec mattis neque condimentum ac. Nunc hendrerit tellus ante. Phasellus imperdiet sit amet dolor ut ornare. Maecenas dapibus lectus eu lacinia ultricies. Ut id quam euismod, laoreet tortor quis, scelerisque orci. Praesent ornare tempus leo, sed egestas massa laoreet eget. Vivamus sagittis est ac condimentum fringilla. Nullam blandit rutrum quam non ullamcorper. Sed eget ex mattis, maximus massa at, pretium nisi."
},
"3": {
"text": "Fusce feugiat, dui sed feugiat feugiat, magna augue fermentum arcu, eget elementum ex dui lobortis mi. Nam tincidunt nunc a neque dapibus sollicitudin. Maecenas pellentesque magna sit amet quam luctus feugiat. Morbi id aliquam odio. Nullam ullamcorper risus nulla, nec mattis neque condimentum ac. Nunc hendrerit tellus ante. Phasellus imperdiet sit amet dolor ut ornare. Maecenas dapibus lectus eu lacinia ultricies. Ut id quam euismod, laoreet tortor quis, scelerisque orci. Praesent ornare tempus leo, sed egestas massa laoreet eget. Vivamus sagittis est ac condimentum fringilla. Nullam blandit rutrum quam non ullamcorper. Sed eget ex mattis, maximus massa at, pretium nisi."
}
}

View file

@ -0,0 +1,14 @@
{
"1": {
"name": "Industry for a better Tomorrow",
"text": "Ut luctus tristique dui ac sagittis. Duis at turpis aliquam felis vestibulum vulputate at nec nisl. Curabitur dolor orci, facilisis eu interdum ac, maximus ut est. Aliquam erat volutpat. Nam mollis interdum nisi, non luctus massa pharetra sed. Maecenas vestibulum dapibus erat, sit amet semper risus. Suspendisse mollis tincidunt tempor. Quisque id porttitor risus, varius dictum odio. Quisque congue, lorem mollis efficitur imperdiet, lorem sem tincidunt turpis, at sodales magna ex sit amet diam. Mauris vehicula diam ante, in accumsan erat imperdiet et."
},
"2": {
"name": "Clean Air Act",
"text": "Fusce feugiat, dui sed feugiat feugiat, magna augue fermentum arcu, eget elementum ex dui lobortis mi. Nam tincidunt nunc a neque dapibus sollicitudin. Maecenas pellentesque magna sit amet quam luctus feugiat. Morbi id aliquam odio. Nullam ullamcorper risus nulla, nec mattis neque condimentum ac. Nunc hendrerit tellus ante. Phasellus imperdiet sit amet dolor ut ornare. Maecenas dapibus lectus eu lacinia ultricies. Ut id quam euismod, laoreet tortor quis, scelerisque orci. Praesent ornare tempus leo, sed egestas massa laoreet eget. Vivamus sagittis est ac condimentum fringilla. Nullam blandit rutrum quam non ullamcorper. Sed eget ex mattis, maximus massa at, pretium nisi."
},
"3": {
"name": "Tire Recylcing Proposed",
"text": "Mayor [name], used tires a big are a big problem. They waste land space or accumlate in piles that, if ignited, pollute our air. Do you know that tires could be recycled and used in paving material? It can even reduce the cost of building roads. [city] would greatly benefit from having a tire recylcing program.\nWe could set the wheels in motion today, if you agree to enact the Tire Recylcing Program."
}
}

10
json/ticker/adverts.json Normal file
View file

@ -0,0 +1,10 @@
{
"ticker": [
"[outlet]: Don't Blame Us If You're Not Paying Attention",
"[outlet]: Information With As Few Words As Possible.",
"This Space For Rent.",
"[outlet]: Properly Spelled Words From Beginning To End.",
"[outlet]: Journalistic Integrity Without All The Advertising.",
"[outlet]: No Advertisements Since Before The Beginning."
]
}

17
json/ticker/citylife.json Normal file
View file

@ -0,0 +1,17 @@
{
"ticker": [
"50 Car Pile-Up Results In New City Sculpture.",
"After 36 Years Of Marriage, Man Discovers Wife Is Actually A Rare Yucca Plant.",
"All Raccoons Cheat At Poker, Researchers Say.",
"Cat Hijacks Municipal Bus; Riders Applaud Good Timing At Stops And Courteous Meows.",
"Tommy B. Saif Sez: No Left Turn, Except Buses.",
"Truckload Of Apples Overturns, [city] Diner Offers Applesauce Special.",
"Ordinary Days In [city] Become Common.",
"Semicolon Declared Sexier Than Comma At Grammarian's Fete.",
"Spotted Owl Spotted.",
"Crime Lord Spotted In [city]; Mayor Says \"No Comment\".",
"Cat Burglar Spotted, Mistaken For Dalmatian.",
"Local citizens confused about New Spark Box Pro XL Series U.",
"Customers of the New Spark Box Pro XL Series U confirm that it has Knuckles."
]
}

View file

@ -0,0 +1,5 @@
{
"ticker": [
"Astronomer Warns of Physics Experiment That Could Destroy Our Entire Galaxy"
]
}

View file

@ -0,0 +1,11 @@
{
"ticker": [
"Local Merchants Puzzled By Rumors Of Kitty Kibble Shortage; \"We Have Plenty,\" Say Most.",
"No Kitty Kibble Shortage Says Local Representative Of Kitty Kibble Association.",
"Rumors Persist In Kitty Kibble Shortage; Unfounded Say Many.",
"Cats Say Not Enough Being Done In Kitty Kibble Shortage.",
"Cats Concerned By Rumors Of Kitty Kibble Shortage; Buy In Bulk.",
"Is Kitty Kibble Shortage A Hoax? Cats Search For Truth.",
"Enough Kitty Kibble For Twenty Years, Experts Agree."
]
}

8
json/ticker/sammy.json Normal file
View file

@ -0,0 +1,8 @@
{
"ticker": [
"From The Desk Of Wise Guy Sammy: One Word In This Ticker Is Mispelled.",
"From The Desk Of Wise Guy Sammy: One Word In This Ticker Is Sdrawkcab (Backwards).",
"From The Desk Of Wise Guy Sammy: It Is Easier To Get Forgiveness Than Permission.",
"From The Desk Of Wise Guy Sammy: You Can't Outwait A Bureaucracy."
]
}

155
json/ticker/ticker.json Normal file
View file

@ -0,0 +1,155 @@
{
"1": {
"text": "50 Car Pile-Up Results In New City Sculpture."
},
"2": {
"text": "After 36 Years Of Marriage, Man Discovers Wife Is Actually A Rare Yucca Plant."
},
"3": {
"text": "All Raccoons Cheat At Poker, Animal Researchers Say."
},
"4": {
"text": "[outlet]: Don't Blame Us If You're Not Paying Attention"
},
"5": {
"text": "Cat Hijacks Municipal Bus; Riders Applaud Good Timing At Stops And Courteous Meows."
},
"6": {
"text": "From The Desk Of Wise Guy Sammy: Check Your Facts Before Making A Fool Of Yourself."
},
"7": {
"text": "Rumor Of Kitty Kibble Shortage Causes Futures To Drop; Consumers Stockpile."
},
"8": {
"text": "From The Desk Of Wise Guy Sammy: The Insides Of Golf Balls Are Mostly Rubber Bands."
},
"9": {
"text": "Tommy B. Saif Sez: No Left Turn, Except Buses."
},
"10": {
"text": "Truckload Of Apples Overturns, [city] Diner Offers Applesauce Special."
},
"11": {
"text": "Ordinary Days In [city] Become Common."
},
"12": {
"text": "Semicolon Declared Sexier Than Comma At Grammarian's Fete."
},
"13": {
"text": "Spotted Owl Spotted."
},
"14": {
"text": "This Space For Rent."
},
"15": {
"text": "Crime Lord Spotted In [city]; Mayor Says \"No Comment\"."
},
"16": {
"text": "Cat Burglar Spotted, Mistaken For Dalmatian."
},
"17": {
"text": "[outlet]: Information With As Few Words As Possible."
},
"18": {
"text": "[city] Phonebooks Print All Wrong Numbers; Results In 15 New Marriages."
},
"19": {
"text": "[outlet]: Properly Spelled Words From Beginning To End."
},
"20": {
"text": "[outlet]: Not For The Faint Of Heart."
},
"21": {
"text": "[city] Tourist Bureau Launches City Beautification Project."
},
"22": {
"text": "Local Cop Found To Be Ticketing Only Lantern-Jawed Males."
},
"23": {
"text": "From The Desk Of Wise Guy Sammy: Better To Aim High And Miss Then To Aim Low And Hit."
},
"24": {
"text": "Weasel Rejected As [city]'s Crime-Fighting Mascot."
},
"25": {
"text": "Cats Demand Longer Breaks, Cleaner Litter, Slower Mice."
},
"26": {
"text": "Black And White Ball Disrupted By Bank Robbery."
},
"27": {
"text": "[outlet]: Journalistic Integrity Without All The Advertising."
},
"28": {
"text": "Chefs Find Broccoli Effective Tool For Cutting Cheese."
},
"29": {
"text": "[outlet]: No Advertisements Since Before The Beginning."
},
"30": {
"text": "[city] Baker Wins Pickled Crumpet Toss Three Years Running."
},
"31": {
"text": "Local Merchants Puzzled By Rumors Of Kitty Kibble Shortage; \"We Have Plenty,\" Say Most."
},
"32": {
"text": "Cats Concerned By Rumors Of Kitty Kibble Shortage; Owners In Panic."
},
"33": {
"text": "No Kitty Kibble Shortage Says Local Representative Of Kitty Kibble Association."
},
"34": {
"text": "Rumors Persist In Kitty Kibble Shortage; Unfounded Say Many."
},
"35": {
"text": "Is Kitty Kibble Shortage A Hoax? Cats Search For Truth."
},
"37": {
"text": "Cats Say Not Enough Being Done In Kitty Kibble Shortage."
},
"38": {
"text": "Rumors Persist In Kitty Kibble Shortage; Unfounded Say Many."
},
"39": {
"text": "Enough Kitty Kibble For Twenty Years, Experts Agree."
},
"40": {
"text": "From The Desk Of Wise Guy Sammy: One Word In This Ticker Is Mispelled."
},
"50": {
"text": "From The Desk Of Wise Guy Sammy: One Word In This Ticker Is Sdrawkcab (Backwards)."
},
"51": {
"text": "From The Desk Of Wise Guy Sammy: It Is Easier To Get Forgiveness Than Permission."
},
"52": {
"text": "From The Desk Of Wise Guy Sammy: You Can't Outwait A Bureaucracy."
},
"53": {
"text": "Mr. Fluffy's Futures Rise in the Wake of Kitty Kibble Shortage Rumors."
},
"54": {
"text": "[species] Discovers Picayune Newspaper Lying on the Ground; Throws It Away."
},
"55": {
"text": "Local citizen, Bill Flopsby Heads County Commission On Snuggles And Hugs."
},
"56": {
"text": "[species] Offers To Let City Bus Run Him Over For Lifetime Salad Bar Privileges."
},
"57": {
"text": "School Field Trip To Museum Sparks Interest In Local History."
},
"58": {
"text": "Survey: 80% Of Animals Hang Up On Telephone Solicitors."
},
"59": {
"text": "Animals Everywhere Agree: The Egg Came First, But Only After The Chicken."
},
"60": {
"text": "Today's Forecast: Sunny, High 70's, Winds From The East."
},
"61": {
"text": "Bus Misses Turn, Dozens Late For Work."
}
}

View file

@ -0,0 +1,5 @@
{
"1": {
"text": ""
}
}

View file

@ -0,0 +1,5 @@
{
"tower_names": [
{}
]
}