All Projects → sosprz → nettemp

sosprz / nettemp

Licence: MIT license
Interface for controlling the temperature sensors DS18B20, supports; serial DS9097, usb DS9097U, usb DS2490, Raspberry Pi GPIO

Programming Languages

PHP
23972 projects - #3 most used programming language
python
139335 projects - #7 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects
CSS
56736 projects

Projects that are alternatives of or similar to nettemp

Minera
Minera is a web interface to monitor and manage mining devices
Stars: ✭ 337 (+535.85%)
Mutual labels:  charts, raspberry
components
Easily develop emails with email-ready components.
Stars: ✭ 18 (-66.04%)
Mutual labels:  charts, mail
mu4e-thread-folding
Functions for folding threads in mu4e headers view
Stars: ✭ 124 (+133.96%)
Mutual labels:  mail
JMeter-Charts
Application used to generate reports by uploading a JTL file to a rest server
Stars: ✭ 19 (-64.15%)
Mutual labels:  charts
vertx-mail-client
No description or website provided.
Stars: ✭ 30 (-43.4%)
Mutual labels:  mail
ggwaffle
Creating waffle charts in a ggplot friendly way
Stars: ✭ 45 (-15.09%)
Mutual labels:  charts
inox
Email with notmuch rust
Stars: ✭ 22 (-58.49%)
Mutual labels:  mail
trakttvstats
A chrome extension adding various improvements to trakt.tv
Stars: ✭ 23 (-56.6%)
Mutual labels:  charts
crowd-admin
crowd-admin是一个基于Spring,Shiro,Redis/ehcache,Mybatis的通用后台权限管理系统,这里推荐本人另一个基于sprinboot的单点登录系统
Stars: ✭ 51 (-3.77%)
Mutual labels:  mail
RealmAndCharts-example
Simple example of how to use RealmSwift and Charts together - iOS 10 & Swift 3
Stars: ✭ 20 (-62.26%)
Mutual labels:  charts
vue-mail-front
A front system base on vue.基于vue的邮件系统前端部分
Stars: ✭ 57 (+7.55%)
Mutual labels:  mail
SwiftCharts
Easy to use and highly customizable charts library for iOS
Stars: ✭ 2,405 (+4437.74%)
Mutual labels:  charts
micropython-am2320
MicroPython driver for the Aosong AM2320 temperature and humidity sensor
Stars: ✭ 22 (-58.49%)
Mutual labels:  temperature
HyperBian
Hyperion pre installed on Raspberry Pi OS Lite
Stars: ✭ 192 (+262.26%)
Mutual labels:  raspberry
ipychart
The power of Chart.js with Python
Stars: ✭ 48 (-9.43%)
Mutual labels:  charts
motor-hat
Node Module to control Adafruits MotorHAT for the RaspberryPi
Stars: ✭ 28 (-47.17%)
Mutual labels:  raspberry
COSCUP2013Secretary-Toolkit
✉️ COSCUP2013 行政組專用的小工具 AWS SES, SQS, SNS, twilio
Stars: ✭ 13 (-75.47%)
Mutual labels:  mail
KLineChartAndroid
A kline chart UI widget for android(Android版本的k线).
Stars: ✭ 51 (-3.77%)
Mutual labels:  charts
LoraGW-Setup
SX1301 Lora Concentrator Raspberry PI based gateway setup
Stars: ✭ 70 (+32.08%)
Mutual labels:  raspberry
pi-stomp
pi-stomp is a DIY high definition, multi-effects stompbox platform for guitar, bass and keyboards
Stars: ✭ 42 (-20.75%)
Mutual labels:  raspberry

nettemp.pl

nettemp status nettemp charts nettemp status nettemp status nettemp status

info

This is a version with MySQL as the main base and sqlite3 for sensors data. This is a must because SQLite can't handle many writers at once. Setup scripts install MySQL server, create a database, all data, and all configurations.

Install

sudo apt install sudo git

sudo mkdir -p /var/www/ && cd /var/www/ && git clone https://github.com/sosprz/nettemp && cd nettemp && ./setup.sh

Update

sudo su -

/var/www/nettemp/app/scripts/update.sh

WEB access

https://YOUR-IP-ADDRESS

user: admin

password: admin

How to send data to nettemp

Set username and password from web gui, allow to JWT

Request:

curl -k -s -X POST -H 'Accept: application/json' -H 'Content-Type: application/json' --data '{"username":"test","password":"secret_password"}' https://172.18.10.10/register

Reply:

{"access_token":"eyJ0eXAiO1NiJ9.eyJpYXQiOj2Nlc3MifQ.Sxjv3LXe1F916TaRFF5ODpsg"}

Token: eyJ0eXAiO1NiJ9.eyJpYXQiOj2Nlc3MifQ.Sxjv3LXe1F916TaRFF5ODpsg

Send data from python:

requests.packages.urllib3.disable_warnings() 
import json

token = 'eyJ0eXAiO1NiJ9.eyJpYXQiOj2Nlc3MifQ.Sxjv3LXe1F916TaRFF5ODpsg'

def send(token,data):
  url = "https://172.18.10.10/sensor"
  r = requests.post(url,headers={'Content-Type':'application/json', 'Authorization': 'Bearer {}'.format(token)},json=data, verify=False)
  print (r.content)

data = [{"rom":"ds18b20-sensor-1","type":"temp","name":"DS18B20","value":"-10"}]
send(token, data)

Send data from curl:

curl -k -H "Content-Type: application/json" -H 'Authorization: Bearer eyJXJ9.eIn0.fc' --request POST --data '[{"rom":"ds18b20-host1","type":"temp","name":"DS18b20","value":"12"}]' https://172.18.10.12/sensor

Supported sensors

I2C sensors

  • HIH6130 0x27 temperature, humidity
  • TMP102 0x48 temperature
  • BMP280 0x76 temperature, pressure
  • HTU21/SHT21/SI7021/SHT20 0x40 temperature, humidity
  • DS2482 - DS18b20 1wire 0x18, 0x19 0x1a, 0x1b temperature
  • MPL3115A2 0x60 temperature, pressure, altitude
  • TSL2561 0x39 light sensor
  • BMP180 0x77 temperature, pressure
  • VL53l0X 0x29 distance
  • ADXL345/ADXL343 0x53 3 axis accelerometer, motion detection

GPIO sensors

  • DHT11 temperature, humidity
  • DHT22 temperature, humidity
  • DS18b20 1wire temperature

USB sensors

  • DS9490R 1wire - DS18b20 temperature

Data send by json

  • ALL

Old things, versions

  • nettemp5 is a python, flask, Mysql as main base, sqlite for sensor base, not all functions from nettemp beta
  • beta nettemp4 is a php, sqlite, python, sqlite for all databases. The richest version in features.
  • nettemp 3 is a php, sqlite, python, sqlite for all databases.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].