{"id":15360409,"url":"https://github.com/simonom/outreach","last_synced_at":"2025-06-29T23:32:39.986Z","repository":{"id":57474207,"uuid":"157388959","full_name":"simonom/outreach","owner":"simonom","description":"files for outreach activities","archived":false,"fork":false,"pushed_at":"2023-09-06T00:41:41.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-12T22:16:26.913Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-11-13T13:58:19.000Z","updated_at":"2023-09-06T00:41:44.000Z","dependencies_parsed_at":"2022-09-12T19:40:27.163Z","dependency_job_id":null,"html_url":"https://github.com/simonom/outreach","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"9186349a80ed0cd22b57864f939f250a8a05f00d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simonom/outreach","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonom%2Foutreach","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonom%2Foutreach/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonom%2Foutreach/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonom%2Foutreach/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonom","download_url":"https://codeload.github.com/simonom/outreach/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonom%2Foutreach/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262685118,"owners_count":23348409,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T12:49:50.866Z","updated_at":"2025-06-29T23:32:39.940Z","avatar_url":"https://github.com/simonom.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Welcome to my repository for education and outreach code.  Below are details about code for tephigram plotting and global warming experiments.\n\n# Tephigram Plotting\nThe tephiplt code allows users to plot the following isopleths as presented in tephigrams: temperature, potential temperature, wet bulb potential temperature, pressure and water mixing ratio.  To ensure dependecies are installed, the pip setup is recommended:\n\ni) at the command line create a virtual environment in a suitable location (the environment will also contain the tephigram plotting package) using at least python 3: python3 -m venv tephi_env\n\nii) activate this virtual environment: source tephi_env/bin/activate\n\niii) ensure pip up to date in this environment: pip install --upgrade pip\n\niv) at the command line change to the site_packages directory of this environment (this is where the tephigram plotting package will be installed)\n\nv) install the package: python -m pip install --upgrade tephiplt\n\nYou are now ready to run the package:\n\ni) when sure of being inside the site_packages directory of the virtual environment, run code: python tephiplt\n\n# Global Warming Experiment\nfiles for outreach activities\n\nRaspberry Pi stuff:\n\nInstalling operating system:\nhttps://www.raspberrypi.org/help/noobs-setup/2/\n\nwaterproof temperature sensor: https://www.mouser.es/ProductDetail/Adafruit/381?qs=sGAEpiMZZMu%252bmKbOcEVhFQfi8wYXkauJXVMDuFwOiLnzgYnqoe4nyQ%3d%3d\n\nRaspberry pi stuff: https://cdn-learn.adafruit.com/downloads/pdf/adafruits-raspberry-pi-lesson-11-ds18b20-temperature-sensing.pdf\n\nGet pi connected to wifi via tethering to phone:\nhttps://www.youtube.com/watch?v=x_yhJ_QBfaU\n\nto set up the screen, connect to the internet using above and then follow instructions saved in GWworkshop as RPi_screen_instructions.pdf\n\nhttp://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/temperature/\n\ncontinuous servo motor: https://learn.adafruit.com/adafruits-raspberry-pi-lesson-8-using-a-servo-motor/parts\n\nHow to shut down raspebrry pi:\nFrom the command line or a terminal window you can enter the following to do a clean shutdown:\nsudo shutdown -h now\nOr from the LXDE GUI:\nClick the shutdown button (red power button) in the menu bar at the bottom right corner of the screen. Then click shutdown (or logout on newer version, then issue the shutdown command listed above),\nOnce it says \"system halted\" you can remove the power cord if needed.\n\nlight sensor: https://www.raspberrypi-spy.co.uk/2015/03/bh1750fvi-i2c-digital-light-intensity-sensor/\n\nsetting up a new pi with thermometer.py\n\ntether phone with wifi on (https://www.youtube.com/watch?v=x_yhJ_QBfaU):\n\nplug phone into usb port and turn on tether option and wifi\n\nthen in terminal: \nsudo dhclient usb0 \n\nsudo apt-get update\n\nset up the mod probe:\nsudo nano /boot/config.txt \nat bottom:\n# Enable thermometer\ndtoverlay=w1-gpio\n \nthen restart pi:\nsudo reboot\n\nreconnect to smartphone:\nselect tether on phone, then in terminal:\nsudo dhclient usb0\n\nCreate virtual environment: (http://raspberrypi-aa.github.io/session4/venv.html)\n\nsudo pip3 install virtualenv\nvirtualenv GWwork --system-site-packages\n\ncd GWwork\nsource bin/activate\n\n\nsudo apt-get install tcl-dev tk-dev python-tk python3-tk fbi\n\npython3 -m pip install numpy matplotlib\n\n# check that matplotlib works:\npython3 \nimport matplotlib.pyplot as plt\n\nthis tells us if it works.\nTo make it work, go to the matplotlib backend directory.  To find this do the following: \nsudo apt-get install locate\nsudo updatedb\nlocate matplotlib\nwhich indicates the location of the matplotlib directory,\nthen cd into the backend directory and open the __init__.py file, inisde here set the backend to ‘TkAgg’, in the latest attempt this was done by setting the name variable\n\nsave thermometer.py in GWwork\nsave a plot by adding (https://chartio.com/resources/tutorials/how-to-save-a-plot-to-a-file-using-matplotlib/)\nplt.savefig(‘TEMP_timeseries.png')\nto thermometer.py\n\nview figure with (https://www.cpdforteachers.com/resources/view-images-on-your-raspberry-pi):\ngpicview TEMP_timeseries.png\n\ndeactivate environment:\ndeactivate\n\npins: yellow - 4\nred - 3v3\nblue - GND\n\nneed good connection between ribbon and header\n having gold end of resistor on the 3v3 end works\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonom%2Foutreach","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonom%2Foutreach","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonom%2Foutreach/lists"}