{"database": "pelican", "table": "content", "is_view": false, "human_description_en": "where category = \"technology\" and published_date = \"2018-04-01\"", "rows": [["ryan", "technology", "Last Wednesday if you would have asked what I had planned for Easter I would\nhave said something like, \u201cGoing to hide some eggs for my daughter even though\nshe knows the Easter bunny isn\u2019t real.\u201d\n\nThen suddenly my wife and I were planning on entertaining for 11 family\nmembers. My how things change!\n\nSince I was going to have family over, some of whom are\n[Giants](https://www.mlb.com/giants) fans, I wanted to show them the [ITFDB\nprogram I have set up with my\nPi](http://www.ryancheley.com/index.php/2018/02/13/itfdb/).\n\nThe only problem is that they would be over at 10am and leave by 2pm while the\ngame doesn\u2019t start until 5:37pm (Thanks [ESPN](https://www.espn.com)).\n\nTo help demonstrate the script I wrote a _demo_ script to display a message on\nthe Pi and play the Vin Scully mp3.\n\nThe Code was simple enough:\n\n    \n    \n    from sense_hat import SenseHat\n    import os\n    \n    \n    def main():\n        sense = SenseHat()\n        message = '#ITFDB!!! The Dodgers will be playing San Francisco at 5:37pm tonight!'\n        sense.show_message(message, scroll_speed=0.05)\n        os.system(\"omxplayer -b /home/pi/Documents/python_projects/itfdb/dodger_baseball.mp3\")\n    \n    \n    if __name__ == '__main__':\n        main()\n    \n\nBut then the question becomes, how can I easily launch the script without\n[futzing](https://en.wiktionary.org/wiki/futz) with my laptop?\n\nI knew that I could run a shell script for the [Workflow\napp](https://workflow.is) on my iPhone with a single action, so I wrote a\nsimple shell script\n\n    \n    \n    python3 ~/Documents/python_projects/itfdb/demo.py\n    \n\nWhich was called `itfdb_demo.sh`\n\nAnd made it executable\n\n    \n    \n    chmod u+x itfdb_demo.sh\n    \n\nFinally, I created a WorkFlow which has only one action `Run Script over SSH`\nand added it to my home screen so that with a simple tap I could demo the\nresults.\n\nThe WorkFlow looks like this:\n\n![ITFDB Workflow Demo](/images/uploads/2018/04/IMG_9450.png)\n\nNothing too fancy, but I was able to reliably and easily demonstrate what I\nhad done. And it was pretty freaking cool!\n\n", "2018-04-01", "itfdb-demo", "Last Wednesday if you would have asked what I had planned for Easter I would\nhave said something like, \u201cGoing to hide some eggs for my daughter even though\nshe knows the Easter bunny isn\u2019t real.\u201d\n\nThen suddenly my wife and I were planning on entertaining for 11 family \u2026\n\n", "ITFDB Demo", "https://www.ryancheley.com/2018/04/01/itfdb-demo/"]], "truncated": false, "filtered_table_rows_count": 1, "expanded_columns": [], "expandable_columns": [], "columns": ["author", "category", "content", "published_date", "slug", "summary", "title", "url"], "primary_keys": ["slug"], "units": {}, "query": {"sql": "select author, category, content, published_date, slug, summary, title, url from content where \"category\" = :p0 and \"published_date\" = :p1 order by slug limit 101", "params": {"p0": "technology", "p1": "2018-04-01"}}, "facet_results": {}, "suggested_facets": [{"name": "published_date", "type": "date", "toggle_url": "http://search.ryancheley.com/pelican/content.json?category=technology&published_date=2018-04-01&_facet_date=published_date"}], "next": null, "next_url": null, "private": false, "allow_execute_sql": true, "query_ms": 14.353287871927023}