Skip to content

anikishov/raspberry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raspberry service for temperature return.

cd /opt/
git clone [email protected]:anikishov/me.git && cd me
python3 -m venv env && source env/bin/activate
pip3 install -r requirerments.txt
cp /opt/me/deploy/me.service /etc/systemd/system/me.service
systemctl enable me.service
service me start

Example:

curl http://127.0.0.1:5000/temp

Date: Thu, 27 Feb 2020 09:56:48 GMT
Content-Type: application/json
Content-Length: 58
Connection: keep-alive
Strict-Transport-Security: max-age=604800

{
  "hostname": "raspberrypi",
  "temperature": "32.0"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages