This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Written by Billy Hare. | |
| # This script is part of the extension of the Raspberry Pi Full Stack project. | |
| # With this extension, your Raspberry Pu Full Stack application will be capable | |
| # of sending and receiving text messages via the Twilio service. | |
| # More information: https://techexplorations.com/so/rpifs/ | |
| import os | |
| from twilio.rest import Client | |
| account_sid = os.environ["TWILIO_ACCOUNT_SID"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| FILE NAME | |
| lab_app.py | |
| Version 10 | |
| The Twilio code in this script was written by Billy Hare as an extension of the Raspberry Pi Full Stack project. | |
| # With this extension, your Raspberry Pu Full Stack application will be capable | |
| # of sending and receiving text messages via the Twilio service. | |
| # More information: https://techexplorations.com/so/rpifs/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Written by Billy Hare. | |
| # This script is part of the extension of the Raspberry Pi Full Stack project. | |
| # With this extension, your Raspberry Pu Full Stack application will be capable | |
| # of sending and receiving text messages via the Twilio service. | |
| # More information: https://techexplorations.com/so/rpifs/ | |
| from flask import Flask, request | |
| from twilio.twiml.messaging_response import MessagingResponse | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <!-- Basic Page Needs | |
| –––––––––––––––––––––––––––––––––––––––––––––––––– --> | |
| <meta charset="utf-8"> | |
| <title>Lab Conditions by RPi</title> | |
| <meta name="description" content="Lab conditions - RPi"> | |
| <meta name="author" content="Peter Dalmaris"> | |
| <meta http-equiv="refresh" content="600"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Course location: https://techexplorations.com/so/esp32uev/ | |
| // USER DEFINED SETTINGS | |
| // Set driver type, fonts to be loaded, pins used and SPI control method etc | |
| // | |
| // See the User_Setup_Select.h file if you wish to be able to define multiple | |
| // setups and then easily select which setup file is used by the compiler. | |
| // | |
| // If this file is edited correctly then all the library example sketches should | |
| // run without the need to make any more changes for a particular hardware setup! | |
| // Note that some sketches are designed for a particular TFT pixel width/height |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Start the rf24 listener script as a service at startup | |
| # Copy this file into /etc/systemd/system as root, for example: | |
| # sudo cp myscript.service /etc/systemd/system/rf24_receiver.service | |
| # Once this has been copied, you can attempt to start the service using the following command: | |
| # sudo systemctl start rf24_receiver.service | |
| # Stop it using following command: | |
| # sudo systemctl stop rf24_receiver.service | |
| # When you are happy that this starts and stops your app, you can have it start automatically on reboot by using this command: | |
| # sudo systemctl enable rf24_receiver.service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # | |
| # This script updates version 1 with the ability to generate | |
| # IFTTT notifications. | |
| # | |
| # | |
| # | |
| from __future__ import print_function |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' | |
| FILE NAME | |
| lab_app.py | |
| Version 11 | |
| 1. WHAT IT DOES | |
| This version adds support for node IDs | |
| 2. REQUIRES | |
| * Any Raspberry Pi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # | |
| # 1140 - The Python Raspberry Pi logging script with Google Sheet support | |
| # | |
| # From Raspberry Pi Full Stack Raspbian | |
| # https://app.techexplorations.com/courses/raspberry-pi-full-stack-raspbian/ | |
| # | |
| # This program will send a copy of the sensor data to Google Sheet for logging. | |
| # It will also record the same data in the local database. | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # | |
| # 1120 - The Python nRF24 receiver sketch | |
| # | |
| # From Raspberry Pi Full Stack Raspbian | |
| # https://app.techexplorations.com/courses/raspberry-pi-full-stack-raspbian/ | |
| # | |
| # This program will use the nRF24 module to receive data from the remote Arduino node. | |
| # | |
| # RECEIVER NODE |