Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/goldlabel-apps/pijs
Secure SSL Node/Express server running on a Raspberry Pi 4
https://github.com/goldlabel-apps/pijs
express node pi pwa raspberry-pi-firmware react ssl
Last synced: about 1 month ago
JSON representation
Secure SSL Node/Express server running on a Raspberry Pi 4
- Host: GitHub
- URL: https://github.com/goldlabel-apps/pijs
- Owner: goldlabel-apps
- License: other
- Created: 2019-11-30T08:42:36.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-17T23:03:48.000Z (over 4 years ago)
- Last Synced: 2024-06-02T11:24:37.616Z (8 months ago)
- Topics: express, node, pi, pwa, raspberry-pi-firmware, react, ssl
- Language: Shell
- Homepage:
- Size: 69.1 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## PiJS.app
PiJS.app is fullstack, isomorphic JavaScript for the Raspberry Pi.
It's also a React Progressive Web App and Secure SSL Node/Express server.![PiJS](react/public/png/twitter-card.png "PiJS")
### Features
- [x] Isomorphic JavaScript
- [x] React
- [x] Material UI
- [x] Node
- [x] Firebase
- [x] Raspberry Pi### What is a Raspberry Pi?
The Raspberry Pi is a very low cost, credit-card sized computer. It is a capable little device that enables people of all ages to explore computing, and to learn how to program in languages like Python.
It also give more experienced developers a chance to do some mad cool stuff like turning a Pi into a node server accessible over SSL through normal home broadband.
The current iteration (which we are using) is the Pi4, or to giv it it's full title, [Raspberry Pi 4 Model B (4 GB)](https://www.littlebird.com.au/products/raspberry-pi-4-model-b-4-gb).
### Do It Yourself
It's easy. You can buy Pis from [littlebird](https://www.littlebird.com.au/) for **\$AU 100** if you're in Australia. There will no doubt be an easily Googleable supplier in your country. All the software and instructions are her in this repo.
![Rapberry Pi 4](react/public/jpg/Pi_4_Model_B__4_GB.jpg "Rapberry Pi 4")
# Python
We've never actually used python, but that's about to change.
This section of the repo is for that process## To do
Write a new python script to take the picture. It should save the image as current-photo but also as a file with unixepoch as its name. Then it should cleanup any files older than a specified amount to stop the Pi overflowing. The new Pi info endpoint will give the folder size form the camera so that it can be shown in the app
Each image is 800x450px and around 350kb === 0.35MB
how much space do we have? call it 20 GB === 20000MB
number of photos which will fit = 57000at 5 sec intervals
1 min = 12 photos
1 hour = 720 photos
24 hours = 17280 photos = 6048 MB = 6GB / Day