forked from pi-node/pi-node
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
0 additions
and
87 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1 @@ | ||
![Static Badge](https://img.shields.io/badge/Pi-Network-violet) | ||
[![CI](https://github.com/KOSASIH/pi-node/actions/workflows/blank.yml/badge.svg)](https://github.com/KOSASIH/pi-node/actions/workflows/blank.yml) | ||
[![CircleCI](https://dl.circleci.com/status-badge/img/gh/KOSASIH/pi-supernode/tree/circleci-project-setup.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/KOSASIH/pi-supernode/tree/circleci-project-setup) | ||
|
||
[![ISO 9001:2015](https://img.shields.io/badge/ISO-9001:2015-Blue)](https://www.iso.org/iso-9001-quality-management.html) | ||
[![ISO 27001:2013](https://img.shields.io/badge/ISO-27001:2013-Green)](https://www.iso.org/iso-iec-27001-information-security.html) | ||
[![ISO 14001:2015](https://img.shields.io/badge/ISO-14001:2015-Green)](https://www.iso.org/iso-14001-environmental-management.html) | ||
[![CMMI Level 3](https://img.shields.io/badge/CMMI-Level%203-Orange)](https://cmmiinstitute.com/cmmi-level-3) | ||
[![ITIL](https://img.shields.io/badge/ITIL-Certified-Blue)](https://www.axelos.com/best-practice-solutions/itil) | ||
[![COBIT](https://img.shields.io/badge/COBIT-Certified-Red)](https://www.isaca.org/resources/cobit) | ||
[![HIPAA](https://img.shields.io/badge/HIPAA-Compliant-Blue)](https://www.hhs.gov/hipaa/index.html) | ||
[![PCI-DSS](https://img.shields.io/badge/PCI--DSS-Compliant-Red)](https://www.pcisecuritystandards.org/) | ||
[![SOC 2](https://img.shields.io/badge/SOC-2-Blue)](https://www.aicpa.org/content/dam/aicpa/auditattest/soc/soc2.pdf) | ||
[![SOC 3](https://img.shields.io/badge/SOC-3-Blue)](https://www.aicpa.org/content/dam/aicpa/auditattest/soc/soc3.pdf) | ||
[![GDPR](https://img.shields.io/badge/GDPR-Compliant-Blue)](https://ec.europa.eu/commission/priorities/justice-and-fundamental-rights/data-protection_en) | ||
[![CCPA](https://img.shields.io/badge/CCPA-Compliant-Blue)](https://oag.ca.gov/privacy/ccpa) | ||
[![NIST Cybersecurity Framework](https://img.shields.io/badge/NIST%20Cybersecurity%20Framework-v1.1-Blue)](https://www.nist.gov/cyberframework) | ||
[![OWASP](https://img.shields.io/badge/OWASP-Security-Red)](https://owasp.org/) | ||
[![CSA STAR](https://img.shields.io/badge/CSA-STAR-Blue)](https://cloudsecurityalliance.org/star/) | ||
[![FedRAMP](https://img.shields.io/badge/FedRAMP-Compliant-Blue)](https://www.fedramp.gov/) | ||
[![SOC 1](https://img.shields.io/badge/SOC-1-Blue)](https://www.aicpa.org/content/dam/aicpa/auditattest/soc/soc1.pdf) | ||
[![ISO 20000](https://img.shields.io/badge/ISO-20000-Blue)](https://www.iso.org/iso-20000-it-service-management.html) | ||
[![ISO 22301](https://img.shields.io/badge/ISO-22301-Blue)](https://www.iso.org/iso-22301-business-continuity-management.html) | ||
[![PCI-DSS](https://img.shields.io/badge/PCI--DSS-Compliant-Red)](https://www.pcisecuritystandards.org/) | ||
[![HIPAA](https://img.shields.io/badge/HIPAA-Compliant-Blue)](https://www.hhs.gov/hipaa/index.html) | ||
[![ISO 27017](https://img.shields.io/badge/ISO-27017-Blue)](https://www.iso.org/iso-27017-information-security-for-cloud-services.html) | ||
[![ISO 27018](https://img.shields.io/badge/ISO-27018-Blue)](https://www.iso.org/iso-27018-protection-of-personally-identifiable-information-in-public-clouds.html) | ||
[![NIST 800-53](https://img.shields.io/badge/NIST-800--53-Blue)](https://csrc.nist.gov/publications/detail/sp/800-53/final) | ||
[![NIST 800-171](https://img.shields.io/badge/NIST-800--171-Blue)](https://csrc.nist.gov/publications/detail/sp/800-171/final) | ||
[![FedRAMP Moderate](https://img.shields.io/badge/FedRAMP-Moderate-Blue)](https://www.fedramp.gov/) | ||
[![FedRAMP High](https://img.shields.io/badge/FedRAMP-High-Blue)](https://www.fedramp.gov/) | ||
|
||
[![Pi Network](https://img.shields.io/badge/Pi%20Network-Pi%20Network-blue.svg)](https://minepi.com/) | ||
[![Raspberry Pi](https://img.shields.io/badge/Raspberry%20Pi-RPi-red.svg)](https://www.raspberrypi.com/) | ||
[![Raspberry Pi Zero](https://img.shields.io/badge/Raspberry%20Pi%20Zero-RPi%20Zero-green.svg)](https://www.raspberrypi.com/products/raspberry-pi-zero/) | ||
[![Epaper Badge](https://img.shields.io/badge/Epaper%20Badge-Epaper%20Badge-orange.svg)](https://medium.com/coinmonks/building-an-epaper-badge-with-a-raspberry-pi-zero-e4b98b3311c3) | ||
|
||
<p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><a property="dct:title" rel="cc:attributionURL" href="https://github.com/KOSASIH/pi-supernode">pi-supernode</a> by <a rel="cc:attributionURL dct:creator" property="cc:attributionName" href="https://www.linkedin.com/in/kosasih-81b46b5a">KOSASIH</a> is licensed under <a href="https://creativecommons.org/licenses/by/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">Creative Commons Attribution 4.0 International<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1" alt=""><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1" alt=""></a></p> | ||
|
||
# pi-supernode | ||
|
||
This repository contains the source code for a simple Node.js application that runs on a Raspberry Pi. The application listens for incoming HTTP requests and responds with a message indicating the current temperature and uptime of the Raspberry Pi. | ||
|
||
# Prerequisites | ||
|
||
To run this application, you will need the following: | ||
|
||
1. A Raspberry Pi with Node.js installed | ||
2. A temperature sensor (such as a DS18B20) connected to the Raspberry Pi | ||
|
||
# Getting Started | ||
|
||
1. Clone this repository to your Raspberry Pi: | ||
|
||
``` | ||
1. https://github.com/KOSASIH/pi-supernode | ||
``` | ||
|
||
2. Install the required dependencies: | ||
|
||
``` | ||
1. cd pi-node | ||
2. npm install | ||
``` | ||
|
||
3. Edit the config.js file to specify the temperature sensor's device file path. For example, if you're using a DS18B20 connected to GPIO pin 4, the device file path will be /sys/bus/w1/devices/28-000005f8b8ff/w1_slave. | ||
|
||
4. Start the application: | ||
|
||
``` | ||
1. npm start | ||
``` | ||
|
||
5. Use a web browser or a tool like curl to send an HTTP request to the Raspberry Pi and view the response: | ||
|
||
``` | ||
1. curl http://<RASPBERRY_PI_IP_ADDRESS>:3000 | ||
``` | ||
|
||
The response will look something like this: | ||
|
||
``` | ||
1. Temperature: 23.5°C, Uptime: 1 day, 2 hours, 34 minutes, 56 seconds | ||
``` | ||
|
||
# License | ||
|
||
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. |