Merge branch 'master' into dev
This commit is contained in:
commit
5e24726e7b
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,9 +1,4 @@
|
||||
.pio/*
|
||||
.vscode/*
|
||||
*.map
|
||||
test/*.md
|
||||
test/env/*
|
||||
test/configure_*.py
|
||||
TODO.md
|
||||
src_docs/_build/*
|
||||
data/*.min.htm
|
||||
|
10
1.json
10
1.json
@ -1,10 +0,0 @@
|
||||
{
|
||||
"key": "gravitymon66a1b0",
|
||||
"data": {
|
||||
"Temperature": 27,
|
||||
"Battery": 4.99,
|
||||
"Tilt": 88.86,
|
||||
"Rssi": -51,
|
||||
"Gravity": 1.1173
|
||||
}
|
||||
}
|
@ -12,7 +12,7 @@
|
||||
|
||||
GravityMon is a replacement firmware for the iSpindle firmware. It's 100% compatible with the iSpindle hardware design so it does not require any hardware changes.
|
||||
|
||||
Now also works with ESP32, either an ESP32 d1 mini or ESP32 c3 mini which both are pin compatible with ESP8266.
|
||||
Now also works with ESP32 d1 mini, ESP32 c3 mini, ESP32 S2 mini which both are pin compatible with ESP8266.
|
||||
|
||||
Installation can be made using https://www.brewflasher.com or the web version at https://web.brewflasher.com
|
||||
|
||||
|
File diff suppressed because one or more lines are too long
Binary file not shown.
Before Width: | Height: | Size: 57 KiB |
Binary file not shown.
Before Width: | Height: | Size: 156 KiB |
Binary file not shown.
@ -1,4 +0,0 @@
|
||||
set JAVA_HOME=c:\dev\jdk-17.0.1
|
||||
%JAVA_HOME%\bin\java -jar EspStackTraceDecoder.jar c:\Users\magnu\.platformio\packages\toolchain-xtensa\bin\xtensa-lx106-elf-addr2line.exe c:\dev\gravitymon\.pio\build\gravity-release\firmware.elf exception_dump.txt
|
||||
|
||||
rem %JAVA_HOME%\bin\java -jar EspStackTraceDecoder.jar c:\Users\magnu\.platformio\packages\toolchain-xtensa\bin\xtensa-lx106-elf-addr2line.exe c:\dev\gravitymon\.pio\build\gravity-debug\firmware.elf exception_dump.txt
|
@ -1,35 +0,0 @@
|
||||
|
||||
User exception (panic/abort/assert)
|
||||
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
|
||||
|
||||
Panic core_esp8266_main.cpp:215 loop_task
|
||||
|
||||
>>>stack>>>
|
||||
|
||||
ctx: sys
|
||||
sp: 3fffff10 end: 3fffffb0 offset: 0000
|
||||
3fffff10: 00000000 02ac3bd9 40280793 3ffeaec4
|
||||
3fffff20: 000000fe 00000000 00000000 00000000
|
||||
3fffff30: 00000000 00000000 00000000 3fff1edc
|
||||
3fffff40: 3fff1fa8 3fff1fa8 3fff0280 3fff1e94
|
||||
3fffff50: 3fffdad0 00000000 3ffe8648 4022d992
|
||||
3fffff60: 402854b2 3fffdab0 00000000 4022d9ff
|
||||
3fffff70: 00000000 3fffdad0 3fff1e94 4022d0d8
|
||||
3fffff80: 40000f49 40000f49 3fffdab0 40000f49
|
||||
3fffff90: 40000e19 000b5a21 00000000 00000005
|
||||
3fffffa0: 00000000 aa55aa55 000000d0 401057f9
|
||||
<<<stack<<<
|
||||
|
||||
--------------- CUT HERE FOR EXCEPTION DECODER ---------------
|
||||
|
||||
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
|
||||
|
||||
load 0x4010f000, len 3460, room 16
|
||||
tail 4
|
||||
chksum 0xcc
|
||||
load 0x3fff20b8, len 40, room 4
|
||||
tail 4
|
||||
chksum 0xc9
|
||||
csum 0xc9
|
||||
v000b5a30
|
||||
~ld
|
Binary file not shown.
Before Width: | Height: | Size: 20 KiB |
Binary file not shown.
Before Width: | Height: | Size: 31 KiB |
21
test.json
21
test.json
@ -1,21 +0,0 @@
|
||||
gravmon/${mdns}/temperature:${temp}|
|
||||
gravmon/${mdns}/gravity:${gravity}|
|
||||
gravmon/${mdns}/rssi:${rssi}|
|
||||
gravmon/${mdns}/tilt:${tilt}|
|
||||
gravmon/${mdns}/battery:${battery}|
|
||||
homeassistant/sensor/gravmon_${id}/temperature/config:{"dev":{"name":"${mdns}","mdl":"gravmon","sw":"${app-ver}","ids":"${id}"},"uniq_id":"${id}_temp","name":"temperature","dev_cla":"temperature","unit_of_meas":"${temp-unit}","stat_t":"gravmon/${mdns}/temperature"}|
|
||||
homeassistant/sensor/gravmon_${id}/gravity/config:{"dev":{"name":"${mdns}","mdl":"gravmon","sw":"${app-ver}","ids":"${id}"},"uniq_id":"${id}_grav","name":"gravity","dev_cla":"temperature","unit_of_meas":" ${gravity-unit}","stat_t":"gravmon/${mdns}/gravity"}|
|
||||
homeassistant/sensor/gravmon_${id}/rssi/config:{"dev":{"name":"${mdns}","mdl":"gravmon","sw":"${app-ver}","ids":"${id}"},"uniq_id":"${id}_rssi","name":"rssi","dev_cla":"signal_strength","unit_of_meas":"dBm","stat_t":"gravmon/${mdns}/rssi"}|
|
||||
homeassistant/sensor/gravmon_${id}/tilt/config:{"dev":{"name":"${mdns}","mdl":"gravmon","sw":"${app-ver}","ids":"${id}"},"uniq_id":"${id}_tilt","name":"tilt","dev_cla":"temperature","stat_t":"gravmon/${mdns}/tilt"}|
|
||||
homeassistant/sensor/gravmon_${id}/battery/config:{"dev":{"name":"${mdns}","mdl":"gravmon","sw":"${app-ver}","ids":"${id}"},"uniq_id":"${id}_batt","name":"battery","dev_cla":"voltage","unit_of_meas":"V","stat_t":"gravmon/${mdns}/battery"}|
|
||||
|
||||
gravmon/garvmon1/temperature:27.0|
|
||||
gravmon/garvmon1/gravity:0.0000|
|
||||
gravmon/garvmon1/rssi:-65|
|
||||
gravmon/garvmon1/tilt:84.76|
|
||||
gravmon/garvmon1/battery:4.99|
|
||||
homeassistant/sensor/gravmon_66a1b0/temperature/config:{"dev":{"name":"garvmon1","mdl":"gravmon","sw":"1.1.0","ids":"66a1b0"},"uniq_id":"66a1b0_temp","name":"temperature","dev_cla":"temperature","unit_of_meas":"C","stat_t":"gravmon/garvmon1/temperature"}|
|
||||
homeassistant/sensor/gravmon_66a1b0/gravity/config:{"dev":{"name":"garvmon1","mdl":"gravmon","sw":"1.1.0","ids":"66a1b0"},"uniq_id":"66a1b0_grav","name":"gravity","dev_cla":"temperature","unit_of_meas":" G","stat_t":"gravmon/garvmon1/gravity"}|
|
||||
homeassistant/sensor/gravmon_66a1b0/rssi/config:{"dev":{"name":"garvmon1","mdl":"gravmon","sw":"1.1.0","ids":"66a1b0"},"uniq_id":"66a1b0_rssi","name":"rssi","dev_cla":"signal_strength","unit_of_meas":"dBm","stat_t":"gravmon/garvmon1/rssi"}|
|
||||
homeassistant/sensor/gravmon_66a1b0/tilt/config:{"dev":{"name":"garvmon1","mdl":"gravmon","sw":"1.1.0","ids":"66a1b0"},"uniq_id":"66a1b0_tilt","name":"tilt","dev_cla":"temperature","stat_t":"gravmon/garvmon1/tilt"}|
|
||||
homeassistant/sensor/gravmon_66a1b0/battery/config:{"dev":{"name":"garvmon1","mdl":"gravmon","sw":"1.1.0","ids":"66a1b0"},"uniq_id":"66a1b0_batt","name":"battery","dev_cla":"voltage","unit_of_meas":"V","stat_t":"gravmon/garvmon1/battery"}|
|
@ -1,91 +0,0 @@
|
||||
import requests
|
||||
import json
|
||||
|
||||
host = "192.168.1.1" # IP adress (or name) of the device to send these settings to
|
||||
id = "ee1bfc" # Device ID (shown in serial console during startup or in UI)
|
||||
|
||||
def set_config( url, json ):
|
||||
headers = { "ContentType": "application/json" }
|
||||
print( url )
|
||||
#print( json )
|
||||
resp = requests.post( url, headers=headers, data=json )
|
||||
if resp.status_code != 200 :
|
||||
print ( "Failed " )
|
||||
else :
|
||||
print ( "Success " )
|
||||
|
||||
#
|
||||
# Configure the device settings.
|
||||
#
|
||||
url = "http://" + host + "/api/config/device"
|
||||
json = { "id": id,
|
||||
"mdns": "gravmon", # Name of the device
|
||||
"temp-format": "C", # Temperature format C or F
|
||||
"sleep-interval": 30 # Sleep interval in seconds
|
||||
}
|
||||
set_config( url, json )
|
||||
|
||||
#
|
||||
# Configure the push settings. Blank means that its no used.
|
||||
#
|
||||
url = "http://" + host + "/api/config/push"
|
||||
json = { "id": id,
|
||||
"token": "",
|
||||
"http-push": "http://192.168.1.1/ispindel", # HTTP endpoint
|
||||
"http-push2": "", # HTTP endpoint2
|
||||
"http-push-h1": "Content-Type: application/json",
|
||||
"http-push-h2": "",
|
||||
"http-push2-h1": "Content-Type: application/json",
|
||||
"http-push2-h2": "",
|
||||
"influxdb2-push": "", # InfluxDB2 settings
|
||||
"influxdb2-org": "",
|
||||
"influxdb2-bucket": "",
|
||||
"influxdb2-auth": "" ,
|
||||
"mqtt-push": "",
|
||||
"mqtt-port": 1883,
|
||||
"mqtt-user": "",
|
||||
"mqtt-pass": ""
|
||||
}
|
||||
set_config( url, json )
|
||||
|
||||
|
||||
#
|
||||
# Configure the gravity settings.
|
||||
#
|
||||
url = "http://" + host + "/api/config/gravity"
|
||||
json = { "id": id,
|
||||
"gravity-formula": "", # If you want to set the gravity formula
|
||||
"gravity-format": "G",
|
||||
"gravity-temp-adjustment": "off" # on or off
|
||||
}
|
||||
set_config( url, json )
|
||||
|
||||
#
|
||||
# Configure the hardware settings.
|
||||
#
|
||||
url = "http://" + host + "/api/config/hardware"
|
||||
json = { "id": id,
|
||||
"voltage-factor": 1.59, # Default value for voltage calculation
|
||||
"temp-adjustment": 0, # If temp sensor needs to be corrected
|
||||
"gyro-temp": "off", # Use the temp sensor in the gyro
|
||||
"ota-url": "" # if the device should seach for a new update when active
|
||||
}
|
||||
set_config( url, json )
|
||||
|
||||
#
|
||||
# Configure the gravity formula settings. If this is called the formula will be updated based on these measurements (zero angle values will be ignored)
|
||||
#
|
||||
url = "http://" + host + "/api/formula"
|
||||
json = { "id": id,
|
||||
"a1": 22.4,
|
||||
"a2": 54.4,
|
||||
"a3": 58,
|
||||
"a4": 0,
|
||||
"a5": 0,
|
||||
"g1": 1.000,
|
||||
"g2": 1.053,
|
||||
"g3": 1.062,
|
||||
"g4": 1,
|
||||
"g5": 1
|
||||
}
|
||||
set_config( url, json )
|
27
test2.json
27
test2.json
@ -1,27 +0,0 @@
|
||||
gravmon/${mdns}/temperature:${temp}|
|
||||
gravmon/${mdns}/gravity:${gravity}|
|
||||
gravmon/${mdns}/rssi:${rssi}|
|
||||
gravmon/${mdns}/tilt:${tilt}|
|
||||
gravmon/${mdns}/battery:${battery}|
|
||||
gravmon/${mdns}/swver:${app-ver}|
|
||||
homeassistant/sensor/gravmon_${id}/temperature/config:{"dev":{"name":"${mdns}","mdl":"gravmon","sw":"${app-ver}","ids":["${id}"]},"uniq_id":"${id}_temp","name":"Temperature","dev_cla":"temperature","unit_of_meas":"°${temp-unit}","stat_t":"gravmon/${mdns}/temperature"}|
|
||||
homeassistant/sensor/gravmon_${id}/tilt/config:{"dev":{"name":"${mdns}","mdl":"gravmon","sw":"${app-ver}","ids":["${id}"]},"uniq_id":"${id}_tilt","name":"Tilt","stat_t":"gravmon/${mdns}/tilt"}|
|
||||
homeassistant/sensor/gravmon_${id}/battery/config:{"dev":{"name":"${mdns}","mdl":"gravmon","sw":"${app-ver}","ids":["${id}"]},"uniq_id":"${id}_battery","name":"Battery Voltage","dev_cla":"voltage","unit_of_meas":"V","stat_t":"gravmon/${mdns}/battery"}|
|
||||
homeassistant/sensor/gravmon_${id}/gravity/config:{"dev":{"name":"${mdns}","mdl":"gravmon","sw":"${app-ver}","ids":["${id}"]},"uniq_id":"${id}_grav","name":"Gravity","unit_of_meas":" ${gravity-unit}","stat_t":"gravmon/${mdns}/gravity"}|
|
||||
homeassistant/sensor/gravmon_${id}/rssi/config:{"dev":{"name":"${mdns}","mdl":"gravmon","sw":"${app-ver}","ids":["${id}"]},"uniq_id":"${id}_rssi","name":"Signal Strength","dev_cla":"signal_strength","unit_of_meas":" dB","stat_t":"gravmon/${mdns}/rssi"}|
|
||||
homeassistant/sensor/gravmon_${id}/swver/config:{"dev":{"name":"${mdns}","mdl":"gravmon","sw":"${app-ver}","ids":["${id}"]},"uniq_id":"${id}_swver","name":"Software Version","stat_t":"gravmon/${mdns}/swver"}|
|
||||
|
||||
gravmon/${mdns}/temperature:${temp}|
|
||||
gravmon/${mdns}/temperature:${temp}|
|
||||
gravmon/${mdns}/gravity:${gravity}|
|
||||
gravmon/${mdns}/rssi:${rssi}|
|
||||
gravmon/${mdns}/tilt:${tilt}|
|
||||
gravmon/${mdns}/battery:${battery}|
|
||||
gravmon/${mdns}/swver:${app-ver}|
|
||||
homeassistant/sensor/gravmon_${id}/temperature/config:{"dev":{"name":"${mdns}","mdl":"gravmon","sw":"${app-ver}","ids":["${id}"]},"uniq_id":"${id}_temp","name":"Temperature","dev_cla":"temperature","unit_of_meas":"°${temp-unit}","stat_t":"gravmon/${mdns}/temperature"}|
|
||||
homeassistant/sensor/gravmon_${id}/temperature/config:{"dev":{"name":"${mdns}","mdl":"gravmon","sw":"${app-ver}","ids":["${id}"]},"uniq_id":"${id}_temp","name":"Temperature","dev_cla":"temperature","unit_of_meas":"°${temp-unit}","stat_t":"gravmon/${mdns}/temperature"}|
|
||||
homeassistant/sensor/gravmon_${id}/tilt/config:{"dev":{"name":"${mdns}","mdl":"gravmon","sw":"${app-ver}","ids":["${id}"]},"uniq_id":"${id}_tilt","name":"Tilt","stat_t":"gravmon/${mdns}/tilt"}|
|
||||
homeassistant/sensor/gravmon_${id}/battery/config:{"dev":{"name":"${mdns}","mdl":"gravmon","sw":"${app-ver}","ids":["${id}"]},"uniq_id":"${id}_battery","name":"Battery Voltage","dev_cla":"voltage","unit_of_meas":"V","stat_t":"gravmon/${mdns}/battery"}|
|
||||
homeassistant/sensor/gravmon_${id}/gravity/config:{"dev":{"name":"${mdns}","mdl":"gravmon","sw":"${app-ver}","ids":["${id}"]},"uniq_id":"${id}_grav","name":"Gravity","unit_of_meas":" ${gravity-unit}","stat_t":"gravmon/${mdns}/gravity"}|
|
||||
homeassistant/sensor/gravmon_${id}/rssi/config:{"dev":{"name":"${mdns}","mdl":"gravmon","sw":"${app-ver}","ids":["${id}"]},"uniq_id":"${id}_rssi","name":"Signal Strength","dev_cla":"signal_strength","unit_of_meas":" dB","stat_t":"gravmon/${mdns}/rssi"}|
|
||||
homeassistant/sensor/gravmon_${id}/swver/config:{"dev":{"name":"${mdns}","mdl":"gravmon","sw":"${app-ver}","ids":["${id}"]},"uniq_id":"${id}_swver","name":"Software Version","stat_t":"gravmon/${mdns}/swver"}|
|
Loading…
Reference in New Issue
Block a user